Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NoClassDefFoundError when deploying app

Status
Not open for further replies.

tusker

Technical User
Mar 4, 2002
8
0
0
GB
I get the following message when building and deploying the CMP tutorial example using the deployment tool for J2SDK1.3.1

The error is:

java.rmi.ServerError:Error occurred in server thread; nexted exception is:
java.lang.NoClassDefFoundError:com/sun/tools/javac/Main

The variables are set as follows
PATH=c:\j2sdkee1.3.1\bin;c:\j2eeant\jakarta-ant-1.3\bin;
SET JAVA_HOME=c:\j2sdkee1.3.1SET J2EE_HOME=c:\j2sdkee1.3.1
The userconfig.bat file contains:

set J2EE_CLASSPATH=c:\j2sdkee1.3.1\lib\j2ee.jar;

Any Ideas?
 
I don't think the Main name should be used on a class. Appart from that the class definition might be missing from the Jar file, or the jar might be miss placed ....
I had a lot of non-running ejb components when learning java ee. Take a look at WebLogic, with the examples they supply.
 
you need to make sure that the jar files containing your EJB stub classes are available to the client app. Either add them to the classpath or use the -classpath switch when running the client and put it in there.
 
Are you using suns j2ee reference server? If so have a read of the message I posted on the message entitled

"Problem with packaging my EJB"

Cheers
Colombian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top