Meaningless Drivel is fun!*
The moose likes Websphere and the fly likes EJBs in WebSphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "EJBs in WebSphere" Watch "EJBs in WebSphere" New topic
Author

EJBs in WebSphere

Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Deploying EJBs in WebSphere, according to the documentation,
is possible 2 ways. Using the IDE VisualAge from IBM or
by creating a jar file of the Home,Remote and the bean class files and input it to the "jetace" batch file of WebSphere.
Jetace starts the IBM deploy tool which creates a a second jar
file which is fed input to the IBM console EJB deployer.
Where after the process I get an error :

The error here is a dot(.) which appears before EJSRemoteConverterHome in the rmic command.
If I copy the entire command to the command prompt and remove the dot(.) it compiles and gives me all the stubs and skeletons,tie files etc.
Could you please help me out.
Regards
Suneel
[This message has been edited by Suneel Setlur (edited January 26, 2001).]


Suneel
Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Hi
Have deployed Stateful session beans succesfully.

------------------
Suneel
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
how did you do it?
please let me know step by step if possible
thank you
fred
Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Hi Fred
Its going to be a long one..
1. Create a jar file using the EJB components(EJB,Home & Remote....with what ever dependant files) and store it in a directory.
2. At Command prompt, change to WebSphere\AppServer\bin directory give the "setenv" command.
3. From the same bin directory copy a file called "jetace.bat" to the directory where you stored your jar file.
4. Type jetace from your directory. This will give you an interface where you select File Menu and click Load.
5. Browse and load the jar file from your directory. It reads the jar file and enables the New Button on the interface.
6. Click new and you will get a seccond interface with Jetace --UNNAMED_BEAN_1.ser as the title.
7. Change the name of the .ser file and go thru the whole lot of tabs available. As far as possible don't set any transaction types
security types etc. Let it take the default(coz I had some problems when I tried modifying them)
8. After you finish the process just click on the earlier interface where you had the File menu and click save and save it.
9. In the same menu you have "Write XML" as an option. Click on that and it will prompt you for writing the XML to a the jar file
which "jetace" has created for you. If you have clicked Save you will get a jar file called jet_out.jar, else if you have selected
Save As it will be with whatever name you have saved.
10.Now start all you 3 servers
i) IBM HTTP Administration Server
ii) IBM HTTP Server
iii) IBM WS AdminServer( You can do it in the services option of Control Panel)
11.Start the IBM WebSphere Administrator Console (Will take some time)
12. Click Console -->Tasks ----> Select the option ploy Enterprise Beans
13. Nodes -->Your Computer's Name--->Click Next---> Browse and select the jar created using jetace tool
--->Next---->Click Deploy and Manage Work Load .

Thats it.
Use your client class file to invoke the ejb.
My Environment : IBM WebSphere 3.5
Windows 2000 Professional Client and Server / Pentium III 800Mhz with 256 Mb RAM
Regards
Suneel
[This message has been edited by Suneel Setlur (edited January 31, 2001).]
sravan mandala
Greenhorn

Joined: Mar 13, 2001
Posts: 7
Hi Suneel Setlur,
I am new to Websphere3.5 and i am trying to deploy a Stateless session bean just hello program i have written the following program
Hello.java
package package1;
import javax.ejb.EJBObject;
import java.lang.String;
import java.rmi.RemoteException;

public interface Hello extends EJBObject {
public String getMessage() throws RemoteException;
}
HelloHome.java
package package1;
import javax.ejb.EJBHome;
public interface HelloHome extends EJBHome {
public Hello create() throws java.rmi.RemoteException,
javax.ejb.CreateException;
}
HelloBean.java
package package1;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.ejb.EJBException;
import java.rmi.RemoteException;
import java.util.ResourceBundle;
import java.util.ListResourceBundle;

