EJB programming & troubleshooting: EJB Deployment problem
I am learning EJB and in the first step of deployment i am facing problems . I am working on weblogic 5.1. I have a simple EJB that does some simple calculation.
I have placed the Bean class,home interface and remote interface in a package called "demobean".
Then i created a temp folder called "EJB1" where i placed the demobean directory. I also created the META-INF folder containing the ejb-jar & weblogic-ejb-jar. xml files.
I create the jar using "jar cf currency.jar demobean META-INF" .So "currency.jar" is my final jar.
I then open the currency.jar file in the deploytool. It does the first stage processing, but when i attempt to generate the container classes , the deploytool utility stops responding.
I am running weblogic on 64 MB Ram system. Has my problem got to do with the less Ram ? On the same m/c my collegue was able to deploy a EJB however.
Also can any one suggest me an alternate way to generate the container classes.
- EJB Deployment problem by amol anvekar on December 20 2000 05:53 EST
- Ejb deployment by sarath chand on June 23 2004 04:46 EDT
try generating the container classes using ejbc from the command prompt, which comes along with weblogic.
do u get any error in the console of ejbdeployer?
META-INF should be in the Root directory..
Supposing c:/xxx/bean contains your bean classes then
META-INF should be at c:/xxx.
The jar command should be ...
jar cv0f bean/*.class META-INF.
I am learning EJB i don't know how to deploy the bean.somebody help me.i am using tomcat server.is it possible with it.
I am learning EJB i don't know how to deploy the bean.somebody help me.i am using tomcat server.is it possible with it.Hello,
You can not deploy an EJB on Tomcat server. For deploying EJB u need a application server like weblogic,Websphere,JBoss etc. Tomcat is a servlet container (web server). Please check the tomcat site as well , you will come to know about the tomcat server.