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 99497 - Can't build web project
Summary: Can't build web project
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
: 99612 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-30 08:41 UTC by Jaroslav Pospisil
Modified: 2007-05-24 15:22 UTC (History)
3 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 Jaroslav Pospisil 2007-03-30 08:41:04 UTC
Build 200703291800 (but I've experienced this also in continual builds from
yesterday)

Create or open Web project in new IDE with clean userdir.Build it.
ERROR!!!
Build fails on com.sun.tools.ws.ant.Apt cannot be found.
Attaching logs.
Comment 1 Jaroslav Pospisil 2007-03-30 08:44:11 UTC
Correction: There's nothing valid for the issue in messages.log and so is also
truth for failed automated tests,therefore no attachment is neccessary.Only
error message is this one in Output window:

C:\Documents and Settings\Telco\My
Documents\NetBeansProjects\WebApplication1\nbproject\build-impl.xml:72: taskdef
class com.sun.tools.ws.ant.Apt cannot be found
BUILD FAILED (total time: 0 seconds)
Comment 2 Radko Najman 2007-03-30 09:20:20 UTC
It fails in "-init-rest" target which was merged from "dev-restsupport" branch.

Reassigning. Please fix it as soon as possible.
Comment 3 Nam Nguyen 2007-03-30 14:32:14 UTC
This probably is an oversight when remove SWDP library.
Comment 4 Nam Nguyen 2007-03-30 15:12:56 UTC
Right now if I create a brand new web project or a java project both build.xml
and build-impl.xml are empty.  That prevent me from fixing this issue.
Comment 5 Radko Najman 2007-03-30 17:01:05 UTC
The problem described in previous comment was reported as issue #99552. I think
it is a duplicate of issue #98703.
With JDK 1.6 it works fine, it is reproducible with JDK 1.5.
Comment 6 Nam Nguyen 2007-03-31 04:07:10 UTC
Fix by removing -init-rest target, replaced with direct use of ANT apt task:

/cvs/web/project/src/org/netbeans/modules/web/project/resources/build-impl.xsl,v
 <--  build-impl.xsl
new revision: 1.122; previous revision: 1.121
Comment 7 Nam Nguyen 2007-03-31 04:07:51 UTC
Fixed.
Comment 8 Dan Kolar 2007-03-31 16:03:00 UTC
*** Issue 99612 has been marked as a duplicate of this issue. ***
Comment 9 Jaroslav Pospisil 2007-05-24 15:22:08 UTC
Verified