Including a .jar working in Tomcat but no in builtin Jetty
116 views
Skip to first unread message
Martones
unread,
Jan 14, 2012, 5:20:19 AM1/14/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original 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
Hi everyone,
I'm using Mongodb + GWT RPC. I'm getting a NoClassDefFoundError error
when in Hosted jetty server. But when I compile the app and place it
on my tomcat server it works (I copy-paste the.war/ content).
As advised in the GWT doc I did the folowing config :
- I copied the mongo.jar in my WEB-INF/lib
- I added it in the java build path -> jars
On a side note, I'm using the "reload server" everytime I make changes
to my server side code.
Am I missing something ?
Please tell me if I shall give more details on my problem if its not
clear enough.
Many thanks everyone,
Ludovit
Martones
unread,
Jan 14, 2012, 1:05:12 PM1/14/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original 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
Here's an update :
I just tested a random .jar and it works fine. So I guess that there
my problem is something more then including correctly the mongo.jar
(which I guess is included correcly).
Just to be sure here is the signle line of code that throws the error
and the error it self :
Mongo m = new Mongo();
SEVERE: javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
com.lma.test.client.GreetingService.greetServer(java.lang.String)
throws java.lang.IllegalArgumentException' threw an unexpected
exception: java.lang.NoClassDefFoundError: java.net.InetSocketAddress
is a restricted class. Please see the Google App Engine developer's
guide for more details.
Many thanks for any hints :)
Thomas Broyer
unread,
Jan 14, 2012, 3:04:19 PM1/14/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original 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-we...@googlegroups.com
On Saturday, January 14, 2012 7:05:12 PM UTC+1, Martones wrote:
exception: java.lang.NoClassDefFoundError: java.net.InetSocketAddress
is a restricted class. Please see the Google App Engine developer's
guide for more details.
Disable AppEngine for your project.
Martones
unread,
Jan 14, 2012, 4:46:13 PM1/14/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original 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
Hi Thomas, many thanks it works !
Although I got this warning now :
Server class 'com.google.gwt.dev.shell.jetty.JDBCUnloader' could not
be found in the web app, but was found on the system classpath
Which I suppose is not a problem since once my app will be deployed on
the server the class will be there.