This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem while deploying

 
sridhar mosuru
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
sridhar mosuru
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You srini...I changed the directory and package name and tried afresh.I got it.
 
Rajesh Hegde
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic