-
1. Re: camel blueprint route jetty endpoint not found
ffang Jul 7, 2011 8:08 PM (in response to uio100)Hi,
Ensure you already install camel-jetty feature using
features:install camel-jetty
Freeman
-
2. Re: camel blueprint route jetty endpoint not found
uio100 Jul 8, 2011 1:00 AM (in response to ffang)Good morning!
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.
Kind regards
Michael
Edited by: uio100 on Jul 8, 2011 6:59 AM
-
3. Re: camel blueprint route jetty endpoint not found
ffang Jul 8, 2011 12:48 AM (in response to uio100)Hi,
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
features:install camel-jetty
features:install examples-camel-blueprint
The bundle is active and no exception there.
Freeman
-
4. Re: camel blueprint route jetty endpoint not found
uio100 Jul 8, 2011 1:39 AM (in response to ffang)Hi!
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
ntSecurityHandler not found by camel-blueprint
I attach my blueprint.xml to give you a better idea of what I'm doing
Thanks for your help!
Kind regards
Michael
-
blueprint.xml 2.5 KB
-
pom.xml 2.5 KB
-
-
5. Re: camel blueprint route jetty endpoint not found
ffang Jul 8, 2011 1:54 AM (in response to uio100)Hi,
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
org.eclipse.jetty.plus.jaas.JAASLoginService
org.eclipse.jetty.http.security.Constraint
org.eclipse.jetty.security.ConstraintMapping
org.eclipse.jetty.security.authentication.BasicAuthenticator
so you may also need Import those package accordingly, that said
Add Import-Package
org.eclipse.jetty.security,
org.eclipse.jetty.plus.jaas,
org.eclipse.jetty.http.security,
org.eclipse.jetty.security,
org.eclipse.jetty.security.authentication
Freeman
-
6. Re: camel blueprint route jetty endpoint not found
uio100 Jul 8, 2011 2:24 AM (in response to ffang)Hi Freeman,
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.
kind regards
Michael