This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NetBeans IDE Dev (Build 200806240008) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows XP version 5.1 Build are successfull but get Http 500 errors on deployment for the following web project types: 1. Visual Web JavaServer Faces framework (EE5 or 1.4) project (w/out components get Http503 error) 2. JSF framework 3. jMaki AJAX framework (with one or more components -- the default created page/template works) Full server.log attached, partial below: SEVERE: ApplicationDispatcher[/WebApplication35] PWC1231: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /Page1.jsp(7,195) PWC6226: Could not add one or more tag libraries. at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:78) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:373) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:130) at org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:255) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:224) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:140) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:200) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:425) 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:487) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:381) 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:871) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:719) 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:410) at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141) at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:320) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render (PartialTraversalLifecycle.java:106) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:304) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:286) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:137) at com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:129) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter (GlassfishProtocolChain.java:61) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:75) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:52) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:54) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:154) Jun 24, 2008 7:11:59 PM org.apache.catalina.core.ApplicationContext log . . . SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /Page1.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@1f8da83] Jun 24, 2008 7:11:59 PM com.sun.faces.lifecycle.Phase handleAfterPhase WARNING: JSF1053: (Listener: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.afterPhase(), Phase ID: RENDER_RESPONSE 6, View ID: /Page1.jsp) Exception thrown during phase-listener execution: com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: /Page1.jsp(7,195) PWC6226: Could not add one or more tag libraries. Jun 24, 2008 7:11:59 PM com.sun.faces.lifecycle.Phase handleAfterPhase WARNING: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:594) com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.afterPhase(ViewHandlerImpl.java:470) com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:106) javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:304) org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218) org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222) org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166) org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:286) com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605) com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536) com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785) com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:137) com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:129) com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:61) com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:75) com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:52) com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:54) com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:154)
Created attachment 63386 [details] full server log
Please attach a sample project to help us with the analysis.
To create a VW project: 1) On Windows, pick installer java + ee5 package (or 'all') and install glassfish v3 tp2 server as well 2) File > new project, select category: Web, project: web Application and press Next 3) for name and location accept defaults, press next 4) for server, select the Glassfish V3 Tp2 server (which obviously should have been installed); for java ee version, java ee5 will be the default, press next 5) for frameworks, check Visual Web JavaServer Faces and press Finish[or alternatively can check JavaServer Faces framework and deploy it) 6) Once designer surface comes up for VW project, drag and drop from the palette a component, such as table (or any component/s) 7) Run/deploy project 7)
The bug is considered as M1 stopper. Please, evaluate it ASAP. Thanks
Can't reproduce it for VW JSF and JSF project in build 200806230002
I followed steps mentioned above and was able to deploy and run the application successfully in the latest trunk build. BTW, Krys mentioned JMaki in summary but in steps are described only JSF table. Probably, the issue would be related to JMaki components.
FILER: Please attach a zip file of the NB project that demonstrates the problem. As you can see.... just describing the steps may not allow evaluators to replicate the issue that you are seeing. This is not unusual, since most people describe their actions in fairly ambiguous ways...
Using the same installer build NetBeans IDE Dev (Build 200806240008) de-installed and re-installed all the servers and Java and EE package on WinXP rebooting before and after. Attaching two web projects, nothing special in them, just basic. Since no one can duplicate this I suspect something in my configuration. Attaching the server log where I reproduced the error. The jMaki add-on is not yet installed. Will do that in the last pass, to rule out any interference there. And will attach that project last. Thanks. (BTW, I also duplicated this on another machine, Vista/Intel machine, same build).
Created attachment 63453 [details] Simplest VWP project
Created attachment 63454 [details] Simplest JSF project
I was not able to reproduce any problems with Web + JSF + V3 (Jun 24 build, Felix OSGi) I did have a problem with a VisualWeb project + V3. I will have to do more checking. Note it is possible this is a server problem.
I end up with a 500 when I run a simple JSF app, too. If I deployed the app onto a v3 domain installed at C:\Program Files\glassfish-v3tp2. I installed and registered another v3 server at c:\users\vbk\Desktop\glassfish... I was able to run the app successfully in that configuration. I also was able to execute the app successfully if i installed the server in c:\users\vbk\Desktop\space test\web\glassfish....
Running a default Web Application with JSF Framework: V2 - page loads fine V3 TP2 (Hk2 kernel) - page loads fine V3 Latest (OSGi kernel) - page loads fine. Running a default Web Application with Visual Web Framework: V2 - page loads fine. V3 TP2 (Hk2 kernel) - page loads fine. V3 Latest (OSGi kernel) - 503 error in browser, ClassNotFoundExceptions in server log, e.g. WARNING: Cannot load com.sun.webui.jsf.util.UploadFilter reason : com.sun.webui.jsf.util.UploadFilter java.lang.ClassNotFoundException: com.sun.webui.jsf.util.UploadFilter at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1503) at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:189) This is may be an OSGi configuration issue since OSGi classloaders are far more restrictive than Hk2 classloaders and fallout from the OSGi changes is still being dealt with.
I reproduced Vince's 500 error with a V3 TP2 install that had a space in the path, so that is a "space in path" bug. Investigating...
I just uninstalled the IDE and GFV3TP2. I reinstalled them, but put the v3 install in c:\sun\glassfish-v3tp2. I recreated a simple jsf app and it deploys and executes correctly. So... that is probably the work-around... lowering to p2. I have a pretty good notion that the issue is really a server bug... not a plugin/IDE issue... I will test that next.
V3 installs with a space in the path: Running a default Web Application with JSF Framework: V3 TP2 (Hk2 kernel) - 500 error in browser, SAX Exception in server log due inability to resolve a DTD: org.xml.sax.SAXException: PWC6181: File file:/space/tools/v3 tp2 with spaces/glassfish/lib/dtds/web-jsptaglibrary_1_2.dtd not found at org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java:519) V3 Latest (OSGi kernel) - page loads fine. Running a default Web Application with Visual Web Framework: V3 TP2 (Hk2 kernel) - 500 error in browser, JasperException in log: SEVERE: ApplicationDispatcher[/VisualWebJsf1] PWC1231: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /Page1.jsp(8,195) PWC6226: Could not add one or more tag libraries. at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:78) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:373) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:130) V3 Latest (OSGi kernel) - 503 error in browser, ClassNotFoundExceptions in server log (same as above). So, as Vince pointed out - use TP2 and don't install with a space in the path and these scenarios should work.
Also confirming that the workaround to override the installer's default location for v3tp2 of c:\program files\ to path with no spaces, e.g. c:\sun\ worked successfully for VW, JSF and jMaki projects. Thanks. I justed tested the workaround on the 6.5 M1 installer build OK. We have to release note this for 6.5 M1 since it packages and installs glassfish v3tp2 in the default location of c:\program files\ for Windows. Users will no doubt run into this.
ClassNotFoundException for VisualJsf apps as https://glassfish.dev.java.net/issues/show_bug.cgi?id=5212
the gf issue is marked as fixed. It looks like this change will appear in a promoted build later this week, then we can test and re-assign this issue to the installer....
*** Issue 140095 has been marked as a duplicate of this issue. ***
Fixed in V3 promoted builds B15 or later, from http://download.java.net/glassfish/v3/promoted/
Verified that glassfish v3-b15a is installed to program files dir and executes VW, JSF, jMaki projects successfully with installer build NetBeans IDE Dev (Build 200807251401) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13 System: Windows XP version 5.1