7 Replies Latest reply on Jun 17, 2013 8:27 AM by prashanto.chatterjee

    Migration seam 2 app to jboss as 7

    felipenova

      I'm migrating my application with Seam 2.2.1 for JBossAS 7 and got the following error below:


      16:09:10,736 INFO  [javax.servlet.ServletContextListener] (MSC service thread 1-8) Welcome to Seam 2.2.1.EAP5
      16:09:10,860 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/aplicacao_padrao]] (MSC service thread 1-8) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.IllegalArgumentException: Null path
          at org.jboss.vfs.VFS.getChild(VFS.java:187) [jboss-vfs-3.1.0.Final-redhat-1.jar:3.1.0.Final-redhat-1]
          at org.jboss.vfs.VFS.getChild(VFS.java:173) [jboss-vfs-3.1.0.Final-redhat-1.jar:3.1.0.Final-redhat-1]
          at org.jboss.vfs.VFS.getChild(VFS.java:154) [jboss-vfs-3.1.0.Final-redhat-1.jar:3.1.0.Final-redhat-1]
          at org.jboss.seam.integration.jbossas.vfs.VFSScanner.getRoot(VFSScanner.java:64) [jboss-seam-int.jar:6.0.0.GA-redhat-1]
          at org.jboss.seam.integration.jbossas.vfs.VFSScanner.scanResources(VFSScanner.java:151) [jboss-seam-int.jar:6.0.0.GA-redhat-1]
          at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:113) [jboss-seam.jar:2.2.1.EAP5]
          at org.jboss.seam.init.Initialization.create(Initialization.java:132) [jboss-seam.jar:2.2.1.EAP5]
          at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam.jar:2.2.1.EAP5]
          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.16.Final-redhat-1.jar:]
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.16.Final-redhat-1.jar:]
          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]
      
      16:09:10,876 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-8) Initializing Mojarra (1.2_15-b01-FCS) for context '/aplicacao_padrao'
      16:09:11,316 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-8) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' does not extend DiscoverableInjectionProvider.  Entry will be ignored.
      16:09:11,316 INFO  [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-8) JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
      16:09:11,558 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-8) Error listenerStart
      16:09:11,559 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-8) Context [/aplicacao_padrao] startup failed due to previous errors
      16:09:11,568 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.web.deployment.default-host./aplicacao_padrao: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./aplicacao_padrao: JBAS018040: Falha ao iniciar o contexto
          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]
      
      16:09:11,780 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Implantado "aplicacao_padrao.ear"
      16:09:11,782 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Relatório
       de status de serviço JBAS014777: Serviços que falham na inicialização:      service jboss.web.deployment.default-host./aplicacao_padrao: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./aplicacao_padrao: JBAS018040: Falha ao iniciar o contexto
      
      16:09:11,978 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: O console de administração ouvindo no http://127.0.0.1:9990
      16:09:11,978 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1) iniciado (com erros) em 6469ms - Iniciado 653 de serviços 744 (2 serviços falharam ou faltam dependência, os serviços 87 são passivos ou em demanda)
      

       

      I am using hibernate 3.6've done everywhere only to use it and do not hibernate 4, but also tried to hibernate 4, but he insists that error in jboss-seam-int.jar.
      I've done everything and do not know what to do, please help me.

      Thank you.