Exforsys

Online Training

ClassNotFoundExceptions after Installing EAR file

This is a discussion on ClassNotFoundExceptions after Installing EAR file within the Java Tutorials forums, part of the Articles and Tutorials category; After Installing the EAR file through the admin console, when I try to start the application, I am getting ClassNotFoundExceptions ...


Go Back   Exforsys > Articles and Tutorials > Java Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-20-2004, 06:53 PM
akpraveen
Guest
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-20-2004, 07:34 PM
Senior Member
 
Join Date: Nov 2004
Posts: 132
Vasu
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-20-2004, 08:03 PM
akpraveen
Guest
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-20-2004, 08:51 PM
Senior Member
 
Join Date: Nov 2004
Posts: 132
Vasu
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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Atari 8-Bit Computers: Frequently Asked Questions Michael Current Tech FAQ 0 10-25-2005 01:34 AM
MS Windows 32-Bit File Access Meta-FAQ Mike McCormick Tech FAQ 0 10-19-2005 01:37 AM
Apple II Csa2 FAQs: DOS & ProDOS, Part 6/25 rubywand@swbell.net Tech FAQ 0 06-28-2004 03:44 PM
Apple II Csa2 FAQs: Uploading & Downloading, Part 21/25 rubywand@swbell.net Tech FAQ 0 05-04-2004 10:01 AM
Apple II Csa2 FAQs: Error List, Part 8/25 rubywand@swbell.net Tech FAQ 0 05-04-2004 10:01 AM


All times are GMT -4. The time now is 07:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.