users@glassfish.java.net

OSGi bundle cannot find classes in glassfishv3/glassfish/lib/*.jar files

From: <glassfish_at_javadesktop.org>
Date: Fri, 09 Apr 2010 16:55:04 PDT

I have an OSGi bundle that attempts to load a class by name (Class.forName(...)), and is getting a ClassNotFoundException.

The jar containing the class is located in the glassfishv3/glassfish/lib/ directory.

My bundle is located in glassfishv3/glassfish/domains/domain1/autodeploy/bundles/

I do not specifically import the package through the manifest file, but I do have the manifest entry "DynamicImport-Package:*"

I am using glassfish v3 final, with all the latest updates.

Is the behavior I am seeing expected or a bug? If it is expected behavior, is there another place where I can put my jar files so that my bundle will be able to see them, without making them into bundles or embedding them within my bundle?

Thanks in advance
Bryce
[Message sent by forum member 'bhar99328']

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