For your reference I am pasting the contents of jetty-spring.xml here * <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:http-conf="http://cxf.apache.org/transports/http/configuration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd ">
<bean id="loginService" class="org.eclipse.jetty.plus.jaas.JAASLoginService"> <property name="name" value="karaf" /> <property name="loginModuleName" value="karaf" /> <property name="roleClassNames"> <list> <value>org.apache.karaf.jaas.modules.RolePrincipal</value> </list> </property> </bean> <bean id="identityService" class="org.eclipse.jetty.security.DefaultIdentityService" /> <bean id="constraint" class="org.eclipse.jetty.http.security.Constraint"> <property name="name" value="BASIC" /> <property name="roles" value="admin" /> <property name="authenticate" value="true" /> </bean> <bean id="constraintMapping" class="org.eclipse.jetty.security.ConstraintMapping"> <property name="constraint" ref="constraint" /> <property name="pathSpec" value="/*" /> </bean> <bean id="securityHandler" class="org.eclipse.jetty.security.ConstraintSecurityHandler"> <property name="authenticator"> <bean class="org.eclipse.jetty.security.authentication.BasicAuthenticator" /> </property> <property name="constraintMappings"> <list> <ref bean="constraintMapping" /> </list> </property> <property name="loginService" ref="loginService" /> <property name="strict" value="false" /> <property name="identityService" ref="identityService" /> </bean> </beans> * The CXF config file is asfollows * <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/cxf" xmlns:http="http://cxf.apache.org/transports/http/configuration" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:http-conf="http://cxf.apache.org/transports/http/configuration" xsi:schemaLocation=" http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.4.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd "> <cxf:cxfEndpoint id="MESEndpoint" address="jetty:https://server:8181/mes/bw/TESTINGJAAS?handlers=securityHandler&matchOnUriPrefix=true" serviceClass="company.pi.mes.id56.copperrecovery.SIID56CopperRecoveryAsyncOut" wsdlURL="wsdl/SI_ID56_CopperRecovery_async_outService.wsdl" serviceName="p1:SI_ID56_CopperRecovery_async_outService" endpointName="p1:HTTPS_Port" xmlns:p1="urn:company:pi:mes:id56:CopperRecovery" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" /> <bean id="jetty" class="org.apache.camel.component.jetty.JettyHttpComponent"> <property name="sslSocketConnectorProperties"> <map> <entry key="password" value="password" /> <entry key="keyPassword" value="password" /> <entry key="keystore" value="certs/keystore.jks" /> <entry key="truststore" value="certs/keystore.jks" /> <entry key="trustPassword" value="password" /> <entry key="needClientAuth" value="password" /> </map> </property> </bean> * -- View this message in context: http://camel.465427.n5.nabble.com/JAAS-auth-Jetty-Exception-tp5738065p5738120.html Sent from the Camel - Users mailing list archive at Nabble.com.