Saran
Sun Certified Java2 Programmer
Originally posted by Lokesh Mahajan:
Dear Friends
I have some basic problem with ejb.
created three .class files & than .ser files.
now the question is how to deploy them.
i am working on weblogic 5.1.0.
steps i had taken
1>Compile the .java Files (i compiled all the three file)
a>one is interface HelloHome extending EJBHome
b>second is interface Hello extending EJBObject.
c>third is HelloBean implementing SessionBean.
2>Create the DeploymentDescriptor
now i dont have DDCreator to create .ser files,so i had write down the program to create .ser file.
3>Create the ejb-jar file
created this jar file at the dos prompt.
created a Hello.jar file contents of it are shown bellow.
META-INF/MANIFEST.MF
ejb/demo/Hello.class
ejb/demo/HelloBean.class
ejb/demo/HelloHome.class
ejb/demo/HelloBeanDD.ser
4>now next step is BEA Weblogic Deployment
steps to undertake.
a>Generate the implementations
java weblogic.ejbc -d /export/weblogic/classes
ejb/demo/HelloBeanDD.ser
This utility creates classes with names similar to those below and puts them
under the /export/weblogic/classes directory.
i am not getting through this step its not working.so i struck here.
b>Put the Demo.jar into the CLASSPATH of the Weblogic server
i am working on windows nt os. so i have to modify the file
startWebLogic batch file ,but here in this file two types of variable are given pre & post so what to do which one to modify.
c>Edit the weblogic.properties file to include the new Enterprise
JavaBean
with this part no problem.
d>Stop and restart the Weblogic server
I procced with this half complete & started weblogic server.
than started ejb deployer while generating the container i get the following
error
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.java:1123)
at
weblogic.ejb.ui.deployer.AbstractProjectRootNode.loadDeploymentUnit(AbstractProjectRootNode.java:161)
at
weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRootNode.java:120)
at
weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRootNode.java:101)
at
weblogic.ejb.ui.deployer.ProjectLoaderWorker$LoaderThread.run(ProjectLoaderWorker.java,
Compiled Code)
Unable to load 'E:\weblogic\classes\Demo.jar'
Failed to load E:\weblogic\classes\Demo.jar
please try to guide me in this situation.
thanking you in advance.
love
lokesh
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|