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 196432 - View servlet problem
Summary: View servlet problem
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-08 10:47 UTC by Vladimir Riha
Modified: 2011-10-07 00:10 UTC (History)
1 user (show)

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 Vladimir Riha 2011-03-08 10:47:18 UTC
Steps to reproduce:
1. Create new Java Web app and select Glasfish 3.1 as a server
2. Right click on index.jsp in Project window and select Run
3. After the page is opened in browser, right click on index.jsp in Project window and select View Servlet
4. Error dialog is shown, saying that the action cannot be performed and that I have to run the JSP page first

I also tried to deploy the app, but without any change


Product Version: NetBeans IDE Dev (Build 201103080000)
Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02
System: Solaris 5.11
Comment 1 Vince Kraemer 2011-03-09 06:42:46 UTC
was the web app a java ee 5 or java ee 6...

is there a sun-web.xml/glassfish-web.xml file in the project?

What is its content?
Comment 2 Vladimir Riha 2011-03-09 08:49:24 UTC
It is JavaEE 6. There is no sun-web.xml or glassfish-web.xml, it is really just new project with default settings (maybe except of the server, also the choice "Enable Context and dependencies injections" is not checked) without any frameworks. If I check the "Enable Context ..." then beans.xml is added, but the problem persists. Also there is no special output in IDE log (or console) after this command
Comment 3 Vladimir Riha 2011-03-09 10:16:47 UTC
I have just tried the same on Win7 and it works and glassfish-web.xml is in WEB-INF folder however on Solaris the file is missing.
Comment 4 Petr Jiricka 2011-10-05 13:24:23 UTC
Ok, assigning back to GlassFish plugin.
Comment 5 Vince Kraemer 2011-10-07 00:10:05 UTC
in a recent 7.1 dev build.

Tested ant and maven based web app projects.

Reopen with more detailed steps to reproduce, if this is a problem for you in a recent dev build of NetBeans