This seems similar to https://issues.jboss.org/browse/ENTESB-2619 

Also for brevity, below are the two handler beans:

        <bean id="constraint" 
class="org.eclipse.jetty.util.security.Constraint">
           <property name="name" value="BASIC"/>
           <property name="roles" value="admin,user"/>
           <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="loginService">
              <bean class="org.eclipse.jetty.security.HashLoginService"/>
           </property>
           <property name="authenticator">
              <bean
class="org.eclipse.jetty.security.authentication.BasicAuthenticator"/>
           </property>
           <property name="constraintMappings">
              <list>
                 <ref bean="constraintMapping"/>
              </list>
           </property>
        </bean>
        
        <bean id="jettyRequestLog"
class="org.eclipse.jetty.server.handler.RequestLogHandler">
                <property name="requestLog">
                        <bean class="org.eclipse.jetty.server.NCSARequestLog">
                                <property name="extended" value="true"/>
                                <property name="append" value="true"/>
                        </bean>
                </property>
        </bean>
        



--
View this message in context: 
http://camel.465427.n5.nabble.com/Rest-DSL-Jetty-multiple-handlers-causes-java-lang-StackOverflowError-tp5772952p5772972.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to