glassfish
  1. glassfish
  2. GLASSFISH-20907

Admin Console stops working when an application bundled with jersey-1.x.jar and classloader set to delegate false

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0_b89_RC5
    • Fix Version/s: future release
    • Component/s: admin_gui, classloader
    • Labels:
      None

      Description

      A web application bundled with its own Jersey implementation (which is 1.x) crashes admin console after server restart. The application has glassfish-web.xml config file for classloading settings (delegate=false).

      Exception is :
      java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;

      Looking at the verbose classloading output (-verbose:classes), admin console application grab Jersey 1.x classes from deployed application in applications folder. Manually deleting jersey 1.x jar from application's folder solves the exception and admin console starts. But is it not possible to deploy a Jersey 1.x application to Glassfish4?

        Activity

        Hide
        Anissa Lam added a comment -

        Assign to Sahoo for initial evaluation regarding class loading. Not sure console can do much on this.

        Show
        Anissa Lam added a comment - Assign to Sahoo for initial evaluation regarding class loading. Not sure console can do much on this.

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            iesen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: