users@glassfish.java.net

Re: JSP compiler Erro whit OSGI imported class

From: Sahoo <Sahoo_at_Sun.COM>
Date: Fri, 27 Nov 2009 22:31:10 +0530

You have indeed encountered a bug. Current GlassFish JSP compiler can't
see classes imported from another WAB. This is because it expects all
the dependencies to be specified in a classpath which it can pass onto
the javac. I have always felt, JSP compiler should use a classloader
backed JavaFileManager. Would you mind filing a bug in glassfish for
your use case?

Thanks,
Sahoo

glassfish_at_javadesktop.org wrote:
> Hello,
>
> I have 2 bundle:
> Bundla A --> a WAB bundle with a JSP pages
> and
> Bundle B --> that export class with static fields
>
> The JSP pages (in Bundle A) use the exported class (in Bundle B)
> When I want to see my page, i have compilation error "org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
> "
> can I have in my JSP page to a class imported by OSGi?
>
> Sorry for my english!!!
> But thank you in advance for your response.
> [Message sent by forum member 'sebglon' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=373634
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>