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 82021 - Testing a webapp with residual JSP errors
Summary: Testing a webapp with residual JSP errors
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-06 08:15 UTC by johnmuir
Modified: 2016-07-07 08:52 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description johnmuir 2006-08-06 08:15:47 UTC
Hello,

If you have a webapp with (2000) correct and a few (5) JSPs with residual
errors, which do not allow an error free compilation, it is not possible to
debug or test the webapp. In large projects a real killer to using Netbeans
(Eclipse allows it).  Please provide a warning but allow the build/run process
to continue. I know one can remove the JPSs from the project or fiddle with the
Ant build script, but they are in such cases fairly impenetrable to understand
and this (continuation) should be the default. Web aps are large and mosts parts
are independant of the others and can be tested independantly (not like a single
desktop gui app). 

Thanks,
John Muir
Comment 1 johnmuir 2006-08-06 08:52:54 UTC
In case the reply is to modify the build script: 

The web app scripts are very complex and I know of no simple way to tell ant to
ignore the result (success/failure) of a single prerequisite task. 

Anyway... continuation ought to be the NB default as the different parts of a
web app (e.g. an complex ERP system) are fairly independent of each other and
during development always have residual errors due to their size, fluidity and
the number of developers working on them concurrently. 
Comment 2 Pavel Rehak 2006-08-10 12:49:09 UTC
Reassigning to web for evaluation.

I think this is _MUST_TO_IMPLEMENT_ to be competitive with eclipse.
Comment 3 Petr Jiricka 2006-08-15 12:32:53 UTC
Hi John, thanks for the report. However, as far as I know, NetBeans does not
compile JSPs by default. There is a checkbox "Test compile all JSPs during
builds" in the Web Project properties dialog (under "Compiling"), but this is
off by default. What is the setting for your project?

Also, can you please attach the error output from the build script? Is this
error produced by Ant, or by the server on deployment? (And if it is the server,
which server do you use?) 

Thanks, Petr Jiricka
Comment 4 johnmuir 2006-08-19 12:03:14 UTC
Hi Petr,

I guess I was not aware of the consequences of that checkbox, so I suppose it's
not a defect. However, as it kept me from changing completely over to Netbeans
from Eclipse for many months (and as your colleague prehak also seemed to be
unsure) please consider the following suggestions (just for Webapp projects) to
make the consequences more transparent..

At least either add a dependant checkbox similar to "JSP errors stop the
build/run/debug" to the "Test compile all JSPs during builds" checkbox. (At the
very least add a message to the build failed explaining how to work around this
problem or pop up a "Confirm build abort due to JSP errors" alert.)

Better still would be to continue the build but add all error messages & links
to the source to a new rider "Errors" or "Issues" in the bottom window (beside
'Output'). This is the default behaviour in Eclipse and IMHO should also be the
default for Netbeans. I'm pretty sure all J2EE developers working on large
projects would agree on that.

In spite of this one gripe, thanks to all for a really stunning IDE!

John Muir

Comment 5 Petr Pisl 2006-08-31 10:33:19 UTC
So I change  this to enhancements. It's good idea. 
Comment 6 johnmuir 2006-11-26 13:04:00 UTC
Will this enhancement be included in version 6?
Comment 7 Petr Pisl 2006-12-01 20:54:49 UTC
Probably, it depends on the time. I would like to do it. 
Comment 8 Jiri Prox 2008-04-11 01:10:33 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 9 Martin Balin 2016-07-07 08:52:54 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss