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 131957 - Invalid standard action
Summary: Invalid standard action
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-03 16:39 UTC by javydreamercsw
Modified: 2009-12-09 02:09 UTC (History)
2 users (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 javydreamercsw 2008-04-03 16:39:57 UTC
Invalid standard action is indicated in the following line (jsp) of all Visual Web Pages even the one created by default:

<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">

This is preventing me from deploying/completing my project.

Some notes about the trouble shooting so far:

1. Discussed in nbuser mail list- it seems almost no one can regenerate the error.
2. Tried creating a new project from scratch but the error is found also in the default page. (on both 6.0.1 and 6.1 Beta)
3. Uninstalled/Installed version 6.1 without importing settings from 6.0 just in case in case a setting was creating the
problem.
4. Opened project in 6.0.1 with same results.
Comment 1 _ krystyna 2008-04-03 19:39:12 UTC
I cannot reproduce this. I tried in 6.0.1 project, copied the jsp:root you supplied above and replacing the original 
one, it builds and deploys on Tomcat OK.

1. can you supply a project
2. can you supply jdk version
3. did you remove the line above the jsp:root tag, i.e.
   <?xml version="1.0" encoding="UTF-8"?>

Comment 2 Winston Prakash 2008-04-04 00:12:00 UTC
Could you explain more on "Invalid standard action is indicated". When do you get the error? What action causes the
error? Please attach a sample project or the JSP where you see the problem. Also explain in detail about all the errors
you get while deploying the project. Which server do you deploy? This would help us to pin point the bug.  

Comment 3 javydreamercsw 2008-04-11 16:07:23 UTC
this seems to be corrected on 6.1 RC1. At least the error doesn't appear in newly created pages in the mentioned version.
Comment 4 javydreamercsw 2009-11-19 08:12:52 UTC
Got the same issue on build 200911190201
Comment 5 javydreamercsw 2009-11-19 08:22:30 UTC
I found and fixed the issue. Is easy to fix but needs to be fixed in NB as well.

According to jspstandard the jsp:root tag has to be the first tag or an errorocurs

Change the place of the netbeans  <!-- Comment Block --> 

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <!--
    Document   : index
    Created on : Nov 19, 2009, 9:01:30 AM
    Author     : Javier A. Ortiz Bultrón <javier.ortiz.78@gmail.com>
    -->

So in other words the jsp template needs to place the comments somewhere else.
Comment 6 javydreamercsw 2009-11-19 18:57:16 UTC
Is currently happening in 6.8
Comment 7 javydreamercsw 2009-12-03 14:14:24 UTC
Corrected some fields.
Comment 8 Petr Jiricka 2009-12-03 15:24:39 UTC
Hi, I don't understand. You are saying this is happening in NB 6.8 - what are the steps to reproduce in 6.8? Thanks.
Comment 9 Marek Fukala 2009-12-04 02:37:19 UTC
I recon the user complains about the xml comment preceding the <jsp:root/> element which is supposely invalid according to the JSP spec. I quite doubt there is such rule - yes, <jsp:root/> tag must be first, but xml comments IMO doesn't play any role here, they are ignored. But maybe I am wrong, it is just suspicious...

The jsp document template is generated this way (xml comment preceding the root tag), but the there is no error flagged in the editor and the applicatation deploys and runs on Glassfish v3 correctly.

Reporter, can you please confirm this is the problem? If so, please describe the consequences in detail. For me there are none. Thanks.
Comment 10 javydreamercsw 2009-12-04 06:13:30 UTC
I confirm the problem. In my case I'm trying to run on Tomcat. It'll deploy without issues but when you try to get into that jsp page the error appears. Either that or an error badge appears in the jsp code.
Comment 11 Marek Fukala 2009-12-04 06:28:07 UTC
Please create a sample web application with just one such page where you can reproduce and attach it packed here. Thanks.
Comment 12 javydreamercsw 2009-12-07 08:33:07 UTC
Unable to reproduce on a brand new project so the issue might be related to upgrading old Web projects to use Visual Web. I'll try to get an instance of the error and attach a project as requested.
Comment 13 Marek Fukala 2009-12-09 02:09:26 UTC
OK, thanks, closing meanwhile...