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 179106 - jsp compiler will not accept <%@ page isErrorPage= "true" %>
Summary: jsp compiler will not accept <%@ page isErrorPage= "true" %>
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 15:27 UTC by emiddio
Modified: 2015-09-17 13:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
will not compile in netbeans 6.8 (2.07 KB, text/plain)
2009-12-29 15:29 UTC, emiddio
Details
shows issue (553.21 KB, image/jpeg)
2010-01-04 13:34 UTC, emiddio
Details
zipped up Sun web bookstore examples (536.11 KB, application/octet-stream)
2010-01-07 21:39 UTC, emiddio
Details
shows compilation errors (287.33 KB, image/jpeg)
2010-01-08 15:17 UTC, emiddio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2009-12-29 15:27:52 UTC
it will accept <%@ page isErrorPage= "false" %>

see attached errorpage.jsp

this has been around for years -- whats going on?
Comment 1 emiddio 2009-12-29 15:29:05 UTC
Created attachment 92986 [details]
will not compile in netbeans 6.8
Comment 2 Marek Fukala 2010-01-04 05:44:03 UTC
Works fine for me. What server do you use? What type of web project? What target j2ee platform? Is there an error mark in the editor for the line? Does the problem appear only when you deploy the file or even if you do "compile file" in netbeans?
Comment 3 emiddio 2010-01-04 13:31:25 UTC
the problem does not occur if file deployed -- page only compiled on server
if invoked.

using gfv2.1

its from the j2ee1.4 java ee tutorial 2nd edition examples/samples

the version 7 update of the examples.

i will post a jpeg of the screen.

F9 - compile single the jsp page fails, with options checkbox for compile
jsp pages for project get the error also.

error claims jsp page is self-referencing;

wierdly -- some of the errorpages in the other bookstore samples projects
do not give the error;

have not test with deployment to gfv2.1 with compile jsp pages option so far.
Comment 4 emiddio 2010-01-04 13:34:09 UTC
Created attachment 93060 [details]
shows issue

shows errors;

can zip up a project if necessary
Comment 5 Marek Fukala 2010-01-05 07:13:50 UTC
This might be caused by a difference in the compilation between the bundled tomcat parser and the server you deploy to. Is that possible to attach the whole project or at least a part which can be used to reproduce the issue?
Comment 6 emiddio 2010-01-07 21:39:43 UTC
Created attachment 93127 [details]
zipped up Sun web bookstore examples

every project except perhaps 1 with isErrorPage="true" in an errorpage.jsp
file will get jsp compilation errors.

the projects are all do not deploy on save, and compile jsp in
compiler options.

if isErrorPage="true" is changed to isErrorPage="false" all errors go away.
Comment 7 Marek Fukala 2010-01-08 02:59:44 UTC
Hmm, it works fine for me.

What I did (on my Mac Os X, Glassfish v3):
1) opened bookstore java project, built it with success
2) opened books web project, resolved missing server, added JSTL 1.1 library
3) found errorpage.jsp inside, opened => no error
4) tried to build the project => success.

Can someone from QE please check it with the exact reporter's configuration? Thanks in advance.
Comment 8 emiddio 2010-01-08 13:09:20 UTC
please build all examples;

i found that bookstore3 builds fine, bookstore1 is servlets based --no jsp

bookstore is a lib jar; others all get jsp compiler errors.

thanks
Comment 9 emiddio 2010-01-08 15:17:58 UTC
Created attachment 93145 [details]
shows compilation errors
Comment 10 emiddio 2010-01-08 15:19:27 UTC
just rechecking today;

bookstore[2456] fail;
bookstore[13] succeed.

see attached jpeg
Comment 11 emiddio 2010-01-11 14:59:43 UTC
changed to deployment compilation of jsp -- not by netbeans.

get same error for bookstore2

 An error has occurred
Deploying application in domain failed; JSP Compilation Error: org.apache.jasper.JasperException: file:G:/Sun/glassfish-v2ur2/domains/domain1/applications/j2ee-modules/bookstore2/template/errorpage.jsp(30,0) PWC6333: Error page "/template/errorpage.jsp" is self-referencing -- file:G:/Sun/glassfish-v2ur2/domains/domain1/applications/j2ee-modules/bookstore2/template/errorpage.jsp(30,0) PWC6333: Error page "/template/errorpage.jsp" is self-referencing JSP Compilation Error: org.apache.jasper.Jas...
Comment 12 Martin Balin 2015-09-17 13:10:05 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.