Skip to main content

NoClassDefFoundError may occur when running EJBDeploy


Technote (troubleshooting)


This document applies only to the following language version(s):

English

Problem(Abstract)

Enterprise Java™Beans Deploy run from a IBM WebSphere Application Server environment may report NoClassDefFoundErrors.

Cause

Classpath information is missing from the MANIFEST.MF Class-Path attribute.

Resolving the problem

This error will occur if there are missing classpath entries that are needed by EJBDeploy. These classpath entries should be added to the MANIFEST.MF Class-Path so that EJBDeploy can set the classpath of the EJB project before deploying it.

If the class file being referenced should exist with the application (i.e. in the EAR file) then its corresponding JAR file should be referenced in the MANIFEST.MF Class-Path attribute. For instance, If there were any JAR files that were added to the Java Build Path of the EJB module they should be added to the Class-Path attribute of the MANIFEST.MF. However, if the class file being referenced does not need to exist within the application, then it is possible to specify the location of the jar files containing the class by using the -cp command line option for EJBDeploy.

Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK

Product Alias/Synonym

Ejbdeploy

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

WebSphere Application Server

Application Server Toolkit (AST)


Software version:
6.0, 6.0.0.2, 6.0.0.3, 6.0.1, 6.0.1.1, 6.0.1.2, 6.0.2, 6.0.2.1, 6.0.2.2, 6.0.2.3, 6.0.2.4, 6.0.2.5, 6.0.2.6, 6.0.2.7, 6.0.2.8, 6.0.2.9, 6.0.2.11, 6.0.2.13, 6.0.2.15, 6.0.2.17, 6.1, 6.1.0.1, 6.1.0.2, 6.1.0.3, 6.1.1


Operating system(s):
AIX, Linux, Windows


Software edition:
Base


Reference #:
1265051


Modified date:
2011-03-12

Translate my page

Content navigation