users@glassfish.java.net

Re: [glassfish osgi]

From: Sahoo <Sahoo_at_Sun.COM>
Date: Thu, 13 Aug 2009 22:31:58 +0530

It's a limitation of our JSP compiler that it's not able to locate OSGi
API classes. So, you are seeing the compilation failure. Please file a bug.

Thanks,
Sahoo

Alexander Blotny wrote:
> Hi,
>
> I am using GlassFish Server v3 Preview.
> I try to access org.osgi.framework.BundleContext from a jsp. Therefore
> I wrote a bundle that is storing the BundleContext (in the start
> method of BundleActivator).
> After starting the war file and accessing the jsp I get following error:
> ...
> PWC6199: Generated servlet error:
> string:///index2_jsp.java:7: package org.osgi.framework does not exist
>
> PWC6199: Generated servlet error:
> string:///index2_jsp.java:11: package org.osgi.framework does not exist
> ...
>
> It seems that the packages can not be loaded. My question is how I can
> make sure that this is happen.
> When I am accessing a package from a bundle I started in Felix there
> is no error. Are these packages private?
>
> greetings,
> Alex