Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2725

Class-Path: . can cause JBAS011046: A component named 'TestBean' is already defined in this module

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.Final
    • 8.0.0.CR1
    • Server
    • None

    Description

      'JBAS011046: A component named
      'TestBean' is already defined in this module', I have narrowed it
      down to it occurs if they have a jar manifest with Class-Path: .
      It looks like when deploying it looks at the jar with the manifest
      entry which then must be having it scan the jar containing the EJB
      again and failing.

      Having the Class-Path: . doesn't really make sense to me, however it
      also seems like we should not be trying to deploy it twice.

      It appears ManifestClassPathProcessor ignores the . when the Class-Path is in a jar at the root of an ear but not when the jar is in a war's WEB-INF/lib

      server/src/main/java/org/jboss/as/server/deployment/module/ManifestClassPathProcessor.java

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            rhn-support-bmaxwell Brad Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: