2 Replies Latest reply on Sep 6, 2011 3:19 AM by Jason Porter

    Seam 3 EAR deployment error

    Baskar Dhanapal Newbie
      Hi,

      I developed sample maven enterprise application with seam 3.0.0.Final. I have included necessary modules in my project. I build it successfully and my ear structure is below

      Seam3Test-EAR
         |
         |--- lib ( includes all seam 3 modules )
         |
         |--- META-INF
         |
         |--- Seam3Test-ejb.jar
         |
         |--- Seam3Test-web.war

      Below are the contents of my web.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         version="3.0">

         <display-name>Seam 3 Test</display-name>

         <context-param>
            <param-name>javax.faces.PROJECT_STAGE</param-name>
            <param-value>Development</param-value>
         </context-param>

         <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
         </servlet>
        
         <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.seam</url-pattern>
         </servlet-mapping>

         <session-config>
            <session-timeout>10</session-timeout>
         </session-config>  

         <security-constraint>
            <display-name>Restrict access to XHTML documents</display-name>
            <web-resource-collection>
               <web-resource-name>XHTML</web-resource-name>
               <url-pattern>*.xhtml</url-pattern>
            </web-resource-collection>
            <auth-constraint/>
         </security-constraint>

      </web-app>

      I have included empty bean.xml file also.

      I am getting the below error when i tried to deploy the application in GlassFish 3.1.

      INFO: Unsanitized stacktrace from failed start...
      org.jboss.weld.exceptions.IllegalArgumentException: WELD-001324 Argument bean must not be null
              at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:744)
              at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:138)
              at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:872)
              at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:884)
              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
              at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:134)
              at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:50)
              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
              at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
              at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
              at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:67)
              at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:690)
              at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:772)
              at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:138)
              at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:872)
              at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:884)
              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
              at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:134)
              at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:50)
              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
              at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
              at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
              at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:121)
              at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
              at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:87)
              at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$0$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamApplicationWrapper_$$_WeldClientProxy.installWrapper(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$0$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamApplicationWrapper_$$_WeldClientProxy.java)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
              at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
              at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
              at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
              at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
              at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:270)
              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253)
              at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:222)
              at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:632)
              at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:619)
              at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:613)
              at org.jboss.seam.faces.event.SystemEventBridge.processEvent(SystemEventBridge.java:53)
              at org.jboss.seam.faces.event.DelegatingSystemEventListener.processEvent(DelegatingSystemEventListener.java:36)
              at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
              at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2129)
              at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2105)
              at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:300)
              at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:683)
              at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:603)
              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)
              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4690)
              at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:534)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:5305)
              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.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
              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:1067)
              at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
              at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
              at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
              at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:143)
              at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:406)
              at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:100)
              at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:76)
              at org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(DeploymentHandler.java:191)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
              at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
              at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
              at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
              at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
              at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
              at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
              at javax.faces.component.UICommand.broadcast(UICommand.java:300)
              at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)
              at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
              at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
              at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:223)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
              at org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
              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:619)

      SEVERE: Critical error during deployment:
      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! WELD-001324 Argument bean must not be null
              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:379)
              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4690)
              at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:534)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:5305)
              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)
      .
      .
      .

      I searched on net a lot but i didnt get any idea to resolve this error. Even i added the weld module mentioned in this link http://seamframework.org/Seam3/Compatibility but still i think i have missed some configuration in glassfish 3.1. I need help from anybody to solve this error.