All,

We upgraded the version of jsp that we use with jetty-7.5.2 to be
jsp-impl-2.1.3.b10 (from glassfish).

With this release, if you are using 1.6, it will always try and get the java
compiler from the jvm.
Only if you have a jvm < 1.6 will it fall back to the ecj compiler. We are
waiting on the jsp
project to back-port a bug fix from jsp-2.2 that will allow us to explicitly
force the use of
the ecj compiler. In the meanwhile, we have patched the jsp code and are
waiting on eclipse
Orbit to make a release with those patched jars in it. Until that happens,
we have to use
the stock standard jsp-impl from glassfish, so you will need to have
tools.jar on the
classpath (or precompile your jsps, which is probably safer in a production
environment anyway.)

Jan

On 13 October 2011 10:11, Pavel Jbanov <[email protected]> wrote:

> Make sure you have tools.jar on your classpath.
>
> Pavel
>
>
>
> On Wed, Oct 12, 2011 at 9:59 AM, Leonard Smith <[email protected]> wrote:
>
>> I put a JDK into place, set JAVA HOME though and I am still seeing
>> this error. I put JAVA_HOME into /etc/default/jetty.
>>
>>
>>
>> On Wed, Oct 12, 2011 at 11:57 AM, Joakim Erdfelt <[email protected]>
>> wrote:
>> > The line ...
>> >
>> " 
>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
>> > "
>> > tells me you have JSP files.
>> > You are required to use a JDK when you have JSP, a JRE is not sufficient
>> to
>> > work with JSP files.
>> > You will have to configure your environment to have JAVA_HOME point to
>> the
>> > JDK, not the JRE.
>> > --
>> > Joakim Erdfelt
>> > [email protected]
>> > http://webtide.com | http://intalio.com
>> > (the people behind jetty and cometd)
>> >
>> >
>> > On Wed, Oct 12, 2011 at 8:42 AM, Leonard Smith <[email protected]>
>> wrote:
>> >>
>> >> To all,
>> >>
>> >> I am trying to run solr 1.4 on Jetty 7.5.3. I had it working on 7.5.1.
>> >>  This is on
>> >>
>> >> Centos 5.6
>> >> JRE 1.6.0-24
>> >> Solr 1.4
>> >> Jetty 7.5.3
>> >>
>> >> When I access /solr I get the error below. I've google and I've tried
>> >> installing the JDK, but it doesn't work and I'd like to not have the
>> >> JDK on anyway.
>> >>
>> >> Thanks
>> >> Len
>> >>
>> >>
>> >>
>> >> org.apache.jasper.JasperException: java.err.nojdk
>> >>        at
>> >>
>> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:89)
>> >>        at
>> >>
>> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:375)
>> >>        at
>> >>
>> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
>> >>        at
>> >>
>> org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:198)
>> >>        at
>> >> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:364)
>> >>        at
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:433)
>> >>        at
>> >>
>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
>> >>        at
>> >>
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
>> >>        at
>> >>
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:476)
>> >>        at
>> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
>> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>> >>        at
>> >> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)
>> >>        at
>> >>
>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>> >>        at
>> >>
>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
>> >>        at
>> >>
>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
>> >>        at
>> >>
>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
>> >>        at
>> >>
>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>> >>        at
>> org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:288)
>> >>        at
>> org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115)
>> >>        at
>> >> org.eclipse.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:555)
>> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>> >>        at
>> >> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)
>> >>        at
>> >>
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1358)
>> >>        at
>> >>
>> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:286)
>> >>        at
>> >>
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)
>> >>        at
>> >>
>> org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)
>> >>        at
>> >> org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:144)
>> >>        at
>> >>
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)
>> >>        at
>> >>
>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>> >>        at
>> >>
>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:471)
>> >>        at
>> >>
>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
>> >>        at
>> >>
>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
>> >>        at
>> >>
>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
>> >>        at
>> >>
>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>> >>        at org.eclipse.jetty.server.Server.handle(Server.java:349)
>> >>        at
>> >>
>> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>> >>        at
>> >>
>> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
>> >>        at
>> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)
>> >>        at
>> >> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
>> >>        at
>> >>
>> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:52)
>> >>        at
>> >>
>> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
>> >>        at
>> >>
>> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
>> >>        at
>> >>
>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>> >>        at
>> >>
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>> >>        at java.lang.Thread.run(Unknown Source)
>> >> _______________________________________________
>> >> jetty-users mailing list
>> >> [email protected]
>> >> https://dev.eclipse.org/mailman/listinfo/jetty-users
>> >
>> >
>> > _______________________________________________
>> > jetty-users mailing list
>> > [email protected]
>> > https://dev.eclipse.org/mailman/listinfo/jetty-users
>> >
>> >
>> _______________________________________________
>> jetty-users mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>
>
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to