0 Replies Latest reply on Jan 21, 2014 11:44 AM by Rémy Courtial

    JSF configuration : problem during serveur reload after module deployment

    Rémy Courtial Newbie

      Hello,

       

      I try to install a framework (EJBCA 6 to manage PKI process) which used JBoss7.1, Jdk7. The framework generate an ear archive an try to deploy it (with ant) in JBoss server and reload it.

       

      On my local computer all is perfect but on rad hat server the deployment at the end of ant task failed ! It seems to have a problem during a module deployement in Jboss server. See server log :

      ackage-info.java: org.ejbca.core.model.authorization

      17:04:40,101 Précis [javax.enterprise.resource.webcontainer.jsf.timing] (pool-34-thread-2)  [TIMING] - [17ms] : Parse jndi:/default-host/ejbca/adminweb/WEB-INF/faces-config.xml

      17:04:40,101 Précis [javax.enterprise.resource.webcontainer.jsf.timing] (pool-34-thread-4)  [TIMING] - [19ms] : Parse jar:file:/usr/share/jboss-as/modules/com/sun/jsf-impl/1.2/jsf-impl-1.2_15-jbossorg-2.jar!/com/sun/faces/jsf-ri-runtime.xml

      17:04:40,123 DEBUG [org.hibernate.integrator.internal.IntegratorServiceImpl] (MSC service thread 1-1) Adding Integrator [org.hibernate.cfg.beanvalidation.BeanValidationIntegrator].

      17:04:40,124 DEBUG [org.hibernate.integrator.internal.IntegratorServiceImpl] (MSC service thread 1-1) Adding Integrator [org.hibernate.ejb.event.JpaIntegrator].

      17:04:40,128 DEBUG [org.hibernate.integrator.internal.IntegratorServiceImpl] (MSC service thread 1-1) Adding Integrator [org.hibernate.envers.event.EnversIntegrator].

      17:04:40,155 DEBUG [org.hibernate.ejb.util.NamingHelper] (MSC service thread 1-1) No JNDI name configured for binding Ejb3Configuration

      17:04:40,169 DEBUG [org.hibernate.cfg.Configuration] (MSC service thread 1-1) Preparing to build session factory with filters : {}

      17:04:40,272 DEBUG [org.hibernate.cfg.Configuration] (MSC service thread 1-1) Processing hbm.xml files

      17:04:40,272 DEBUG [org.hibernate.cfg.Configuration] (MSC service thread 1-1) Process annotated classes

      17:04:40,276 Précis [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) Unsanitized stacktrace from failed start...: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'vfs:/content/ejbca.ear/adminweb.war/WEB-INF/lib/tomahawk-1.1.6.jar/META-INF/faces-config.xml': Classe de translet chargée, mais impossible de créer une instance de translet.

              at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:309) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:205) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:200) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

              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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      Caused by: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'vfs:/content/ejbca.ear/adminweb.war/WEB-INF/lib/tomahawk-1.1.6.jar/META-INF/faces-config.xml': Classe de translet chargée, mais impossible de créer une instance de translet.

              at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.7.0_45]

              at java.util.concurrent.FutureTask.get(FutureTask.java:188) [rt.jar:1.7.0_45]

              at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:307) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              ... 10 more

      Caused by: com.sun.faces.config.ConfigurationException: Unable to parse document 'vfs:/content/ejbca.ear/adminweb.war/WEB-INF/lib/tomahawk-1.1.6.jar/META-INF/faces-config.xml': Classe de translet chargée, mais impossible de créer une instance de translet.

              at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:425) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:373) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_45]

              ... 3 more

      Caused by: javax.xml.transform.TransformerConfigurationException: Classe de translet chargée, mais impossible de créer une instance de translet.

              at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.defineTransletClasses(TemplatesImpl.java:369) [rt.jar:1.7.0_45]

              at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.getTransletInstance(TemplatesImpl.java:383) [rt.jar:1.7.0_45]

              at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.newTransformer(TemplatesImpl.java:418) [rt.jar:1.7.0_45]

              at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:740) [rt.jar:1.7.0_45]

              at __redirected.__TransformerFactory.newTransformer(__TransformerFactory.java:129) [jboss-modules.jar:1.1.1.GA]

              at com.sun.faces.config.ConfigManager$ParseTask.getTransformer(ConfigManager.java:496) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:469) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:416) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              ... 5 more

       

      17:04:40,299 DEBUG [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) Binding entity from annotated class: org.ejbca.core.ejb.services.ServiceData

      17:04:40,300 Précis [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) Completed initializing Mojarra (1.2_15.jbossorg-1-20111019-SNAPSHOT) for context ''{0}''

      17:04:40,301 Précis [javax.enterprise.resource.webcontainer.jsf.timing] (MSC service thread 1-2)  [TIMING] - [764ms] : Initialization of context /ejbca/adminweb

      17:04:40,302 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ejbca/adminweb]] (MSC service thread 1-2) Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) com.sun.faces.config.ConfigureListener: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Classe de translet chargée, mais impossible de créer une instance de translet.

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:215) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:200) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

              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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      Caused by: javax.xml.transform.TransformerConfigurationException: Classe de translet chargée, mais impossible de créer une instance de translet.

              at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.defineTransletClasses(TemplatesImpl.java:369) [rt.jar:1.7.0_45]

              at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.getTransletInstance(TemplatesImpl.java:383) [rt.jar:1.7.0_45]

              at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.newTransformer(TemplatesImpl.java:418) [rt.jar:1.7.0_45]

              at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:740) [rt.jar:1.7.0_45]

              at __redirected.__TransformerFactory.newTransformer(__TransformerFactory.java:129) [jboss-modules.jar:1.1.1.GA]

              at com.sun.faces.config.ConfigManager$ParseTask.getTransformer(ConfigManager.java:496) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:469) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:416) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:373) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_45]

              ... 3 more

       

      17:04:40,322 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart

      17:04:40,323 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Erreur de démarrage du contexte [/ejbca/adminweb] suite aux erreurs précédentes

      17:04:40,324 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ejbca/adminweb]] (MSC service thread 1-2) Stopping filters

      17:04:40,327 DEBUG [org.apache.catalina.session.ManagerBase] (MSC service thread 1-2) Unloading persisted sessions

      17:04:40,328 DEBUG [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Sending application stop events

      17:04:40,329 Précis [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) ConfigureListener.contextDestroyed(null)

      17:04:40,330 DEBUG [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Processing standard container shutdown

      17:04:40,330 DEBUG [org.apache.catalina.startup.ContextConfig] (MSC service thread 1-2) "ContextConfig": Traitement du "STOP"

      17:04:40,331 DEBUG [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) resetContext null

      17:04:40,332 DEBUG [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Stopping complete

      17:04:40,341 DEBUG [org.hibernate.cfg.Ejb3Column] (MSC service thread 1-1) Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}

      17:04:40,345 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.web.deployment.default-host./ejbca/adminweb: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./ejbca/adminweb: JBAS018040: Failed to start context

              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.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

       

      17:04:40,352 DEBUG [org.hibernate.cfg.annotations.EntityBinder] (MSC service thread 1-1) Import with entity name ServiceData

      17:04:40,355 DEBUG [org.hibernate.cfg.annotations.EntityBinder] (MSC service thread 1-1) Bind entity org.ejbca.core.ejb.services.ServiceData on table ServiceData

       

      I tried many solution to exclude Morraja, use tomahawk for JSF1.2, change configuration for jboss.web.deployment.default-host after read severals issues on forum but no effect for me !

       

      Anybody has been solve this problem ? Do you need other information (version, stacktrace etc.) ?

       

      Thanks in advance.