[ 
https://issues.apache.org/activemq/browse/SM-387?page=comments#action_35993 ] 

Philippe Pinheiro commented on SM-387:
--------------------------------------

I''m installing a JBI component  that must load a configuration file with its 
classloader getResource.

In the jbi.xml I set the component classpath :

  <component-class-path>
  <path-element>lib/Install.jar</path-element>
  <path-element>conf.xml</path-element>
  </component-class-path>

And I include the file "conf.xml" on the component jar.

When the component start it doesn't found the resource "conf.xml" but it can 
load classes of Install.jar.

If I manually put  "conf.xml" on the folder servicemix/conf  then the component 
found it.

> JBI Spec - Resource Loading Styles not correctly implemented
> ------------------------------------------------------------
>
>          Key: SM-387
>          URL: https://issues.apache.org/activemq/browse/SM-387
>      Project: ServiceMix
>         Type: Bug

>   Components: servicemix-core
>     Versions: 3.0
>     Reporter: Philippe Pinheiro

>
>
> In the current version of ParentFirstClassLoader.java and 
> SelfFirstClassLoader.java, the method getResource doesn't  find a resource
> located on the classpath of the JBI component.
> The Class Loading Styles (self-first and parent-first) are correctly 
> implemented but it should be not the Resource Loading.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to