I tried to deploy a stateless session bean in BEA(version 5.1)I am able jar all the class files and META-INF(deployment descriptor).But when I tried to execute the command "" java weblogic.ejbc first.jar second.jar "".... it is giving me like it is not able to identify the "remote" and "home" interface which I have kept in the same package as the "bean" class.But all the class files are available in that package.I am not able to fix this.
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. Thanx , Rajesh
Joined: Dec 17, 2000
hello Rajesh, u can use the following command for hetting the deplyable bean.I am not familiar with the deployment tool. " java weblogic.ejbc currency.jar currency1.jar(say) " U can xcute the command from weblogic directory... in currency1.jar there will be some more class files added by the above command necessary to run the bean.Now U can deploy easily. Regards Sridhar
Joined: Sep 15, 2000
Thanx sridhar for your help. I tried what you suggested, and it worked fine. With your help i was able to deploy my first EJB. Thanks again, Rajesh