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.

Bug 138174 - Can't deploy VW, JSF, jMaki projects to GF TP2
Summary: Can't deploy VW, JSF, jMaki projects to GF TP2
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
: 140095 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-25 03:42 UTC by _ krystyna
Modified: 2008-07-26 00:27 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full server log (120.81 KB, text/plain)
2008-06-25 03:43 UTC, _ krystyna
Details
Simplest VWP project (8.83 MB, application/x-compressed)
2008-06-25 19:30 UTC, _ krystyna
Details
Simplest JSF project (16.58 KB, application/x-compressed)
2008-06-25 19:30 UTC, _ krystyna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2008-06-25 03:42:55 UTC
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)
Comment 1 _ krystyna 2008-06-25 03:43:44 UTC
Created attachment 63386 [details]
full server log
Comment 2 Vince Kraemer 2008-06-25 06:21:41 UTC
Please attach a sample project to help us with the analysis.
Comment 3 _ krystyna 2008-06-25 06:59:21 UTC
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) 
Comment 4 Petr Blaha 2008-06-25 09:50:04 UTC
The bug is considered as M1 stopper. Please, evaluate it ASAP. Thanks
Comment 5 Dan Kolar 2008-06-25 10:20:00 UTC
Can't reproduce it for VW JSF and JSF project in build 200806230002
Comment 6 Petr Blaha 2008-06-25 10:57:11 UTC
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. 
Comment 7 Vince Kraemer 2008-06-25 15:38:52 UTC
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...
Comment 8 _ krystyna 2008-06-25 19:29:06 UTC
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).
Comment 9 _ krystyna 2008-06-25 19:30:28 UTC
Created attachment 63453 [details]
Simplest VWP project
Comment 10 _ krystyna 2008-06-25 19:30:54 UTC
Created attachment 63454 [details]
Simplest JSF project
Comment 11 _ pcw 2008-06-25 20:18:44 UTC
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.
Comment 12 Vince Kraemer 2008-06-25 20:20:05 UTC
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....

Comment 13 _ pcw 2008-06-25 20:31:23 UTC
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.
Comment 14 _ pcw 2008-06-25 20:35:07 UTC
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...
Comment 15 Vince Kraemer 2008-06-25 20:37:40 UTC
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.
Comment 16 _ pcw 2008-06-25 20:57:45 UTC
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.
Comment 17 _ krystyna 2008-06-25 22:28:59 UTC
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.

Comment 18 _ pcw 2008-06-27 20:07:15 UTC
ClassNotFoundException for VisualJsf apps as https://glassfish.dev.java.net/issues/show_bug.cgi?id=5212
Comment 19 Vince Kraemer 2008-07-09 15:25:18 UTC
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....
Comment 20 _ pcw 2008-07-19 18:12:55 UTC
*** Issue 140095 has been marked as a duplicate of this issue. ***
Comment 21 _ pcw 2008-07-19 19:28:47 UTC
Fixed in V3 promoted builds B15 or later, from http://download.java.net/glassfish/v3/promoted/
Comment 22 _ krystyna 2008-07-26 00:27:47 UTC
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