Hai all,
JBoss Version: 4.0
I have created a common.jar file, which is common to both web module and ejb module. And I created an ear file that contains web module (.war), ejb module (.jar) and common.jar file which is placed in the lib directory of the ear file as shown below. I'm adding the manifest file by setting the classpath to common.jar file both in web module and ejb module. But I'm unable to access that common.jar in both web module and ejb module.
The folder structure for ear file:
META-INF/
META-INF/MANIFEST.MF
META-INF/application.xml
ejb.jar
web.war
lib/
lib/common.jar
The manifest file in the web.war includes:
Manifest-Version: 1.0
Class-Path: ./lib/common.jar
The manifest file in the ejb.jar includes:
Manifest-Version: 1.0
Class-Path: ./lib/common.jar
Even then I'm not able to access the common.jar file in web.war and ejb.jar. So, I added manifest file in the ear file also while includes the following
Manifest-Version: 1.0
Class-Path: ./lib/common.jar
2. Unable to access class files, which is common to both web module and ejb module
The folder structure for ear file:
META-INF/
META-INF/MANIFEST.MF
META-INF/application.xml
ejb.jar
web.war
classes/
The manifest file in the web.war includes:
Manifest-Version: 1.0
Class-Path: ./classes
The manifest file in the ejb.jar includes:
Manifest-Version: 1.0
Class-Path: ./classes
Even then I'm not able to access the common.jar file in web.war and ejb.jar. So, I added manifest file in the ear file also while includes the following
Manifest-Version: 1.0
Class-Path: ./classes
Should I need to do something else to get it work.
Regards,
Hari