[ https://issues.apache.org/jira/browse/OLINGO-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896395#comment-13896395 ]
Sergey Beryozkin commented on OLINGO-153: ----------------------------------------- Eugenio, you tested with 2.7.9-SNAPSHOT and did confirm it was working. FYI, CXF 2.7.10 is out too; Can you double check ? I don't exclude that there might be a path there where 2.0 API is needed, may be on the exception path. Note JAX-RS 2.0 requires that the runtime, when throwing the exception, should throw the most specific exception, example, if it is 500, it should throw "new InternalServertErrorException" as opposed to " new WebApplicationException(500)". This might be it. I can try and wrap the fault handling logic to catch exceptions like NoClassDefFound and rethrow it as WebApplicationException; if you can paste the trace then it would help, and please try the latest CXF 2.7.10 Thanks, Sergey > Dependency on javax.ws.rs 2.0 is back > ------------------------------------- > > Key: OLINGO-153 > URL: https://issues.apache.org/jira/browse/OLINGO-153 > Project: Olingo > Issue Type: Bug > Components: odata2-core > Reporter: Eugenio Lentini > Assignee: Michael Bolz > Priority: Critical > > Hi, > I have set in the past the dependency on jsr311 version 1.0 but running jetty > server I get a class not found exception due to > java.lang.ClassNotFoundException: javax.ws.rs.InternalServerErrorException > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at > org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421) > at > org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383) > at > org.apache.cxf.jaxrs.utils.ResourceUtils.createApplication(ResourceUtils.java:730) > at > org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.createServerFromApplication(CXFNonSpringJaxrsServlet.java:435) > at > org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.init(CXFNonSpringJaxrsServlet.java:93) > The issue is in a CXF class and according to the spec > https://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/javax/ws/rs/InternalServerErrorException.html > that class has been added since version 2.0 of jax rs. > Should I report the issue even on CXF bug track? > Thanks a lot for the attention. > Eugenio -- This message was sent by Atlassian JIRA (v6.1.5#6160)