I wouldn't be surprised if some errors did come up. Please let us know if you run into anything else. On Apr 2, 2014 4:11 PM, "Filipe Sousa" <[email protected]> wrote:
> For some reason it's working now. > > Please ignore > > > On Wed, Mar 26, 2014 at 5:10 PM, Filipe Sousa <[email protected]> wrote: > >> Hi, >> >> Replacing guice 3.0 with 4.0-beta4 is causing some guice creation errors: >> >> com.google.inject.CreationException: Guice creation errors: >> >> 1) No implementation for >> java.util.Collection<org.apache.shiro.realm.Realm> was bound. >> while locating java.util.Collection<org.apache.shiro.realm.Realm> >> for parameter 0 at >> org.apache.shiro.web.mgt.DefaultWebSecurityManager.<init>(DefaultWebSecurityManager.java:87) >> at org.apache.shiro.guice.ShiroModule.configure(ShiroModule.java:55) >> (via modules: pt.ipb.creditacao.server.guice.CreditacaoModule -> >> pt.ipb.creditacao.server.guice.SecurityModule) >> >> 2) No implementation for >> java.util.Collection<org.apache.shiro.realm.Realm> was bound. >> while locating java.util.Collection<org.apache.shiro.realm.Realm> >> for parameter 0 at >> org.apache.shiro.web.mgt.DefaultWebSecurityManager.<init>(DefaultWebSecurityManager.java:87) >> at >> org.apache.shiro.guice.web.ShiroWebModule.configureShiro(ShiroWebModule.java:121) >> (via modules: pt.ipb.creditacao.server.guice.CreditacaoModule -> >> pt.ipb.creditacao.server.guice.SecurityModule) >> >> 3) No implementation for >> org.apache.shiro.web.filter.mgt.FilterChainResolver was bound. >> while locating org.apache.shiro.web.filter.mgt.FilterChainResolver >> for parameter 1 at >> org.apache.shiro.guice.web.GuiceShiroFilter.<init>(GuiceShiroFilter.java:34) >> at >> org.apache.shiro.guice.web.ShiroWebModule.configureShiro(ShiroWebModule.java:123) >> (via modules: pt.ipb.creditacao.server.guice.CreditacaoModule -> >> pt.ipb.creditacao.server.guice.SecurityModule) >> >> 4) No implementation for >> org.apache.shiro.web.filter.mgt.FilterChainResolver was bound. >> while locating org.apache.shiro.web.filter.mgt.FilterChainResolver >> for parameter 0 at >> org.apache.shiro.guice.web.WebGuiceEnvironment.<init>(WebGuiceEnvironment.java:39) >> at org.apache.shiro.guice.ShiroModule.configure(ShiroModule.java:57) >> (via modules: pt.ipb.creditacao.server.guice.CreditacaoModule -> >> pt.ipb.creditacao.server.guice.SecurityModule) >> >> 5) T cannot be used as a key; It is not fully specified. >> >> 5 errors >> at >> com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:449) >> ~[guice-4.0-beta4.jar:na] >> at >> com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155) >> ~[guice-4.0-beta4.jar:na] >> at >> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107) >> ~[guice-4.0-beta4.jar:na] >> at com.google.inject.Guice.createInjector(Guice.java:96) >> ~[guice-4.0-beta4.jar:na] >> at com.google.inject.Guice.createInjector(Guice.java:84) >> ~[guice-4.0-beta4.jar:na] >> at >> pt.ipb.creditacao.server.guice.GuiceListener.getInjector(GuiceListener.java:49) >> ~[classes/:na] >> at >> com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:47) >> ~[guice-servlet-4.0-beta4.jar:na] >> at >> pt.ipb.creditacao.server.guice.GuiceListener.contextInitialized(GuiceListener.java:61) >> ~[classes/:na] >> at >> org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:746) >> ~[jetty-server-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:238) >> ~[jetty-servlet-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240) >> ~[jetty-webapp-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:689) >> ~[jetty-server-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:482) >> ~[jetty-webapp-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) >> [jetty-util-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:39) >> [jetty-deploy-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186) >> [jetty-deploy-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:494) >> [jetty-deploy-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:141) >> [jetty-deploy-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:145) >> [jetty-deploy-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:56) >> [jetty-deploy-7.6.14.v20131031.jar:7.6.14.v20131031] >> at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615) >> [jetty-util-7.6.14.v20131031.jar:7.6.14.v20131031] >> at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540) >> [jetty-util-7.6.14.v20131031.jar:7.6.14.v20131031] >> at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403) >> [jetty-util-7.6.14.v20131031.jar:7.6.14.v20131031] >> at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337) >> [jetty-util-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) >> [jetty-util-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:121) >> [jetty-deploy-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) >> [jetty-util-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:555) >> [jetty-deploy-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:230) >> [jetty-deploy-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) >> [jetty-util-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81) >> [jetty-util-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58) >> [jetty-server-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96) >> [jetty-server-7.6.14.v20131031.jar:7.6.14.v20131031] >> at org.eclipse.jetty.server.Server.doStart(Server.java:281) >> [jetty-server-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) >> [jetty-util-7.6.14.v20131031.jar:7.6.14.v20131031] >> at >> org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1274) >> [jetty-xml-7.6.14.v20131031.jar:7.6.14.v20131031] >> at java.security.AccessController.doPrivileged(Native Method) >> [na:1.7.0_51] >> at >> org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197) >> [jetty-xml-7.6.14.v20131031.jar:7.6.14.v20131031] >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> ~[na:1.7.0_51] >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> ~[na:1.7.0_51] >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> ~[na:1.7.0_51] >> at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] >> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) >> [idea_rt.jar:na] >> >> shiro-guice-1.2.3 >> >> -- >> Filipe Sousa >> > > > > -- > Filipe Sousa >
