9 Replies Latest reply on Mar 23, 2010 9:01 AM by jaikiran pai

    Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener:  fails deployment

    Yucca Nel Novice

      It really should be simple, but has become a nightmare. There is nothing more in my war other than an ejb and a cactus servlet to test it and I get the error related to faces. I have reas online and it would seem that this error is relates to class in .jar lib but I have no faces in my war at all so this is purely container side. I do't even have a faces config.xml.  Any clues?

        • 1. Re: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener:  fails deployment
          jaikiran pai Master

          Yucca, this is the forum for development of EJB3 spec in JBoss AS. Your question is more appropriate for user forums. I'll move this to the JBoss AS user forum (since I don't see it related to EJB3). Let's continue the discussion there.

          • 2. Re: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener:  fails deployment
            jaikiran pai Master

            Which version of JBoss AS and Java? Please post the entire exception stacktrace and logs from the console ( *not* the server.log) when your application is being deployed. Also while posting logs or xml content or code, please use the formatting options provided in the forum editor.

            • 3. Re: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener:  fails deployment
              Yucca Nel Novice

              Hi and ty.

               

              Firstly I replicated this useful guide found here... http://www.tikalk.com/java/your-first-jee6-project-with-ejb-light-jpa-20-and-jsf-20-jbossas-6

               

              and intend to run it on AS 6 M2.

               

              My console stack trace is as follows:

               

              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:378)
                      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
                      at org.jboss.system.ServiceController.doChange(ServiceController.java:671)
                      at org.jboss.system.ServiceController.start(ServiceController.java:443)
                      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)
                      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:1660)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1378)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1399)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1319)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:898)
                      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:677)
                      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:378)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:873)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:620)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:259)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:100)
                      at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:860)
                      at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:441)
                      at java.lang.Thread.run(Thread.java:619)


              11:09:44,115 ERROR [[/user-test]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.ClassCastException: org.apache.xerces.jaxp
              .SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
                      at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:128)
                      at com.sun.faces.config.ConfigureListener$WebXmlProcessor.getConfiguredFactory(ConfigureListener.java:851)
                      at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:787)
                      at com.sun.faces.config.ConfigureListener$WebXmlProcessor.<init>(ConfigureListener.java:744)
                      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:176)
                      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3926)
                      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4447)
                      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:315)
                      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
                      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:462)
                      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:116)
                      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:378)
                      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
                      at org.jboss.system.ServiceController.doChange(ServiceController.java:671)
                      at org.jboss.system.ServiceController.start(ServiceController.java:443)
                      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)
                      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:1660)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1378)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1399)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1319)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:898)
                      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:677)
                      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:378)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:873)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:620)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:259)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:100)
                      at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:860)
                      at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:441)
                      at java.lang.Thread.run(Thread.java:619)


              11:09:44,314 ERROR [StandardContext] Error listenerStart
              11:09:44,316 ERROR [StandardContext] Context [/user-test] startup failed due to previous errors
              11:09:44,324 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/user-test state=Create mode=Manual requiredState=Installed: org.jboss.deployers.spi.DeploymentEx
              ception: URL file:/C:/Users/Yucca/DEV/jboss-6.0.0.20100216-M2/server/default/tmp/156q4-cu7pmq-g74hh4lr-1-g74hih6x-9u/user-test.war/ deployment failed
                      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:337)
                      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
                      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:462)
                      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:116)
                      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:378)
                      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
                      at org.jboss.system.ServiceController.doChange(ServiceController.java:671)
                      at org.jboss.system.ServiceController.start(ServiceController.java:443)
                      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)
                      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:1660)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1378)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1399)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1319)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:898)
                      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:677)
                      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:378)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:873)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:620)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:259)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:100)
                      at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:860)
                      at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:441)
                      at java.lang.Thread.run(Thread.java:619)


              11:09:44,518 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/Users/Yucca/DEV/jboss-6.0.0.20100216-M2/server/default/deploy/user-test.war/ state=PreReal mode=Manual requiredS
              tate=Real: org.jboss.deployers.spi.DeploymentException: URL file:/C:/Users/Yucca/DEV/jboss-6.0.0.20100216-M2/server/default/tmp/156q4-cu7pmq-g74hh4lr-1-g74hih6x-9u/user-test.war/ deployment failed
                      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:337)
                      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
                      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:462)
                      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:116)
                      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:378)
                      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
                      at org.jboss.system.ServiceController.doChange(ServiceController.java:671)
                      at org.jboss.system.ServiceController.start(ServiceController.java:443)
                      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)
                      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:1660)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1378)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1399)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1319)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:898)
                      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:677)
                      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:378)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
                      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:873)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:620)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:259)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:100)
                      at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:860)
                      at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:441)
                      at java.lang.Thread.run(Thread.java:619)


              11:09:44,819 INFO  [service] Removing bootstrap log handlers
              11:09:46,012 INFO  [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Loading profile: ProfileKey@13f3ee0[domain=default, server=default, name=default]
              11:09:46,018 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):


              DEPLOYMENTS IN ERROR:
                Deployment "vfszip:/C:/Users/Yucca/DEV/jboss-6.0.0.20100216-M2/server/default/deploy/user-test.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file
              :/C:/Users/Yucca/DEV/jboss-6.0.0.20100216-M2/server/default/tmp/156q4-cu7pmq-g74hh4lr-1-g74hih6x-9u/user-test.war/ deployment failed


              11:09:46,050 INFO  [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8181
              11:09:46,055 INFO  [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
              11:09:46,058 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.20100216-M2 (build: SVNTag=JBoss_6_0_0_20100216-M2 date=20100216)] Started in 1m:13s:494ms

               

              I am not too sure on where the editor formatter is I only saw an html editing option.

               

              Latest JDK and Jre

              • 4. Re: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener:  fails deployment
                Yucca Nel Novice

                Rather than edit my original post I would like to add that my replication of that project mentioned is not the actual project, but more my own SLB and a single entity and a single test class.

                 

                Exploded war is as follows:

                 

                META-INF |- maven(dir)

                                |- Manifest

                 

                WEB-INF  |- compiled classes

                                |- web.xml with following:

                 

                <?xml version="1.0" encoding="UTF-8"?>
                <web-app xmlns="http://java.sun.com/xml/ns/javaee"
                           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                          http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
                           version="3.0">
                  <display-name>Cactus test Web Application</display-name>
                    <servlet>
                        <servlet-name>TestRunner</servlet-name>
                        <servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servlet-class>
                    </servlet>


                    <servlet-mapping>
                        <servlet-name>TestRunner</servlet-name>
                        <url-pattern>/TestMeBaby</url-pattern>
                    </servlet-mapping>
                </web-app>

                 

                       |- lib which contains cactus dependancy jars and personal lib jar.

                 

                and a single index jsp that is thrown in there by maven and not me and is not configured

                 

                nothing fishy to repost in my pom ahich totally off topic here(but in case anyone wanted to ask)

                 

                cactus does not oficially support JEE 6 but I am using tests in a work-around fashion or at leat in an attempt to see if I can

                use current cactus to test new javax.validation api in my SLSB that implements a DAO interface.

                • 5. Re: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener:  fails deployment
                  Stan Silvert Master

                  JBoss is trying to determine if you have a FacesServlet in your web.xml.  Your ClassCastException has to do with a mismatch between the xerces version in JBoss and the one you possibly packaged with your WAR.  If you have xercesImpl.jar or xalan.jar in your WAR then you should remove them and rely on the version that ships with JBoss.

                   

                  Stan

                  • 6. Re: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener:  fails deployment
                    Yucca Nel Novice

                    Hello, I noticed a context param that my have something to do with this. This param is defined usually in the web.xml as follows:

                     

                    <context-param>
                            <description>
                                Set this flag to true if you want the JavaServer Faces
                                Reference Implementation to validate the XML in your
                                faces-config.xml resources against the DTD. Default
                                value is false.
                            </description>
                            <param-name>com.sun.faces.validateXml</param-name>
                            <param-value>true</param-value>
                        </context-param>

                     

                    I have not defined this in my web.xml and it is my belief that this is leading to the error as the doc you can see states that by default the DTD is not validated by default. Should i set it to true? Ok I know the answer : There is no harm in trying but i don't like doing things that I don't know what they are meant for so can anyone explian this param to me?

                    • 7. Re: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener:  fails deployment
                      Yucca Nel Novice

                      Hi Stan and thank you. Yes maven seems to have pulled in some uneeded extras into my spplication and will therefore need exclude these when building. On a side note, will this always be an issue having these libs in your application when deploying to jboss? Also must I remove such libs from my personal lib if maven has pulled them into the packaging? meaning that will these jars lead to conflicts only if they are found in your application if so perhaps I can get envolved in creating a pom snippet to exclude all pakages that are included in jboss lib so that newer devs like me who use maven make less of these mistakes.

                      • 8. Re: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener:  fails deployment
                        Stan Silvert Master

                        As far as I know, this is only a problem with xerces and xalan.  I'm going to try to fix it in JBoss if I can.   So hopefully, the final JBoss AS6 won't have this problem.

                         

                        Stan