aspose file tools*
The moose likes Websphere and the fly likes DeploymentException encountered when trying to deploy an Enterprise Bean in WebSphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "DeploymentException encountered when trying to deploy an Enterprise Bean in WebSphere" Watch "DeploymentException encountered when trying to deploy an Enterprise Bean in WebSphere" New topic
Author

DeploymentException encountered when trying to deploy an Enterprise Bean in WebSphere

Madhumita Banerjee
Greenhorn

Joined: May 02, 2001
Posts: 7
Hi,
I have been trying to deploy a stateless session bean in the trial version of Websphere App Server, Advanced Edition (V3.5) on AIX.
I created an initial JAR file containing the bean, home and remote intrface class files. I then created a deployable JAR file using jetace.
When i tried to deploy the Jar file in WebSphere I received the following error.....
EJBDeploy:generateTies(): Generating ties for implementation classes...
rmic command line:
rmic -classpath
/usr/WebSphere/AppServer/deployedEJBs/HelloEJBDepWorkingDir/__ejbjar:/usr/WebSphere/AppServer/lib/ibmwebas.jar:/usr/WebSphere/AppServer/properties:/usr/WebSphere/AppServer/lib/serv let.jar:/usr/WebSphere/AppServer/lib/webtlsrn.jar:/usr/WebSphere/AppServer/lib/lotusxsl.jar:/usr/WebSphere/AppServer/lib/compat.jar:/usr/WebSphere/AppServer/lib/xalan.jar:/usr/WebS phere/AppServer/lib/ns.jar:/usr/WebSphere/AppServer/lib/ejs.jar:/usr/WebSphere/AppServer/lib/ujc.jar:/usr/WebSphere/AppServer//lib/idb.jar:/usr/WebSphere/AppServer/lib/repository.j ar:/usr/WebSphere/AppServer/lib/admin.jar:/usr/WebSphere/AppServer/lib/swingall.jar:/usr/WebSphere/AppServer/lib/console.jar:/usr/WebSphere/AppServer/lib/was20cm.jar:/usr/WebSphere /AppServer/lib/tasks.jar:/usr/WebSphere/AppServer/lib/xml4j.jar:/usr/WebSphere/AppServer/lib/vaprt.jar:/usr/WebSphere/AppServer/lib/sslight.jar:/usr/WebSphere/AppServer/lib/ibmjndi .jar:/usr/WebSphere/AppServer/lib/deployTool.jar:/usr/WebSphere/AppServer/lib/databeans.jar:/usr/WebSphere/AppServer/classes:/usr/WebSphere/AppServer/lib/tools.jar:/usr/WebSphere/A ppServer/lib/bsf.jar:/usr/WebSphere/AppServer/lib/dertrjrt.jar:/usr/WebSphere/AppServer/lib/derdbpw.jar:/usr/WebSphere/AppServer/lib/ivjejb35.jar:/usr/WebSphere/AppServer/lib/js.ja r -keep -iiop -d
/usr/WebSphere/AppServer/deployedEJBs/HelloEJBDepWorkingDir/__ejbjar .EJSRemoteHome
rmic return code = 1
com.ibm.ejs.sm.exception.DeploymentException: Deployment[createEJSJar] failed.
IVJ0805E: There were errors during generation of stubs/ties for the interface classes.
I checked the "__ejbjar" folder and found that the EJSRemoteHome file was not being created.
Can you please let me know what the reason for this error could be and how I can work-around this error ?
Is there any specific setting in WebSphere/jetace environment that I may have overlooked?
i had tried to deploy the EJB in an Application server that I had created. Though I encountered an error while deploying this EJB,i was able to deploy an EJB (jar file) that was provided with the WebSphere example files.
The EJB classes that I created have been included below, for your reference.
Thanks,
Madhu
The EJB classes that I created .........
Home interface -HelloHome.java Remote Interface - Hello.java
Session Bean - HelloEJB.java
The code for each is given below:
HelloHome.java
import javax.ejb.*;
import java.rmi.*;
public interface HelloHome extends EJBHome {
Hello create()
throws RemoteException, CreateException;
}
Hello.java
import javax.ejb.*;
import java.rmi.*;
public interface Hello extends EJBObject {
String sayHello() throws RemoteException;
}
HelloEJB.java
import javax.ejb.*;
import java.rmi.*;
public class HelloEJB implements SessionBean {
String str="Hello";
public void ejbCreate() {
}

public String sayHello() throws RemoteException {
return str;
}
public void setSessionContext(SessionContext sc){}
public void ejbRemove() throws RemoteException {}
public void ejbActivate() throws RemoteException {}
public void ejbPassivate() throws RemoteException {}
}

[This message has been edited by Madhumita Banerjee (edited May 02, 2001).]
[This message has been edited by Madhumita Banerjee (edited May 02, 2001).]
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1859
Hi,
while creating the ejb-jar file i think you have to make that jar file a serialized one(ser file). I think you have missed out this step.


------------------

Mahindrakar
IBM Application Server Forum Moderator
SCJP
Madhumita Banerjee
Greenhorn

Joined: May 02, 2001
Posts: 7
Hi,
I have used the jetace tool provided with websphere to create the deployable JAR file. This tool creates a ser file. The steps I followed are:
a) I created a JAR file containing the class files of the remote, home interface and the session bean (i.e. HelloHome.class, Hello.class, HelloEJB.class).
b) I launched the jetace tool and selected this JAR file to be read by jetace.
c) The jetace tool created a ser file. I then saved the deployable JAR file. The files present in the deployable JAR file created by jetace are :
1. Home interface class file
2. Remote interface class file.
3. session bean class file.
4. ser file.
5. comments.dep
6. comments.env
7. meta-inf/manifest.mf
So, u see, the jetace tool creates a ser file. The deployable JAR file is given as input to WebSphere.
(i.e. after i selected create->EJB Bean option, I browsed to the location of the deployable JAR file).
On double-clicking the JAR file, the ser file created by jetace is seen. On selecting this, a message box appears where I select the "deploy only" option.
At the time of deployment (when WebSphere tries to generate stubs and tie classes), I get the error mentioned in my first mail.
Madhu


[This message has been edited by Madhumita Banerjee (edited May 03, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DeploymentException encountered when trying to deploy an Enterprise Bean in WebSphere