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 201683

Summary: View Servlet action in java ee 6 maven web app project doesn't work
Product: serverplugins Reporter: Jiri Skrivanek <jskrivanek>
Component: GlassFishAssignee: Vince Kraemer <vkraemer>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Jiri Skrivanek 2011-09-06 12:44:13 UTC
View Servlet action in maven project with GlassFish server doesn't work. Maybe similar to bug 178723. To reproduce:

- create maven web application project
- register GlassFish server to IDE
- run project, choose server
- right-click index.jsp and choose "View Servlet". The error message appears:

"The View Servlet action cannot be performed. You must run the JSP page first."

Product Version: NetBeans IDE Dev (Build 201109040600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Comment 1 Vince Kraemer 2011-09-19 22:39:25 UTC
reason: there isn't a glassfish-web.xml file that has the appropriate jsp-config data in it.

How to resolve: automagically add a glassfish-web.xml file into the deployed bits.  Do not add the file into the sources...
Comment 2 Quality Engineering 2011-09-21 08:11:29 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/72b0cd904eb8
User: vince kraemer <vkraemer@netbeans.org>
Log: #201683 : fix for view servlet... the server needs to be told to keep the java code
Comment 3 Jiri Skrivanek 2011-09-21 09:34:56 UTC
Seems to be fixed in build 201109202329.
Comment 4 Vince Kraemer 2011-09-22 22:59:57 UTC
in the build
Comment 5 Quality Engineering 2011-09-25 14:05:18 UTC
Integrated into 'main-golden', will be available in build *201109250601* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/53c62d9a9615
User: vince kraemer <vkraemer@netbeans.org>
Log: #201683 : better fix for view servlet