dev@glassfish.java.net

[V3]How to load a jar that has not been OSGi'fied

From: Kin-man Chung <Kin-Man.Chung_at_Sun.COM>
Date: Thu, 05 Jun 2008 18:46:35 -0700

As part of the exercise to separate out JSP codes into an independent
project, jasper is now packaged as a HK2 bundle. It depends on the
package org.apache.logging. If I just get logging jar file from
apache.maven repository, it cannot be loaded at runtime. So I'll need
to use the bundle that has been OSGi'fied in glassfish. However, that
is not available from a public repo. So JSP is now only buildable after
I build glassfish, since by then that bundle will be available in my .m2
repo! :-)

Is there a reason why we cannot load a jar file that has not been
OSGi'fied? Seems like a bug to me.

Suggestions? Thanks.

-Kin-man