You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Thiago Veronezi (JIRA)" <ji...@apache.org> on 2012/12/20 00:47:15 UTC

[jira] [Created] (TOMEE-671) TomEE does not implement jaxrs-2.0 specification item 2.3.2

Thiago Veronezi created TOMEE-671:
-------------------------------------

             Summary: 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


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