jQuery in Action, 2nd edition*
The moose likes EJB and other Java EE Technologies and the fly likes problem while deploying Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "problem while deploying" Watch "problem while deploying" New topic
Author

problem while deploying

sridhar mosuru
Greenhorn

Joined: Dec 17, 2000
Posts: 5
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.

------------------
SRINI VASAN
Ranch Hand

Joined: Aug 29, 2000
Posts: 48
Hai sridhar,
Please check out the class path .. may be ur class path is not pointing to the jar file ( remote & home ) .. also it should point to weblogicaux.jar

Regards
Srini

You can contact me in srinivas_an@yahoo.com
sridhar mosuru
Greenhorn

Joined: Dec 17, 2000
Posts: 5
Thank You srini...I changed the directory and package name and tried afresh.I got it.
Rajesh Hegde
Ranch Hand

Joined: Sep 15, 2000
Posts: 112
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
sridhar mosuru
Greenhorn

Joined: Dec 17, 2000
Posts: 5
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
Rajesh Hegde
Ranch Hand

Joined: Sep 15, 2000
Posts: 112
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem while deploying
 
Similar Threads
Configure Bean in Tomcat 4.0??? (Fast)
Is it mandatory to put a bean inside a package?
File.getPath()
Unable to compile class for JSP No Java compiler was found to compile the generated s
connect jsp to bean