[ 
https://issues.apache.org/jira/browse/TOMEE-671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Zowalla resolved TOMEE-671.
-----------------------------------
    Resolution: Auto Closed

> TomEE does not implement jaxrs-2.0 specification item 2.3.2 
> ------------------------------------------------------------
>
>                 Key: TOMEE-671
>                 URL: https://issues.apache.org/jira/browse/TOMEE-671
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.5.1, 1.5.2
>            Reporter: Thiago Veronezi
>            Priority: Major
>              Labels: features
>
> 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)) {
>                 return true;
>             }
>         }
>         for (String prefix : FORCED_LOAD) {
>             if (name.startsWith(prefix)) {
>                 return false;
>             }
>         }
>         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;



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to