cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piyush Muthal (JIRA)" <>
Subject [jira] [Commented] (CXF-5981) AbstractTransportFactory does not have register method in CXF 3.0
Date Wed, 03 Sep 2014 11:11:51 GMT


Piyush Muthal commented on CXF-5981:

Hi Sergey, 

Thanks for your reply . 

This issue occurs when I try to hit an URI such as with path "/ABC". The flow tends to  execute
ServletController.invoke() method. But because of the scenario explained in my previous comment
, the DestinationRegistry instance contains empty destinations, as there is no register method
in AbstractTransportFactory. It should contain the destination at least for default slash("/")
path which should be ServletDestination instance in destinations map of DestinationRegistryImpl
instance. Because of which server logs showing me the error as follows 

WARN  o.a.c.t.servlet.ServletController - Can't find the the request for https://localhost:8443/testApp/ABC

Please revert in case of any further issues.

Thanks & regards,
Piyush Prakash Muthal

> AbstractTransportFactory does not have register method in CXF 3.0
> -----------------------------------------------------------------
>                 Key: CXF-5981
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Bus, Core, JAX-RS, Resources
>    Affects Versions: 3.0.1
>         Environment: Tomcat 7.0 , 
>            Reporter: Piyush Muthal
>             Fix For: NeedMoreInfo
> Hi Team,
> As you know the register() method is removed from the AbstractTransportFactory in CXF
3.0. I found a problem , when CXF tries to create HTTPTransportFactory with default name space
then it does not register the DestinationFactory in DestinationFactoryManager. So in CXFNonSpringServlet
when  DestinationFactory df = dfm             .getDestinationFactory("")
is executed then it returns HttpTransportFactory with empty registry. The same registry is
used by the servlet controller creation. Hence When I hit any URI then I get o/p as "Can't
find the the request for"                                 + request.getRequestURL() + "'s
Observer. Please suggest me the solution or give me appropriate reply for the same.

This message was sent by Atlassian JIRA

View raw message