Hi, I've run into the same problem and tried to fix it with a jboss-classloading.xml. But, unfortunately, it didn't work for me. The curiosity is that another WAR file is working. And, additionally, a third WAR file without jboss-classloading.xml works perfectly. Here is my scenario:
- First.war (this works fine) +--- jboss-classloading.xml | <classloading xmlns="urn:jboss:classloading:1.0" | name="first.war" | domain="IsolatedWithParentDomain" | parent-domain="DefaultDomain" | export-all="NON_EMPTY" | import-all="true" | parent-first="false"/> | - Second.war (doesn't work) +--- jboss-classloading.xml | <classloading xmlns="urn:jboss:classloading:1.0" | name="second.war" | domain="secondDomain" | export-all="NON_EMPTY" | import-all="true" | parent-first="false"/> | - Third.war (works) (no jboss-classloading.xml included) The exception I get is as follows: | 11:23:55,424 INFO [[/second]] Initializing log4j from [classpath:log4j.properties] | 11:23:55,450 ERROR [[/second]] Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener | java.lang.ExceptionInInitializerError | at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:336) | at org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.java:73) | at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:152) | at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:47) | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393) | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312) | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144) | at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461) | at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) | 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 $Proxy36.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:286) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) | 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:50) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178) | at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) | at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781) | at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221) | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) | at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) | at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) | at java.lang.Thread.run(Thread.java:619) | Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory | at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) | at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:694) | at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618) | at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470) | at org.apache.log4j.LogManager.<clinit>(LogManager.java:122) | Is there another way to solve this issue? I've read through a bunch of articles which stated that jboss-classloading.xml is the solution for all the problems, but it didn't help. Or is there another point which I've overseen? TIA, Ralf. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269953#4269953 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269953 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
