Deploying Application (GWT 2.1.0) on Tomcat

176 views
Skip to first unread message

Veeren

unread,
Feb 9, 2011, 11:11:58 AM2/9/11
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?

Y2i

unread,
Feb 9, 2011, 6:42:09 PM2/9/11
to google-we...@googlegroups.com
May be you can get the commons logging jar? http://commons.apache.org/logging/guide.html

P Osborne

unread,
Feb 9, 2011, 6:53:00 PM2/9/11
to google-we...@googlegroups.com

The gwt-dev jar is there to support hosted mode, it shouldn't be delivered in the application war file.  I believe that jar is operating system specific.

-- Patrick

On Wed, Feb 9, 2011 at 4:42 PM, Y2i <yur...@gmail.com> wrote:
May be you can get the commons logging jar? http://commons.apache.org/logging/guide.html

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

Magallo

unread,
Apr 16, 2012, 5:11:33 AM4/16/12
to google-we...@googlegroups.com
How can we avoid the delivery of this file? To create the .war I use the "GWT Compile Project..." menu item from the Eclipse toolbar button called "Google Services and Development Tools". From here, we can't decide what files to deliver. Am I missing something?
Reply all
Reply to author
Forward
0 new messages