ClassNotFoundException in hosted mode (mvn gwt:run)
---------------------------------------------------

                 Key: MGWT-40
                 URL: http://jira.codehaus.org/browse/MGWT-40
             Project: Maven 2.x GWT Plugin
          Issue Type: Bug
    Affects Versions: 1.1
         Environment: $ mvn -v
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "linux" version: "2.6.27-11-generic" arch: "i386" Family: "unix"

            Reporter: Milen Dyankov
         Attachments: mvn-gwt.zip

I have created simple project (attached) to demonstrate the problem. 
Doing "mvn gwt:run"  starts the hosted mode but  it seems like Jetty  does not 
have  the application classes on the classpath:

[ERROR] 2009-04-20 07:08:44.610:/:WARN:  HelloService: An 
IncompatibleRemoteServiceException was thrown while processing this call.
[ERROR] com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: 
Could not locate requested interface 'com.commsen.mvn_gwt.client.HelloService' 
in default classloader
[ERROR]         at 
com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:261)
[ERROR]         at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
[ERROR]         at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
[ERROR]         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
[ERROR]         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
[ERROR]         at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
[ERROR]         at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
[ERROR]         at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
[ERROR]         at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
[ERROR]         at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
[ERROR]         at 
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
[ERROR]         at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
[ERROR]         at org.mortbay.jetty.Server.handle(Server.java:324)
[ERROR]         at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
[ERROR]         at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
[ERROR]         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
[ERROR]         at 
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
[ERROR]         at 
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
[ERROR]         at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
[ERROR]         at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
[ERROR] Caused by: java.lang.ClassNotFoundException
[ERROR]         at 
com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$1.findClass(JettyLauncher.java:217)
[ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[ERROR]         at 
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:375)
[ERROR]         at 
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
[ERROR]         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[ERROR]         at java.lang.Class.forName0(Native Method)
[ERROR]         at java.lang.Class.forName(Class.java:242)
[ERROR]         at 
com.google.gwt.user.server.rpc.RPC.getClassFromSerializedName(RPC.java:657)
[ERROR]         at 
com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:252)
[ERROR]         ... 19 more
 
Compiling and runing the exact same project works fine (both with "mvn 
jetty:run" and when deployed in external web container)!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to