Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8528

application-name value in application.xml is not taken into account while generating application name for a deployment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.0.0.CR1
    • 6.0.0.M5
    • Deployers
    • None
    • Hide

      Create a WAR and a SAR/EAR and give them the same name, e.g.

      • MyApp.sar
      • MyApp.war
      Show
      Create a WAR and a SAR/EAR and give them the same name, e.g. MyApp.sar MyApp.war

    Description

      Can be seen with M5, also with Snapshot as of 2010-10-10.
      This might have the same root cause as JBAS-6335, but JBAS-6335 is reported to be fixed, whereas this issue definitely exists.

      If you have 2 or more files in the deploy folder, which have the same name with different suffixes, the deployer will run into the following error (full log will get attached):
      [AbstractKernelController] Error installing to Real: name=vfs:///mnt/san/develop/nbr/XXX/jboss/xxx/deploy/MyApp.war state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.naming:application=MyApp
      Caused by: java.lang.IllegalStateException: jboss.naming:application=MyApp is already installed.

      e.g. if you have an WAR and a SAR which have the same name:

      • MyApp.sar
      • MyApp.war
        or the same with war and probably any other combination of it:
      • MyApp.ear
      • MyApp.sar

      Workaround is to rename one of the files, which leads to successful deployment.

      Attachments

        Issue Links

          Activity

            People

              jaikiran Jaikiran Pai (Inactive)
              r.neubauer@seeburger.de Rico Neubauer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: