On 5/10/11 4:29 PM, Bingliu wrote:
In eclipse, i import camel-core-2.7.0.jar and camel-spring-2.7.0 as
"plug-ins and fragments".
I create a new plugin which define the spring-camel configuration.
Yesterday, I have tried to use the camel-2.4.0.The exception was as same as
v2.7.
I got the source of camel-2.4.0 and copied the
org.apache.camel.impl.osgi.Activator.The sentence
----------------------------------------------
  Enumeration<URL>  e = bundle.findEntries("/" + pkg.replace('.', '/'),
"*.class", true);
----------------------------------------------
when ("/" + pkg.replace('.', '/')) equals "org.apache.camel.component.file",
"e" is null. then the sentence
----------------------------------------------
  while (e.hasMoreElements()) {
----------------------------------------------
will throw NullPointException.
What is the reason of the problem?Does my import way is not correct?But i
like such use no problem in camel-2.3.0.


There are big refactor on the OSGi support since Camel 2.4.0.

Oh , you are work on eclipse plugin, you make want to take a look at this camel-eclipse component[1]

[1]http://camel.apache.org/camel-eclipse.html


--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Connect at CamelOne May 24-26
The Open Source Integration Conference
http://camelone.com

Reply via email to