0 Replies Latest reply on Mar 18, 2014 1:58 PM by francisdjiomou

    Problem while including a war archive in an ear one

    francisdjiomou

      Hello guys

      I'm developping with JEE6 using JBoss AS 6.1, JSF 2.1, PrimeFaces 3.4, EJB 3.0, JPA 2.0 and JBossDevStudio 7.1

      Here is the structure of my project :

      Project-EAR

           --- Project-JSF (named Portal-Web)

           --- Project-Client

           --- Project-EJB

           --- Project-DAO

           --- Project-JPA

      The problem is that, when i deploy the jsf project alone, it works properly but when i include it into the global project (EAR-Project), it doesn't deploy and here is the stacktrace :


      18:49:15,487 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

      18:49:18,225 Infos [org.primefaces.webapp.PostConstructApplicationEventListener] Running on PrimeFaces 3.4.2

      18:49:18,227 Infos [javax.enterprise.resource.webcontainer.jsf.config] Monitoring jndi:/localhost/Portal-Web/WEB-INF/faces-config.xml for modifications

      18:49:18,232 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Portal-Web]] 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.JBossMojarra20ConfigureListener: java.lang.ClassCastException: com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration

        at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:174) [:2.0.3-]

        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:158) [:2.0.3-]

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

        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369) [:6.1.0.Final]

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:6.1.0.Final]

        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.1.0.Final]

        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.1.0.Final]

        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476) [:6.1.0.Final]

        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.1.0.Final]

        at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.1.0.Final]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_45]

       

      18:49:18,239 ERROR [org.apache.catalina.core.StandardContext] Error listenerStart

      18:49:18,240 ERROR [org.apache.catalina.core.StandardContext] Erreur de démarrage du contexte [/Portal-Web] suite aux erreurs précédentes

      18:49:18,243 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/Portal-Web state=Create mode=Manual requiredState=Installed: org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-6.1.0.Final/server/portal/tmp/vfs/automounta9a3c47be27bcf23/Portal-Web.war-de449c8eecdd2556/ deployment failed

        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:325) [:6.1.0.Final]

        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.1.0.Final]

        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476) [:6.1.0.Final]

        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.1.0.Final]

        at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.1.0.Final]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_45]

        at java.lang.reflect.Method.invoke(Unknown Source) [:1.7.0_45]

       

       

      18:49:18,391 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Scan failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

       

      *** DEPLOYMENTS IN ERROR: Name -> Error

       

       

      vfs:///C:/jboss-6.1.0.Final/server/portal/deploy/Portal-EAR.ear -> org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-6.1.0.Final/server/portal/tmp/vfs/automounta9a3c47be27bcf23/Portal-Web.war-de449c8eecdd2556/ deployment failed

       

      DEPLOYMENTS IN ERROR:

        Deployment "vfs:///C:/jboss-6.1.0.Final/server/portal/deploy/Portal-EAR.ear" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-6.1.0.Final/server/portal/tmp/vfs/automounta9a3c47be27bcf23/Portal-Web.war-de449c8eecdd2556/ deployment failed

        at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.2.GA]

        at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.2.GA]

        at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.2.GA]

        at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.1.0.Final]

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

        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]

       

       

       

      Can someone have any idea ?