users@glassfish.java.net

Re: External JAR files in Application Client

From: <glassfish_at_javadesktop.org>
Date: Tue, 24 Feb 2009 12:14:25 PST

You are close.

You need to get the log4j JAR file onto the class path, in one of several ways:

- Set the environment variable APPCPATH so it includes the full path to the log4j JAR file itself, not the containing directory.

- Set the environment variable VMARGS to -Djava.endorsed.dirs=/opt/glassfish/domains/domain1/lib/ext:${your-JRE-home}/lib/endorsed

Also, you should avoid referring to the internal app server directories such as under the generated directory. That is not an official published interface for GlassFish and, conceivably, the contents of such directories, their locations, and even their existence could change from release to release.

Let us know if either of these helps.

- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]

http://forums.java.net/jive/thread.jspa?messageID=333631