Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start camel-csv-to-xml using Karaf #49

Open
alartin opened this issue Jul 3, 2012 · 8 comments
Open

Failed to start camel-csv-to-xml using Karaf #49

alartin opened this issue Jul 3, 2012 · 8 comments

Comments

@alartin
Copy link

alartin commented Jul 3, 2012

Hi all,
I tried to start Smooks 1.5.1's camel-csv-to-xml using Karaf 2.2.5 but failed. I strictly follow the readme file and make sure that I've install smooks in Karaf. The error is:

karaf@root> Exception in thread "SpringOsgiExtenderThread-22" org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route17 at: >>> To[smooks://smooks-config.xml] <<< in route: Route[[From[xxxxx... because of Failed to resolve endpoint: smooks://smooks-config.xml due to: No component found with scheme: smooks
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1196)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:122)
at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)

You can see I've setup smooks osgi:

[ 89] [Installed ] [ ] [ ] [ 60] Smooks OSGi (1.5.1)

and features list shows:

[installed ] [1.5.1 ] smooks milyn-1.5.1

Why Karaf complains that it cannot find smooks component?
BTW, I've tried mvn exec:java and it worked well but only failed in Karaf

@anpieber
Copy link
Contributor

anpieber commented Jul 3, 2012

hey,

well, the problem is that your smooks package is in state installed instead of Active (which would have been the required state). Can you pls try to enter the following into your karaf console:

start 89

please mind that 89 is the bundle ID here. It could be that it had been changed since you've done this post --> make sure that it is still the same or use the new one.

This should either start the bundle and solve your problems or give you a detailed error message on the console and/or the log which should state what you're missing.

Hope this helps and kind regards,
Andreas

@alartin
Copy link
Author

alartin commented Jul 4, 2012

Sorry, it is already active and error is same as before:

[ 96] [Active ] [ ] [ ] [ 80] Smooks OSGi (1.5.1)
[ 98] [Active ] [ ] [Failed ] [ 80] Milyn Smooks Example - Smooks Camel CVS to XML (1.5.1)

@anpieber
Copy link
Contributor

anpieber commented Jul 4, 2012

looks like something is going wrong in the setup; can you please provide the most minimal sample creating this error?

@alartin
Copy link
Author

alartin commented Jul 4, 2012

Yup:

  1. Download smooks-1.5.1 and go to the camel-csv-to-xml dir and run mvn clean install and mvn exec:java, it run sucessfully and generate milyn-smooks-example-camel-csv-to-xml-1.5.1.jar
  2. Install smooks in Karaf using features:install and make Smooks OSGi bundle active
  3. Copy milyn-smooks-example-camel-csv-to-xml-1.5.1.jar to karaf/deploy dir
  4. osgi:list shows its deployment failed and found the above error info using log:display

@alartin
Copy link
Author

alartin commented Jul 9, 2012

Can somebody help? Already tried karaf 2.2.8 and Camel 2.10.0, but got same error.

@alartin alartin closed this as completed Jul 9, 2012
@alartin alartin reopened this Jul 9, 2012
@jcordes73
Copy link
Contributor

I have retested this with Smooks 1.6-SNAPSHOT and JBoss Fuse 6.0.0 and I can't reproduce the problem.

@jcordes73
Copy link
Contributor

@alartin Can you do a retest with Smook 1.6, please?

@SoucianceEqdamRashti
Copy link

I get the same problem with Karaf.4.0.2 and smooks 1.7.0. Bundle is installed state and when you try to start it it says missing component smooks. I should say the same dependency works when running it from Intellij.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants