[ http://jira.jboss.com/jira/browse/JBAS-708?page=history ]
     
Scott M Stark closed JBAS-708:
------------------------------

    Resolution: Done

> loading resources through classloader (in ConnectionFactory)
> ------------------------------------------------------------
>
>          Key: JBAS-708
>          URL: http://jira.jboss.com/jira/browse/JBAS-708
>      Project: JBoss Application Server
>         Type: Bug
>     Versions: JBossAS-3.2.6 Final
>     Reporter: SourceForge User
>     Assignee: Scott M Stark

>
>
> SourceForge Submitter: ethanocentrism .
> 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".)

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to