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?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to