[
http://jira.jboss.com/jira/browse/JBAS-3047?page=all ]
Scott M Stark updated JBAS-3047:
--------------------------------
Component/s: ClassLoading
Web (Tomcat) service
Fix Version/s: JBossAS-4.2.0.GA
JBossAS-5.0.0.Beta3
The java2ClassLoadingCompliance was not being honored from the war.
WebApps ignore java2ClassLoadingCompliance in jboss-web.xml
-----------------------------------------------------------
Key: JBAS-3047
URL:
http://jira.jboss.com/jira/browse/JBAS-3047
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Web (Tomcat) service, ClassLoading
Affects Versions: JBossAS-4.0.3 SP1
Environment: SuSE Linux 9.1, Sun JDK 1.4.2_11
Reporter: Kevin Yeung
Assigned To: Scott M Stark
Fix For: JBossAS-5.0.0.Beta3, JBossAS-4.2.0.GA
I deploy the same jar file (kevin.jar) in a war and its containing ear. In the war, I
have a test JSP that loads a class from kevin.jar and displays its class loader.
The class is loaded using the war class loader. So, I added the following to
jboss-web.xml under the war's WEB-INF
<class-loading java2ClassLoadingCompliance='true'>
Didn't work. So I added this:
<class-loading java2ClassLoadingCompliance='true'>
<loader-repository>
dot.com:loader=unique-archive-name
<loader-repository-config>
java2ParentDelegaton=true
</loader-repository-config>
</loader-repository>
</class-loading>
Didn't work either. Class continues to be loaded from war's class loader.
Deleted JAR from WEB-INF/lib and class is now loaded from ear.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira