IBM Support

EJB Deploy Error: java.lang.IllegalStateException: Unable to acquire application service

Technote (troubleshooting)


EJBDeploy fails with "java.lang.IllegalStateException: Unable to acquire application service."


This error can occur when running ejbdeploy.bat or scripts from the command line, or it can be seen in the logs of other IBM software that make use of ejbdeploy.

Besides IllegalStateException, the following is another possible EJBDeploy error(s):

* Error executing deployment: org.eclipse.core.runtime.CoreException. Error is Plug-in was unable to load class
org.eclipse.core.runtime.CoreException: Plug-in was unable to load class
       at ...


This problem may occur when Enterprise JavaBeans Deploy is updated as part of a Fix Pack install and there are files in the EJB Deploy configuration directory from the previous EJB Deploy install.

Resolving the problem

To resolve this problem, delete all of the files in the EJB Deploy configuration directory except for the config.ini file.

To determine the location of the EJB Deploy configuration directory, run the ejbdeploy command with the -log option like this:

On Windows:
cd "C:\Program Files\IBM\WebSphere\AppServer\bin"
ejbdeploy.bat input_EAR working_DIR output_EAR -log

On Linux:
cd /opt/IBM/WebSphere/AppServer/bin
./ input_EAR working_DIR output_EAR -log

In the commands, input_EAR is the input EAR file, output_EAR is the output EAR file, and working_DIR is the temporary working directory.

Similar ejbdeploy commands can be issued on any other platforms on which IBM WebSphere Application Server V6.1 is supported. This is also applicable to WebSphere Application Server v7.x.

The output of the ejbdeploy command, with -log option, will show the location of the EJB Deploy configuration directory. Go do that directory and delete all files except for the config.ini file. Now, re-run your ejbdeploy command and it should no longer have the error.

As an example, on a Linux platform with WebSphere Application Server Network Deployment (ND) installed in /usr/WebSphere/AppServer , you may have two locations:

  1. /usr/WebSphere/AppServer/deploytool/itp/configuration
  2. /usr/WebSphere/AppServer/profiles/Dmgr01/ejbdeploy/configuration/

The second location corresponds to the deployment manager machine/profile.

Cross Reference information
Segment Product Component Platform Version Edition
Application Servers WebSphere Application Server Linux, Windows,,,,,,, 6.1

Document information

More support for: WebSphere Application Server
Application Server Toolkit (AST)

Software version: 6.1.1,,,,,,,,,, 7.0,,,,,,,,

Operating system(s): Linux, Windows

Reference #: 1286215

Modified date: 08 November 2007

Translate this page: