IBM Support

EJBDeploy failed to start with java.lang.NoClassDefFoundError

Troubleshooting


Problem

EJBDeploy on WebSphere Application Server 6.1.0.29 with IBM Java SDK 1.5 SR2 failed to start with java.lang.NoClassDefFoundError.

Symptom

The following issue was observed in the admin console when selecting EAR install option:[x] deploy enterprise beans and on the command line using ejbdeploy.sh.

> pwd

/{WAS 6.1 stand-alone server home}/deploytool/itp/plugins

> cd ../../../bin

> pwd

/{WAS 6.1 stand-alone server home}/bin

> ./ejbdeploy.sh    /home/{some folder1}/SomeApp.ear      /home/{some folder2}/      /home/{some folder3}/SomeEar.ear   -log

Starting workbench.                                                            

user.install.root was specified as: /{WAS 6.1 stand-alone server home}/profiles/{some profile}    

ejbdeploy.user.install.root was specified as: /{WAS 6.1 stand-alone server home}/profiles/{some profile}/ejbdeploy

Using the directory specified via the 'ejbdeploy.user.install.root' system property.

EJB Deploy configuration directory: /{WAS 6.1 stand-alone server home}/{some profile}/ejbdeploy/configuration/

framework search path: /{WAS 6.1 stand-alone server home}/deploytool/itp/plugins

Debug options:

    file:/{WAS 6.1 stand-alone server home}/bin/.options not found
Time to load bundles: 9
Starting application: 1322080845757

[*Error] An unexpected exception was thrown.  Halting execution.  Shutting down workbench.

Error executing deployment: java.lang.NoClassDefFoundError. Error is org.eclipse.jst.j2ee.internal.plugin.CatalogJ2EEXmlDtDEntityResolver.
java.lang.NoClassDefFoundError: org.eclipse.jst.j2ee.internal.plugin.CatalogJ2EEXmlDtDEntityResolver        at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.getModuleDDVersion(BatchExtension.java:3281)        at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.getModuleDDVersion(BatchExtension.java:3233)        at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.getEarWithDD(BatchExtension.java:3181)        at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.preprocessArchives(BatchExtension.java:3656)        at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:340)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)        
at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:476)
at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:106)
at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:105)
at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:335)

EJBDeploy level: o0924.04

Cause

A java class loader issue in the IBM Java SDK.

Note: This scenario should not be confused with similar looking ejbdeploy error java.lang.NoClassDefFoundError. The following 2 similar issues are detailed as follows:

Environment

Red Hat Linux v4_8 on a 64 bit HP Intel x86 based platform

Diagnosing The Problem

Verify IBM Java SDK 1.5 SR2 is in use as follows:

> cd /{WAS 6.1 stand-alone server home}/java/bin

> Java -fullversion

"J2RE 1.5.0 IBM Linux build pxa64dev-20060511 (SR2)"

Resolving The Problem

Update to the latest Java SDK 1.n SR{nn} Cumulative Fix for your WebSphere Application Server version, as listed in Recommended fixes for WebSphere Application Server and discussed in Verify Java SDK version shipped with IBM WebSphere Application Server Fix Packs.

Note: Applying a server Fix Pack such as 6.1.0.29, does not typically update the server's IBM Java SDK. The IBM Java SDK update for any WebSphere Application Server version, is usually a separate Fix Pack.

If updating the server JDK does not help, then Technote: EJBDeploy command Exceptions on WebSphere Application Server and Eclipse OSGI cache purge issues, may be applicable.

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"EJB Development","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"},{"code":"PF010","label":"HP-UX"},{"code":"PF027","label":"Solaris"},{"code":"PF002","label":"AIX"}],"Version":"7.0.0.10;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5;7.0.0.6;7.0.0.7;7.0.0.8;7.0.0.9;7.5;7.5.1;7.5.2;7.5.3;7.5.4;7.5.5;7.5.5.1;7.5.5.2;7.5.5.3;7.5.5.4;7.5.5.5;8.0;8.0.1;8.0.2;8.0.3;8.0.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21573915