jaxrs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

jaxrs

Me Self
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*));

  }
}
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: jaxrs

Romain Manni-Bucau
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 <[hidden email]>:

> 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*));
>
>   }
> }
>
Loading...