Home arrow static arrow Java Programming [Archive] - MANIFEST.MF file for j2ee application
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - MANIFEST.MF file for j2ee application
This topic has 5 replies on 1 page.

Posts:196
Registered: 3/5/03
MANIFEST.MF file for j2ee application  
Apr 3, 2003 11:46 PM



 
I use bea weblogic
I have one j2ee application. In this application there are 2 jar: jar1.jar and jar2.jar.
In each jar there is one ejb in package print: ejb1, ejb2
each jar is in the same directory under webserver
ejb1 in jar1 call ejb2 in jar2
In file MANIFEST.MF inside directory META-INF of jar1 there is this code

Manifest-Version: 1.0
Class-Path: jar2.jar <---- here there is one carriege return and stop

When ejb1 try to call ejb2 i have this error

java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.NoClassDefFoundError: print/ejb2Home

I think that my file manifest is wrong. Can anybody help me?
 

Posts:71
Registered: 10/24/01
Re: MANIFEST.MF file for j2ee application  
Apr 3, 2003 11:49 PM (reply 1 of 5)



 
java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.NoClassDefFoundError: print/ejb2Home

Your Class print/ejb2Home is not found. is your class in "print" package? then you must call it with "print" or put it in "print" directory
 

Posts:5
Registered: 10/23/98
Re: MANIFEST.MF file for j2ee application  
Apr 4, 2003 12:00 AM (reply 2 of 5)



 
Do you have an aplication.xml file in the META-INF dir ?
If not, maybe it would help, it should look something like this:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>

<application>
<display-name>YourApplicationName</display-name>
<description></description>
<module>
<ejb>jar1.jar</ejb>
</module>
<module>
<ejb>jar2.jar</ejb>
</module>

</application>

 

Posts:196
Registered: 3/5/03
Re: MANIFEST.MF file for j2ee application  
Apr 4, 2003 12:44 AM (reply 3 of 5)



 
To alina3
yes the file .class are in the directory print
 

Posts:196
Registered: 3/5/03
Re: MANIFEST.MF file for j2ee application  
Apr 4, 2003 12:45 AM (reply 4 of 5)



 
to dagcorell
there is no application.xml file
Application.xml file is a component of ear file
I don't have ear file i have only 2 jar file
I don't want to make an ear file i want to use manifest.mf file
 

Posts:1
Registered: 2/20/02
Re: MANIFEST.MF file for j2ee application  
Jun 16, 2004 3:57 PM (reply 5 of 5)



 
It should work, If you build an ear file to include jar1 along with ejb2 client jar. And in your Manifest file include ejb2 client jar file name. I feel, just including the jar file name in the Manifest may not work, you may need to include that file in the ear file.
Thanks
 
This topic has 5 replies on 1 page.