NoSuchMethodError: com.google.inject.Scopes.isSingleton

519 views
Skip to first unread message

Michael

unread,
Apr 22, 2012, 1:52:15 AM4/22/12
to google-guice
I'm using guice 3.0 on servlet RPC in GAE.

when i am starting the server, i get the following error messages:

Apr 22, 2012 5:45:37 AM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: Error starting handlers
java.lang.NoSuchMethodError: com.google.inject.Scopes.isSingleton(Lcom/
google/inject/Binding;)Z
at
com.google.inject.servlet.ServletDefinition.init(ServletDefinition.java:
103)
at
com.google.inject.servlet.ManagedServletPipeline.init(ManagedServletPipeline.java:
82)
at
com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:
102)
at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:172)
...

what is the possible cause of this error?

Fred Faber

unread,
Apr 22, 2012, 1:04:59 PM4/22/12
to google...@googlegroups.com

I'd be wary of possible classpath conflicts. Check your project's dependency structure to confirm you're only pulling in Guice from head. 

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

Reply all
Reply to author
Forward
0 new messages