tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Me Self <wmso...@gmail.com>
Subject jaxrs
Date Tue, 20 Jun 2017 13:16:49 GMT
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