• Post Reply Bookmark Topic Watch Topic
  • New Topic

A beginner question about deploy EJB on Weblogic 6.1

 
Nina Wang
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just installed the Weblogic 6.1. And wanted to try a simple HelloWorld ejb on it. But when I create the ejb-jar file by jar cf HelloWorld.jar *, the folder structure of within the Ejb-jar file is:
META-INFO/
META-INFO/MANIFEST.MF
ejb-jar.xml
HelloBean.class
Hello.class
HelloHome.class
Which is not like the one showing on the book:
META-INFO/MANIFEST.MF
META-INFO/ejb-jar.xml
examples/HelloBean.class
examples/Hello.class
examples/HelloHome.class
Why? Is there anything wrong with my ejb-jar.xml? But I just copy the one on the book.
Thanks a lot!
nina
 
Peter Reinhardt
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your jar file is wrong and the other looks fine (it should be META-INF though). the ejb-jar.xml belongs into the META-INF directory.
have a look at the very good examples which come with weblogic, there are even build scripts included which normally just work.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!