-
1. Re: Camel and https
janstey Feb 10, 2009 3:00 PM (in response to brett_brettl)Not sure why the system properties are not working. What you have looks fine to me. Maybe try something like this?
<bean id="jetty" class="org.apache.camel.component.jetty.JettyHttpComponent"> <property name="sslPassword" value="password1"></property> <property name="sslKeyPassword" value="password2"></property> <property name="keystore" value="/home/brett/workspace/Camel-https/keystore"></property> </bean> <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="jetty:https://localhost:8443/security"></from> ... </route> </camelContext>
-
2. Re: Camel and https
brett_brettl Feb 11, 2009 9:19 AM (in response to janstey)I tired your solution but I got the following error:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 149 in XML document from file /home/brett/workspace/Camel-https/target/classes/META-INF/spring/camel-server.xml is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'camelContext'.
I went back and found that in your solution you listed the namespace for camelContext as http://camel.apache.org/schema/spring. I have seen other examples where the namespace is http://activemq.apache.org/camel/schema/spring. When I tried my camelContex like this:
along with your suggested Jetty configuration everything worked fine. Thank you very much.
-
3. Re: Camel and https
janstey Feb 11, 2009 9:26 AM (in response to brett_brettl)Oh, my bad. I was working from the trunk at Apache, in which the namespace changed recently.
Glad you got it working and thanks for posting the solution.
Cheers,
Jon