By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,824 Members | 2,359 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,824 IT Pros & Developers. It's quick & easy.

Code shared by 2 EJB, where to put ?

P: n/a
Hi,

I built an EAR (on WebLogic) that contains 2 session EJB which share
some common Java classes (utility methods for example).

I made a .jar with the .class of the common classes and I put it in
directory META-INF/lib of the EAR.

For the EJB to find the common library, I added the following line in
the MANIFEST.MF of the .jar of the EAR :
Class-Path: META-INF/lib
But when deploying on WebLogic, the EJB cannot find the common classes.

What goes wrong ?

I tried to put the .class directly in the EJB (duplicating the shared
classes) but it did not work.
I also tried to modify the MANIFEST.MF of the .jar of the EJB but it did
not work neither.

Thanks for your help.
Marc
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Marc Ferry" <mf********@rd.francetelecom.com> wrote in message
news:bu*********@news.rd.francetelecom.fr...
| Hi,
|
| I built an EAR (on WebLogic) that contains 2 session EJB which share
| some common Java classes (utility methods for example).
|
| I made a .jar with the .class of the common classes and I put it in
| directory META-INF/lib of the EAR.
|
| For the EJB to find the common library, I added the following line in
| the MANIFEST.MF of the .jar of the EAR :
| Class-Path: META-INF/lib
| But when deploying on WebLogic, the EJB cannot find the common classes.
|
| What goes wrong ?
|
| I tried to put the .class directly in the EJB (duplicating the shared
| classes) but it did not work.
| I also tried to modify the MANIFEST.MF of the .jar of the EJB but it did
| not work neither.
|
| Thanks for your help.
| Marc

Hi Marc, I think that you need to name the jar explicitly, not just the
directory in the manifest like Class-Path: META-INF/lib/myjar.jar
see here
http://access1.sun.com/techarticles/...ngEARs.html#dd
--
-P

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.