Juan Velez [
http://community.jboss.org/people/juanavelez] created the discussion
"Unable to tell JBoss to use Parent_Last=true"
To view the discussion, visit:
http://community.jboss.org/message/573755#573755
--------------------------------------------------------------
Hi:
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/docs/DOC-9288
http://community.jboss.org/wiki/classloadingconfiguration and finally used what Ales
Justin suggested
http://java.dzone.com/articles/jboss-microcontainer-classloading
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>
<?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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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)
Could someone please shine some light on this? I can not believe something as trivial as
to telling JBoss to use the libraries found in the WAR file can be so complicated/complex
Thanks in advance
Juan
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/573755#573755]
Start a new discussion in JBoss Microcontainer at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]