Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Auto Closed
-
1.5.1, 1.5.2
-
None
-
None
Description
TomEE does not publish applications via the servlet trick proposed by the jaxrs-2.0 specification
Item 2.3.2:
<servlet>
<servlet-name>javax.ws.rs.core.Application</servlet-name>
</servlet>
<servlet-mapping>
<servlet-name>javax.ws.rs.core.Application</servlet-name>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>
It throws a null pointer exception at the line 180 of the org.apache.openejb.util.classloader.URLClassLoaderFirst class.
// making all these call inline if far more costly than factorizing packages
public static boolean shouldSkip(final String name) {
for (String prefix : FORCED_SKIP) {
if (name.startsWith(prefix))
}
for (String prefix : FORCED_LOAD) {
if (name.startsWith(prefix))
}
if (name.startsWith("java.")) return true; //HERE -> name is NULL
if (name.startsWith("javax.faces.")) return false;
if (name.startsWith("javax.")) return true;
if (name.startsWith("sun.")) return true;