-
1. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
ffang Mar 27, 2011 9:37 PM (in response to socaltechdad) -
2. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
socaltechdad Mar 27, 2011 10:10 PM (in response to ffang)Thanks for replying.
I uninstalled and re-installed camel-cache feature and did not see any errors in the log. Using features:list, I see the following:
\[installed ] \[2.6.0-fuse-01-09 ] camel-cache repo-0
Also, the bundle status as shown with osgi:list is active as is the ehcache bundle.
\[ 214] \[Active ] \[ 60] Apache ServiceMix :: Bundles :: ehcache (2.3.0.1)
-
3. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
ffang Mar 28, 2011 2:30 AM (in response to socaltechdad)Hi,
How your deploy your customer bundle which use camel-cache endpoint?
Would you post the result of
osgi:headers your_customer_bundle_id
?
Freeman
-
4. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
socaltechdad Mar 28, 2011 11:27 AM (in response to ffang)Sure. I am extending the camel-osgi example with camel-cache (or at least trying). Please see my result below:
Apache ServiceMix :: Features :: Examples :: Camel OSGi (213)
-
Manifest-Version = 1.0
Bnd-LastModified = 1301272328999
Tool = Bnd-0.0.357
Built-By = SoCalTechDad
Build-Jdk = 1.6.0_07
Created-By = Apache Maven Bundle Plugin
Bundle-Vendor = FuseSource
Bundle-Name = Apache ServiceMix :: Features :: Examples :: Camel OSGi
Bundle-DocURL = http://fusesource.com/
Bundle-Description = Camel example using OSGi instead of JBI
Bundle-SymbolicName = camel-osgi
Bundle-Version = 4.3.1.fuse-01-09
Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-ManifestVersion = 2
Import-Package =
org.apache.camel;version=2.6,
org.apache.camel.builder;version=2.6,
org.apache.camel.dataformat.bindy.annotation;version=2.6,
org.apache.camel.dataformat.bindy.csv;version=2.6,
org.apache.camel.model;version=2.6,
org.apache.camel.model.language;version=2.6,
org.apache.camel.spi;version=2.6,
org.apache.servicemix.examples.camel
Export-Package =
org.apache.servicemix.examples.camel;
uses:="org.apache.camel.builder,
org.apache.camel.model,
org.apache.camel,
org.apache.camel.model.language,
org.apache.camel.spi,
org.apache.camel.dataformat.bindy.csv"
-
5. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
ffang Mar 28, 2011 8:42 PM (in response to socaltechdad)Hi,
I can't see your customer bundle has Import-Package like
org.apache.camel.component.cache
You may need add camel-cache dependency into your bundle's pom.xml.
Freeman
-
6. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
socaltechdad Apr 2, 2011 10:43 PM (in response to ffang)Thank you for the continued follow-up. I have a dependency for camel-cache in the pom.xml These are the dependencies shown in the maven bundle:
From: 'FuseSource Community' (http://fusesource.com)
- Camel :: Bindy (http://fusesource.com/products/enterprise-camel/camel-parent/camel-bindy/) org.apache.camel:camel-bindy:bundle:2.6.0-fuse-01-09
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
- Camel :: Cache (http://fusesource.com/products/enterprise-camel/camel-parent/camel-cache/) org.apache.camel:camel-cache:bundle:2.6.0-fuse-01-09
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
I am very perplexed by this. I can see why camel-bindy shows up when I call osgi-headers because I have imported it into my code base and it is needed at compile time due to a data format being passed as an argument into a process. In the case of camel-cache, like camel-http, for example, they are part of camel-core (as is bindy), but are not called for in the code's import statements.
If I force org.apache.camel.component.cache into the pom's import-package tag, I can resolve the original error, but then get the following error when I try to start the bundle.
org.osgi.framework.BundleException: The bundle "camel-osgi_4.3.1.fuse-01-09 " could not be resolved. Reason: Missing Constraint: Import-Package: org.apahce.camel.component.cache; version="0.0.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317)\[osgi-3.6.0.v20100517.jar:]
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301)\[osgi-3.6.0.v20100517.jar:]
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319)\[osgi-3.6.0.v20100517.jar:]
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)\[osgi-3.6.0.v20100517.jar:]
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)\[osgi-3.6.0.v20100517.jar:]
at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:29)\[17:org.apache.karaf.shell.osgi:2.1.4.fuse-00-09]
at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:49)\[17:org.apache.karaf.shell.osgi:2.1.4.fuse-00-09]
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)\[9:org.apache.karaf.shell.console:2.1.4.fuse-00-09]
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)\[9:org.apache.karaf.shell.console:2.1.4.fuse-00-09]
at org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)\[9:org.apache.karaf.shell.console:2.1.4.fuse-00-09]
at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)\[9:org.apache.karaf.shell.console:2.1.4.fuse-00-09]
at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)\[9:org.apache.karaf.shell.console:2.1.4.fuse-00-09]
at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)\[9:org.apache.karaf.shell.console:2.1.4.fuse-00-09]
at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)\[9:org.apache.karaf.shell.console:2.1.4.fuse-00-09]
at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)\[9:org.apache.karaf.shell.console:2.1.4.fuse-00-09]
at org.apache.karaf.shell.console.jline.Console.run(Console.java:170)\[9:org.apache.karaf.shell.console:2.1.4.fuse-00-09]
at java.lang.Thread.run(Thread.java:619)\[:1.6.0_07]
-
7. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
ffang Apr 3, 2011 2:25 AM (in response to socaltechdad)Hi,
org.osgi.framework.BundleException: The bundle "camel-osgi_4.3.1.fuse-01-09 224" could not be resolved. Reason: Missing Constraint: Import-Package: org.apahce.camel.component.cache; version="0.0.0"
at
This error indicate that there's no org.apahce.camel.component.cache package exported from your ESB container, you may need double check if you correctly install camel-cache feature before install/start your customer bundle.
You can use
packages:exports |grep org.apahce.camel.component.cache
to see if org.apahce.camel.component.cache is already exported.
Freeman
-
8. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
futuredan Apr 4, 2011 10:29 AM (in response to socaltechdad)Assuming you copied the error text correctly, you misspelled apache in your import statement.
You entered 'apahce'.
-
9. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
socaltechdad Apr 4, 2011 9:29 PM (in response to futuredan)Still working on this issue and definitely thank you for the response and the close eye. I did fat-finger "apache" earlier and since corrected. Still same issue:
Error executing command: The bundle "camel-osgi_4.3.1.fuse-01-09 " could not be resolved. Reason: Missing Constraint: Import-Package: org.apache.camel.component.cache; version="2.6.0"
-
10. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
ffang Apr 4, 2011 11:19 PM (in response to socaltechdad)Hi,
Could you post the output for
packages:exports |grep org.apache.camel.component.cache
and
osgi:headers camel-cache-bundle-id
?
Freeman
-
11. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
socaltechdad Apr 5, 2011 10:23 AM (in response to ffang)Thanks for the continued follow-up.
The packages:exports | grep org.apache.camel.cache command did not return anything. Both the ServiceMix ehcache bundle and the camel-cache bundle are installed and active.
\[ 235] \[Active ] \[ ] \[ ] \[ 60] Apache ServiceMix :: Bundles :: ehcache (2.3.0.1)
\[ 236] \[Active ] \[ ] \[ ] \[ 60] camel-cache (2.6.0.fuse-01-09)
osgi:headers for the camel-cache bundle returned the following:
Karaf-Info = Camel;camel-cache=2.6.0-fuse-01-09
Manifest-Version = 1.0
Archiver-Version = Plexus Archiver
Bnd-LastModified = 1301252218517
Tool = Bnd-0.0.357
Originally-Created-By = Apache Maven
Built-By = SoCalTechDad
Implementation-Version = 2.6.0-fuse-01-09
Build-Jdk = 1.6.0_07
Created-By = Apache Maven Bundle Plugin
Implementation-Title = Apache Camel
Eclipse-SourceBundle = org.apache.camel.camel-cache;version="2.6.0.fuse-01-09"
Bundle-Vendor = FuseSource Community
Bundle-Name = camel-cache
Bundle-DocURL = http://fusesource.com
Bundle-Description = Camel Cache support based on ehCache
Bundle-SymbolicName = org.apache.camel.camel-cache
Bundle-Version = 2.6.0.fuse-01-09
Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-ManifestVersion = 2
-
12. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
ffang Apr 5, 2011 9:12 PM (in response to socaltechdad)Hi,
Are you sure you post all of osgi:headers for the camel-cache bundle?
Seems there's no Import-Package and Export-Pacakge part, which is mostly I'm concerned about.
Freeman
-
13. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
socaltechdad Apr 5, 2011 9:34 PM (in response to ffang)Thanks for asking and yep . . . that was it. I ran the command again to make sure I did not make a cut and paste mistake. I did successfully paste into the previous response everything returned by the command.
Am curious if you are running 4.3.1-fuse-10-09 if you get the same result so we can isolate if the problem is me in some way or another or something with the release.
-
14. Re: Trouble with camel cache 2.6.0.fuse-01-09 under 4.3.1-fuse-01-09
ffang Apr 5, 2011 9:44 PM (in response to socaltechdad)Hi,
Yes, I'm using 4.3.1-fuse-01-09, and this is what I have for osgi:headers
karaf@root> osgi:headers 197
camel-cache (197)
-
Karaf-Info = Camel;camel-cache=2.6.0-fuse-01-09
Manifest-Version = 1.0
Bnd-LastModified = 1300630296841
Tool = Bnd-0.0.357
Built-By = hudson
Implementation-Version = 2.6.0-fuse-01-09
Build-Jdk = 1.6.0_22
Created-By = Apache Maven Bundle Plugin
Implementation-Title = Apache Camel
Bundle-Vendor = FuseSource Community
Bundle-Name = camel-cache
Bundle-DocURL = http://fusesource.com
Bundle-Description = Camel Cache support based on ehCache
Bundle-SymbolicName = org.apache.camel.camel-cache
Bundle-Version = 2.6.0.fuse-01-09
Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-ManifestVersion = 2
Ignore-Package =
org.apache.camel.component.cache
Import-Package =
javax.xml.transform,
javax.xml.transform.dom,
javax.xml.transform.stream,
net.sf.ehcache;version="[2.3,3)",
net.sf.ehcache.event;version="[2.3,3)",
net.sf.ehcache.store;version="[2.3,3)",
org.apache.camel;version="[2.6,2.7)",
org.apache.camel.converter;version="[2.6,2.7)",
org.apache.camel.converter.jaxp;version="[2.6,2.7)",
org.apache.camel.impl;version="[2.6,2.7)",
org.apache.camel.processor.cache;version="[2.6,3)",
org.apache.camel.util;version="[2.6,2.7)",
org.apache.commons.logging;version="[1.1,2)",
org.w3c.dom
Export-Package =
org.apache.camel.component.cache;
uses:="org.apache.camel.impl,
org.apache.camel.util,
org.apache.camel,
net.sf.ehcache.store,
org.apache.commons.logging,
net.sf.ehcache.event,
net.sf.ehcache",
org.apache.camel.processor.cache;
uses:="org.apache.camel.component.cache,
org.apache.commons.logging,
org.apache.camel,
net.sf.ehcache,
org.apache.camel.util,
org.apache.camel.converter,
javax.xml.transform.dom,
org.w3c.dom,
javax.xml.transform,
org.apache.camel.converter.jaxp,
javax.xml.transform.stream";
version=2.6.0.fuse-01-09
Freeman