compile « Glassfish « JSP-Servlet Q&A





3. Where are compiled JSP's?    java.net

When using GlassFish v2 and Java 6 (as you are), you must set "keepgenerated" to "true" if you want to see the generated source code, since the default value of the "keepgenerated" JspServlet init parameter defaults to "false" for this combination, in order to not defeat the gains of in-memory compilation used by this combination. You mention that you've set "keepgenerated" ...

7. PWC6033: Unable to compile class for JSP    java.net

PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException at org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:172) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:368) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:360) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:875) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:558) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:490) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:382) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267) at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178) at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:188) at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) ...

8. Compiling JSP is slow on v3    java.net

I downgraded to Tomcat 6. It is so much faster. This is a webapp with about 30 jsp files. Nearly every night a new version gets deployed. There are a two users that start early in the morning and they struggle through the pages to get compiled. With Tomcat 6 they do not notice the JSP compile time.

9. JSP will not compile in GlassFish v3 (build 47.4)    java.net

I get data back from my ejbs and try to display that data in my jsp. I put that data into a request attribute, using request.setAttribute(). I am going to retrieve this request attribute in my jsp and then display it. And in order to do this I have to declare the type of data in the request attribute. But when ...





11. Glassfish JSP Compilation Tuning for SPARC    java.net

Good afternoon! I am looking for any and all information on how to tune glassfish to compile JSPs with multiple threads using SPARC CoolThreads architecture. Currently, we have the fork-true set in the configuration for glassfish, and noticed that each page access spawns a seperate thread to compile any JSPs needed for that page view. However, the goal/idea is to pre-compile ...

12. Embedded GlassFish v3.0.1 fails to pre-compile JSP files    java.net

I have this strange problem: 1. Started glassfish embedded in my application. 2. Deploy one or more webApps with precompilejsp parameter set to true. 3. No problems! 4. Attempt to deploy another application a few minutes later using the same code in the same application generates the following stacktraces and the new webApp fails to deploy successfully.