File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Problem when deploying beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Problem when deploying beans" Watch "Problem when deploying beans" New topic
Author

Problem when deploying beans

Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
Hi,
I am getting the following exception while trying to deploy a simple stateless Bean with jetace. Any ideas on what it means will help. The problem may be with the -keep option that is there with rmic. That is what i know
Exception:
Deployment[createEJSJar] failed.
EJBDeploy: setupWorkingDir(): Setting up working directory e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir
EJBDeploy: open(): Processing jar file e:\WebSphere\AppServer\bin\jet_out.jar
EJBJar: processJar(): Extracting jar file e:\WebSphere\AppServer\bin\jet_out.jar to directory e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar
EJBJar: processJar(): Parsing manifest file for deployment descriptors
Found TestHello.ser
EJBJar: loadJarClasses(): Adding all classes in .jar file to custom class loader
EJBJar: processJar(): Deserializing deployment descriptors
TestHello.ser
EJBDeploy: open(): Verifying EJB HelloBean
EJBDeploy: generateClasses(): Generating home remote implementation class for bean HelloBean
Class name: EJSRemoteHelloHome
EJBDeploy: generateClasses(): Generating home implementation class for session bean HelloBean
Class name: EJSHelloHomeBean
EJBDeploy: generateClasses(): Generating remote implementation class for session bean HelloBean
Class name: EJSRemoteHello
EJBDeploy: compileClasses(): Searching for source files...
Found e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSHelloHomeBean.java
Found e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSRemoteHello.java
Found e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSRemoteHelloHome.java
EJBDeploy: compileClasses(): Compiling generated classes...
javac command line:
javac -d e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar -classpath e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar;e:/WebSphere/AppServer/lib/ibmwebas.jar;e:/WebSphere/AppServer/properties;e:/WebSphere/AppServer/lib/servlet.jar;e:/W ebSphere/AppServer/lib/webtlsrn.jar;e:/WebSphere/AppServer/lib/lotusxsl.jar;e:/WebSphere/AppServer/lib/compat.jar;e:/WebSphere/AppServer/lib/xalan.jar;e:/WebSphere/AppServer/lib/ns .jar;e:/WebSphere/AppServer/lib/ejs.jar;e:/WebSphere/AppServer/lib/ujc.jar;e:/WebSphere/AppServer/lib/idb.jar;e:/WebSphere/AppServer/lib/repository.jar;e:/WebSphere/AppServer/lib/a dmin.jar;e:/WebSphere/AppServer/lib/swingall.jar;e:/WebSphere/AppServer/lib/console.jar;e:/WebSphere/AppServer/lib/was20cm.jar;e:/WebSphere/AppServer/lib/tasks.jar;e:/WebSphere/App Server/lib/xml4j.jar;e:/WebSphere/AppServer/lib/vaprt.jar;e:/WebSphere/AppServer/lib/sslight.jar;e:/WebSphere/AppServer/lib/ibmjndi.jar;e:/WebSphere/AppServer/lib/deployTool.jar;e: /WebSphere/AppServer/lib/databeans.jar;e:/WebSphere/AppServer/classes;e:/WebSphere/AppServer/jdk/lib/tools.jar;e:/WebSphere/AppServer/lib/jsp10.jar;e:/WebSphere/AppServer/lib/dertr jrt.jar;e:/WebSphere/AppServer/lib/derdbpw.jar;e:/WebSphere/AppServer/lib/ivjejb35.jar
e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSRemoteHello.java
e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSHelloHomeBean.java
e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSRemoteHelloHome.java
javac return code = 0
EJBDeploy: generateTies(): Generating ties for implementation classes...
rmic command line:
rmic -classpath e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar;e:/WebSphere/AppServer/lib/ibmwebas.jar;e:/WebSphere/AppServer/properties;e:/WebSphere/AppServer/lib/servlet.jar;e:/W ebSphere/AppServer/lib/webtlsrn.jar;e:/WebSphere/AppServer/lib/lotusxsl.jar;e:/WebSphere/AppServer/lib/compat.jar;e:/WebSphere/AppServer/lib/xalan.jar;e:/WebSphere/AppServer/lib/ns .jar;e:/WebSphere/AppServer/lib/ejs.jar;e:/WebSphere/AppServer/lib/ujc.jar;e:/WebSphere/AppServer/lib/idb.jar;e:/WebSphere/AppServer/lib/repository.jar;e:/WebSphere/AppServer/lib/a dmin.jar;e:/WebSphere/AppServer/lib/swingall.jar;e:/WebSphere/AppServer/lib/console.jar;e:/WebSphere/AppServer/lib/was20cm.jar;e:/WebSphere/AppServer/lib/tasks.jar;e:/WebSphere/App Server/lib/xml4j.jar;e:/WebSphere/AppServer/lib/vaprt.jar;e:/WebSphere/AppServer/lib/sslight.jar;e:/WebSphere/AppServer/lib/ibmjndi.jar;e:/WebSphere/AppServer/lib/deployTool.jar;e: /WebSphere/AppServer/lib/databeans.jar;e:/WebSphere/AppServer/classes;e:/WebSphere/AppServer/jdk/lib/tools.jar;e:/WebSphere/AppServer/lib/jsp10.jar;e:/WebSphere/AppServer/lib/dertr jrt.jar;e:/WebSphere/AppServer/lib/derdbpw.jar;e:/WebSphere/AppServer/lib/ivjejb35.jar -keep -iiop -d e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar .EJSRemoteHelloHome
rmic return code = 1
com.ibm.ejs.sm.exception.DeploymentException: Deployment[createEJSJar] failed.
EJBDeploy: setupWorkingDir(): Setting up working directory e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir
EJBDeploy: open(): Processing jar file e:\WebSphere\AppServer\bin\jet_out.jar
EJBJar: processJar(): Extracting jar file e:\WebSphere\AppServer\bin\jet_out.jar to directory e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar
EJBJar: processJar(): Parsing manifest file for deployment descriptors
Found TestHello.ser
EJBJar: loadJarClasses(): Adding all classes in .jar file to custom class loader
EJBJar: processJar(): Deserializing deployment descriptors
TestHello.ser
EJBDeploy: open(): Verifying EJB HelloBean
EJBDeploy: generateClasses(): Generating home remote implementation class for bean HelloBean
Class name: EJSRemoteHelloHome
EJBDeploy: generateClasses(): Generating home implementation class for session bean HelloBean
Class name: EJSHelloHomeBean
EJBDeploy: generateClasses(): Generating remote implementation class for session bean HelloBean
Class name: EJSRemoteHello
EJBDeploy: compileClasses(): Searching for source files...
Found e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSHelloHomeBean.java
Found e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSRemoteHello.java
Found e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSRemoteHelloHome.java
EJBDeploy: compileClasses(): Compiling generated classes...
javac command line:
javac -d e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar -classpath e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar;e:/WebSphere/AppServer/lib/ibmwebas.jar;e:/WebSphere/AppServer/properties;e:/WebSphere/AppServer/lib/servlet.jar;e:/W ebSphere/AppServer/lib/webtlsrn.jar;e:/WebSphere/AppServer/lib/lotusxsl.jar;e:/WebSphere/AppServer/lib/compat.jar;e:/WebSphere/AppServer/lib/xalan.jar;e:/WebSphere/AppServer/lib/ns .jar;e:/WebSphere/AppServer/lib/ejs.jar;e:/WebSphere/AppServer/lib/ujc.jar;e:/WebSphere/AppServer/lib/idb.jar;e:/WebSphere/AppServer/lib/repository.jar;e:/WebSphere/AppServer/lib/a dmin.jar;e:/WebSphere/AppServer/lib/swingall.jar;e:/WebSphere/AppServer/lib/console.jar;e:/WebSphere/AppServer/lib/was20cm.jar;e:/WebSphere/AppServer/lib/tasks.jar;e:/WebSphere/App Server/lib/xml4j.jar;e:/WebSphere/AppServer/lib/vaprt.jar;e:/WebSphere/AppServer/lib/sslight.jar;e:/WebSphere/AppServer/lib/ibmjndi.jar;e:/WebSphere/AppServer/lib/deployTool.jar;e: /WebSphere/AppServer/lib/databeans.jar;e:/WebSphere/AppServer/classes;e:/WebSphere/AppServer/jdk/lib/tools.jar;e:/WebSphere/AppServer/lib/jsp10.jar;e:/WebSphere/AppServer/lib/dertr jrt.jar;e:/WebSphere/AppServer/lib/derdbpw.jar;e:/WebSphere/AppServer/lib/ivjejb35.jar
e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSRemoteHello.java
e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSHelloHomeBean.java
e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar\EJSRemoteHelloHome.java
javac return code = 0
EJBDeploy: generateTies(): Generating ties for implementation classes...
rmic command line:
rmic -classpath e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar;e:/WebSphere/AppServer/lib/ibmwebas.jar;e:/WebSphere/AppServer/properties;e:/WebSphere/AppServer/lib/servlet.jar;e:/W ebSphere/AppServer/lib/webtlsrn.jar;e:/WebSphere/AppServer/lib/lotusxsl.jar;e:/WebSphere/AppServer/lib/compat.jar;e:/WebSphere/AppServer/lib/xalan.jar;e:/WebSphere/AppServer/lib/ns .jar;e:/WebSphere/AppServer/lib/ejs.jar;e:/WebSphere/AppServer/lib/ujc.jar;e:/WebSphere/AppServer/lib/idb.jar;e:/WebSphere/AppServer/lib/repository.jar;e:/WebSphere/AppServer/lib/a dmin.jar;e:/WebSphere/AppServer/lib/swingall.jar;e:/WebSphere/AppServer/lib/console.jar;e:/WebSphere/AppServer/lib/was20cm.jar;e:/WebSphere/AppServer/lib/tasks.jar;e:/WebSphere/App Server/lib/xml4j.jar;e:/WebSphere/AppServer/lib/vaprt.jar;e:/WebSphere/AppServer/lib/sslight.jar;e:/WebSphere/AppServer/lib/ibmjndi.jar;e:/WebSphere/AppServer/lib/deployTool.jar;e: /WebSphere/AppServer/lib/databeans.jar;e:/WebSphere/AppServer/classes;e:/WebSphere/AppServer/jdk/lib/tools.jar;e:/WebSphere/AppServer/lib/jsp10.jar;e:/WebSphere/AppServer/lib/dertr jrt.jar;e:/WebSphere/AppServer/lib/derdbpw.jar;e:/WebSphere/AppServer/lib/ivjejb35.jar -keep -iiop -d e:\WebSphere\AppServer\deployedEJBs\jet_outWorkingDir\__ejbjar .EJSRemoteHelloHome
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)

[This message has been edited by Rahul Mahindrakar (edited June 06, 2001).]
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
Mr Suneel Setlur has already discussed this problem here
But still i am not able to solve it.
Suneel where are you now!!!.
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
As suneel had stated the '.' in the '.EJSRemoteConverterHome' is creating some problems i do not know why this . turns up
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
Got It
Any ejb being deployed needs a package. Hence the '.'
<h3>
If you do not create packages for your ejb's they will not deploy. I tried to use the default package and hence the problem.
<h3>
I guess IBM wants all ejb's in packages.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem when deploying beans