gwt - Deploying a gwtp maven app: See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class -


using directions @ https://github.com/arcbees/arcbees-tools/blob/master/archetypes/gwtp-basic/readme.md , http://c.gwt-examples.com/home/maven/ide-import/eclipse i've created gwtp project maven. works on debug mode i'm having problems deploying it.

1) run command mvn gwt:compile 2) copy .war file 2 different tomcat servers 3) restart server 4) browse location of file , 404 error

http status 404 - /transpohubadmin/project.html type status report message /transpohubadmin/project.html description requested resource not available. apache tomcat/7.0.32

this error occurs if go directly css file (unless delete project.html file first)

the catalina.out is:

may 2, 2013 9:22:01 org.apache.catalina.startup.hostconfig deploywar info: deploying web application archive /usr/local/apache-tomcat-7.0.32/webapps/transpohubadmin.war may 2, 2013 9:22:02 org.apache.catalina.loader.webappclassloader validatejarfile info: validatejarfile(/library/tomcat/webapps/transpohubadmin/web-inf/lib/gwt-user-2.5.1.jar) - jar not loaded. see servlet spec 2.3, section 9.7.2. offending class: javax/servlet/servlet.class may 2, 2013 9:22:02 org.apache.catalina.core.standardcontext startinternal severe: error listenerstart may 2, 2013 9:22:02 org.apache.catalina.core.standardcontext startinternal severe: context [/transpohubadmin] startup failed due previous errors 

i've googled see servlet spec 2.3, section 9.7.2. offending class: javax/servlet/servlet.class , not found error.

any suggestions?

cheers,

you shouldn't have gwt-user in war. there should gwt-servlet if use gwt-rpc, or requestfactory-server if use requestfactory.

in other words, gwt-user dependency in pom.xml should have <scope>provided</scope> , should add dependency on gwt-servlet <scope>runtime</scope>.

please file issue on brandon's archetype.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -