users@glassfish.java.net

v2 B24 + JDK 1.6 Beta 2 - Jsp Compile Problem

From: David Harrigan <dharrigan_at_gmail.com>
Date: Fri, 3 Nov 2006 07:48:44 -0800 (PST)

Hi,

When I try to access a JSP using JDK 1.6 Beta 2, I get this error:

[#|2006-11-02T13:43:52.668+0000|SEVERE|sun-appserver-pe9.1|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=TP-Processor3;_RequestID=614077c6-d345-493b-a036-b9fa945e0b08;|ApplicationDispatcher[]
PWC1231: Servlet.service() for servlet jsp threw exception
java.lang.NoSuchMethodError:
javax.tools.ToolProvider.getSystemJavaCompiler()Ljavax/tools/JavaCompiler;
at org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Unknown Source)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:360)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:581)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
...
...
...
...


I do not get the same problem if I run JDK 1.5.0_09


Obviously, it's taking some advantage of the new javax tools javacompiler
interface in JDK 1.6, and I can confirm that my instance of GF is running
with JDK 1.6 beta 2. Anyone know anything about this problem?

-=david=-
-- 
View this message in context: http://www.nabble.com/v2-B24-%2B-JDK-1.6-Beta-2---Jsp-Compile-Problem-tf2568651.html#a7159948
Sent from the java.net - glassfish users mailing list archive at Nabble.com.