users@glassfish.java.net

Re: Application Libraries - domains/domain1/applibs

From: <glassfish_at_javadesktop.org>
Date: Thu, 02 Aug 2007 11:29:54 PDT

In response to:

>Currently, there is no way of providing library dependencies in the sun DD. It
> is an option specified during the deployment of the application.

Actually, there is a way: use the "extra-class-path" attribute of the <class-loader> element in sun-web.xml. Relative paths are interpreted as relative to the webapp's docroot.

Example:

  <sun-web-app>
    <class-loader extra-class-path="WEB-INF/lib/extra/extra.jar"/>
  </sun-web-app>

See also https://glassfish.dev.java.net/issues/show_bug.cgi?id=904
("extra-class-path attribute in <class-loader> should allow path relative to docroot")
[Message sent by forum member 'jluehe' (jluehe)]

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