Discussion:
deploying in weblogic 8.1
(too old to reply)
Anil Kapilavai
2005-02-07 19:49:14 UTC
Permalink
My suggestion would be to check the package name for HelloBean class in the jar file you are trying to deploy (I am assuming you are deploying the EJB as a jar file). The listing of the jar file should show examples/HelloBean. If this is not true, then use the correct package name in the ejb-jar.xml for all the classes you are referencing.
Meera Srinivasan
2005-02-09 14:15:39 UTC
Permalink
Thank you for replying.
This is what I did to create the jar file:
I was in the c:\examples directory and I said
jar -cf HelloWorld.jar examples\*

and when I did jar -xvf HelloWorld.jar, I get

C:\examples>jar -xvf HelloWorld.jar
created: META-INF/
extracted: META-INF/MANIFEST.MF
extracted: examples/Hello.class
extracted: examples/Hello.java
extracted: examples/HelloBean.class
extracted: examples/HelloBean.java
extracted: examples/HelloHome.class
extracted: examples/HelloHome.java
extracted: examples/HelloLocal.class
extracted: examples/HelloLocal.java
extracted: examples/HelloLocalHome.class
extracted: examples/HelloLocalHome.java
extracted: examples/HelloWorld.jar
created: examples/META-INF/
extracted: examples/META-INF/ejb-jar.xml
extracted: examples/META-INF/MANIFEST.MF
extracted: examples/META-INF/WebLogic-ejb-jar.xml

Is it not right? I stil get the error about not being able to load the class
Thanks
Meera
Rob Woollen
2005-02-10 00:31:44 UTC
Permalink
If the package is com.foo.examples and the class name is HelloBean, then
your jar file should have

com/foo/examples/HelloBean.class

and

META-INF/ejb-jar.xml
META-INF/weblogic-ejb-jar.xml

It looks like you have the deployment descriptor nested too deeply.

-- Rob
Post by Meera Srinivasan
Thank you for replying.
I was in the c:\examples directory and I said
jar -cf HelloWorld.jar examples\*
and when I did jar -xvf HelloWorld.jar, I get
C:\examples>jar -xvf HelloWorld.jar
created: META-INF/
extracted: META-INF/MANIFEST.MF
extracted: examples/Hello.class
extracted: examples/Hello.java
extracted: examples/HelloBean.class
extracted: examples/HelloBean.java
extracted: examples/HelloHome.class
extracted: examples/HelloHome.java
extracted: examples/HelloLocal.class
extracted: examples/HelloLocal.java
extracted: examples/HelloLocalHome.class
extracted: examples/HelloLocalHome.java
extracted: examples/HelloWorld.jar
created: examples/META-INF/
extracted: examples/META-INF/ejb-jar.xml
extracted: examples/META-INF/MANIFEST.MF
extracted: examples/META-INF/WebLogic-ejb-jar.xml
Is it not right? I stil get the error about not being able to load the class
Thanks
Meera
Anil Kapilavai
2005-02-10 20:12:46 UTC
Permalink
If you didn't understand Rob's answer, just send the jar file to me (***@yahoo.com) and I'll fix it and send it back to you with an explanation of the fix.

-Anil
Meera Srinivasan
2005-02-16 19:06:43 UTC
Permalink
Thanks for all your help. I created another folder within the examples folder, called it examples & deployed it successfully. Thanks again.
Loading...