3 Replies Latest reply on Oct 4, 2012 8:37 AM by simplex-software

    Can't deploy seam/maven project

    simplex-software

      Greetings,

       

      Using JBoss 5.1 and Seam 2.2. I have a maven project building an EAR which contains a WAR, EJB-JAR and other JARs. Trying to deploy it fisplays the following exceptions:

       

      2012-10-01 15:09:07,086 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/EDIIhm-ui]] (main) Exception lors de l'envoi de l'?v?nement contexte initialis? (context initialized) ? l'instance de classe d'?coute (listener) org.jboss.web.jsf.integration.config.JBossJSFConfigureListener

      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.jboss.seam.jsf.SeamApplicationFactory

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

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

          at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:60)

          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

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

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

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

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

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

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

          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:264)

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

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

          at $Proxy38.start(Unknown Source)

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

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

          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:348)

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

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

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

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

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

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

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

          at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

          at org.jboss.system.ServiceController.start(ServiceController.java:460)

          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1225)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

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

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

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

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

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

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

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

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

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

          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

          at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

          at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

          at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)

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

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

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

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

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

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

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

          at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)

          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

          at org.jboss.Main.boot(Main.java:221)

          at org.jboss.Main$1.run(Main.java:556)

          at java.lang.Thread.run(Thread.java:662)

      Caused by: java.lang.InstantiationException: org.jboss.seam.jsf.SeamApplicationFactory

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

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

          at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:537)

          at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:405)

          at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135)

          at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:717)

          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)

          at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:186)

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

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

          ... 72 more

      2012-10-01 15:09:07,086 INFO  [STDOUT] (main) 15:09:07,086 INFO  [ServletContextListener] Welcome to Seam 2.2.2.Final

      2012-10-01 15:09:07,156 INFO  [STDOUT] (main) 15:09:07,156 WARN  [URLScanner] could not read entries

      java.io.FileNotFoundException: D:\jboss-eap-5.1.2\jboss-as\server\default\deploy\EDIIhm-ear-0.0.1-SNAPSHOT.ear\EDIIhm-ui-0.0.1-SNAPSHOT.war\WEB-INF\lib\jboss-seam-ioc.jar (The system cannot find the path specified)

          at java.util.zip.ZipFile.open(Native Method)

          at java.util.zip.ZipFile.<init>(ZipFile.java:127)

          at java.util.zip.ZipFile.<init>(ZipFile.java:144)

          at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123)

          at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107)

          at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90)

          at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:119)

          at org.jboss.seam.init.Initialization.create(Initialization.java:130)

          at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)

          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

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

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

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

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

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

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

          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:264)

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

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

       

      My understanding is that the file D:\jboss-eap-5.1.2\jboss-as\server\default\deploy\EDIIhm-ear-0.0.1-SNAPSHOT.ear\EDIIhm-ui-0.0.1-SNAPSHOT.war\WEB-INF\lib\jboss-seam-ioc.jar is not found. However, it is a part of a deployed EAR as it appears in the menyioned place. What could be the problem here ?

       

      I can deploy seam/jbds projects but not seam/maven projects.

       

      Many thanks for any help.

       

      Nicolas

        • 1. Re: Can't deploy seam/maven project
          simplex-software

          Could any body help with that please as I'm really blocked. Using Seam projects in JBDS works fine but we need to go in production and hence we need build/deploy scripts. Our build/deploy tool is maven so I would need an example of a Seam application built/deployed with maven. seamgen doesn't generate poms and, of course, I could use the ant script generated by seamgen and to run it by maven but this is not the solution we want to go with.

           

          Many thanks in advance.

           

          Nicolas

          • 2. Re: Can't deploy seam/maven project
            simplex-software

            I'm really surprized that nobody can help with such a simple question like how to builde a Seam project with maven. Should I conclude that nobody did it yet ? Or should I conclude that to build a Seam application with maven is so tricky that it is not worse loosing time in trying to do it and, hence, just forget Seam ? After all, if all the provided samples use ant and it seems to be impossible to find the least sample using maven, thhen it must be a good reason to that. Please advise.

             

            kind regards,

             

            Nicolas

            • 3. Re: Can't deploy seam/maven project
              simplex-software

              Okay, so I did lots of trials these last days and, whatever I do, I'm not able to get rid of the mention exception. However, I'm using maven to build any type of application on current basis and I never had to be blocked during 3 days for a build problem. Additionally, the hole situation is non-sense as the files that aren't allegedly not found are present in the given path so every thing is completelly absurde. Given the absence of any help on this site during the last 3 days and given the lack of any sample of building seam apps with maven, I don't have any other choice than to forget Seam for now. I'll check later, in a couple of months, Seam 3 with JBoss EAP6/Jboss 7 but now I couldn't afford to loose more time with that. The case is closed.