on 09-16-2004 10:23 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.