public class HelloBean extends Object implements SessionBean {
public HelloBean ()
{
super();
}
public void ejbCreate () {
}
public void ejbActivate () throws RemoteException
{
}
public void ejbPassivate () throws RemoteException
{
// nothing needed to be done by me
}
public void ejbRemove () throws RemoteException
{

}
public void setSessionContext (SessionContext ctx) throws RemoteException
{
// we don't need the context, so we don't remember it
}
public String getMessage () throws RemoteException
{
return ("Hello World!");
}
}

and i have compiles it and i have written a xml file for deployment descriptor
ejb-jar.xml
<?xml version="1.0"?>
< !DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
<ejb-jar>

<enterprise-beans>
<session>
<ejb-name>statelessSession</ejb-name>
<home>package1.HelloHome</home>
<remote>package1.Hello</remote>
<ejb-class>package1.HelloBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>statelessSession</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
and these files i have compiled and i have created meta-inf folder and i have created a jar file using
jar cf sample.jar package1/*.class meta-inf/*.xml
and i got the sample.jar file and
i had followed the procedure which you have said i loaded this jar file in jetace tool and i have created a sample1.ser file and in the options i have given the .class files and i deployed it and after that i have saved it but when i am deploying in the admin console its saying
Exception:
java.util.zip.ZipException: error in opening zip fileat java.util.zip.ZipFile.open(Native Method)at java.util.zip.ZipFile.<init>(ZipFile.java:71)at com.ibm.ejs.util.jar.EJBZip.<init>(EJBZip.java:25)at com.ibm.ejs.util.jar.EJBJar.<init>(EJBJar.java:41)at com.ibm.ejs.util.jar.ClasspathManager.addJarFile(ClasspathManager.java:93)at com.ibm.ejs.sm.active.ActiveFileBrowserService.listFiles(ActiveFileBrowserService.java:261)at java.lang.reflect.Method.invoke(Native Method)at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:115)at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:468)at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:115)at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)at com.ibm.ejs.sm.agent._AdminAgent_Stub.invokeActiveObject(Unknown Source)at com.ibm.ejs.sm.beans.ServiceBaseImpl.invokeActiveObject(ServiceBaseImpl.java:50)at com.ibm.ejs.sm.beans.FileBrowserServiceBean.invoke(FileBrowserServiceBean.java:254)at com.ibm.ejs.sm.beans.FileBrowserServiceBean.listFiles(FileBrowserServiceBean.java:163)at com.ibm.ejs.sm.beans.EJSRemoteFileBrowserService.listFiles(EJSRemoteFileBrowserService.java:197)at com.ibm.ejs.sm.beans._EJSRemoteFileBrowserService_Tie._invoke(Unknown Source)at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(Unknown Source)at com.ibm.CORBA.iiop.ORB.process(Unknown Source)at com.ibm.CORBA.iiop.WorkerThread.run(Unknown Source)at com.ibm.ejs.oa.pool.ThreadPool$PooledThread.run(ThreadPool.java:528)com.ibm.ejs.sm.exception.DeploymentException: java.util.zip.ZipException: error in opening zip fileat java.util.zip.ZipFile.open(Native Method)at java.util.zip.ZipFile.<init>(ZipFile.java:71)at com.ibm.ejs.util.jar.EJBZip.<init>(EJBZip.java:25)at com.ibm.ejs.util.jar.EJBJar.<init>(EJBJar.java:41)at com.ibm.ejs.util.jar.ClasspathManager.addJarFile(ClasspathManager.java:93)at com.ibm.ejs.sm.active.ActiveFileBrowserService.listFiles(ActiveFileBrowserService.java:261)at java.lang.reflect.Method.invoke(Native Method)at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:115)at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:468)at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:115)at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)at com.ibm.ejs.sm.agent._AdminAgent_Stub.invokeActiveObject(Unknown Source)at com.ibm.ejs.sm.beans.ServiceBaseImpl.invokeActiveObject(ServiceBaseImpl.java:50)at com.ibm.ejs.sm.beans.FileBrowserServiceBean.invoke(FileBrowserServiceBean.java:254)at com.ibm.ejs.sm.beans.FileBrowserServiceBean.listFiles(FileBrowserServiceBean.java:163)at com.ibm.ejs.sm.beans.EJSRemoteFileBrowserService.listFiles(EJSRemoteFileBrowserService.java:197)at com.ibm.ejs.sm.beans._EJSRemoteFileBrowserService_Tie._invoke(Unknown Source)at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(Unknown Source)at com.ibm.CORBA.iiop.ORB.process(Unknown Source)at com.ibm.CORBA.iiop.WorkerThread.run(Unknown Source)at com.ibm.ejs.oa.pool.ThreadPool$PooledThread.run(ThreadPool.java:528)
--------
com.ibm.ejs.sm.client.ClientException: Exception occurredat com.ibm.ejs.sm.client.ClientException.<init>(ClientException.java:41)at com.ibm.ejs.sm.client.ExceptionManager.handleExc(ExceptionManager.java:74)at com.ibm.ejs.sm.client.ui.editor.JarFileGUI.getJarFileChoice(JarFileGUI.java:467)at com.ibm.ejs.sm.client.ui.editor.JarFileGUI.<init>(JarFileGUI.java:287)at com.ibm.ejs.sm.client.ui.editor.EnterpriseBeanPropertySheet.handleJarBrowsing(EnterpriseBeanPropertySheet.java:1172)at com.ibm.ejs.sm.client.ui.editor.EnterpriseBeanPropertySheet.access$5(EnterpriseBeanPropertySheet.java:1099)at com.ibm.ejs.sm.client.ui.editor.EnterpriseBeanPropertySheet$PropertySheetListener.actionPerformed(EnterpriseBeanPropertySheet.java:1411)at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1068)at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1103)at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:380)at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:252)at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:222)at java.awt.Component.processMouseEvent(Component.java:3169)at java.awt.Component.processEvent(Component.java:2995)at java.awt.Container.processEvent(Container.java:990)at java.awt.Component.dispatchEventImpl(Component.java:2319)at java.awt.Container.dispatchEventImpl(Container.java:1026)at java.awt.Component.dispatchEvent(Component.java:2315)at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2021)at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1868)at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1761)at java.awt.Container.dispatchEventImpl(Container.java:1026)at java.awt.Window.dispatchEventImpl(Window.java:738)at java.awt.Component.dispatchEvent(Component.java:2315)at java.awt.EventQueue.dispatchEvent(EventQueue.java:359)at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:118)at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:94)at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

Please can you tell me how to deploy a bean
Regards
shravan
Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Hi
You have written the xml descriptor yourself and created the meta directory etc similar to that of deploying an EJB in WebLogic. Here, in WebSphere, if you can follow my steps, I have mentioned that there is an option of writing XML.
WebSphere follows the EJB 1.0 specs not 1.1 like that of Weblogic. Please go thru my steps as it is. When I said dependant files, I meant any java class files etc which require to be there along with the interfaces and bean file.
Hope it helps !
Suneel
sravan mandala
Greenhorn

Joined: Mar 13, 2001
Posts: 7
Hi Sunil,
I have created a jar file as per what you have said i am able to deploy the bean but when i am running the client i am getting the following error
E:\WebSphere\samples>java HelloClient
1
2
3
iiop://192.168.0.11
com.ibm.ejs.ns.jndi.CNInitialContextFactory
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/rmi/iiop/ORB
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:477)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:199)
at org.omg.CORBA.ORB.create_impl(ORB.java:303)
at org.omg.CORBA.ORB.init(ORB.java:352)
at com.ibm.CORBA.iiop.GlobalORBFactory.init(GlobalORBFactory.java:42)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:196)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java, Compiled Code)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:65)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:47)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:343)
at com.ibm.ejs.ns.jndi.CNInitialContextFactory.initORB(CNInitialContextFactory.java:355)
at com.ibm.ejs.ns.jndi.CNInitialContextFactory.getInitialContext(CNInitialContextFactory.java:196)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
at javax.naming.InitialContext.init(InitialContext.java:226)
at javax.naming.InitialContext.<init>(InitialContext.java:202)
at HelloClient.main(HelloClient.java:25)
and my client program is
HelloClient.java
import package1.*;
import java.util.*;
import java.rmi.*;
import javax.naming.*;
import javax.ejb.*;
import javax.rmi.PortableRemoteObject;
public class HelloClient{
public static void main(String [] args) {
try {
System.out.println("1");
Properties properties = new Properties();
System.out.println("2");
properties.put(javax.naming.Context.PROVIDER_URL,"iiop://192.168.0.11");
properties.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
System.out.println("3");
System.out.println(properties.get(javax.naming.Context.PROVIDER_URL));
System.out.println(properties.get(javax.naming.Context.INITIAL_CONTEXT_FACTORY));
InitialContext initial= new InitialContext(properties);
System.out.println("4");
Object homeObject=initial.lookup("sample1");
System.out.println("5");
HelloHome home =(HelloHome) PortableRemoteObject.narrow(homeObject,HelloHome.class);
System.out.println("6");
Hello hello = home.create() ;
System.out.println(hello.getMessage()) ;
hello.remove() ;
}catch(Exception excp) {
excp.printStackTrace() ;
}
}
}
please can you help me sunil, in the Websphere console its showing in the running status but still i am unable to run the above client program please can you look into that and do i have to set any classpath etc.
Waiting for your reply eagerly
Regards
shravan
Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Hi Sravan
The URL_PROVIDER is required for the example to run when it is being deployed using the URL_PROVIDER source specifying various variables. In this case, suggest you try commenting the URL_PROVIDER line, recompile and run. I have checked it out.
If you can go thru my code for a similar program.....may be you can understand better.
The code is here
Regards
Suneel
sravan mandala
Greenhorn

Joined: Mar 13, 2001
Posts: 7
Hi Suneel,
I had commented the provide_url line but still its giving the same problem i dont know why i am getting such error please tell me what are all the classpath you have set after installing the Wesbphere3.5, the error is
E:\WebSphere\samples>java package1.CartClient
1
2
3
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/rmi/iiop/ORB
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:477)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:199)
at org.omg.CORBA.ORB.create_impl(ORB.java:303)
at org.omg.CORBA.ORB.init(ORB.java:352)
at com.ibm.CORBA.iiop.GlobalORBFactory.init(GlobalORBFactory.java:42)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:196)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java, Compiled Code)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:65)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:47)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:343)
at com.ibm.ejs.ns.jndi.CNInitialContextFactory.initORB(CNInitialContextFactory.java:355)
at com.ibm.ejs.ns.jndi.CNInitialContextFactory.getInitialContext(CNInitialContextFactory.java:196)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
at javax.naming.InitialContext.init(InitialContext.java:218)
at javax.naming.InitialContext.<init>(InitialContext.java:194)
at package1.CartClient.<init>(CartClient.java:22)
at package1.CartClient.main(CartClient.java:11)
and i modified the client program as
package package1;
import java.util.*;
import java.rmi.*;
import javax.naming.*;
import javax.ejb.*;
import javax.rmi.PortableRemoteObject;
public class CartClient
{
public static void main(String args[])
{
new CartClient();
}
CartClient()
{
try {
System.out.println("1");
Properties properties = new Properties();
System.out.println("2");
properties.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
System.out.println("3");
Context initial= new InitialContext(properties);
System.out.println("4");
Object homeObject=initial.lookup("sample1");
System.out.println("5");
HelloHome home =(HelloHome)PortableRemoteObject.narrow(homeObject,HelloHome.class);
System.out.println("6");
Hello shoppingCart = home.create();
System.out.println("the output is :"+shoppingCart.getMessage());
}
catch (Exception ex)
{
System.err.println("Caught an unexpected exception!");
ex.printStackTrace();
}
}
}
Please kindly help me suneel
waiting for your reply
Regards
shravan
Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Hi Sravan
Either your deployed bean has a difficulty or its with your classpath setting. I tried out your program, but am unable to simulate an error similar to what you are getting.
Check out your classpath. Remove all env vars and just run the setenv batch file from the websphere\appserver\bin directory.
You must be able to get it.
Regards
Suneel
Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Hi Uma
What is your question?
uma K
Greenhorn

Joined: May 29, 2001
Posts: 5
Suneel,
I am facing the same problem. So I tried using the command that you had mentioned without dot (.). But I got an error JSRemoteConverterHome class not found. I changed this to JSRemote<My bean name>Home. But the problem still remains.
Any help??
Originally posted by Suneel Setlur:
[B]Deploying EJBs in WebSphere, according to the documentation,
is possible 2 ways. Using the IDE VisualAge from IBM or
by creating a jar file of the Home,Remote and the bean class files and input it to the "jetace" batch file of WebSphere.
Jetace starts the IBM deploy tool which creates a a second jar
file which is fed input to the IBM console EJB deployer.
Where after the process I get an error :

The error here is a dot(.) which appears before EJSRemoteConverterHome in the rmic command.
If I copy the entire command to the command prompt and remove the dot(.) it compiles and gives me all the stubs and skeletons,tie files etc.
Could you please help me out.
Regards
Suneel
[This message has been edited by Suneel Setlur (edited January 26, 2001).][/B]

uma K
Greenhorn

Joined: May 29, 2001
Posts: 5
Suneel,
I Tried deploying the Enterprise beans in both ways (i) using jetace and following the steps as described by you in earlier message (ii) modifying the sample createbeans.bat and the necessary xml file for my application.
Either way I am not at all able to deploy the beans. I get the same 'Create Exception'
On the other hand I tried recompiling the sample application (HelloEJB) and creating deployable JAR file using the given createbeans.bat file. I am able to deploy the sample application without any problems.
What I have written is the standard "Hello" application with no dependencies.

Rohit C
Greenhorn

Joined: May 30, 2001
Posts: 1
Use the IBM SDK to create the jar file.
use the tool - jetace to create the deployable jar
when u deploy/create the enterprise bean, another jar file deployed*appname*.jar will be created .. copy this jar to client app and set the classpath pointing to this jar.
Francisco I
Ranch Hand

Joined: Mar 27, 2001
Posts: 44
Hello Fred.
Did you ever got through that ExecutionException in Websphere?. How did you do it?, what was it?. I am also getting it. I use IBM's JDK, and I am compiling my java files with that JDK as well. I am also trying a "Hello world" bean that I created and it worked in web logic....
Thanks!
Francisco.
Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Hi Uma
Just open the WAS Admin Console go to the Default Server-->Default Container and right click on that tab.You will get the create option. Select create -->and select Create Enterprise bean, specify the jar file and proceed for deployment.
Should clear your doubt...
Suneel
uma K
Greenhorn

Joined: May 29, 2001
Posts: 5
Thanks Rohit & Suneel
I was using JDK downloaded separately for compilation and creating JAR files.
rajesh boorla
Greenhorn

Joined: Sep 01, 2001
Posts: 3
hi all,
i am learning ejbs i have deployed ejb in websphere3.5 successfully but when i am running the client program i am getting the error :
java.lang.NoClassDefFoundError
so can any body help me in this regard.
Konda Balabbigari
Ranch Hand

Joined: Jan 02, 2001
Posts: 35
This might help you
http://www.javaranch.com/ubb/Forum46/HTML/000455.html
Thanks
Konda Balabbigari
 
Don't get me started about those stupid light bulbs.
 
subject: EJBs in WebSphere
 
Similar Threads
DeploymentException encountered when trying to deploy an Enterprise Bean in WebSphere
Exception In Deployment Time( WAS 3.5.5)
EJB deployment problems
Problem when deploying beans
Deployment of Session Bean