users@glassfish.java.net

Re: Glassfish v3 java.err.nojdk

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Tue, 10 Nov 2009 16:34:47 -0800

On 11/10/09 08:27, glassfish_at_javadesktop.org wrote:
> Hi,
>
> I'm using glassfish v3 b71, and I've deployed a web application via the admin interface.
> The service works, I can request it but I also have a JSP page that does not work. It always give me a 500 error with the message : java.err.nojdk.
>
> Seeing that message, I understand that glassfish v3 seems to need a configuration about the JDK path. I've searched on mailing lists and forums talking about that, and I've tried to add a JAVA_HOME variable, an AS_JAVA variable into asenv.conf

Try setting JAVA_HOME in your environment (as opposed to adding it or
AS_JAVA to asenv.conf), and make sure it points to a JDK (as opposed to
a JRE)
installation.

Jan

> or to add the jdk/bin directory into the PATH variable, but nothing seems to work...
>
> The glassfish is running on a Ubuntu 9.04 64bits server. Moreover on my computer, the same glassfish v3 with the same web application works, even for the jsp page.
>
> I'm wondering what is the missing configuration I need to make the glassfish work on the server.
>
> Here I paste the full trace of my error,
> thanks for your help
>
> Cédric.
>
> [#|2009-11-10T17:17:14.682+0100|WARNING|glassfishv3.0|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=24;_ThreadName=Thr
> ead-1;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet 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:200)
> at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:379)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
> at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:379)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:483)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:373)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
> at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:802)
> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:664)
> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:497)
> at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:468)
> at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:364)
> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:314)
> at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:542)
> at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:354)
> at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:130)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at org.apache.myfaces.custom.ppr.PPRLifecycleWrapper.render(PPRLifecycleWrapper.java:84)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
> at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
> at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
> at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
> at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
> at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:229)
> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:334)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:814)
> at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:743)
> at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:936)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:682)
> at java.lang.Thread.run(Thread.java:619)
> |#]
> [Message sent by forum member 'cedricbr' (cedric.briancon_at_geomatys.fr)]
>
> http://forums.java.net/jive/thread.jspa?messageID=371290
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>