5 Replies Latest reply: Apr 24, 2012 2:31 PM by kelly goedert RSS

    deployment error of web archive

    kelly goedert Apprentice

      Hi,

       

      I want to make an arquillian test of a web archive using a war file that I have with a seam 3 application. If I take this war and deploy it to a container it works perfectly. When I deploy it using arquillian/shrinkwrap I get an error. The code of the test class is this:

       

       

      @RunWith(Arquillian.class)
      public class UserBeanITTest {
        @PersistenceContext
          EntityManager em;
      
        private static final String WEBAPP_SRC = "src/main/webapp";
      
      
        @Deployment
        public static WebArchive createDeployment() {
      
        return ShrinkWrap.createFromZipFile(WebArchive.class, new File("target/sample.war")).addAsManifestResource("test-persistence.xml", "persistence.xml");
        }
      
        @Test
        @UsingDataSet("datasets/users.yml")
        public void shouldCreateNewUser() {
        UserBean bean = new UserBean();
      
        String result = bean.create();
      
        System.out.println("test");
      
        }
      }
      

       

       

       

      The error stack trace is

       

      17:01:32,781 INFO  Initializing Mojarra 2.1.7 (SNAPSHOT 20120206) for context '/sample'

      17:01:33,465 SEVERE Critical error during deployment: : java.lang.LinkageError: loader constraint violation: when resolving method "org.jboss.weld.logging.LoggerFactory.getLogger(Lorg/jboss/weld/logging/Category;)Lorg/slf4j/cal10n/LocLogger;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/jboss/weld/jsf/WeldPhaseListener, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, org/jboss/weld/logging/LoggerFactory, have different Class objects for the type org/slf4j/cal10n/LocLogger used in the signature

                at org.jboss.weld.jsf.WeldPhaseListener.(WeldPhaseListener.java:80)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                at java.lang.Class.newInstance0(Class.java:355)

                at java.lang.Class.newInstance(Class.java:308)

                at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:268)

                at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132)

                at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111)

                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)

                at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)

                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:360)

                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)

                at org.jboss.web.jsf.integration.config.JBossMojarraConfigureListener.contextInitialized(JBossMojarraConfigureListener.java:58)

                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)

                at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476)

                at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                at org.jboss.web.deployers.WebModule.start(WebModule.java:95)

                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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)

                at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                at $Proxy41.start(Unknown Source)          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

                at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641)

                at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:103)

                at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.install(Ejb3McRegistrar.java:394)

                at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.bind(Ejb3McRegistrar.java:245)

                at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.registerProxyFactory(JndiSessionRegistrarBase.java:1169)

                at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.createJndiReferenceBindingSet(JndiSessionRegistrarBase.java:510)

                at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.java:156)

                at org.jboss.ejb3.session.SessionContainer.lockedStart(SessionContainer.java:223)

                at org.jboss.ejb3.session.SessionSpecContainer.lockedStart(SessionSpecContainer.java:735)

                at org.jboss.ejb3.stateful.StatefulContainer.lockedStart(StatefulContainer.java:269)

                at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:1105)

                at sun.reflect.GeneratedMethodAccessor488.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60)

                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168)

                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)

                at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)

                at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202)

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)

                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)

                at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)

                at org.jboss.profileservice.plugins.deploy.actions.DeploymentStartAction.doPrepare(DeploymentStartAction.java:98)

                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:101)

                at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87)

                at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234)

                at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213)

                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150)

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.startDeployments(AbstractDeployHandler.java:168)

                at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.startDeployments(DeployHandlerDelegate.java:74)

                at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:156)

                at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

                at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

                at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

                at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

                at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

       

       

      17:01:33,481 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sample]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossMojarra20ConfigureListener: java.lang.RuntimeException: java.lang.LinkageError: loader constraint violation: when resolving method "org.jboss.weld.logging.LoggerFactory.getLogger(Lorg/jboss/weld/logging/Category;)Lorg/slf4j/cal10n/LocLogger;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/jboss/weld/jsf/WeldPhaseListener, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, org/jboss/weld/logging/LoggerFactory, have different Class objects for the type org/slf4j/cal10n/LocLogger used in the signature

                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)

                at org.jboss.web.jsf.integration.config.JBossMojarraConfigureListener.contextInitialized(JBossMojarraConfigureListener.java:58)

                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)

                at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476)

                at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                at org.jboss.web.deployers.WebModule.start(WebModule.java:95)

                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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)

                at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                at $Proxy41.start(Unknown Source)          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

                at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641)

                at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:103)

                at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.install(Ejb3McRegistrar.java:394)

                at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.bind(Ejb3McRegistrar.java:245)

                at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.registerProxyFactory(JndiSessionRegistrarBase.java:1169)

                at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.createJndiReferenceBindingSet(JndiSessionRegistrarBase.java:510)

                at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.java:156)

                at org.jboss.ejb3.session.SessionContainer.lockedStart(SessionContainer.java:223)

                at org.jboss.ejb3.session.SessionSpecContainer.lockedStart(SessionSpecContainer.java:735)

                at org.jboss.ejb3.stateful.StatefulContainer.lockedStart(StatefulContainer.java:269)

                at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:1105)

                at sun.reflect.GeneratedMethodAccessor488.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60)

                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168)

                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)

                at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)

                at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202)

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)

                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)

                at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)

                at org.jboss.profileservice.plugins.deploy.actions.DeploymentStartAction.doPrepare(DeploymentStartAction.java:98)

                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:101)

                at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87)

                at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234)

                at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213)

                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150)

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.startDeployments(AbstractDeployHandler.java:168)

                at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.startDeployments(DeployHandlerDelegate.java:74)

                at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:156)

                at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

                at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

                at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

                at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

                at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

      Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.jboss.weld.logging.LoggerFactory.getLogger(Lorg/jboss/weld/logging/Category;)Lorg/slf4j/cal10n/LocLogger;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/jboss/weld/jsf/WeldPhaseListener, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, org/jboss/weld/logging/LoggerFactory, have different Class objects for the type org/slf4j/cal10n/LocLogger used in the signature

                at org.jboss.weld.jsf.WeldPhaseListener.(WeldPhaseListener.java:80)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                at java.lang.Class.newInstance0(Class.java:355)

                at java.lang.Class.newInstance(Class.java:308)

                at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:268)

                at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132)

                at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111)

                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)

                at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)

                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:360)

                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)

                ... 86 more

       

       

      17:01:33,486 ERROR Error listenerStart

      17:01:33,486 ERROR Context startup failed due to previous errors

      17:01:33,518 INFO  JSF1027: The ELResolvers for JSF were not registered with the JSP container.

      17:01:33,525 ERROR Error installing to Start: name=jboss.web.deployment:war=/sample state=Create mode=Manual requiredState=Installed: org.jboss.deployers.spi.DeploymentException: URL file:/usr/local/sample/jboss-6.1.0.Final/server/default/tmp/vfs/automount679ba72a3b4043f0/sample.war-49c0c8dc479a59ae/ deployment failed

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:325)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)

                at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476)

                at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                at org.jboss.web.deployers.WebModule.start(WebModule.java:95)

                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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)

                at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                at $Proxy41.start(Unknown Source)          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

                at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641)

                at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:103)

                at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.install(Ejb3McRegistrar.java:394)

                at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.bind(Ejb3McRegistrar.java:245)

                at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.registerProxyFactory(JndiSessionRegistrarBase.java:1169)

                at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.createJndiReferenceBindingSet(JndiSessionRegistrarBase.java:510)

                at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.java:156)

                at org.jboss.ejb3.session.SessionContainer.lockedStart(SessionContainer.java:223)

                at org.jboss.ejb3.session.SessionSpecContainer.lockedStart(SessionSpecContainer.java:735)

                at org.jboss.ejb3.stateful.StatefulContainer.lockedStart(StatefulContainer.java:269)

                at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:1105)

                at sun.reflect.GeneratedMethodAccessor488.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60)

                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168)

                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)

                at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)

                at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202)

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)

                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)

                at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)

                at org.jboss.profileservice.plugins.deploy.actions.DeploymentStartAction.doPrepare(DeploymentStartAction.java:98)

                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:101)

                at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87)

                at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234)

                at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213)

                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150)

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.startDeployments(AbstractDeployHandler.java:168)

                at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.startDeployments(DeployHandlerDelegate.java:74)

                at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:156)

                at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

                at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

                at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

                at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

                at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

       

       

      17:01:33,531 INFO  Binding the following Entries in Global JNDI:

       

       

                AbstractManagerBean/local - EJB3.x Default Local Business Interface

                AbstractManagerBean/local-com.sample.business.AbstractManagerBeanLocal - EJB3.x Local Business Interface

       

       

      17:01:33,532 INFO  Starting jboss.j2ee:jar=sample.war,name=CompanyBean,service=EJB3

      17:01:33,532 INFO  STARTED EJB: com.sample.view.CompanyBean ejbName: CompanyBean

      17:01:33,532 INFO  Binding the following Entries in Global JNDI:

       

       

       

       

      17:01:33,533 INFO  Binding the following entry in Global JNDI for bean:CompanyBean

       

       

                CompanyBean/no-interface -> EJB3.1 no-interface view

       

       

      17:01:33,534 WARN  Failed to complete command: for deployment: names=[sample.war]: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

       

      DEPLOYMENTS IN ERROR:

        Deployment "jboss.web.deployment:war=/sample" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/usr/local/sample/jboss-6.1.0.Final/server/default/tmp/vfs/automount679ba72a3b4043f0/sample.war-49c0c8dc479a59ae/ deployment failed

       

       

                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968)

                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82)

                at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138)

                at org.jboss.profileservice.plugins.deploy.actions.DeploymentStartAction.doPrepare(DeploymentStartAction.java:104)

                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:101)

                at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87)

                at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234)

                at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213)

                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150)

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.startDeployments(AbstractDeployHandler.java:168)

                at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.startDeployments(DeployHandlerDelegate.java:74)

                at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:156)

                at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

                at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

                at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

                at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

                at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

       

       

      17:01:33,579 INFO  invoke, payload: {DeploymentTargetID=names=[sample.war], clientAddress=/127.0.0.1}, parameter: stop

      17:01:33,581 INFO  Stopping jboss.j2ee:jar=sample.war,name=CompanyManagerBean,service=EJB3

      17:01:33,582 INFO  STOPPED EJB: com.sample.business.CompanyManagerBean ejbName: CompanyManagerBean

      17:01:33,585 INFO  Stopping jboss.j2ee:jar=sample.war,name=UserManagerBean,service=EJB3

      17:01:33,586 INFO  STOPPED EJB: com.sample.business.UserManagerBean ejbName: UserManagerBean

      17:01:33,589 INFO  Stopping jboss.j2ee:jar=sample.war,name=CompanyBean,service=EJB3

      17:01:33,590 INFO  STOPPED EJB: com.sample.view.CompanyBean ejbName: CompanyBean

      17:01:33,593 INFO  Stopping jboss.j2ee:jar=sample.war,name=AbstractManagerBean,service=EJB3

      17:01:33,595 INFO  STOPPED EJB: com.sample.business.AbstractManagerBean ejbName: AbstractManagerBean

      17:01:33,599 INFO  Stopping jboss.j2ee:jar=sample.war,name=UserBean,service=EJB3

      17:01:33,599 INFO  STOPPED EJB: com.sample.view.UserBean ejbName: UserBean

      17:01:33,604 INFO  Stopping jboss.j2ee:jar=sample.war,name=AuthenticationManagerBean,service=EJB3

      17:01:33,605 INFO  STOPPED EJB: com.sample.business.AuthenticationManagerBean ejbName: AuthenticationManagerBean

      17:01:33,643 INFO  Stopping persistence unit persistence.unit:unitName=sample.war#sample

      17:01:33,643 INFO  closing

      17:01:33,643 INFO  Unbinding factory from JNDI name: persistence.unit:unitName=sample.war#sample

      17:01:33,644 INFO  JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

      17:01:33,644 INFO  Unbound factory from JNDI name: persistence.unit:unitName=sample.war#sample

      17:01:33,760 INFO  invoke, payload: {DeploymentTargetID=names=[sample.war], clientAddress=/127.0.0.1}, parameter: remove

      17:01:33,803 INFO  invoke, payload: {DeploymentTargetID=names=[sample.war], clientAddress=/127.0.0.1}, parameter: stop

      17:01:33,804 WARN  Failed to complete command: for deployment: names=[sample.war]: org.jboss.profileservice.spi.NoSuchDeploymentException: sample.war

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.resolveProfileForDeployment(AbstractDeployHandler.java:291)

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.resolveProfiles(AbstractDeployHandler.java:248)

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.stopDeployments(AbstractDeployHandler.java:179)

                at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.stopDeployments(DeployHandlerDelegate.java:79)

                at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:160)

                at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

                at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

                at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

                at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

                at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

       

       

      17:01:33,836 INFO  invoke, payload: {DeploymentTargetID=names=[sample.war], clientAddress=/127.0.0.1}, parameter: remove

      17:01:33,836 WARN  Failed to complete command: for deployment: names=[sample.war]: org.jboss.profileservice.spi.NoSuchDeploymentException: sample.war

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.resolveProfileForDeployment(AbstractDeployHandler.java:291)

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.resolveProfiles(AbstractDeployHandler.java:248)

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.removeDeployments(AbstractDeployHandler.java:201)

                at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.removeDeployments(DeployHandlerDelegate.java:84)

                at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:164)

                at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

                at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

                at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

                at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

                at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

       

       

      17:01:33,885 INFO  invoke, payload: {DeploymentTargetID=names=[sample.war], clientAddress=/127.0.0.1}, parameter: remove

      17:01:33,885 WARN  Failed to complete command: for deployment: names=[sample.war]: org.jboss.profileservice.spi.NoSuchDeploymentException: sample.war

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.resolveProfileForDeployment(AbstractDeployHandler.java:291)

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.resolveProfiles(AbstractDeployHandler.java:248)

                at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.removeDeployments(AbstractDeployHandler.java:201)

                at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.removeDeployments(DeployHandlerDelegate.java:84)

                at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:164)

                at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

                at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

                at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

                at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

                at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

       

       

       

       

      Do I need to add any extra libraries to the war file?

       

      Thanks

       

      Kelly

        • 1. Re: deployment error of web archive
          Aslak Knutsen Master

          What is the content of your war file?

          • 2. Re: deployment error of web archive
            kelly goedert Apprentice

            Hi,

             

            here it is.. the content before adding the arquillian jars

             

             

            sample.war/

            ├── company

            │   ├── create.xhtml

            │   └── search.xhtml

            ├── denied.xhtml

            ├── error.xhtml

            ├── favicon.ico

            ├── index.html

            ├── index.xhtml

            ├── login.xhtml

            ├── META-INF

            │   ├── MANIFEST.MF

            │   └── maven

            │       └── sample

            │           └── sample

            │               ├── pom.properties

            │               └── pom.xml

            ├── resources

            │   ├── css

            │   │   ├── bootstrap.min.css

            │   │   ├── bootstrap-responsive.min.css

            │   │   ├── sample.css

            │   │   └── sticky.css

            │   ├── img

            │   │   ├── glyphicons-halflings.png

            │   │   └── glyphicons-halflings-white.png

            │   └── js

            │       └── bootstrap.min.js

            ├── templates

            │   ├── create.xhtml

            │   ├── main.xhtml

            │   └── search.xhtml

            ├── user

            │   ├── create.xhtml

            │   └── search.xhtml

            └── WEB-INF

                ├── beans.xml

                ├── classes

                │   ├── com

                │   │   └── sample

                │   │       ├── business

                │   │       │   ├── AbstractManagerBean.class

                │   │       │   ├── AbstractManagerBeanLocal.class

                │   │       │   ├── AuthenticationManagerBean.class

                │   │       │   ├── AuthenticationManagerLocal.class

                │   │       │   ├── BusinessException.class

                │   │       │   ├── CompanyManagerBean.class

                │   │       │   ├── CompanyManagerBeanLocal.class

                │   │       │   ├── UserManagerBean.class

                │   │       │   ├── UserManagerBeanLocal.class

                │   │       │   └── validation

                │   │       │       ├── CompanyName.class

                │   │       │       ├── CompanyNameValidator.class

                │   │       │       ├── PasswordValidator.class

                │   │       │       ├── Username.class

                │   │       │       └── UsernameValidator.class

                │   │       ├── domain

                │   │       │   ├── AbstractEntity.class

                │   │       │   ├── Company.class

                │   │       │   ├── Role.class

                │   │       │   └── User.class

                │   │       ├── utils

                │   │       │   ├── ExceptionHandler.class

                │   │       │   ├── LogoutObserver.class

                │   │       │   ├── MessageUtils.class

                │   │       │   └── UTF8HttpParamsFilter.class

                │   │       └── view

                │   │           ├── AbstractBean.class

                │   │           ├── AbstractLazyDataModel.class

                │   │           ├── AuthenticatorBean.class

                │   │           ├── CompanyBean.class

                │   │           ├── converter

                │   │           │   └── CompanyConverter.class

                │   │           ├── LazyCompanyDataModel.class

                │   │           ├── LazyUserDataModel.class

                │   │           ├── LoginController.class

                │   │           └── UserBean.class

                │   ├── labels_en_US.properties

                │   ├── labels_pt_BR.properties

                │   ├── messages_en_US.properties

                │   ├── messages_pt_BR.properties

                │   ├── META-INF

                │   │   └── persistence.xml

                │   ├── ValidationMessages_en_US.properties

                │   └── ValidationMessages_pt_BR.properties

                ├── context.xml

                ├── faces-config.xml

                ├── jboss-web.xml

                ├── lib

                │   ├── commons-codec-1.6.jar

                │   ├── javax.faces-2.1.7.jar

                │   ├── log4j-1.2.13.jar

                │   ├── picketlink-idm-api-1.5.0.Alpha02.jar

                │   ├── picketlink-idm-common-1.5.0.Alpha02.jar

                │   ├── picketlink-idm-core-1.5.0.Alpha02.jar

                │   ├── picketlink-idm-spi-1.5.0.Alpha02.jar

                │   ├── primefaces-3.2.jar

                │   ├── seam-faces-3.1.0.Final.jar

                │   ├── seam-faces-api-3.1.0.Final.jar

                │   ├── seam-international-3.1.0.Final.jar

                │   ├── seam-international-api-3.1.0.Final.jar

                │   ├── seam-persistence-3.1.0.Final.jar

                │   ├── seam-persistence-api-3.1.0.Final.jar

                │   ├── seam-security-3.1.0.Final.jar

                │   ├── seam-security-api-3.1.0.Final.jar

                │   ├── seam-transaction-3.1.0.Final.jar

                │   ├── seam-transaction-api-3.1.0.Final.jar

                │   ├── shrinkwrap-api-1.0.0.jar

                │   ├── shrinkwrap-descriptors-api-base-2.0.0-alpha-2.jar

                │   ├── shrinkwrap-descriptors-spi-2.0.0-alpha-2.jar

                │   ├── shrinkwrap-impl-base-1.0.0.jar

                │   ├── shrinkwrap-spi-1.0.0.jar

                │   ├── solder-api-3.1.0.Final.jar

                │   ├── solder-impl-3.1.0.Final.jar

                │   └── solder-logging-3.1.0.Final.jar

                └── web.xml

             

            Kelly

            • 3. Re: deployment error of web archive
              Aslak Knutsen Master

              The exception sounds like you are deploying sl4j, but...  can't see it in that deployment. And it shouldn't be included by Arquillian, unless something is wrong of course.

               

              What does the file look like if you deploy via arquillian?

              • 4. Re: deployment error of web archive
                kelly goedert Apprentice

                I thought arquillian was putting sl4j there, but it is not as you can see:

                 

                sample

                ├── company

                │   ├── create.xhtml

                │   └── search.xhtml

                ├── denied.xhtml

                ├── error.xhtml

                ├── favicon.ico

                ├── index.html

                ├── index.xhtml

                ├── login.xhtml

                ├── META-INF

                │   ├── MANIFEST.MF

                │   ├── maven

                │   │   └── sample

                │   │       └── sample

                │   │           ├── pom.properties

                │   │           └── pom.xml

                │   └── persistence.xml

                ├── resources

                │   ├── css

                │   │   ├── bootstrap.min.css

                │   │   ├── bootstrap-responsive.min.css

                │   │   ├── sample.css

                │   │   └── sticky.css

                │   ├── img

                │   │   ├── glyphicons-halflings.png

                │   │   └── glyphicons-halflings-white.png

                │   └── js

                │       └── bootstrap.min.js

                ├── templates

                │   ├── create.xhtml

                │   ├── main.xhtml

                │   └── search.xhtml

                ├── user

                │   ├── create.xhtml

                │   └── search.xhtml

                └── WEB-INF

                    ├── beans.xml

                    ├── classes

                    │   ├── com

                    │   │   └── sample

                    │   │       ├── business

                    │   │       │   ├── AbstractManagerBean.class

                    │   │       │   ├── AbstractManagerBeanLocal.class

                    │   │       │   ├── AuthenticationManagerBean.class

                    │   │       │   ├── AuthenticationManagerLocal.class

                    │   │       │   ├── BusinessException.class

                    │   │       │   ├── CompanyManagerBean.class

                    │   │       │   ├── CompanyManagerBeanLocal.class

                    │   │       │   ├── UserBeanITTest.class

                    │   │       │   ├── UserManagerBean.class

                    │   │       │   ├── UserManagerBeanLocal.class

                    │   │       │   └── validation

                    │   │       │       ├── CompanyName.class

                    │   │       │       ├── CompanyNameValidator.class

                    │   │       │       ├── PasswordValidator.class

                    │   │       │       ├── Username.class

                    │   │       │       └── UsernameValidator.class

                    │   │       ├── domain

                    │   │       │   ├── AbstractEntity.class

                    │   │       │   ├── Company.class

                    │   │       │   ├── Role.class

                    │   │       │   └── User.class

                    │   │       ├── utils

                    │   │       │   ├── ExceptionHandler.class

                    │   │       │   ├── LogoutObserver.class

                    │   │       │   ├── MessageUtils.class

                    │   │       │   └── UTF8HttpParamsFilter.class

                    │   │       └── view

                    │   │           ├── AbstractBean.class

                    │   │           ├── AbstractLazyDataModel.class

                    │   │           ├── AuthenticatorBean.class

                    │   │           ├── CompanyBean.class

                    │   │           ├── converter

                    │   │           │   └── CompanyConverter.class

                    │   │           ├── LazyCompanyDataModel.class

                    │   │           ├── LazyUserDataModel.class

                    │   │           ├── LoginController.class

                    │   │           └── UserBean.class

                    │   ├── labels_en_US.properties

                    │   ├── labels_pt_BR.properties

                    │   ├── messages_en_US.properties

                    │   ├── messages_pt_BR.properties

                    │   ├── META-INF

                    │   │   └── persistence.xml

                    │   ├── ValidationMessages_en_US.properties

                    │   └── ValidationMessages_pt_BR.properties

                    ├── context.xml

                    ├── faces-config.xml

                    ├── jboss-web.xml

                    ├── lib

                    │   ├── arquillian-core.jar

                    │   ├── arquillian-jacoco.jar

                    │   ├── arquillian-junit.jar

                    │   ├── arquillian-persistence.jar

                    │   ├── arquillian-protocol.jar

                    │   ├── arquillian-testenricher-cdi.jar

                    │   ├── arquillian-testenricher-ejb.jar

                    │   ├── arquillian-testenricher-initialcontext.jar

                    │   ├── arquillian-testenricher-resource.jar

                    │   ├── commons-codec-1.6.jar

                    │   ├── fd3499a3-d934-49d9-919a-2e12c63b4668.jar

                    │   ├── javax.faces-2.1.7.jar

                    │   ├── log4j-1.2.13.jar

                    │   ├── picketlink-idm-api-1.5.0.Alpha02.jar

                    │   ├── picketlink-idm-common-1.5.0.Alpha02.jar

                    │   ├── picketlink-idm-core-1.5.0.Alpha02.jar

                    │   ├── picketlink-idm-spi-1.5.0.Alpha02.jar

                    │   ├── primefaces-3.2.jar

                    │   ├── seam-faces-3.1.0.Final.jar

                    │   ├── seam-faces-api-3.1.0.Final.jar

                    │   ├── seam-international-3.1.0.Final.jar

                    │   ├── seam-international-api-3.1.0.Final.jar

                    │   ├── seam-persistence-3.1.0.Final.jar

                    │   ├── seam-persistence-api-3.1.0.Final.jar

                    │   ├── seam-security-3.1.0.Final.jar

                    │   ├── seam-security-api-3.1.0.Final.jar

                    │   ├── seam-transaction-3.1.0.Final.jar

                    │   ├── seam-transaction-api-3.1.0.Final.jar

                    │   ├── shrinkwrap-api-1.0.0.jar

                    │   ├── shrinkwrap-descriptors-api-base-2.0.0-alpha-2.jar

                    │   ├── shrinkwrap-descriptors-spi-2.0.0-alpha-2.jar

                    │   ├── shrinkwrap-impl-base-1.0.0.jar

                    │   ├── shrinkwrap-spi-1.0.0.jar

                    │   ├── solder-api-3.1.0.Final.jar

                    │   ├── solder-impl-3.1.0.Final.jar

                    │   └── solder-logging-3.1.0.Final.jar

                    └── web.xml

                 

                And then, I tried adding it myself, but it did not help.

                • 5. Re: deployment error of web archive
                  kelly goedert Apprentice

                  I dont know if my approach was the right one or not, but analyzing my pom dependencies hierarchy, I figured that a lot of them used slf4j. So in every dependency except in arquillian-persistence I excluded the slf4j. Something like this:

                   

                  <dependency>

                                                <groupId>org.hibernate</groupId>

                                                <artifactId>hibernate-validator</artifactId>

                                                <type>jar</type>

                                                <scope>provided</scope>

                                                <exclusions>

                                  <exclusion>

                                      <groupId>org.slf4j</groupId>

                                      <artifactId>slf4j-api</artifactId>

                                  </exclusion>

                              </exclusions>

                                      </dependency>

                   

                  It worked. But I am not sure if I should have done it.