Re: Tomcat 7 is giving me headaches - trying to run the app with Glassfish 4.1.1

523 views
Skip to first unread message

Carl Samson - GMail

unread,
Nov 30, 2016, 6:15:50 PM11/30/16
to shop...@googlegroups.com
That is strange, it is a typical write once run anywhere java application as long as you use jdk1.7

Next version us java 8 compliant

Sent from my iPhone


On Nov 29, 2016, at 3:26 PM, Java9 <deno....@gmail.com> wrote:

Scratch that - GF is a JavaEE server and I can't seem to find a way for it to stop looking for JSF/Mojarra references. So I'm back on Tomcat, and the loading somewhat improved.


On Tuesday, 29 November 2016 11:47:43 UTC+1, Denis Kajdic wrote:
I've recently mentioned an issue while trying to run the shop on Glassfish 4.1.1 but one of the staff were puzzled by the fact Mojarra (JSF) was being mentioned in the errors.
Hopefully I will now be providing more insight into the issue, because after a couple successful runs on Tomcat, I can't seem to be able to even start it again (may not be related to the app though).

So, trying to run it on GF 4.1.1 I'm getting this (top to bottom in the server's console):

.......
Info:   visiting unvisited references
Info:   visiting unvisited references
Info:   WebModule[null] ServletContext.log():No Spring WebApplicationInitializer types detected on classpath
Info:   Initializing Mojarra 2.2.12 ( 20150720-0848 https://svn.java.net/svn/mojarra~svn/tags/2.2.12@14885) for context '/sm-shop-2.0.3-SNAPSHOT'
Severe:   Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI?
Severe:   Unable to call @PreDestroy annotated methods because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?
Severe:   Critical error during deployment: 
com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:773)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:353)

- - - -  left out the middle part - - - - - - 

at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
at java.lang.Thread.run(Thread.java:745)

Severe:   Exception while loading the app
Severe:   Undeployment failed for context /sm-shop-2.0.3-SNAPSHOT
Severe:   Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
Info:   Exception Occurred :Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException. Please see server.log for more details.

--
You received this message because you are subscribed to the Google Groups "Shopizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shopizer+u...@googlegroups.com.
To post to this group, send email to shop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shopizer/d202ae2d-6664-4b54-828d-da888e69fe37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Java9

unread,
Dec 2, 2016, 7:14:45 AM12/2/16
to Shopizer
1. Someone told me it may be possible that there's a Javaee library somewhere in the application (Shopizer), which would cause GF to look for JSF. Is that possible?
2. When do you expect this new version (is that 2.0.5?) to be released?

Carl Samson

unread,
Dec 2, 2016, 10:15:05 AM12/2/16
to shop...@googlegroups.com
Good point javaee.jar could have been pulled by a dependency but it is not the case. From your IDE you can see the pom dependency from sm-shop.
From what i saw glassfish looks for javaee xml file in the project and does not find it, maybe there is a way to skip that validation

We are finalizing the tests on 2.0.5, many breaking changes introduced by Spring 4 that have to be tested

Regards

To unsubscribe from this group and stop receiving emails from it, send an email to shopizer+unsubscribe@googlegroups.com.

To post to this group, send email to shop...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages