Ensure you already install camel-jetty feature using
Yes, that's what I did. camel-jetty is installed.
UPDATE: did an features:uninstall camel-jetty / features:install camel-jetty and at least the jetty component seems to be picked...something wrong with the cache?
Now I'm trying to figure out how to teach jetty BasicAuth against JAAS.
Edited by: uio100 on Jul 8, 2011 6:59 AM
How you deploy your bundle?
I can't reproduce it.
I just revise the camel-blueprint like
then build this example and then from console
The bundle is active and no exception there.
A features:uninstall camel-jetty and features:install camel-jetty did the trick. Could it be the cache came corrupted?
The deploy unit is the maven project "camel-blueprint" copied from the examples directory.
Now I try to go a step further and add security, but blueprint complains about a class not being found (which is exported by an OSGi bundle jetty security):
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.security.Constrai
I attach my blueprint.xml to give you a better idea of what I'm doing
Thanks for your help!
Add Import-Pacakage org.eclipse.jetty.security to your customer bundle, this should help.
I also noticed that in the blueprint.xml, you use other jetty class like
so you may also need Import those package accordingly, that said
thanks, now at least it seems to find the classes. The examples are wrong, though. Now I get a ComponentDefinitionException error setting property....
I'm trying to add the constraintMapping bean as a java.util.List element to the "constraintMapping" property of org.eclipse.jetty.security.ConstraintSecurityHandler
...the spring syntax doesn't work and blueprint tag reference is poor (what I found).
It's hard to find a working example on the web that works. I thought that securing an exposed http service with some authentication and/or SSL is a common desire...why has it be so hard?
If someone already has applied basic auth to the jetty endpoint using a) SMX 4.4 (fuse-00-27) and using the karaf loginModule (or some other...), please let me know.