Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-671

TomEE does not implement jaxrs-2.0 specification item 2.3.2

    XMLWordPrintableJSON

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))

      { 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;

      Attachments

        Activity

          People

            Unassigned Unassigned
            tveronezi Thiago Veronezi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: