IBM Support

EJBDeploy command Exceptions on WebSphere Application Server and Eclipse OSGI cache purge issues

Troubleshooting


Problem

Attempts to install an EAR on IBM AIX WebSphere Application Server ND v6.0.2.31 using the admin console with Deploy EJB box checked results in this error: java.lang.RuntimeException: Application "com.ibm.etools.ejbdeploy.batch_extension" could not be found in the registry

Symptom

Installation of an EAR in the admin console with Deploy EJB box checked result in errors.
  • Same problem using wsejbdeploy.
  • Other similar errors were encountered using the ejbdeploy command directly.


Example 1, EJBDeploy Error trace for above Admin Console issue:

ADMA5018I: The EJBDeploy command is running on enterprise archive (EAR) file /usr/WebSphere/AppServer/profiles/DSWFVTDmgr/wstemp/415291458/upload/Quo
teSchedulerEAR_FVT.ear.
Starting workbench.
An unexpected exception was thrown. Halting execution.
An unexpected exception was thrown. Halting execution.
Shutting down workbench.
Error executing deployment: java.lang.
RuntimeException. Error is
Application "com.ibm.etools.ejbdeploy.batch_extension" could not be
found in the registry. The applications available are: ..
java.lang.RuntimeException: Application
"com.ibm.etools.ejbdeploy.batch_extension" could not be found in the
registry. The applications available are: .
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActiva

Example 2. Other EJBDeploy Error:



************ Start Display Current Environment ************
WebSphere Platform 7.0.0.3 [ND 7.0.0.3 cf030911.09] ...

[10/29/09 13:21:54:650 CDT] 0000017b DeployEJBTask E   ADMA0086E:
[EJBDeploy] An unexpected exception was thrown.  Halting execution.
[10/29/09 13:21:54:654 CDT] 0000017b DeployEJBTask I   ADMA0158I:

[EJBDeploy] Shutting down workbench.
[10/29/09 13:21:57:031 CDT] 0000017b DeployEJBTask I   ADMA0158I:
[EJBDeploy] Error executing deployment: java.lang.NoClassDefFoundError.
Error is com.ibm.ws.ast.st.core.WASRuntimeLocator.

[10/29/09 13:21:57:035 CDT] 0000017b DeployEJBTask I   ADMA0158I:
[EJBDeploy] java.lang.NoClassDefFoundError:
com.ibm.ws.ast.st.core.WASRuntimeLocator
[10/29/09 13:21:57:039 CDT] 0000017b DeployEJBTask I   ADMA0158I:
[EJBDeploy]  at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.getRuntimeTargetJar  
s(BatchExtension.java:2383)
-------------

Example 3. Other EJBDeploy Error:



Root error:
[wsejbdeploy] Working Directory does not exist. Creating.
[wsejbdeploy] Exception in thread "main" java.lang.NoClassDefFoundError:
com.ibm.etools.ejbdeploy.EJBDeploy
[wsejbdeploy] Caused by: java.lang.ClassNotFoundException:
com.ibm.etools.ejbdeploy.EJBDeploy
....
[wsejbdeploy] at
java.net.URLClassLoader.findClass(URLClassLoader.java:419)
[wsejbdeploy] at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
[wsejbdeploy] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:345)
[wsejbdeploy] at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
[wsejbdeploy] Could not find the main class:
com.ibm.etools.ejbdeploy.EJBDeploy.  Program will exit.
[wsejbdeploy] Java Result: 1

Example 4. Other EJBDeploy Error:


Error executing deployment: org.eclipse.core.runtime.CoreException. Error is Plug-in com.ibm.etools.ejbdeploy was unable to load class com.ibm.etools.ejbdeploy.batch.plugin.BatchEx
tension..
org.eclipse.core.runtime.CoreException: Plug-in com.ibm.etools.ejbdeploy was unable to load class com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.  at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:165) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:149) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)  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 ...
        at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:106)
        at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:107)
        at

Example 5. Other EJBDeploy Error:



Error message:
 [exec]   [wsadmin] An unexpected exception was thrown.  Halting
execution.
 [exec]   [wsadmin] Shutting down workbench.
 [exec]   [wsadmin] Error executing deployment: java.lang.
IllegalStateException. Error is Platform not running.
 [exec]   [wsadmin] java.lang.IllegalStateException: Platform not
running
 [exec]   [wsadmin] at org.eclipse.core.runtime.adaptor.EclipseStarter.
run(EclipseStarter.java:374)
 [exec]   [wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
 [exec]   [wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:48)
 [exec]   [wsadmin] at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)     [exec]   [wsadmin] at java.
lang.reflect.Method.invoke(Method.java:600)
 [exec]   [wsadmin] at com.ibm.etools.ejbdeploy.batch.impl.
BootLoaderLoader.run(BootLoaderLoader.java:494)
  [exec]   [wsadmin] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.
execute(BatchDeploy.java:114)
 [exec]   [wsadmin] at com.ibm.etools.ejbdeploy.EJBDeploy.execute
(EJBDeploy.java:107)
...

 [exec]   [wsadmin] ADMA5007I: The EJBDeploy program completed on file
C:\Users\us325660\AppData\Local\Temp\app2473060703210803978.ear
 [exec]   [wsadmin] ADMA0063E: An error occurred during Enterprise
JavaBeans (EJB) deployment.  Exception: com.ibm.websphere.management.
exception.AdminException: ADMA0062E: The EJBDeploy program issued the
following error messages: [An unexpected exception was thrown.  Halting
execution.]
 [exec]   [wsadmin] ADMA5011I: The cleanup of the temp directory for
application deployment.ear is complete.
 [exec]   [wsadmin] ADMA5069E: The installation of application
deployment.ear failed. ...
Example 6. Other EJBDeploy Error:
Error message in SystemOut.log:
[...] 000001e2 DeployEJBTask I  ADMA0158I: [EJBDeploy] Caused by: java.io.EOFException
[...] 000001e2 DeployEJBTask I  ADMA0158I: [EJBDeploy]   at java.io.DataInputStream.readByte(DataInputStream.java:278)
[...] 000001e2 DeployEJBTask I  ADMA0158I: [EJBDeploy]   at org.eclipse.osgi.container.ModuleDatabase$Persistence.readString(ModuleDatabase.java:1517)
[...] 000001e2 DeployEJBTask I  ADMA0158I: [EJBDeploy]   at org.eclipse.osgi.container.ModuleDatabase$Persistence.readMap(ModuleDatabase.java:1339)

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"EJB Development","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"},{"code":"PF010","label":"HP-UX"},{"code":"PF027","label":"Solaris"}],"Version":"7.0;7.0.0.1;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.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;8.0;8.0.1;8.0.2;8.0.3","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
21 May 2019

UID

swg21382867