You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2015/04/01 22:11:54 UTC

[jira] [Commented] (WICKET-5871) Explain relation of causes for com.google.inject.CreationException

    [ https://issues.apache.org/jira/browse/WICKET-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14391352#comment-14391352 ] 

Sven Meier commented on WICKET-5871:
------------------------------------

The exception is created and thrown by Guice. I don't see anything Wicket can do about this.

Please attach a quickstart and/or patch if you see a solution.


> Explain relation of causes for com.google.inject.CreationException
> ------------------------------------------------------------------
>
>                 Key: WICKET-5871
>                 URL: https://issues.apache.org/jira/browse/WICKET-5871
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 6.18.0
>            Reporter: Karl Richter
>            Assignee: Sven Meier
>            Priority: Minor
>
> Errors in the form of 
>     Information:   ERROR - WicketFilter               - The initialization of an application with name 'wicket.orienteer' has failed.
>     com.google.inject.CreationException: Guice creation errors:
>     1) Properties files was not found
>     2) No implementation for org.apache.wicket.protocol.http.WebApplication was bound.
>       at org.orienteer.services.OrienteerModule.getLocalizer(OrienteerModule.java:120)
>     3) No implementation for org.apache.wicket.protocol.http.WebApplication was bound.
>       at org.orienteer.services.OrienteerModule.getOServer(OrienteerModule.java:113)
>     3 errors
> 	    at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
> 	    at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
> 	    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
> 	    at com.google.inject.Guice.createInjector(Guice.java:95)
> 	    at com.google.inject.Guice.createInjector(Guice.java:72)
> 	    at com.google.inject.Guice.createInjector(Guice.java:62)
> 	    at org.apache.wicket.guice.GuiceWebApplicationFactory.createApplication(GuiceWebApplicationFactory.java:171)
> 	    at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:385)
> 	    at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351)
> 	    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
> 	    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:131)
> 	    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:5329)
> 	    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5943)
> 	    at com.sun.enterprise.web.WebModule.start(WebModule.java:691)
> 	    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
> 	    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
> 	    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
> 	    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2286)
> 	    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932)
> 	    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:139)
> 	    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
> 	    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
> 	    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
> 	    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
> 	    at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:406)
> 	    at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:243)
> 	    at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:329)
> 	    at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:377)
> 	    at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461)
> 	    at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227)
> 	    at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84)
> 	    at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258)
> 	    at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105)
> 	    at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87)
> 	    at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162)
> 	    at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147)
> 	    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	    at java.lang.Thread.run(Thread.java:745)
> should explain whether the causes are related with logical and or logical or, otherwise the user risks time wasting investigating all issues if just one might be the actual cause.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)