[ 
https://issues.apache.org/jira/browse/TOMEE-671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564240#comment-13564240
 ] 

Romain Manni-Bucau commented on TOMEE-671:
------------------------------------------

@Thiago: is it still the case?
                
> 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
>              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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to