JAR use with xpages

I am having a problem in using JAR files with javascript…

I have:

  1. Created the WebContent/WEB-INF/lib folder.

  2. Copied some JARS to the folder (iText-2.0.8.jar and others).

  3. Created a server-side script which successfully makes calls to the classes contained in the JAR files.

However, the iText JAR contains resources (.afm fonts) needed by the iText classes which don’t seem to get unpacked and made available in the server-side build path, which is apparently a common problem. I get the error ".afm files must exist as resouces in the package …)" though they definitely exist in the JAR.

So I am wondering…

A. Is it possible to view the temp files created by the XPage/JFaces engine in Domino to verify whether the resources are unpacked?

B. Is it possible to adjust the server build/JFace settings on the server to ensure these JAR resources are accessible (I notice a resource filter setting under Project Properties/Java Compiler but I am using the default which does not exclude *.afm files)

Subject: Solution

It seems the Java Agent Class loader has a security restriction meant to prevent the loading of native code, which prevents the opening of the *.afm resource files.

I was able to get around this restriction using the JavaUserClasses notes.ini parameter on my server. http://www-10.lotus.com/ldd/dominowiki.nsf/dx/javauserclasses

To do this the problem jar files had to be included in my Notes agent in the database, and saved to the server file system for loading via the JavaUserClasses parameter.