cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing beans from other j2ee application into the existing j2ee applicat

Former Member
0 Kudos

Hi,

We are facing problem in accessing entity beans of other j2ee application from the existing j2ee application. The details of the problem are as below:

1. We have 2 j2ee pplications - hsspapp and hsextapp

2. hsspapp DC has 3 EJB Dcs(pe_mgt,hsdelinv,hssp_mdm), and uses 1 libary DC 'hssplibrary' and 1 Java DC 'newhelper'

and hsextapp DC has 1 EJB Dc (hssec) uses1 library DC 'hsnewlib' and 1 Java DC 'hsnewhlp'.

3. The EJB DC (hssec)in hsextapp application DC uses(refers) the entity beans from the several DCs under hsspapp application DC.

To acheive this, we took the following steps:

a. We have declared the required DCs(pe_mgt,hsdelinv) as used DCs for hssec.

b. These were also referred in the usedDCs list of the enclosing j2ee application-'hsextappp'.

c. Apart form these, we referred the library and the Java DC in the used DCs list of both the EJB DC and the j2ee application-'hsextapp'.

However, having done this, we are still not able to deploy the application hsextapp. We get the following error-on:

java.lang.NoClassDefFoundError: com/apil/hssp/pemgt/entity/SurveyCK

It does not find the java classes from inside the other application 'hsspapp'.

Could you please suggest us a way to solve this problem.

Regards,

Apeksha

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Apeksha,

you have to declare a reference to the used application in application-j2ee-engine.xml. Otherwise the classloader can´t find the classes of the used application.

Regards

Sebastian

Former Member
0 Kudos

Hi Sebastian,

Thanks for the reply. We added the required application in the application-j2ee-engine.xml of the using application. However, still we are facing the same deployment error of unable to find the files inside the other application.

Is there something else that needs to be taken care of?

Thanks

Apeksha