This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes Deployment of Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Deployment of Session Bean" Watch "Deployment of Session Bean" New topic
Author

Deployment of Session Bean

Kavita Saluja
Greenhorn

Joined: Jun 05, 2001
Posts: 19
I have made simple beans for calculating the product of two int's. I used jetace to make a deployablejar file, when i try to deploy it through admin console, it gives the follwing error while deploying -

Exception:
Deployment[Open] failed:
EJBDeploy: setupWorkingDir(): Setting up working directory C:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir
EJBDeploy: setupWorkingDir(): Deleting directory C:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar
EJBDeploy: open(): Processing jar file C:\WebSphere\AppServer\bin\product\jet_out.jar
EJBJar: processJar(): Extracting jar file C:\WebSphere\AppServer\bin\product\jet_out.jar to directory C:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar
EJBJar: processJar(): Parsing manifest file for deployment descriptors
Found Product.ser
EJBJar: loadJarClasses(): Adding all classes in .jar file to custom class loader
EJBJar: processJar(): Deserializing deployment descriptors
Product.ser
EJBDeploy: open(): Verifying EJB ProductBean
com.ibm.ejs.sm.exception.DeploymentException: Deployment[Open] failed:
EJBDeploy: setupWorkingDir(): Setting up working directory C:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir
EJBDeploy: setupWorkingDir(): Deleting directory C:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar
EJBDeploy: open(): Processing jar file C:\WebSphere\AppServer\bin\product\jet_out.jar
EJBJar: processJar(): Extracting jar file C:\WebSphere\AppServer\bin\product\jet_out.jar to directory C:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar
EJBJar: processJar(): Parsing manifest file for deployment descriptors
Found Product.ser
EJBJar: loadJarClasses(): Adding all classes in .jar file to custom class loader
EJBJar: processJar(): Deserializing deployment descriptors
Product.ser
EJBDeploy: open(): Verifying EJB ProductBean
--------
com.ibm.ejs.sm.client.command.ExecutionException: Error during deploying jar file.
at com.ibm.ejs.sm.client.RepositoryOpException.<init>(RepositoryOpException.java:51)
at com.ibm.ejs.sm.client.command.ExecutionException.<init>(ExecutionException.java:63)
at com.ibm.ejs.sm.client.command.DeployJarCommand.execute(DeployJarCommand.java:86)
at com.ibm.ejs.sm.client.command.CommandManager$ExecutionThread.run(CommandManager.java:282)
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1846
Kavita ,
Please check up if your EJB is part of a package.
Kavita Saluja
Greenhorn

Joined: Jun 05, 2001
Posts: 19
I dont get u? which package?
Thanks
Kumar G
Greenhorn

Joined: Jul 16, 2001
Posts: 2
hi Kavitha,
I am also getting exactly same exception in solaris machine at the time of deploying..please reply me to resolve the exception.
thanks
Kumar
[This message has been edited by Kumar G (edited July 16, 2001).]
PN Subramanian
Greenhorn

Joined: Jun 22, 2001
Posts: 11
Hai,
This error had occured a couple of times.On re-doing the entire process of bean deployment from scratch this error could sometimes be overcome.If anyone knows the actual reason do let me know.
This error occurs inspite of
1) Settings in jetace not being modified (Transaction settings)
2) Specifying a proper package name
3) Irrespective of whether the bean is a CMP/BMP
Purnendu Hota
Greenhorn

Joined: Jul 15, 2001
Posts: 3
Hi
I am also geting the same error.
com.ibm.ejs.sm.client.command.ExecutionException: Error during deploying jar file.
I am using WAS 3.5 on Win2000 and created the .jar using JetAce for deployment. This .jar file contains both SBeans and EBeans. Is there a limitation in number beans can be deployed in a evaluation copy of WAS?
Any help on this will be appreciated.
Thanks
Purnendu
Purnendu Hota
Greenhorn

Joined: Jul 15, 2001
Posts: 3
Hi
I got this from IBM site but not very clear. It says
-------------------------------------------------------
This is a current restriction/limitation of the deploy tool. You must package qualify any Enterprise Java Beans.
--------------------------------------------------------

