Kin-man Chung wrote:
> 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.
It should be and it is available [1] in the GlassFish maven repo, which
is open to public. You are probably not configuring the repository
properly in your pom.xml.
> 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.
>
No, it is not a bug. A bundle can load stuff from other bundles, but not
from arbitrary jar files.
Thanks,
Sahoo
[1]
http://download.java.net/maven/glassfish/org/glassfish/external/apache-commons/10.0-SNAPSHOT/