[ 
https://issues.apache.org/jira/browse/CXF-6481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612314#comment-14612314
 ] 

Justin Reock commented on CXF-6481:
-----------------------------------

As requested by Sergey, I've attached a test which will demonstrate this issue. 
 The test runs against Karaf 3.0.3, Camel 2.15.2, and CXF 3.0.4.  I ran this 
inside of the latest ServiceMix 6.0.0.M2 which contains those libraries.

Build the cxf-httpj-test.zip program with Maven, and deploy the resulting .jar 
file into Servicemix.  Then deploy the camel-context.xml blueprint as well.

If you hit http://localhost:8888/testSession or 
http://localhost:8888/testSession/rest, you will receive the output:

<ns1:XMLFault 
xmlns:ns1="http://cxf.apache.org/bindings/xformat";><ns1:faultstring 
xmlns:ns1="http://cxf.apache.org/bindings/xformat";>java.lang.IllegalStateException:
 No SessionManager</ns1:faultstring></ns1:XMLFault>

And you will get the same exception in your log.

If you alter the camel-context jaxrs entry to use a relative address instead of 
a URL, like:

    <jaxrs:server id="restServices"
                  address="/testSession">
        <jaxrs:inInterceptors>
            <bean class="testhttpj.cxf.TestInterceptor"/>
        </jaxrs:inInterceptors>
        <jaxrs:serviceBeans>
            <bean class="testhttpj.cxf.RestfulService"/>
         </jaxrs:serviceBeans>
    </jaxrs:server>

The session is returned properly.

> Jetty HTTPJ session manager configuration is not effective
> ----------------------------------------------------------
>
>                 Key: CXF-6481
>                 URL: https://issues.apache.org/jira/browse/CXF-6481
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>            Reporter: Sergey Beryozkin
>             Fix For: 3.1.2
>
>         Attachments: camel-context.xml, cxf-httpj-test.zip
>
>
> It appears a session manager is not available if activated from the httpj 
> configuration starting from Jetty 8



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to