I have the follwoing set up. I have a bean called SOFBean. I am calling the bean from SOFServerConnector class. As the name suggest the SOFServerConnector class reside on the same server rather than remote client but in a diffrent folder.
wlserver6.1/config/mydomain/applications/SOFBeanpack.jar
wlserver6.1/config/mydomain/external/SOFserver.jar
using <ejb-client-jar>SOFinterface.jar</ejb-client-jar> I have generated the Home & Remote classes & placed in the same folder as
wlserver6.1/config/mydomain/external/SOFinterface.jar
This gives <Warning> <EJB> <EJB Deployment: SOFBean cannot be redeployed while the server is running. com.sofia.sof.SOFBean is located in the server's classpath.> And finally it results in some error.
But if I remove the SOFinterface.jar from external I am getting java.lang.NoClassDefFoundError: unable to locate the SOFHome exception. I tried to add the EJB location thru manifest Class-Path. But it results in the same Warning like above. I also tried vice-varsa.
Please tell me how I can pack these together without any problem ?
Discussions
EJB programming & troubleshooting: How to pack a Session bean & its client on the same server.
-
How to pack a Session bean & its client on the same server. (3 messages)
- Posted by: RSR Reddy
- Posted on: July 01 2003 02:49 EDT
Threaded Messages (3)
- How to pack a Session bean & its client on the same server. by Brian Tinnel on July 01 2003 09:41 EDT
- How to pack a Session bean & its client on the same server. by RSR Reddy on July 03 2003 23:21 EDT
- How to pack a Session bean & its client on the same server. by Brian Tinnel on July 06 2003 07:55 EDT
- How to pack a Session bean & its client on the same server. by RSR Reddy on July 03 2003 23:21 EDT
-
How to pack a Session bean & its client on the same server.[ Go to top ]
- Posted by: Brian Tinnel
- Posted on: July 01 2003 09:41 EDT
- in response to RSR Reddy
Sounds like maybe the SOFInterface.jar has an ejb-jar.xml file in it. Otherwise I don't know why the app server would try to deploy it. -
How to pack a Session bean & its client on the same server.[ Go to top ]
- Posted by: RSR Reddy
- Posted on: July 03 2003 23:21 EDT
- in response to Brian Tinnel
No, I am not packing the ejb-jar.xml with the SOFinterface.jar. By sensing the SOFHOme & SOFRemote weblogic is trying to redeploy it. -
How to pack a Session bean & its client on the same server.[ Go to top ]
- Posted by: Brian Tinnel
- Posted on: July 06 2003 19:55 EDT
- in response to RSR Reddy
I'm afraid I'm stumped. I don't know weblogic well enough to figure out what it is trying to do. If I get some time in the near future I will try to duplicate your problem. But for now, I hope someone else has a solution.