Any clue?
Thanks
purnendu
Error Deploying an EJB That Is Not Package Qualified
Document Description:
When attempting to deploy an EJB jar file containing classes that are not package qualified, the following exception occurs:
Deploy Error: Deployment(createEJSJar) failed
Exception:
Deployment[createEJSJar] failed.
EJBDeploy: setupWorkingDir(): Setting up working directory C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir
EJBDeploy: open(): Processing jar file C:\MpkLab\HelloLabEJB\HelloLabEJB.jar
EJBJar: processJar(): Extracting jar file C:\MpkLab\HelloLabEJB\HelloLabEJB.jar to directory
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar
EJBJar: processJar(): Parsing manifest file for deployment descriptors
Found HelloLabEJB.ser
EJBJar: loadJarClasses(): Adding all classes in .jar file to custom class loader
EJBJar: processJar(): Deserializing deployment descriptors
HelloLabEJB.ser
EJBDeploy: open(): Verifying EJB HelloLabBean
EJBDeploy: generateClasses(): Generating home remote implementation class for bean HelloLabBean
Class name: EJSRemoteHelloLabHome
EJBDeploy: generateClasses(): Generating home implementation class for session bean HelloLabBean
Class name: EJSHelloLabHomeBean
EJBDeploy: generateClasses(): Generating remote implementation class for session bean HelloLabBean
Class name: EJSRemoteHelloLab
EJBDeploy: compileClasses(): Searching for source files...
Found C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSHelloLabHomeBean.java
Found C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSRemoteHelloLab.java
Found C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSRemoteHelloLabHome.java
EJBDeploy: compileClasses(): Compiling generated classes...
javac command line:
javac -d C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar -classpath
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar;C:/WebSphere/AppServer35/lib/ibmwebas.jar;C:/WebSphere/AppServer35/properties;C:/WebSphere/AppServer35/lib/serv let.jar;C:/WebSphere/AppServer35/lib/webtlsrn.jar;C:/WebSphere/AppServer35/lib/lotusxsl.jar;C:/WebSphere/AppServer35/lib/compat.jar;C:/WebSphere/AppServer35/lib/xalan.jar;C:/WebSph ere/AppServer35/lib/ns.jar;C:/WebSphere/AppServer35/lib/ejs.jar;C:/WebSphere/AppServer35/lib/ujc.jar;C:/WebSphere/AppServer35/lib/idb.jar;C:/WebSphere/AppServer35/lib/repository.ja r;C:/WebSphere/AppServer35/lib/admin.jar;C:/WebSphere/AppServer35/lib/swingall.jar;C:/WebSphere/AppServer35/lib/console.jar;C:/WebSphere/AppServer35/lib/was20cm.jar;C:/WebSphere/Ap pServer35/lib/tasks.jar;C:/WebSphere/AppServer35/lib/xml4j.jar;C:/WebSphere/AppServer35/lib/vaprt.jar;C:/WebSphere/AppServer35/lib/sslight.jar;C:/WebSphere/AppServer35/lib/ibmjndi. jar;C:/WebSphere/AppServ
er35/lib/deployTool.jar;C:/WebSphere/AppServer35/lib/databeans.jar;C:/WebSphere/AppServer35/classes;C:/WebSphere/AppServer35/jdk/lib/tools.jar;C:/WebSphere/AppServer35/lib/jsp10.ja r;C:/WebSphere/AppServer35/lib/ace.jar;$(DER_DRIVER_PATH)/lib/dertrjrt.jar
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSRemoteHelloLabHome.java
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSHelloLabHomeBean.java
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSRemoteHelloLab.java
javac return code = 0
EJBDeploy: generateTies(): Generating ties for implementation classes...
rmic command line:
rmic -classpath
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar;C:/WebSphere/AppServer35/lib/ibmwebas.jar;C:/WebSphere/AppServer35/properties;C:/WebSphere/AppServer35/lib/serv let.jar;C:/WebSphere/AppServer35/lib/webtlsrn.jar;C:/WebSphere/AppServer35/lib/lotusxsl.jar;C:/WebSphere/AppServer35/lib/compat.jar;C:/WebSphere/AppServer35/lib/xalan.jar;C:/WebSph ere/AppServer35/lib/ns.jar;C:/WebSphere/AppServer35/lib/ejs.jar;C:/WebSphere/AppServer35/lib/ujc.jar;C:/WebSphere/AppServer35/lib/idb.jar;C:/WebSphere/AppServer35/lib/repository.ja r;C:/WebSphere/AppServer35/lib/admin.jar;C:/WebSphere/AppServer35/lib/swingall.jar;C:/WebSphere/AppServer35/lib/console.jar;C:/WebSphere/AppServer35/lib/was20cm.jar;C:/WebSphere/Ap pServer35/lib/tasks.jar;C:/WebSphere/AppServer35/lib/xml4j.jar;C:/WebSphere/AppServer35/lib/vaprt.jar;C:/WebSphere/AppServer35/lib/sslight.jar;C:/WebSphere/AppServer35/lib/ibmjndi. jar;C:/WebSphere/AppServer35/lib/deployTool.jar;C:/WebSphere/AppServer35/lib/databeans.jar;C:/WebSpher
e/AppServer35/classes;C:/WebSphere/AppServer35/jdk/lib/tools.jar;C:/WebSphere/AppServer35/lib/jsp10.jar;C:/WebSphere/AppServer35/lib/ace.jar;$(DER_DRIVER_PATH)/lib/dertrjrt.jar
-keep -iiop -d C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar .EJSRemoteHelloLabHome
error: Class .EJSRemoteHelloLabHome not found.
1 error
rmic return code = 1
com.ibm.ejs.sm.exception.DeploymentException: Deployment[createEJSJar] failed.
EJBDeploy: setupWorkingDir(): Setting up working directory C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir
EJBDeploy: open(): Processing jar file C:\MpkLab\HelloLabEJB\HelloLabEJB.jar
EJBJar: processJar(): Extracting jar file C:\MpkLab\HelloLabEJB\HelloLabEJB.jar to directory
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar
EJBJar: processJar(): Parsing manifest file for deployment descriptors
Found HelloLabEJB.ser
EJBJar: loadJarClasses(): Adding all classes in .jar file to custom class loader
EJBJar: processJar(): Deserializing deployment descriptors
HelloLabEJB.ser
EJBDeploy: open(): Verifying EJB HelloLabBean
EJBDeploy: generateClasses(): Generating home remote implementation class for bean HelloLabBean
Class name: EJSRemoteHelloLabHome
EJBDeploy: generateClasses(): Generating home implementation class for session bean HelloLabBean
Class name: EJSHelloLabHomeBean
EJBDeploy: generateClasses(): Generating remote implementation class for session bean HelloLabBean
Class name: EJSRemoteHelloLab
EJBDeploy: compileClasses(): Searching for source files...
Found C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSHelloLabHomeBean.java
Found C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSRemoteHelloLab.java
Found C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSRemoteHelloLabHome.java
EJBDeploy: compileClasses(): Compiling generated classes...
javac command line:
javac -d C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar -classpath
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar;C:/WebSphere/AppServer35/lib/ibmwebas.jar;C:/WebSphere/AppServer35/properties;C:/WebSphere/AppServer35/lib/serv let.jar;C:/WebSphere/AppServer35/lib/webtlsrn.jar;C:/WebSphere/AppServer35/lib/lotusxsl.jar;C:/WebSphere/AppServer35/lib/compat.jar;C:/WebSphere/AppServer35/lib/xalan.jar;C:/WebSph ere/AppServer35/lib/ns.jar;C:/WebSphere/AppServer35/lib/ejs.jar;C:/WebSphere/AppServer35/lib/ujc.jar;C:/WebSphere/AppServer35/lib/idb.jar;C:/WebSphere/AppServer35/lib/repository.ja r;C:/WebSphere/AppServer35/lib/admin.jar;C:/WebSphere/AppServer35/lib/swingall.jar;C:/WebSphere/AppServer35/lib/console.jar;C:/WebSphere/AppServer35/lib/was20cm.jar;C:/WebSphere/Ap pServer35/lib/tasks.jar;C:/WebSphere/AppServer35/lib/xml4j.jar;C:/WebSphere/AppServer35/lib/vaprt.jar;C:/WebSphere/AppServer35/lib/sslight.jar;C:/WebSphere/AppServer35/lib/ibmjndi. jar;C:/WebSphere/AppServ
er35/lib/deployTool.jar;C:/WebSphere/AppServer35/lib/databeans.jar;C:/WebSphere/AppServer35/classes;C:/WebSphere/AppServer35/jdk/lib/tools.jar;C:/WebSphere/AppServer35/lib/jsp10.ja r;C:/WebSphere/AppServer35/lib/ace.jar;$(DER_DRIVER_PATH)/lib/dertrjrt.jar
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSRemoteHelloLabHome.java
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSHelloLabHomeBean.java
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar\EJSRemoteHelloLab.java
javac return code = 0
EJBDeploy: generateTies(): Generating ties for implementation classes...
rmic command line:
rmic -classpath
C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar;C:/WebSphere/AppServer35/lib/ibmwebas.jar;C:/WebSphere/AppServer35/properties;C:/WebSphere/AppServer35/lib/serv let.jar;C:/WebSphere/AppServer35/lib/webtlsrn.jar;C:/WebSphere/AppServer35/lib/lotusxsl.jar;C:/WebSphere/AppServer35/lib/compat.jar;C:/WebSphere/AppServer35/lib/xalan.jar;C:/WebSph ere/AppServer35/lib/ns.jar;C:/WebSphere/AppServer35/lib/ejs.jar;C:/WebSphere/AppServer35/lib/ujc.jar;C:/WebSphere/AppServer35/lib/idb.jar;C:/WebSphere/AppServer35/lib/repository.ja r;C:/WebSphere/AppServer35/lib/admin.jar;C:/WebSphere/AppServer35/lib/swingall.jar;C:/WebSphere/AppServer35/lib/console.jar;C:/WebSphere/AppServer35/lib/was20cm.jar;C:/WebSphere/Ap pServer35/lib/tasks.jar;C:/WebSphere/AppServer35/lib/xml4j.jar;C:/WebSphere/AppServer35/lib/vaprt.jar;C:/WebSphere/AppServer35/lib/sslight.jar;C:/WebSphere/AppServer35/lib/ibmjndi. jar;C:/WebSphere/AppServer35/lib/deployTool.jar;C:/WebSphere/AppServer35/lib/databeans.jar;C:/WebSpher
e/AppServer35/classes;C:/WebSphere/AppServer35/jdk/lib/tools.jar;C:/WebSphere/AppServer35/lib/jsp10.jar;C:/WebSphere/AppServer35/lib/ace.jar;$(DER_DRIVER_PATH)/lib/dertrjrt.jar
-keep -iiop -d C:\WebSphere\AppServer35\deployedEJBs\HelloLabEJBWorkingDir\__ejbjar .EJSRemoteHelloLabHome
error: Class .EJSRemoteHelloLabHome not found.
1 error
rmic return code = 1

--------
com.ibm.ejs.sm.client.command.ExecutionException: Error during deploying jar file.
at com.ibm.ejs.sm.client.RepositoryOpException.<init>(RepositoryOpException.java:51)
at com.ibm.ejs.sm.client.command.ExecutionException.<init>(ExecutionException.java:63)
at com.ibm.ejs.sm.client.command.DeployJarCommand.execute(DeployJarCommand.java:86)
at com.ibm.ejs.sm.client.command.CommandManager$ExecutionThread.run(CommandManager.java:282)

Balbir Singh
Ranch Hand

Joined: Jun 01, 2001
Posts: 79
Put all your ejb classes in one package, that will resolve the problem.


Thanks and Regards<br />Balbir Singh<br />Sun Certified Java Programmer<br />IBM Certified Administrator for WebSphere4.0
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Deployment of Session Bean
 
Similar Threads
Problem deploying an entity bean
Service specific error 10
Deployment of Entity bean in WAS(v 3.5)
EJB deployment problems
Problem when deploying beans