glassfish
  1. glassfish
  2. GLASSFISH-20720

EAR deployment with multiple embedded WARs broken in 3.1.2.2 and 4.0

    Details

    • Type: Improvement Improvement
    • Status: In Progress
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1, 4.0_dev
    • Fix Version/s: None
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      RedHat Linux, Windows, Ubuntu Linux

      Description

      We are trying to upgrade to 3.1. Our application is packaged and deployed as an EAR file with multiple EJB and WARs embedded. Some of the WAR files have web services for deployment, and some do not. The 3.1 deployment mechanism is fundamentally broken in this case. It appears that the web service deployment piece ends up scanning all the wars in the EAR for metadata (annotations), and then trying to deploy the collected web services in every WAR in the EAR, not just the one that had the annotated web service classes.

      This appears to be the same symptoms as the following bug, but for web services instead.

      http://java.net/jira/browse/JAVASERVERFACES-1995

      I have attached a very simple test EAR file. Trying to deploy this will demonstrate the error. You will see error messages about duplicate web service deployments and class not found exceptions.

        Activity

        nabizamani created issue -
        Lukas Jungmann made changes -
        Field Original Value New Value
        Component/s jax-rs [ 10646 ]
        Component/s web_services [ 10623 ]
        Lukas Jungmann made changes -
        Assignee Lukas Jungmann [ jungicz ] Pavel Bucek [ pavel_bucek ]
        Pavel Bucek made changes -
        Assignee Pavel Bucek [ pavel_bucek ] Marek Potociar [ m_potociar ]
        Marek Potociar made changes -
        Assignee Marek Potociar [ m_potociar ] Jakub Podlesak [ japod ]
        TangYong made changes -
        Attachment TestApp.ear [ 52483 ]
        TangYong made changes -
        Assignee Jakub Podlesak [ japod ] Martin Grebac [ snajper ]
        Component/s web_services [ 10623 ]
        Component/s jax-rs [ 10646 ]
        TangYong made changes -
        Fix Version/s 4.0_b74 [ 16103 ]
        Component/s web_container [ 10622 ]
        TangYong made changes -
        Affects Version/s 4.0_b89_RC5 [ 16422 ]
        TangYong made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Assignee Martin Grebac [ snajper ] Shing Wai Chan [ swchan2 ]
        Priority Major [ 3 ] Minor [ 4 ]
        Component/s web_services [ 10623 ]
        Shing Wai Chan made changes -
        Assignee Shing Wai Chan [ swchan2 ] kchung [ kchung ]
        Joe Di Pol made changes -
        Affects Version/s 4.0_dev [ 17784 ]
        Arindam Bandyopadhyay made changes -
        Assignee kchung [ kchung ] diksha.nagpal [ diksha.nagpal ]
        diksha.nagpal made changes -
        Status Open [ 1 ] In Progress [ 3 ]

          People

          • Assignee:
            diksha.nagpal
            Reporter:
            nabizamani
          • Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated: