I'm running into the exact same problem now. (I just mavenized my project 
too)

Was anyone able to find a resolution to this? (I would hope so, it was 
posted 2 years ago!)

Thanks in advance!

Regards, 
Avanish

On Thursday, October 21, 2010 10:28:24 PM UTC+5:30, decitrig wrote:
>
> I just recently maven-ized (wince) a gae/gwt project that uses guice- 
> servlet, and now I'm getting the following error on dev-mode launch: 
>
> 2010-10-21 12:50:48.390 java[73559:10b] [Java CocoaComponent 
> compatibility mode]: Enabled 
> 2010-10-21 12:50:48.392 java[73559:10b] [Java CocoaComponent 
> compatibility mode]: Setting timeout for SWT to 0.100000 
> Initializing AppEngine server 
> [WARN] failed 
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext@10980e7{/,<snipped>/
>  
>
> target/engayged-0.1.0.BUILD-SNAPSHOT}: java.lang.NoSuchFieldError: 
> servletContext 
> [WARN] failed JettyContainerService$ApiProxyHandler@5abd09e8: 
> java.lang.NoSuchFieldError: servletContext 
> [WARN] Error starting handlers 
> java.lang.NoSuchFieldError: servletContext 
>         at 
> com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:
>  
>
> 42) 
>         at 
> org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java: 
> 548) 
>         at 
> org.mortbay.jetty.servlet.Context.startContext(Context.java:136) 
>         at 
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 
> 1250) 
>         at 
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 
> 517) 
>         at 
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 
> 467) 
>         at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 50) 
>         at 
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 
> 130) 
>         at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 50) 
>         at 
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 
> 130) 
>         at org.mortbay.jetty.Server.doStart(Server.java:224) 
>         at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 50) 
>         at 
> com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:
>  
>
> 185) 
>         at 
> com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:
>  
>
> 149) 
>         at 
> com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:
>  
>
> 219) 
>         at 
> com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:
>  
>
> 108) 
>         at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421) 
>         at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035) 
>         at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783) 
>         at com.google.gwt.dev.DevMode.main(DevMode.java:275) 
>
> I'm suspicious that it's a build path error, but I can't seem to track 
> it down. Here's how I've specified guice-servlet in pom.xml: 
>
>     <dependency> 
>       <groupId>com.google.inject.extensions</groupId> 
>       <artifactId>guice-servlet</artifactId> 
>       <version>2.0</version> 
>     </dependency> 
>
> I'm very new to maven, so it's highly probable that I've just done 
> something stupid; any help would be greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to