Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deployment of Session Bean

 
Kavita Saluja
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kavita ,
Please check up if your EJB is part of a package.
 
Kavita Saluja
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont get u? which package?
Thanks
 
Kumar G
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put all your ejb classes in one package, that will resolve the problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic