Veeren
unread,Feb 9, 2011, 11:11:58 AM2/9/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
I'm trying to deploy my recently coded "HelloWorld" application to
Tomcat.
I used the build scripts to generate the war file.
When i deploy to Tomcat the application gets loaded properly.
The problem arises when i access the application.
In one of my ServiceImpls i have somehow got a runtime dependency on
org.apache.commons.logging.LogFactory which is present in "gwt-
dev.jar"
SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract void
com.company.module.client.user.UserService.authenticateUser(com.company.module.shared.UserDTO)
throws com.company.module.shared.MpfException' threw an unexpected
exception: java.lang.NoClassDefFoundError: org/apache/commons/logging/
LogFactory
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
207)
To solve this problem i added the gwt-dev.jar & gwt-user.jar from the
SDK to the war/WEB-INF/lib folder,
then these jars are not loaded because of the error,
Feb 8, 2011 6:26:57 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(C:\Java\tomcat-6.0.18-BASE\webapps\HelloWorld
\WEB-INF\lib\gwt-dev.jar) - jar not loaded. See Servlet Spec 2.3,
section 9.7.2. Offending class: javax/servlet/Servlet.class
Feb 8, 2011 6:26:57 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(C:\Java\tomcat-6.0.18-BASE\webapps\HelloWorld
\WEB-INF\lib\gwt-user.jar) - jar not loaded. See Servlet Spec 2.3,
section 9.7.2. Offending class: javax/servlet/Servlet.class
Did anyone get a similar error? and if yes how did you guys get around
to fix it?