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 95308 - View Servlet doesn't work on GlassFish
Summary: View Servlet doesn't work on GlassFish
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-12 18:27 UTC by Jindrich Sedek
Modified: 2007-05-15 10:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
war file - just an empty web application with Java EE5 and Glassfish (3.01 KB, application/octet-stream)
2007-02-15 16:19 UTC, Jindrich Sedek
Details
a patch (5.74 KB, text/plain)
2007-04-16 18:35 UTC, Vince Kraemer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2007-02-12 18:27:51 UTC
Create web application on GlassFish
right click index.jsp, select Run File
index.jsp file is shown in browser
go back to NetBeans, right click index.jsp, select View Servlet
"You must run JSP page first" error message is shown, but it's already running
in browser and servlet should be shown
I'm using glassfish_v2_b33

it works well for Tomcat and JBoss as well
Comment 1 Vince Kraemer 2007-02-14 19:36:42 UTC
I am using b36 and it seems to be working fine.

reopen with more info if you can reproduce this with a recent build of GF v2 and 6.0

Include information on the jdk in use by the as and NetBeans.

Please attach the war file if you reopen the issue, too.
Comment 2 Jindrich Sedek 2007-02-15 16:15:29 UTC
I've tested it on glassfish-installer-v2-b36.jar

NetBeans IDE Dev (Build 200702141900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.15-1.2054_FC5smp running on i386
en_US (nb); UTF-8

It still doesn't work
Comment 3 Jindrich Sedek 2007-02-15 16:19:09 UTC
Created attachment 38557 [details]
war file - just an empty web application with Java EE5 and Glassfish
Comment 4 Vince Kraemer 2007-04-16 18:35:26 UTC
Created attachment 40997 [details]
a patch
Comment 5 Vince Kraemer 2007-04-16 18:36:16 UTC
please review the patch
Comment 6 _ pcw 2007-04-19 21:50:16 UTC
Changed patch slightly to amend default sun-web.xml template used by new sun
descriptor wizard and add some versioning comments.

Fixed.
Comment 7 Jindrich Sedek 2007-05-15 10:28:39 UTC
verified.

NetBeans IDE Dev (Build 200705141800)
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
Linux version 2.6.20-1.2948.fc6 running on i386
en_US (nb); UTF-8