dev@glassfish.java.net

Re: Location of User JARs in GlassFish ?

From: Sahoo <Sahoo_at_sun.com>
Date: Thu, 28 Aug 2008 07:09:38 +0530

Don't expect an OSGi module to be able to load classes from domain/lib
or lib. Only application class loaders have visibility to those libraries.

Thanks,
Sahoo

Arun Gupta wrote:
> With 8/24 nightly, dropping a JAR file in lib directory does not seem
> to get picked up.
>
> 8/25: nightly not there
> 8/26: Rails is broken
> 8/27: Startup gives the error:
>
> -- cut here --
> Aug 27, 2008 5:08:43 PM
> SEVERE: com.sun.enterprise.module.ResolveError: Failed to start
> org.glassfish.web.web-cli(Web module command line
> interface):10.0.0.SNAPSHOT
> Aug 27, 2008 5:08:43 PM
> SEVERE: at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.resolve(OSGiModuleImpl.java:111)
> Aug 27, 2008 5:08:43 PM
> SEVERE: at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:120)
> Aug 27, 2008 5:08:43 PM
> SEVERE: at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1.loadClass(OSGiModuleImpl.java:252)
>
> Aug 27, 2008 5:08:43 PM
> -- cut here --
>
> Where can I drop a JAR file in GlassFish so that it gets picked up ?
>
> -Arun