cancel
Showing results for 
Search instead for 
Did you mean: 

reference.txt & library.txt file question for SP6 SP2

0 Kudos
182

Hi

I need to be able to reference a portal component api library from a J2EE application outside of the IRJ application. This is normally done through the above files, however, the syntax in the files looks like the libraries have to be in the additional-lib folder, which doesn't seem very flexible. Basically I am trying to access a portal service through JNDI from a J2EE application on the same J2EE server (SP2). I can access it through JNDI, however, the problem I have is that because I need to cast the object to an IMyService class I get a ClassNotFoundException. This is because the class is part of the API jar file of the component, which the J2EE application cannot find. I don't want to have to copy the file to the additional-lib folder for this file to be accessible, so does anyone know how to create a reference to this api.jar file ?

Thanks

D

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
Former Member
0 Kudos

Update for all others looking for a similar solution:

This works only portals >= SP3

It's not possible to reference a portal component from outside the portal on 6.20 servers.

0 Kudos

Thats a shame, and also a bit strange seeing as you can still reference a portal service using JNDI, but you can't cast it into the relevant Interface because you don't have access to the library. Seems a bit stupid.

Never mind

Thanks anyway