I’m using version 1.2.3 of the Excel module with Play 1.2.2 and have a 'NoClassDefFoundError: org/apache/poi/ss/usermodel/WorkbookFactory’. Everything works fine if I switch to version 1.2.2 of the Excel module.
$ /Applications/play-1.2.2/play new test-excel
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~
~ The new application will be created in /Users/pedro/Documents/code/play/test-excel
~ What is the application name? [test-excel]
~
~ OK, the application is created.
~ Start it with : play run test-excel
~ Have fun!
~
$ /Applications/play-1.2.2/play deps test-excel
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~
~ Resolving dependencies using /Users/pedro/Documents/code/play/test-excel/conf/dependencies.yml,
~
~ play->excel 1.2.3 (from playContributedModules)
~
~ Installing resolved dependencies,
~
~ modules/excel-1.2.3
~
~ Done!
~
$ /Applications/play-1.2.2/play run test-excel
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~
~ Ctrl+C to stop
~
Listening for transport dt_socket at address: 8000
11:05:37,198 INFO ~ Starting /Users/pedro/Documents/code/play/test-excel
11:05:37,202 INFO ~ Module excel is available (/Users/pedro/Documents/code/play/test-excel/modules/excel-1.2.3)
11:05:37,800 WARN ~ You're running Play! in DEV mode
11:05:37,894 INFO ~ Listening for HTTP on port 9000 (Waiting a first request to start) ...
11:05:45,624 INFO ~ Application 'test-excel' is now started !
11:08:19,539 ERROR ~
@67628l6oj
Internal Server Error (500) for request GET /
Oops: NoClassDefFoundError
An unexpected error occured caused by exception NoClassDefFoundError: org/apache/poi/ss/usermodel/WorkbookFactory
play.exceptions.UnexpectedException: Unexpected Error
at play.Invoker$Invocation.onException(Invoker.java:232)
at play.Invoker$Invocation.run(Invoker.java:273)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/WorkbookFactory
at net.sf.jxls.transformer.XLSTransformer.transformXLS(XLSTransformer.java:217)
at play.modules.excel.RenderExcel.apply(RenderExcel.java:106)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:243)
... 1 more
Caused by: java.lang.ClassNotFoundException: org.apache.poi.ss.usermodel.WorkbookFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 4 more
11:08:19,539 ERROR ~
@67628l6ok
Error during the 500 response generation
Template not found
The template errors/500.xls does not exist.
play.exceptions.TemplateNotFoundException: Template not found : errors/500.xls
at play.templates.TemplateLoader.load(TemplateLoader.java:192)
at play.server.PlayHandler.serve500(PlayHandler.java:707)
at Invocation.HTTP Request(Play!)