When I try to start my project as WebApplication from Eclipse, I have the following error:
[WARN] failed com.google.apphosting.utils.jetty.DevAppEngineWebAppContext@4b90 3fd{/,D:\Dev\Projects\The Five Orbs\trunk\target\fiveorbs-0.1}: java.lang.NoClassDefFoundError: com/google/inject/servlet/GuiceServletContextListener [WARN] failed JettyContainerService$ApiProxyHandler@eb4d977 : java.lang.NoClassDefFoundError: com/google/inject/servlet/GuiceServletContextListener [WARN] Error starting handlers java.lang.NoClassDefFoundError: com/google/inject/servlet/GuiceServletContextListener
The class can be found at compile time (my custom GuiceServletConfig extends GuiceServletContextListener and compiles properly).
The guice-servlet-3.0.jar displayed both in the path of building the project and in the path to the classes of my configuration for running web applications in Eclipse.
The following configuration is shown in the "Arguments" panel of my "Run" configuration: in the program arguments:
-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl TheFiveOrbs.jsp -logLevel INFO -server com.google.appengine.tools.development.gwt.AppEngineLauncher -port 8888 -codeServerPort 9997 -war "D:\Dev\Projects\The Five Orbs\trunk\target\fiveorbs-0.1" com.fiveorbs.TheFiveOrbs
in VM arguments:
-javaagent:D:\Dev\Programs\appengine-java-sdk\lib\agent\appengine-agent.jar -Xmx512m -Dappengine.sdk.root=D:\Dev\Programs\appengine-java-sdk
When I start mvn gae: we start from the command line with Maven, everything is fine - the server starts correctly and no exceptions are displayed.
I struggled with this problem for several hours and really don't understand why this is happening.
Thanks in advance for any hint you could offer.
Sebastien
source share