What you have to do is putting the ejb-jar.xml file into a subdirectory
called "META-INF" inside the hello.jar file.
Assuming you have a directory structure as follows:
dev
-> \com
--> \hello
---> *.class
-> \META-INF
--> ejb-jar.xml
Now go into the dev directory and call "jar cf hello.jar com\hello\*.class
META-INF\ejb-jar.xml". The "ejb-jar.xml" will be placed in a directory
called META-INF.
Regards,
.bbr
> -----Urspr�ngliche Nachricht-----
> Von: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]Im Auftrag von Akhil Nagpal
> Gesendet: Sonntag, 5. November 2000 10:41
> An: [EMAIL PROTECTED]
> Betreff:
>
>
> i am new to EJB. i would appreciate if u kindly clear the thin as =
> follows:
>
> 1) Well i have made simple session ( stateless) beans. the problem is =
> coming in deploying this beans in BEA weblogic server 5.1 . i am using =
> its EJB deployer tool. Well i have packed home and remote interface, =
> bean class and DD file into one jar file called hello.jar
>
> how ever the error i ma getting is something related to ejb-jar.xml not =
> found. What exactly is this the file purpose?
>
> java.io.FileNotFoundException: META-INF/ejb-jar.xml XML file not found =
> in jar file
> at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:93)
> at =
> weblogic.ejb.deployment.dd.DescriptorLoader.<init>(DescriptorLoader.java:=
> 151)
> at =
> weblogic.ejb.ui.deployer.DeployerFrame.loadDeploymentUnit(DeployerFrame.j=
> ava:1123)
> at =
> weblogic.ejb.ui.deployer.AbstractProjectRootNode.loadDeploymentUnit(Abstr=
> actProjectRootNode.java:161)
> at =
> weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRoot=
> Node.java:120)
> at =
> weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRoot=
> Node.java:101)
> at =
> weblogic.ejb.ui.deployer.ProjectLoaderWorker$LoaderThread.run(ProjectLoad=
> erWorker.java, Compiled Code)
>
>
> Unable to load 'c:\weblogic\akhil\hello.jar'
> Failed to load c:\weblogic\akhil\hello.jar
>
>
>
> 2) can i know some resources fro deploying the beans ?
> Thanks and regards
>
> Akhil Nagpal
>
> ==================================================================
> =========
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".