[ 
https://issues.apache.org/activemq/browse/CAMEL-1092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

William Tam updated CAMEL-1092:
-------------------------------

    Attachment: test.tar.gz

I wasn't entirely accurate.   Here is what I saw.  If both camel-osgi and 
spring-osgi-core jars are present in the classpath, then the OSGI version of 
the SpringCamelContext will kick in even though the namespace does not specify 
the osgi one.  I am not sure how it happens.  Any enlightenment would be 
appreciated.  Spring must have pulled some magic. :-)  It is nice because the 
route configuration does not have to know anything about osgi (namespace) and 
it just works in either environment.  The attached test case can demonstrate 
that behavior.  Uncomment the spring-osgi-core-1.1.2.jar line in the build.xml 
and set it to the jar location, then run "ant router" target  It will fail with 
 "java.lang.NoClassDefFoundError: org/osgi/framework/BundleContext".   Before 
running the ant.

1) Get 1.5.0 binary distribution and untar it.
2) Set CAMEL_HOME to the camel installation directory
3) Untar the test.tar to CAMEL_HOME directory 


> core\src\main\java\org\apache\camel\util\ResolverUtil.java has dependency on 
> OSGi Bundle class
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1092
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1092
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.1
>            Reporter: Seumas Soltysik
>            Assignee: Hadrian Zbarcea
>             Fix For: 1.5.1
>
>         Attachments: test.tar.gz
>
>
> When running a Camel router scenario, I am getting a ClassNotFoundError  for 
> the OSGi Bundle class from the ResolverUtil class. It seems like this code 
> should be in the camel-osgi bundle or perhaps should be more reflection based.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to