Hi!

To be able to expose different root resources for different paths I have
defined my REST servlet (com.ibm.websphere.jaxrs.server.IBMRestServlet,
running WLP 8.5.5.9 which to my understanding uses CXF) multiple times with
different servlet-mappings.

I tried to specify the same jaxax.ws.rs.Application class for both servlet
mappings (it works out internally what root resources to expose) using an
init-parameter:

        <init-param>
            <param-name>javax.ws.rs.Application</param-name>
            <param-value><FQCN></param-value>
        </init-param>

I tried to define my REST servlet two times using different mappings but
with the same init-parameter for the Application class.

When I do this I get the following FFDC log when calling resources on one
of the mappings but not the other.

com.ibm.ws.webcontainer.webapp.WebAppErrorReport:
javax.servlet.UnavailableException: SRVE0200E: Servlet
[com.ibm.websphere.jaxrs.server.IBMRestServlet]: Could not find required
class - com.ibm.websphere.jaxrs.server.IBMRestServlet

When using two different Application subclasses I do not get this error.

Questions:

- Is this something IBM or CXF related?
- Is it suppose to work with the same Application subclass for multiple
defined REST servlets? Workarounds if not?

Regards
Lars-Fredrik

-- 
Med vänlig hälsning / Best regards

Lars-Fredrik Smedberg

STATEMENT OF CONFIDENTIALITY:
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
address(es) and may contain confidential or privileged information. If
you are not the intended recipient, please notify Lars-Fredrik Smedberg
immediately at [email protected], and destroy all copies of this
message and any attachments.

Reply via email to