Re: Configuring cxfEndpoint to make secure (HTTPS) : need help
=5 maxThreads=15 / httpj:connector beans:bean class=org.mortbay.jetty.bio.SocketConnector beans:property name=port value=9001 / /beans:bean /httpj:connector httpj:handlers beans:bean class=org.mortbay.jetty.handler.DefaultHandler / /httpj:handlers httpj:sessionSupporttrue/httpj:sessionSupport /httpj:engine /httpj:engine-factory /beans / -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-cxfEndpoint-to-make-secure-HTTPS-need-help-tp4879695p4884446.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Willem -- FuseSource Web: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang
Re: Configuring cxfEndpoint to make secure (HTTPS) : need help
httpj:handlers beans:bean class=org.mortbay.jetty.handler.DefaultHandler / /httpj:handlers httpj:sessionSupporttrue/httpj:sessionSupport /httpj:engine /httpj:engine-factory /beans / -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-cxfEndpoint-to-make-secure-HTTPS-need-help-tp4879695p4884446.html Sent from the Camel - Users mailing list archive at Nabble.com.
Configuring cxfEndpoint to make secure (HTTPS) : need help
Hi every one, Am using cxfEndpoint to expose my services as web services, now I would like make this as secure by marking those HTTPS. the following is my spring context file, cxf:cxfEndpoint id=httpEndpoint address=https://0.0.0.0:9001/MyService; serviceClass=com.mycompany.WebServiceInerface endpointName=httpttrans:httptransferServiceEndpoint serviceName=httpttrans:httptransferService xmlns:httpttrans=https://httptransfer.mycompany.com/; /cxf:cxfEndpoint httpj:engine-factory bus=cxf httpj:identifiedTLSServerParameters id=secure httpj:tlsServerParameters sec:keyManagers keyPassword=password sec:keyStore type=JKS password=password file=server.jks / /sec:keyManagers sec:trustManagers sec:keyStore type=JKS password=password file=truststore.jks / /sec:trustManagers /httpj:tlsServerParameters /httpj:identifiedTLSServerParameters httpj:engine port=0 httpj:tlsServerParametersRef id=secure / httpj:threadingParameters minThreads=5 maxThreads=10 / httpj:connector beans:bean class=org.mortbay.jetty.bio.SocketConnector beans:property name=port value=9001 / /beans:bean /httpj:connector httpj:handlers beans:bean class=org.mortbay.jetty.handler.DefaultHandler / /httpj:handlers httpj:sessionSupporttrue/httpj:sessionSupport /httpj:engine /httpj:engine-factory When trying to run as server to publish my serivices, the following error is observed. Protocol mismatch for port 9001: engine's protocol is http, the url protocol is https Please guide me to resolve this issue ASAP. Regards, Chavva. -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-cxfEndpoint-to-make-secure-HTTPS-need-help-tp4879695p4879695.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Configuring cxfEndpoint to make secure (HTTPS) : need help
Looking here[1] in a CXF example its httpj:engine port value is 9001, while you have yours set to 0 (see arrows below). Could that be the problem? Glen [1] http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first_https/src/main/java/demo/hw_https/server/CherryServer.xml?revision=1173027view=markup On 10/07/2011 07:02 AM, amarnath.chavva wrote: Hi every one, Am using cxfEndpoint to expose my services as web services, now I would like make this as secure by marking those HTTPS. the following is my spring context file, cxf:cxfEndpoint id=httpEndpoint address=https://0.0.0.0:9001/MyService; serviceClass=com.mycompany.WebServiceInerface endpointName=httpttrans:httptransferServiceEndpoint serviceName=httpttrans:httptransferService xmlns:httpttrans=https://httptransfer.mycompany.com/; /cxf:cxfEndpoint httpj:engine-factory bus=cxf httpj:identifiedTLSServerParameters id=secure httpj:tlsServerParameters sec:keyManagers keyPassword=password sec:keyStore type=JKS password=password file=server.jks / /sec:keyManagers sec:trustManagers sec:keyStore type=JKS password=password file=truststore.jks / /sec:trustManagers /httpj:tlsServerParameters /httpj:identifiedTLSServerParameters httpj:engine port=0- httpj:tlsServerParametersRef id=secure / httpj:threadingParameters minThreads=5 maxThreads=10 / httpj:connector beans:bean class=org.mortbay.jetty.bio.SocketConnector beans:property name=port value=9001 / /beans:bean /httpj:connector httpj:handlers beans:bean class=org.mortbay.jetty.handler.DefaultHandler / /httpj:handlers httpj:sessionSupporttrue/httpj:sessionSupport /httpj:engine /httpj:engine-factory When trying to run as server to publish my serivices, the following error is observed. Protocol mismatch for port 9001: engine's protocol is http, the url protocol is https Please guide me to resolve this issue ASAP. Regards, Chavva. -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-cxfEndpoint-to-make-secure-HTTPS-need-help-tp4879695p4879695.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Glen Mazza Talend - http://www.talend.com/apache Blog - http://www.jroller.com/gmazza Twitter - glenmazza
Re: Configuring cxfEndpoint to make secure (HTTPS) : need help
I have tried with 9001 also.. there was no luck. Zero i got it from http://cxf.apache.org/docs/jetty-configuration.html Jetty Configurations under the The engine element as /You can specify a value of 0 for the port attribute. Any threading properties specified in an httpj:engine element with its port attribute set to 0 are used as the configuration for all Jetty listeners that are not explicitly configured/ Regards. -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-cxfEndpoint-to-make-secure-HTTPS-need-help-tp4879695p4879788.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Configuring cxfEndpoint to make secure (HTTPS) : need help
Which version of Camel are you using? I can see you are still using Jetty6 from the configuration. Can you change the engine port to 9001 and try it again? On 10/7/11 7:02 PM, amarnath.chavva wrote: Hi every one, Am using cxfEndpoint to expose my services as web services, now I would like make this as secure by marking those HTTPS. the following is my spring context file, cxf:cxfEndpoint id=httpEndpoint address=https://0.0.0.0:9001/MyService; serviceClass=com.mycompany.WebServiceInerface endpointName=httpttrans:httptransferServiceEndpoint serviceName=httpttrans:httptransferService xmlns:httpttrans=https://httptransfer.mycompany.com/; /cxf:cxfEndpoint httpj:engine-factory bus=cxf httpj:identifiedTLSServerParameters id=secure httpj:tlsServerParameters sec:keyManagers keyPassword=password sec:keyStore type=JKS password=password file=server.jks / /sec:keyManagers sec:trustManagers sec:keyStore type=JKS password=password file=truststore.jks / /sec:trustManagers /httpj:tlsServerParameters /httpj:identifiedTLSServerParameters httpj:engine port=0 httpj:tlsServerParametersRef id=secure / httpj:threadingParameters minThreads=5 maxThreads=10 / httpj:connector beans:bean class=org.mortbay.jetty.bio.SocketConnector beans:property name=port value=9001 / /beans:bean /httpj:connector httpj:handlers beans:bean class=org.mortbay.jetty.handler.DefaultHandler / /httpj:handlers httpj:sessionSupporttrue/httpj:sessionSupport /httpj:engine /httpj:engine-factory When trying to run as server to publish my serivices, the following error is observed. Protocol mismatch for port 9001: engine's protocol is http, the url protocol is https Please guide me to resolve this issue ASAP. Regards, Chavva. -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-cxfEndpoint-to-make-secure-HTTPS-need-help-tp4879695p4879695.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Willem -- FuseSource Web: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang