[jboss-jira] [JBoss JIRA] (AS7-2442) Non ejb jars referenced from an ejb jar in an ear via META-INF/MANIFEST.MF have no visiblity to javax.* classes

Rodney Kite (Updated) (JIRA) jira-events at lists.jboss.org
Mon Oct 31 19:07:45 EDT 2011


     [ https://issues.jboss.org/browse/AS7-2442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rodney Kite updated AS7-2442:
-----------------------------

    Attachment: testJBossErrorApp.zip


Attached is a small test application showing error.  In the top directory under ./EARS are the already built ears.  Use the url http://localhost/testAppWeb to access test page.
                
> Non ejb jars referenced from an ejb jar in an ear via META-INF/MANIFEST.MF have no visiblity to javax.* classes
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: AS7-2442
>                 URL: https://issues.jboss.org/browse/AS7-2442
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EE
>    Affects Versions: 7.0.2.Final, 7.1.0.Alpha1
>         Environment: Windows 7 64 bit,  Sun/Oracle 32 bit JDK 1.6.0_27-b07,  Intel Core 2 Quad
>            Reporter: Rodney Kite
>            Assignee: David Lloyd
>             Fix For: No Release
>
>         Attachments: testJBossErrorApp.zip
>
>
> When an ejb jar file in an ear references a standard jar file from an MANIFEST.MF entry the standard jar file has no access to javax.* class.  This results in a run time exception "java.lang.NoClassDefFoundError: javax/naming/InitialContext" when constructing a javax.naming.InitialContext or other javax.* class in the standard jar.  Referencing jars through a MANIFEST.MF is defined in the JBOSS AS 7 Documentation as proper for portability.  Using <ejb>/lib for the jar works but restricts access to the jar as a deployment module.    

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list