Bugs item #811934, was opened at 2003-09-24 20:00
Message generated for change (Comment added) made by letiemble
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=811934&group_id=22866
Category: JBossServer
Group: v3.2
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Ethan Wolf (ethanocentrism)
>Assigned to: Laurent Etiemble (letiemble)
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".)
----------------------------------------------------------------------
>Comment By: Laurent Etiemble (letiemble)
Date: 2003-09-25 00:08
Message:
Logged In: YES
user_id=437455
Duplicate of #811913.
Slow down on your keyboard !!!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=811934&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