cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Jar files in PORTAL-INF

SidBhattacharya
Product and Topic Expert
Product and Topic Expert
0 Kudos

How do I add a jar file (for runtime references) in the portal application. I added them in PORTAL-INF\lib and PORTAL-INF\private\lib but it doesnt work.

Accepted Solutions (0)

Answers (1)

Answers (1)

darrell_merryweather
Active Contributor
0 Kudos

You need to amend the library.txt and reference.txt files in the \servers\managers folder to include your file

I hope this helps

D

detlev_beutner
Active Contributor
0 Kudos

Hi Sid,

as far as I have read, the library.txt and reference.txt are for general J2EE applications.

At least for EP6 SP2, put the jar's into the <i>exlib</i> dir (dist/PORTAL-INF/exlib or dist/PORTAL-INF/private/exlib; for public and for private use). The Portal Runtime Doc does not say anything about these dir's, but for some reason, I always use these dir's (successfully). Sorry for not being able to offer the details...

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev,

What are these /exlib folders? I can't see them, just

the /lib ones. /exlib should be created?

Thank you,

Yuri

detlev_beutner
Active Contributor
0 Kudos

Hi Yuri,

yes, they have to be created. For sure it stands for "external libraries", but I really have no further docs on them but the knowledge that it works (at least on EP6 SP2).

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev,

Yes, it works. I also found that placing jar files

under portal-inf/lib works too. Anyway thank you very

much. Do you know a good reference that explains all

the portal's project folders/objects, what each one

of them stands for and how to use it right?

Thank you,

Yuri

detlev_beutner
Active Contributor
0 Kudos

Hi Yuri,

the lib dir is the one where it at least <i>should</i> work, but the original problem was that it did not, for whatever reason...

Anyway, I think it is nice so seperate external used libraries and the own implementation, so just for this reason it makes sense to have the exlib dir.

Yes, within the PDK docs there is some info about the structure: Java Development - Documentation - Getting Started - Creating a Portal Component - Portal Component Structure.

Hope it helps

Detlev

Former Member
0 Kudos

Hi!

And where can I find this iviews's folder \servers\managers?

I'm working with Eclipse 2.1.0 for EP6.

Thanks a lot.

detlev_beutner
Active Contributor
0 Kudos

Hi Maria,

the way Darrell showed is not the recommended way for including external libs for portal apps. In fact, it would be great to have this possibility, but there are different problems, at first classloader problems. Anyhow, server/managers is not an "iViews folder" but a directory within the J2EE server (part of the J2EE servers root, not of servlet or irj service/application).

So my answer in your original thread is the way to go.

Hope it helps

Detlev