Re: [jetty-user] JSP implementation confusion

Jan Bartel <[email protected]> Tue, 6 Aug 2013 08:41:45 +1000
Newsgroups gmane.comp.java.jetty.support
Message-ID <CALg=VpijEJRayXi9rs2m3D5KGP9=2GTg7Wba6emxQgmRfhZ1oA@mail.gmail.com>
Hi Philippe,

Yes, we use Jasper from Glassfish. It actually contains the
capabilities to support various different compilation types, detecting
at runtime what is available. For our osgi environment, we ensure that
we explicitly disable the jsr199 compiler as it requires a special
classpath that is not present in the osgi world:
https://java.net/jira/browse/JSP-21. For jetty-9, by default it will
actually use the jsr199 compiler, but you can turn that off and use
the JDT compiler we ship. In older versions of jetty, the JDT compiler
was needed (can't remember the specifics of which version, you'd have
to check the wiki and docs).

Probably a good point that we could disable access to the
org.apache.jasper.* classes by default. You can do it yourself using
the setSytemClasses() call on WebAppContext if you like:
http://www.eclipse.org/jetty/documentation/current/jetty-classloading.html

cheers
Jan


On 5 August 2013 19:55, Philippe Marschall
<[email protected]> wrote:
> Hi
>
> I'm a bit confused when it comes to the JSP implementation Jetty uses. At
> first glance it seems you're using the reference implementation from
> GlassFish. However whereas the GlassFish implementaiton only has a JSR-19=
9
> compiler and therefore requires a JDK you also seem to have a JDT compile=
r
> and therefore also ship JDT core.
>
> Second the servlet implementation classes (Request, Resonse, Sesion, =85)
> don't seem to be visible to the application classloader (which is good) b=
ut
> the JSP compier classes and the whole of JDT core itself seem to be visib=
le
> to the application classloader. Is this intentional?
>
> Cheers
> Philippe
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>



--=20
Jan Bartel <[email protected]>
www.webtide.com =96 Developer advice, services and support
from the Jetty & CometD experts.