gwt-user Jar not loaded offending class javax.servlet.Servlet
I have a war file (GWT app) which
INFO: validateJarFile(/.../tomcat/webapps/abc-browser/WEB-INF/lib/gwt-user-1.7.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Aug 21, 2013 2:35:46 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart
Aug 21, 2013 2:35:46 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/abc-browser] startup failed due to previous errors
I have seen similar issues in this forum which advice
1) link 1 : to delete servlet-api.jar in tomcat\lib : i tried this doesnt help
2) link 2 : to change the pom.xml : but same war file ( hence pom ) is working fine in other environments ( esp prod )
Not sure if there is some more debug points , solution ?
Tried Solution 1 (failed) : manually deleting the gwt-user-1.7.0.jar from WEB-INF\lib of the web application , although still i get the message below
Aug 21, 2013 2:35:46 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart
Aug 21, 2013 2:35:46 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/abc-browser] startup failed due to previous errors
i.e. 1st line doesn't come but still the app fails to load
Tried Solution 2 (failed) : From dependency tree i get below
[INFO] +- com.xyz.global.gxtfw:client:jar:2.0.0:compile
[INFO] | \- com.xyz.global.gxtfw:common:jar:2.0.0:compile
[INFO] | +- com.extjs:gxt:jar:2.0.1:compile
[INFO] | \- com.google.gwt:gwt-user:jar:1.7.0:compile
I tried changing the scope of com.xyz.global.gxtfw to provided , doesnt help
Tried Solution 3 (failed) : add exclusion like below
<dependency>
<groupId>com.xyz.global.gxtfw</groupId>
<artifactId>client</artifactId>
<version>2.0.0</version>
<exclusions>
<exclusion>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
</exclusion>
</exclusions>
As per my understanding it may be some environment specific (tomcat installation) issue ... (as same war file works fine in production & UAT1) ... NOT SURE WHAT THE ISSUE IS .. any help will be much appreciated ... more details at http://stackoverflow.com/questions/18362590/gwt-user-jar-not-loaded-offending-class-javax-servlet-servlet
-- - works fine in UAT Env 1
- works fine in Production environment
- gives below error when deploying in UAT Env 2
- the jar files ... servlet-api.jar , gwt-user.jar is located in same folder in all the environment
- as per suggestion below tried deleting the gwt-user.jar from the folder , still same issue just the first line of error disappears
INFO: validateJarFile(/.../tomcat/webapps/abc-browser/WEB-INF/lib/gwt-user-1.7.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Aug 21, 2013 2:35:46 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart
Aug 21, 2013 2:35:46 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/abc-browser] startup failed due to previous errors
I have seen similar issues in this forum which advice
1) link 1 : to delete servlet-api.jar in tomcat\lib : i tried this doesnt help
2) link 2 : to change the pom.xml : but same war file ( hence pom ) is working fine in other environments ( esp prod )
Not sure if there is some more debug points , solution ?
Tried Solution 1 (failed) : manually deleting the gwt-user-1.7.0.jar from WEB-INF\lib of the web application , although still i get the message below
Aug 21, 2013 2:35:46 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart
Aug 21, 2013 2:35:46 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/abc-browser] startup failed due to previous errors
i.e. 1st line doesn't come but still the app fails to load
Tried Solution 2 (failed) : From dependency tree i get below
[INFO] +- com.xyz.global.gxtfw:client:jar:2.0.0:compile
[INFO] | \- com.xyz.global.gxtfw:common:jar:2.0.0:compile
[INFO] | +- com.extjs:gxt:jar:2.0.1:compile
[INFO] | \- com.google.gwt:gwt-user:jar:1.7.0:compile
I tried changing the scope of com.xyz.global.gxtfw to provided , doesnt help
Tried Solution 3 (failed) : add exclusion like below
<dependency>
<groupId>com.xyz.global.gxtfw</groupId>
<artifactId>client</artifactId>
<version>2.0.0</version>
<exclusions>
<exclusion>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
</exclusion>
</exclusions>
As per my understanding it may be some environment specific (tomcat installation) issue ... (as same war file works fine in production & UAT1) ... NOT SURE WHAT THE ISSUE IS .. any help will be much appreciated ... more details at http://stackoverflow.com/questions/18362590/gwt-user-jar-not-loaded-offending-class-javax-servlet-servlet
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home