• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deployment problem in weblogic 6.0

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi!
i am trying to deploy Hello world example in weblogic 6.0. i have following class files in Demo.jar
1. DemoHome
2. Demo
3. DemoBean
4. xml-ejb.jar
but when i use ejbc i-e
java -Dweblogic.home=d:\export\weblogic\ weblogic.ejbc d:\ejb\demo\Demo.jar -d Bean.jar
i get following error
ERROR: java.io.FileNotFoundException: META-INF/ejb-jar.xml not found in jar file
can any body help me or give me a step by step tutorial to deply this thing
thanks
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This forum is for EJB and for J2EE and is not devoted to Weblogic. We have a forum for Weblogic in the Products section. Please post your query there.
Matt or any Sheriff could you please shift this to that forum.
Thanks.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi mujtaba,
I am herewith writing the steps to deploy ejb in weblogic6.0
1)compile your home,remote and bean class.
2)create a text or xml deploymentdescriptor.
a)Text deploymentdescriptor
you can find sample deplyment descriptor in the weblogic.it may be in the name DeploymentDescriptor.txt.change the home interface,remote and bean class name in the deplymentfile.then use the utility
java weblogic.ejb20.utils.DDConverter -d outputdirectory name Textfilename to create xml file from the text file.you may get two xml files ejb-jar.xml and weblogic-ejb-jar.xml.
b)Xml file descriptor
there are sample xml files in the weblogic directory
named ejb-jar.xml and weblogic-ejb-jar.xml,change the remote,home and bean class name in the xml deploymentdescriptor.

3)create a directory named META-INF and copy the xml file into this directory.
create jar file for meta-inf and the directory containing ejb classes.now use java weblogic.ejbc.
copy the jar file into the application directory of your weblogic mydomain.
start the weblogic server and run your ejb
dont forget to set the classpath to weblogic.jar and weblogic_sp.jar.
srivatsan
4)
 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi when i run command weblogic.ejbc i get error :Class AccountBean not found
Why so?
My commands are:
copy *.xml build\META-INF
javac -d build Account.java AccountHome.java ProcessingErrorException.java AccountBean.java
cd build
jar cv0f beanManaged.jar META-INF wow
cd ..
java -classpath %WL_HOME%/lib/weblogic_sp.jar;%WL_HOME%/lib/weblogic.jar java weblogic.ejbc -compiler javac build\beanManaged.jar %APPLICATIONS%\beanManaged.jar
this iswhere i get error
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
xml-ejb.jar
name should be ejb-jar.xml
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic