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 202882 - Ugly exception is printed to the Ant output on failed deployment
Summary: Ugly exception is printed to the Ant output on failed deployment
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-30 12:00 UTC by Petr Jiricka
Modified: 2011-11-09 16:15 UTC (History)
0 users

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 Petr Jiricka 2011-09-30 12:00:51 UTC
1. Create a new Ant-based web project (with GlassFish target)
2. Make the project invalid, e.g. by creating a web.xml and making it non-parseable
3. Deploy the project

An exception like this is printed to the Ant console:

/tmp/someapp/nbproject/build-impl.xml:721:
The module has not been deployed.
	at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
	at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
       ....

This is undesirable, as the root cause is in the server log - Ant output should only contain a message alerting the user about the problem in the server log file. I.e. the exception should be wrapped in BuildException.
Comment 1 Petr Hejl 2011-10-14 10:24:29 UTC
Fixed in web-main 19879595360f.
Comment 2 Quality Engineering 2011-10-15 14:50:36 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/19879595360f
User: Petr Hejl <phejl@netbeans.org>
Log: #202882 Ugly exception is printed to the Ant output on failed deployment
Comment 3 Quality Engineering 2011-11-09 16:15:49 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/c897e8a99cd1
User: Petr Hejl <phejl@netbeans.org>
Log: #202882 Ugly exception is printed to the Ant output on failed deployment