glassfish
  1. glassfish
  2. GLASSFISH-19786

CDI Instantiation Error - CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.0_b78
    • Fix Version/s: 4.0
    • Component/s: cdi
    • Labels:
      None
    • Environment:

      All

      Description

      It would appear there is problem with the CDI Container service in Glassfish 4.0 b78 fails to be initialised.

      I even tried a new WAR with just a single POJO, a dummy Java class with no methods at all, and I received the same error.

      There is not an issue with GlassFish 4.0 b77 server, only since I upgraded.

      [main] INFO org.jboss.weld.Version - WELD-000900 SNAPSHOT
      [main] WARN org.jboss.weld.Bootstrap - WELD-001440 Scope type @javax.enterprise.context.ApplicationScoped() used on injection point [BackedAnnotatedField] @Inject @ApplicationScoped private je7hb.websocket.basic.FakeServlet.chatRoom
      >>>> SampleSingleton.init() called
      Mar 07, 2013 9:33:48 AM org.glassfish.tyrus.servlet.TyrusServletContainerInitializer onStartup
      INFO: Registering WebSocket filter for url pattern /*
      Mar 07, 2013 9:33:48 AM com.sun.enterprise.web.WebApplication start
      INFO: Loading application [mywebapp] at [/mywebapp]
      [weld-worker-2] WARN org.jboss.weld.Bootstrap - WELD-001440 Scope type @javax.enterprise.context.ApplicationScoped() used on injection point [BackedAnnotatedField] @Inject @ApplicationScoped private je7hb.websocket.basic.ChatServiceEndPoint.chatRoom
      [weld-worker-3] WARN org.jboss.weld.Bootstrap - WELD-001440 Scope type @javax.enterprise.context.ApplicationScoped() used on injection point [BackedAnnotatedField] @Inject @ApplicationScoped private je7hb.websocket.basic.FakeServlet.chatRoom
      [main] WARN org.jboss.weld.Bootstrap - WELD-001440 Scope type @javax.enterprise.context.ApplicationScoped() used on injection point [BackedAnnotatedField] @Inject @ApplicationScoped private je7hb.websocket.basic.FakeServlet.chatRoom
      Mar 07, 2013 9:33:48 AM com.sun.enterprise.v3.server.ApplicationLifecycle deploy
      SEVERE: Exception during lifecycle processing
      org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
      at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:247)
      at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
      at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:364)
      >>>> SampleSingleton.destroy() called
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:528)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:524)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:357)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:523)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:547)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1424)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1759)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1675)
      at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:133)
      at je7hb.common.webcontainer.embedded.glassfish.AbstractEmbeddedRunner.deployWithRename(AbstractEmbeddedRunner.java:73)
      at je7hb.common.weber.embedded.glassfish.EmbeddedRunner.main(EmbeddedRunner.java:19)
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
      at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:381)
      at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:309)
      at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:172)
      at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:203)
      at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:493)
      at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:69)
      at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:67)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

      Mar 07, 2013 9:33:48 AM org.glassfish.api.ActionReport failure
      SEVERE: Exception while loading the app
      Mar 07, 2013 9:33:48 AM org.glassfish.tyrus.server.TyrusServerContainer stop
      INFO: Closing down : org.glassfish.tyrus.server.TyrusEndpoint@5e9b0166
      Mar 07, 2013 9:33:48 AM org.glassfish.tyrus.server.TyrusServerContainer stop
      INFO: Closing down : org.glassfish.tyrus.server.TyrusEndpoint@6150e9a2
      Mar 07, 2013 9:33:48 AM org.glassfish.tyrus.server.TyrusServerContainer stop
      INFO: Closing down : org.glassfish.tyrus.server.TyrusEndpoint@39ece0e3
      Mar 07, 2013 9:33:48 AM com.sun.web.server.WebContainerListener preDestroy
      SEVERE: Exception during invocation of InjectionManager.destroyManagedObject on org.glassfish.tyrus.servlet.TyrusServletFilter@24633a36 of web module StandardEngine[glassfish-web].StandardHost[server].StandardContext[/mywebapp]
      java.lang.IllegalStateException: Unknown JCDI-enabled managed bean org.glassfish.tyrus.servlet.TyrusServletFilter@24633a36 of class class org.glassfish.tyrus.servlet.TyrusServletFilter
      at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.destroyManagedBean(ManagedBeanManagerImpl.java:628)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.destroyManagedObject(InjectionManagerImpl.java:439)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.destroyManagedObject(InjectionManagerImpl.java:414)
      at com.sun.web.server.WebContainerListener.preDestroy(WebContainerListener.java:186)
      at com.sun.web.server.WebContainerListener.containerEvent(WebContainerListener.java:151)
      at org.apache.catalina.core.ContainerBase.fireContainerEvent(ContainerBase.java:1579)
      at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:334)
      at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:5319)
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:6082)
      at com.sun.enterprise.web.WebModule.stop(WebModule.java:725)
      at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1172)
      at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2438)
      at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2393)
      at com.sun.enterprise.web.WebApplication.stop(WebApplication.java:191)
      at org.glassfish.internal.data.EngineRef.stop(EngineRef.java:161)
      at com.sun.enterprise.v3.server.ApplicationLifecycle$2.actOn(ApplicationLifecycle.java:268)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:503)
      at com.sun.enterprise.v3.servecationLifecycle.deploy(ApplicationLifecycle.java:219)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:528)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:524)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:357)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:523)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:547)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1424)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1759)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1675)
      at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:133)
      at je7hb.common.webcontainer.embedded.glassfish.AbstractEmbeddedRunner.deployWithRename(AbstractEmbeddedRunner.java:73)
      at je7hb.common.webcontainer.embedded.glassfish.EmbeddedRunner.main(EmbeddedRunner.java:19)

      Mar 07, 2013 9:33:48 AM org.glassfish.weld.WeldDeployer event
      WARNING: JCDI shutdown error
      java.lang.IllegalStateException: Singleton is not set. Is your Thread.currentThread().getContextClassLoader() set correctly?
      at org.jboss.weld.bootstrap.api.helpers.IsolatedStaticSingletonProvider$IsolatedStaticSingleton.get(IsolatedStaticSingletonProvider.java:52)
      at org.jboss.weld.Container.instance(Container.java:54)
      at org.jboss.weld.bootstrap.WeldBootstrap.shutdown(WeldBootstrap.java:597)
      at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:293)
      at org.glassfish.kernel.event.EventsImpl$1.run(EventsImpl.java:123)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

      Mar 07, 2013 9:33:48 AM org.glassfish.deployment.admin.DeployCommand execute
      SEVERE: Exception while loading the app : CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
      org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
      at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:381)
      at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:309)
      at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:172)
      at org.jboss.weld.bootstrap.Validator.validateRIBean(Valjava:203)
      at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:493)
      at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:69)
      at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:67)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

            • Press the ENTER key to stop the server ****
              > Building > :run
              Mar 07, 2013 9:33:51 AM org.glassfish.admin.mbeanserver.JMXStartupService shutdown
              INFO: JMXStartupService and JMXConnectors have been shut down.
              JdbcRuntimeExtension, getAllSystemRAResourcesAndPools = [GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool]
              Mar 07, 2013 9:33:51 AM com.sun.enterprise.v3.server.AppServerStartup stop
              INFO: Shutdown procedure finished

      BUILD SUCCESSFUL

      Total time: 14.432 secs
      peterpilgrim@Peters-MacBook-Pro-3.local [1110] >

        Activity

          People

          • Assignee:
            phil.zampino
            Reporter:
            peter_pilgrim
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: