Bugs item #870942, was opened at 2004-01-05 08:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=870942&group_id=22866

Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve Wolfangel (swolfangel)
Assigned to: Nobody/Anonymous (nobody)
Summary: Classloader problem with ear file

Initial Comment:
Hello,

I have an ear file that contains 2 stateless session 
beans and all the 3rd party jars required by the beans. 
The 3rd party jars contain older jdom classes than the 
jdom jar included in the jboss lib dir. I have a unique 
classloader setup (in the jboss-app.xml file) but I am 
having problems with jdom. It is finding the jboss jdom 
classes instead of the ones included in the ear. 

when I change the jboss-app.xml file to contain the 
following lines:

<jboss-app>
        <loader-repository>
                com.metamatrix:loader=MM.ear
                <loader-repository-
config>java2ParentDelegation=false</loader-repository-
config> 
        </loader-repository>
</jboss-app>

I get a NoClassDefFoundError. 

 java.lang.NoClassDefFoundError: java/sql/SQLException

This class is in the rt.jar file in the jdk!

I was under the impression that setting 
java2ParentDelegation to false meant that if the class 
was not found using the local classloader then the 
parent classloader would be called. 

In a nutshell, when I have java2ParentDelegation set to 
true, I get the jdom problem, when I have 
java2ParentDelegation set to false I am unable to see 
classes that are in the rt.jar file. 


Here is the output when starting the server.

[Server] Starting JBoss (MX MicroKernel)...
[Server] Release ID: JBoss [WonderLand] 3.2.3 (build: 
CVSTag=JBoss_3_2_3 date=200311301445)
[Server] Home Dir: D:\mm40\jb32\server\jboss
[Server] Home URL: file:/D:/mm40/jb32/server/jboss/
[Server] Library URL: file:/D:/mm40/jb32/server/jboss/lib/
[Server] Patch URL: null
[Server] Server Name: metamatrix
[Server] Server Home Dir: D:\mm40\jb32
\server\jboss\server\metamatrix
[Server] Server Home URL: 
file:/D:/mm40/jb32/server/jboss/server/metamatrix/
[Server] Server Data Dir: D:\mm40\jb32
\server\jboss\server\metamatrix\data
[Server] Server Temp Dir: D:\mm40\jb32
\server\jboss\server\metamatrix\tmp
[Server] Server Config URL: 
file:/D:/mm40/jb32/server/jboss/server/metamatrix/conf/
[Server] Server Library URL: 
file:/D:/mm40/jb32/server/jboss/server/metamatrix/lib/
[Server] Root Deployment Filename: jboss-service.xml
[Server] Starting General Purpose Architecture (GPA)...
[ServerInfo] Java version: 1.4.2,Sun Microsystems Inc.
[ServerInfo] Java VM: Java HotSpot(TM) Client VM 
1.4.2-b28,Sun Microsystems Inc.
[ServerInfo] OS-System: Windows XP 5.1,x86

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=870942&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to