Bugs item #811913, was opened at 2003-09-24 17:03
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=811913&group_id=22866

Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Ethan Wolf (ethanocentrism)
Assigned to: Nobody/Anonymous (nobody)
Summary: loading resources through classloader (in ConnectionFactory)

Initial Comment:
I have the following situation (in JBoss 3.2.1):

  -  Package com.x.y deployed in a jar that is loaded 

based on /server/default/conf/jboss-service.xml

  -  Either a jar file or a subfolder 

in /server/default/deploy/ that defines a connection 

factory configuration of a resource adapter already 

deployed in a .rar.  The jar or subfolder contains:

      1. A connection factory configuration  (-ds.xml).

      2. Resource files with directory path in the jar or 

subfolder that mirrors the package path in the other jar 

("com/x/y").  The connection factory configuration 

refers to these resources ("com/x/y/MyResource.file").



The ManagedConnectionFactory for the connection 

factory attempts to load these resources through a 

ClassLoader obtained by getClass().getClassLoader()

(which returns a UnifiedClassLoader3).  The class loader 

does not find the resources.



However, if I move the resources to a different directory 

that doesn't mirror the package already loaded and 

change the configuration file accordingly to refer to 

resources in this new directory, then the class loader 

does find the resources.

(For example, I had no problems with the resources 

in "WORKAROUND_DIRECTORY/com/x/y".) 

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

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


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to