embedded@glassfish.java.net

Re: [embedded] nojdk error when trying to use JSR199

From: Rajiv Mordani <rajiv.mordani_at_sun.com>
Date: Fri, 06 Mar 2009 10:15:19 -0800
Hi Joey,
    The jasper-jsr199 capability utilizes the APIs that are in the JDK. It does NOT bundle the Java compiler / APIs. We are working on making GlassFish work with just the JRE with the Java SE team to make a compiler jar available. Until then however you will need a JDK.

- Rajiv

Joey Jarosz wrote:

I am trying to utilize the jasper-jsr199 capability with embedded glassfish. I am doing so for performance reasons, but mostly because I prefer to not have to deal with shipping the JDK with my application (i.e. wanna make the lawyers happy).

 

It was my understanding that with the use of Java 6 and jasper-jsr199.jar that the JDK was not required. Am I confused or do I just have a configuration problem?

 

 

--------------------------------------------------------------------------------------------------------------

SEVERE: ApplicationDispatcher[/admin] PWC1231: Servlet.service() for servlet jsp threw exception

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:195)

            at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:361)

            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)

            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:473)

            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

            …

 

--------------------------------------------
Joey Jarosz

Senior Architect

Chip Planning Solutions

Cadence Design Systems, Inc.
(408) 914-6269


Need some IP? Check out www.chipestimate.com