You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2010/12/07 21:37:09 UTC

[jira] Commented: (CAMEL-3401) camel-jetty component does not work when authentication is enable

    [ https://issues.apache.org/jira/browse/CAMEL-3401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12968959#action_12968959 ] 

Willem Jiang commented on CAMEL-3401:
-------------------------------------

@Charles
How did you setup the security handler to make the LDAP works for the webpage?
Camel manages the connector and handlers itself In the camel-jetty component, so you may need to some way to make sure the security handler is configured rightly. 

> camel-jetty component does not work when authentication is enable
> -----------------------------------------------------------------
>
>                 Key: CAMEL-3401
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3401
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.5.0
>         Environment: Apache Karaf 2.1-SNAPSHOT
>            Reporter: Charles Moulliard
>
> I try to use camel-jetty in a camel route usign LDAP authentication. The authentication mechanisms of Jetty works fine as I'm able to authenticate a LDAP user from the web page but the camel route is not called.
> Here is the camel route
> {code}
>     <camelContext trace="true" xmlns="http://camel.apache.org/schema/spring">
>         <route>
>             <from uri="jetty:http://localhost:8080/services?handlers=securityHandler&amp;matchOnUriPrefix=true"/>
>             <onException>
>                 <exception>java.lang.Exception</exception>
>                 <!-- we can set the redelivery policy here as well -->
>                 <redeliveryPolicy maximumRedeliveries="1"/>
>                 <handled>
>                     <constant>true</constant>
>                 </handled>
>                 <transform>
>                     <simple>Due to something went wrong</simple>
>                 </transform>
>                 <setHeader headerName="Exchange.HTTP_RESPONSE_CODE">
>                     <simple>500</simple>
>                 </setHeader>
>             </onException>
>             <bean ref="responseBean"/>
>         </route>
>     </camelContext>
> {code}
> REMARK : the camel route works fine when authentication is disabled
> and the error
> {code}
> 14:56:31,587 | WARN  | 0-98 - /services | log                              | .eclipse.jetty.util.log.Slf4jLog   40 | 61 - org.eclipse.jetty.util - 7.1.6.v20100715 | /services: java.lang.NullPointerException
> 14:56:31,587 | DEBUG | 0-98 - /services | log                              | .eclipse.jetty.util.log.Slf4jLog   80 | 61 - org.eclipse.jetty.util - 7.1.6.v20100715 | EXCEPTION 
> java.lang.NullPointerException
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:489)[68:org.eclipse.jetty.security:7.1.6.v20100715]
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)[67:org.eclipse.jetty.server:7.1.6.v20100715]
> 	at org.eclipse.jetty.server.Server.handle(Server.java:347)[67:org.eclipse.jetty.server:7.1.6.v20100715]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.