
- Forum
- Programming Talk
- Java
- ClassNotFoundExceptions after Installing EAR file
ClassNotFoundExceptions after Installing EAR file
This is a discussion on ClassNotFoundExceptions after Installing EAR file within the Java forums, part of the Programming Talk category; After Installing the EAR file through the admin console, when I try to start the application, I am getting ClassNotFoundExceptions ...
-
07-20-2004, 05:53 PM #1akpraveen Guest
ClassNotFoundExceptions after Installing EAR file
After Installing the EAR file through the admin console, when I try to start the application, I am getting ClassNotFoundExceptions in the SystemOut.log file. It turns out that the AppNameEJB.jar file which contains the classes is not getting installed in the server \"installedApps/AppNameEAR.ear\" directory. This may point to a bad deployment descriptor for the EAR. How do I tell the app server to install the jar file when it is installing the app.
WAS 5.0.2 Network Deployment
WSAD 5.0.1 IE
Thanx in advance!
Post edited by: madhu, at: 2004/07/31 00:08
-
Re:ClassNotFoundExceptions after Installing EAR file
Praveen,
Is it api class or your own written class?
Make sure that you added the jar(which contains the missed class) file in your Manifest file.
If possible paste the entire error here.
Post edited by: VASU, at: 2004/07/20 18:36
-
07-20-2004, 07:03 PM #3akpraveen Guest
Re:ClassNotFoundExceptions after Installing EAR file
Vasu garu,
Its a custom class. The problem is, WAS is not installing the EAR Manifest.mf file in the META-INF directory and it is not installing the JAR files in the Class path of that Manifest.mf file. The application.xml file is also not getting installed in the META-INF directory!
I don\'t know why!!
Here is the actual application.xml code:
[code:1]
<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
<!DOCTYPE application (View Source for full doctype...)>
- <application id=\"Application_ID\">
<display-name>WTS_ProdDeployEAR</display-name>
- <module id=\"WebModule_1085586625257\">
- <web>
<web-uri>WTS_ProdDeployWeb.war</web-uri>
<context-root>WTS_ProdDeployWeb</context-root>
</web>
</module>
- <module id=\"EjbModule_1088549253784\">
<ejb>WTS_ProdDeployEJB.jar</ejb>
</module>
</application>
[/code:1]
My EAR file structure is as follows:
AppNameCOMMONCLASSES.jar
AppNameEJB.jar
AppNameCUSTOMCLASS.jar
Manifest.mf
.modulemaps
.project
.websettings
AppNameWeb.war
AppNameWeb.war/*.jar
AppNameWeb.war/*.gif
AppNameWeb.war/*.jsp
AppNameWeb.war/main.css
AppNameWeb.war/.classpath
AppNameWeb.war/js/*.js
AppNameWeb.war/WEB-INF/*.tld
AppNameWeb.war/WEB-INF/struts-config.xml
AppNameWeb.war/WEB-INF/ibm-web-bnd.xmi
AppNameWeb.war/WEB-INF/ibm-web-ext.xmi
AppNameWeb.war/WEB-INF/web.xml
AppNameWeb.war/META-INF/Manifest.mf
ibm-application-ext.xmi
application.xml
-
Re:ClassNotFoundExceptions after Installing EAR file
Your EAR File structure and app.xml file looks fine.
Can you check whether your manifest file contains all the necessary jar files.
Post the error message here..
-
Sponsored Ads

Reply With Quote





