Hello,

tomee doesn't have a servlet you can configure in web.xml to get JAXRS
support. In short we use a filter (to not limit the user and support some
conflicting url matching) but it needs some constructor params so you can
rely on it in web.xml.

Now back to the actual issue: in term of deployment tomee should still
deploy the server with cxf. Now I suspect jersey does it *as well*, ie
deployment is done twice. You can switch cxf off adding disabled=true in
conf/cxf-rs.properties or you can just remove the part of jersey which is
not needed (don't use the bundle ;)) aka jersey-servlet.



Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-08-14 10:55 GMT+02:00 WhiTeY <[email protected]>:

> Dear all,
>
> I have a small problem whose solution I could not figure out by myself
> until
> now.
>
> The problem is that i have a web app with jersey in its dependency tree. I
> need jersey in third party libs but i want to use the default
> implementation
> of TomEE for my REST services. Once the jersey libs are in my dependency
> tree, the class loader hits it first instead of the TomEE implementation
> for
> REST.
>
> Thats not realy a big problem since I know that I'm able to define which
> servlet should be used for my services in the web.xml. And now my question:
> Which servlet should I use to get the full support of the container
> including CDI and so on?
>
> I tryed CXFServlet and CXFNonSpringServlet (from org.apache). Both seems
> not
> to work if I want to use CDI.
>
> Could anyone give me a hint?
>
> P.S.: I'm everytime happy if someone help me to get better in english. So
> don't hesitate to correct me ;)
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/TomEE-Plus-default-REST-servlet-tp4679724.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to