Unable to tell JBoss to use Parent_Last=true
juanavelez Nov 30, 2010 6:04 PMHi:
First of all let me say that I have read many of entries in here as well as other places about my issue and the use of the jboss-classloading.xml and it seems nothing works.
My situation is the following: I am using JBoss AS 5.1.0GA. I am deploying a WAR file (not an EAR, not a SAR, nothing but a simple WAR file) which has a bunch of hibernate libraries (3.6.0) in it (WEB-INF/lib). I have tried telling JBoss to use the libraries within the WAR and not the ones provided by itself with no luck. I tried the http://community.jboss.org/wiki/classloadingconfiguration and finally used what Ales Justin suggested http://java.dzone.com/articles/jboss-microcontainer-classloading with no effect. My last try was to include a jboss-classloading.xml file in the WEB-INF directory (a sibling to the web.xml file) whose contents are
<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0" parent-first="false">
</classloading>
Unfortunately when I run JBoss I get the following message
14:35:42,336 ERROR [AbstractKernelController] Error installing to Instantiated: name=jboss.jacc:id="vfszip:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/",service=jacc state=Described mode=Manual requiredState=Configured
java.lang.ClassNotFoundException: org.jboss.deployment.security.WarJaccPolicy from BaseClassLoader@6d516432{VFSClassLoaderPolicy@7a8946af{name=vfszip:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/ domain=ClassLoaderDomain@70eb67e8{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@58fe64b9} roots=[MemoryContextHandler@1249888770[path= context=vfsmemory://a4ja6v-tsw3z5-gh5d90p1-1-gh5d9bd8-2b real=vfsmemory://a4ja6v-tsw3z5-gh5d90p1-1-gh5d9bd8-2b], ZipEntryHandler@195522436[path=pnsgdp.war/WEB-INF/classes context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/classes], DelegatingHandler@495601942[path=pnsgdp.war/WEB-INF/lib/alstomMarketControl.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/alstomMarketControl.jar], DelegatingHandler@1640256128[path=pnsgdp.war/WEB-INF/lib/alstomTransactiveNode.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/alstomTransactiveNode.jar], DelegatingHandler@537166757[path=pnsgdp.war/WEB-INF/lib/alstomTransmissionZoneSimulation.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/alstomTransmissionZoneSimulation.jar], DelegatingHandler@140432911[path=pnsgdp.war/WEB-INF/lib/com.springsource.org.aopalliance-1.0.0.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/com.springsource.org.aopalliance-1.0.0.jar], DelegatingHandler@171407124[path=pnsgdp.war/WEB-INF/lib/commons-dbcp-1.2.2.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/commons-dbcp-1.2.2.jar], DelegatingHandler@1063962441[path=pnsgdp.war/WEB-INF/lib/commons-pool-1.5.2.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/commons-pool-1.5.2.jar], DelegatingHandler@2067900965[path=pnsgdp.war/WEB-INF/lib/cxf-2.3.0.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/cxf-2.3.0.jar], DelegatingHandler@336175707[path=pnsgdp.war/WEB-INF/lib/cxf-xjc-boolean-2.3.0.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/cxf-xjc-boolean-2.3.0.jar], DelegatingHandler@75632292[path=pnsgdp.war/WEB-INF/lib/cxf-xjc-bug671-2.3.0.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/cxf-xjc-bug671-2.3.0.jar], DelegatingHandler@1989096267[path=pnsgdp.war/WEB-INF/lib/cxf-xjc-dv-2.3.0.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/cxf-xjc-dv-2.3.0.jar], DelegatingHandler@863026620[path=pnsgdp.war/WEB-INF/lib/cxf-xjc-ts-2.3.0.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/cxf-xjc-ts-2.3.0.jar], DelegatingHandler@783850502[path=pnsgdp.war/WEB-INF/lib/dom4j-1.6.1.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/dom4j-1.6.1.jar], DelegatingHandler@1510696416[path=pnsgdp.war/WEB-INF/lib/org.springframework.aop-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.aop-3.0.5.RELEASE.jar], DelegatingHandler@575505231[path=pnsgdp.war/WEB-INF/lib/org.springframework.asm-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.asm-3.0.5.RELEASE.jar], DelegatingHandler@250071329[path=pnsgdp.war/WEB-INF/lib/org.springframework.aspects-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.aspects-3.0.5.RELEASE.jar], DelegatingHandler@323329324[path=pnsgdp.war/WEB-INF/lib/org.springframework.beans-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.beans-3.0.5.RELEASE.jar], DelegatingHandler@1062321558[path=pnsgdp.war/WEB-INF/lib/org.springframework.context-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.context-3.0.5.RELEASE.jar], DelegatingHandler@259384148[path=pnsgdp.war/WEB-INF/lib/org.springframework.context.support-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.context.support-3.0.5.RELEASE.jar], DelegatingHandler@77572026[path=pnsgdp.war/WEB-INF/lib/org.springframework.core-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.core-3.0.5.RELEASE.jar], DelegatingHandler@230467253[path=pnsgdp.war/WEB-INF/lib/org.springframework.expression-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.expression-3.0.5.RELEASE.jar], DelegatingHandler@1550105630[path=pnsgdp.war/WEB-INF/lib/org.springframework.jdbc-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.jdbc-3.0.5.RELEASE.jar], DelegatingHandler@1501201653[path=pnsgdp.war/WEB-INF/lib/org.springframework.jms-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.jms-3.0.5.RELEASE.jar], DelegatingHandler@2058297015[path=pnsgdp.war/WEB-INF/lib/org.springframework.orm-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.orm-3.0.5.RELEASE.jar], DelegatingHandler@2131345229[path=pnsgdp.war/WEB-INF/lib/org.springframework.oxm-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.oxm-3.0.5.RELEASE.jar], DelegatingHandler@1492031843[path=pnsgdp.war/WEB-INF/lib/org.springframework.transaction-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.transaction-3.0.5.RELEASE.jar], DelegatingHandler@412639282[path=pnsgdp.war/WEB-INF/lib/org.springframework.web-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.web-3.0.5.RELEASE.jar], DelegatingHandler@1003716411[path=pnsgdp.war/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar context=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/java/containers/jboss-5.1.0.GA/server/default/deploy/pnsgdp.war/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]] delegates=null exported=[]}}
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)