[jboss-jira] [JBoss JIRA] Created: (JBAS-4208) Manifest Class-Path ignored in packaged EAR file, used in exploded EAR file

John Cater (JIRA) jira-events at lists.jboss.org
Fri Mar 16 12:04:32 EDT 2007


Manifest Class-Path ignored in packaged EAR file, used in exploded EAR file
---------------------------------------------------------------------------

                 Key: JBAS-4208
                 URL: http://jira.jboss.com/jira/browse/JBAS-4208
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: ClassLoading
    Affects Versions: JBossAS-5.0.0.Beta1
            Reporter: John Cater
         Assigned To: Scott M Stark


I am attaching a sample project that shows this issue.

In short, a packaged EAR file that contains a JAR, which uses the Class-Path entry in the JAR's MANIFEST.MF file, will not correctly load the JAR's Class-Path entries, and instead throw NoClassDefFoundErrors.  The same EAR, when exploded, loads properly.

To test:  in the attached project, run 'ant explode-ear'.  Attempt to load first the exploded ear, then the packaged ear, into JBoss.
in the JMX Control panel, look for the test.ear:name=TestService MBean.  Execute the 'createThing' operation.  This can be validated with the 'seeThing' operation.

In the correctly-working exploded EAR, createThing works properly.  In the packaged EAR, createThing fails with a NoClassDefFoundError.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list