Hi all,
I am facing problem in deploying my ear file.
Following is the structure of my ear file
-----MyEAR.ear
--MYEJB.jar
--META-INF/Manifest.mf
--META-INF/EJB-JAR.xml
--MYWEB.war
--META-INF/Manifest.mf
--META-INF/application.xml
--log4j.1.2.9.jar
Follwoing is the content for my Manifest.mf for MYWEB.war
Manifest-Version: 1.0
Created-By: 1.4.2_06 (Sun Microsystems Inc.)
and follwoing is the content for my Manifest.mf for MYEJB.jar
Manifest-Version: 1.0
Created-By: Oracle JDeveloper 10g 10.1.2
Class-Path: log4j-1.2.9.jar
When I try to deploy this file, i gets the following error message
error instantiating application 'MyEAR' at file:
../j2ee/home/applications/MYEAR.ear:
Error initializing ejb-module;
Exception Error loading class 'common.loginejb.LoginSessionBean': java.lang.NoClassDefFoundError: org/apache/log4j/Logger
I am using oracle10g AS for deploying my ear file.
My requirement is that I've to pack this log4j-1.2.9.jar file in the ear file itself. I cannot put it in applib folder or any other folder in the class-path.
Since as far as I know according to J2EE specification, if I put the class-path entry in META-INF/manifest.mf file, then EJBJAR file should pick that.
Please suggest where I am wrong.