Skip to Content
author's profile photo Former Member
Former Member

deployment of second J2EE app causes class not found in first J2EE app

Hello,

We are working on SAP CE 71, and NWDI. We have 2 tracks each containing a J2EE application (EJB based).

The first application contains an external libray DC. The ear DC of this app contains dependencies to this external lib DC, and when I deploy this application all works well.

When I deploy a scond application (that also uses an external lib DC), residing in a different track, the proper working of the first application is disturbed: it does not find the classes of its external library anymore.

When I redeploy the first application, it works well again and its finds all its classes.

What am I missing here?

Things I tried to solve this problem:

-


A) I went through the post Confusion about third-party-libraries in different versions in CE 71. and tried out storing the external lib DC in a seperate ear but that did not help.

B) I also added a weak reference in my application-j2ee-engine.xml but that did not help:

- the jar file containing the classes to be found is poi-3.6-20091214.jar and is contained in my ear component.

- so I added this to my application-j2ee-engine.xml :

<reference reference-type="weak">

<reference-target

target-type="library">poi-3.6-20091214</reference-target>

</reference>

But when I deploy my application I get an error:

Description:

1. Warning exception has been returned while the [eandis.be/169_sit~ear] was starting. Warnings:[

][

Warning occurred on server 665243852 during startApp eandis.be/169_sitear : Library poi-3.6-20091214 is not deployed or loaded, but resolving of application eandis.be/169_sitear continues because it has weak reference to this library.

Warning occurred on server 665243851 during startApp eandis.be/169_sitear : Library poi-3.6-20091214 is not deployed or loaded, but resolving of application eandis.be/169_sitear continues because it has weak reference to this library.

Warning occurred on server 665243850 during startApp eandis.be/169_sitear : Library poi-3.6-20091214 is not deployed or loaded, but resolving of application eandis.be/169_sitear continues because it has weak reference to this library.

]

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 04, 2011 at 04:23 PM

    The first application contains an external libray DC.

    I wouldnt do it. Create external library and reuse it from both EJB's

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.