users@glassfish.java.net

Re: OSGI wab deploy fails with "Inconsistent Module State" ...

From: <forums_at_java.net>
Date: Wed, 24 Aug 2011 10:19:17 -0500 (CDT)

P.S:

If I remove cache, restart server and deploy wab, I get another unclear
exception:

[#|2011-08-24T17:53:31.676+0300|SEVERE|glassfish3.1|org.apache.catalina.core.ContainerBase|_ThreadID=20;_ThreadName=Thread-1;|ContainerBase.addChild:
start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException:
javax.servlet.ServletException:
com.sun.enterprise.container.common.spi.util.InjectionException: Error
creating managed object for class org.jboss.weld.servlet.WeldListener
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5271)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:500)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
    at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755)
    at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980)
    at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630)
    at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
    at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at
org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
    at
org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
    at
org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
    at
org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
    at
org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)
    at
org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
    at
org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)
    at
org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException:
javax.servlet.ServletException:
com.sun.enterprise.container.common.spi.util.InjectionException: Error
creating managed object for class org.jboss.weld.servlet.WeldListener
    at
org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2688)
    at
org.apache.catalina.core.StandardContext.addApplicationListener(StandardContext.java:1932)
    at
com.sun.enterprise.web.TomcatDeploymentConfig.configureApplicationListener(TomcatDeploymentConfig.java:234)
    at
com.sun.enterprise.web.TomcatDeploymentConfig.configureWebModule(TomcatDeploymentConfig.java:93)
    at
com.sun.enterprise.web.WebModuleContextConfig.start(WebModuleContextConfig.java:274)
    at
com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:172)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:149)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5268)
    ... 25 more
Caused by: javax.servlet.ServletException:
com.sun.enterprise.container.common.spi.util.InjectionException: Error
creating managed object for class org.jboss.weld.servlet.WeldListener
    at
org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2798)
    at
org.apache.catalina.core.StandardContext.loadListener(StandardContext.java:4745)
    at com.sun.enterprise.web.WebModule.loadListener(WebModule.java:1603)
    at
org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2685)
    ... 32 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException:
Error creating managed object for class org.jboss.weld.servlet.WeldListener
    at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:317)
    at
com.sun.enterprise.web.WebContainer.createListenerInstance(WebContainer.java:734)
    at
com.sun.enterprise.web.WebModule.createListenerInstance(WebModule.java:1981)
    at
org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2796)
    ... 35 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException:
No descriptor registered for  current invocation :
com.sun.enterprise.web.WebComponentInvocation_at_1a2a58f
    at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:148)
    at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:132)
    at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:311)
    ... 38 more
|#]

thanks for help


--
[Message sent by forum member 'okna2000']
View Post: http://forums.java.net/node/836683