cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andriy Redko (JIRA)" <>
Subject [jira] [Commented] (CXF-6132) Provide JAX-RS ServletContextInitializer
Date Sun, 25 Jan 2015 23:14:34 GMT


Andriy Redko commented on CXF-6132:

Hi Sergey,

Sure, there are two issues. One is related to CXFNonSpringJaxrsServlet::isIgnoreApplicationPath,
which basically ignores the @ApplicationPath if it is not said explicitly (init parameter).
I think, the logic should be inverted here:
return ignoreParam != null && MessageUtils.isTrue(ignoreParam)

Second issue is a bit more tricky and related to the CXFNonSpringJaxrsServlet::ApplicationImpl
class (I know, it is private, should be fine) which you have introduced. I run into this issues
while prototyping with Tomcat 8.0.17. For some reasons, container (Tomcat) classpath scanner
detects it and sends it over to  ServletContextInitializer instance, along with other detected
applications. The simplest solution I came up with is to ignore the application classes defined
internally by Apache CXF. 

What do you think about new module? I would like to make initial commit and hear your feedback.
The work we have done with respect to auto-discovery feature turned out to be very handy here.
In general, we are able to detect resources and providers by scanning classpath, without application
instance provided.

Thank you!

Best Regards,
    Andriy Redko

> Provide JAX-RS ServletContextInitializer 
> -----------------------------------------
>                 Key: CXF-6132
>                 URL:
>             Project: CXF
>          Issue Type: New Feature
>          Components: JAX-RS
>            Reporter: Sergey Beryozkin
>            Assignee: Andriy Redko
>             Fix For: 3.0.4, 3.1.0
> This will offer an advanced support for the auto-discovery of JAX-RS Application, root
resources and providers in OSGI in combination with pax-web-jetty.
> Options:
> - dynamically register the implementation as OSGI service
> - ship a static implementation
> [1]
> [2]

This message was sent by Atlassian JIRA

View raw message