2 Replies Latest reply on Sep 22, 2011 4:11 PM by Uros Majeric

    Glassfish 3.1.1 with seam-config-xml issue

    Uros Majeric Newbie

      When I am deploying a simple app with seam-config-xml 3.0.0.Final on Glassfish 3.1.1 (clean installation) I am getting the exception bellow.
      The simplest project that reproduces this error can be downloaded here. Is this a bug or am I missing something or even have something wrong?


      org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class org.jboss.seam.solder.resourceLoader.servlet.ResourceListener
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5332)
           at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
           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:733)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2000)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1651)
           at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
           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:294)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
           at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
           at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
           at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
           at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
           at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
           at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
           at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
           at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
           at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
           at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
           at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
           at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
           at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
           at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
           at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
           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: class org.jboss.seam.solder.resourceLoader.servlet.ResourceListener
           at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2743)
           at org.apache.catalina.core.StandardContext.addApplicationListener(StandardContext.java:1966)
           at com.sun.enterprise.web.TomcatDeploymentConfig.configureApplicationListener(TomcatDeploymentConfig.java:235)
           at com.sun.enterprise.web.TomcatDeploymentConfig.configureWebModule(TomcatDeploymentConfig.java:94)
           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:5329)
           ... 38 more
      Caused by: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class org.jboss.seam.solder.resourceLoader.servlet.ResourceListener
           at org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2853)
           at org.apache.catalina.core.StandardContext.loadListener(StandardContext.java:4806)
           at com.sun.enterprise.web.WebModule.loadListener(WebModule.java:1599)
           at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2740)
           ... 45 more
      Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class org.jboss.seam.solder.resourceLoader.servlet.ResourceListener
           at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:315)
           at com.sun.enterprise.web.WebContainer.createListenerInstance(WebContainer.java:749)
           at com.sun.enterprise.web.WebModule.createListenerInstance(WebModule.java:1987)
           at org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2851)
           ... 48 more
      Caused by: java.lang.NullPointerException
           at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:477)
           at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:420)
           at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:299)
           ... 51 more
      
      WARNING: java.lang.IllegalStateException: 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: class org.jboss.seam.solder.resourceLoader.servlet.ResourceListener
      java.lang.IllegalStateException: 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: class org.jboss.seam.solder.resourceLoader.servlet.ResourceListener
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:921)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2000)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1651)
           at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
           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:294)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
           at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
           at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
           at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
           at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
           at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
           at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
           at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
           at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
           at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
           at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
           at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
           at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
           at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
           at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
           at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
           at java.lang.Thread.run(Thread.java:662)
      
      SEVERE: Exception while invoking class com.sun.enterprise.web.WebApplication start method
      java.lang.Exception: java.lang.IllegalStateException: 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: class org.jboss.seam.solder.resourceLoader.servlet.ResourceListener
           at com.sun.enterprise.web.WebApplication.start(WebApplication.java:138)
           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:294)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
           at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
           at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
           at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
           at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
           at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
           at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
           at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
           at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
           at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
           at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
           at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
           at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
           at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
           at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
           at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
           at java.lang.Thread.run(Thread.java:662)