tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: jaxrs
Date Tue, 20 Jun 2017 13:56:24 GMT
Hi

how do you deploy - anything related to context path configuration?

Did you try on 7.0.3?



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

2017-06-20 15:16 GMT+02:00 Me Self <wmsopou@gmail.com>:

> Hi All
>
> When trying to access a jax-rs service in TomEE 1.7.4 plus I get the error
> below? The same services works in weblogic.
>
> java.lang.NullPointerException
>
>         org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(
> CxfRsHttpListener.java:227)
>
>         org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(
> CXFJAXRSFilter.java:94)
>         org.apache.tomcat.websocket.server.WsFilter.doFilter(
> WsFilter.java:52)
>
> It has been setup using :
>
> @ApplicationPath("/api")
>
> *public* *class* MyApplication *extends* Application {
>
>
>
>   *public* Set<Class<?>> getClasses() {
>
>     *return* *new* HashSet<Class<?>>(Arrays.*asList*(MyResource.*class*));
>
>   }
> }
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message