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 - View Servlet action in java ee 6 maven web app project doesn't work
Summary: View Servlet action in java ee 6 maven web app project doesn't work
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 12:44 UTC by Jiri Skrivanek
Modified: 2011-09-27 12:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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