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 94917 - building/running project with broken references should warn user
Summary: building/running project with broken references should warn user
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-08 07:00 UTC by Ritesh Adval
Modified: 2016-07-07 08:54 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
web application zip (1.31 MB, application/octet-stream)
2007-02-08 07:02 UTC, Ritesh Adval
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ritesh Adval 2007-02-08 07:00:54 UTC
After adding an existing web application to composite app project and trying to
build, I am getting following error.

pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
init-deploy:
deps-clean:
init:
deps-clean:
do-clean:
Deleting directory C:\alaska\jbicomps\WLMWebApplication\build
check-clean:
clean:
do-clean:
post-clean:
clean:
deps-jar:
deps-javaee-jar:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
wsimport-init:
Created dir: C:\alaska\jbicomps\WLMWebApplication\build\generated\wsimport\client
Created dir: C:\alaska\jbicomps\WLMWebApplication\build\generated\wsimport\binaries
C:\sun\kenai\CompositeApp2\nbproject\build-impl.xml:118: The following error
occurred while executing this line:
C:\alaska\jbicomps\WLMWebApplication\nbproject\build-impl.xml:285: taskdef class
com.sun.tools.ws.ant.WsImport cannot be found
BUILD FAILED (total time: 0 seconds)
Comment 1 Ritesh Adval 2007-02-08 07:02:35 UTC
Created attachment 38217 [details]
web application zip
Comment 2 Ritesh Adval 2007-02-08 07:04:42 UTC
Steps to reproduce:

(1) unzip attach web application to a directory. (I had this at
C:\alaska\jbicomps\WLMWebApplication)

(2) create composite app project and add above web application to it.

(3) build composite app project, you will see the error mentioned above.
Comment 3 _ gmpatil 2007-02-08 19:41:49 UTC
Build error is due to Web application association with Application Server is 
not present. As private.properties is not checked-in to CVS.

Web application project does give a visual indicator of missing association.
But user might want kind of info in the Ant task itself instead of taskdef 
class not found.

Assigning to J2ee/Web team to take a look at the issue.
Comment 4 Radko Najman 2007-02-14 12:52:35 UTC
Yes, it is caused by a broken server reference which should be solved first.
Possible solution would be to disable server dependent tasks if the reference is
broken or check if the project is "broken" before running the task and inform
user what to do.
Comment 5 David Konecny 2007-10-03 09:51:20 UTC
Opening a project whose dependency (library, java platform, app server, ...) is missing shows Reference Problems warning
dialog which says how to resolve them.

First thing which could be improved is that this dialog could in addition say that attempt to build/run project will
most probably fail unless broken references are resolved first.

Other thing to improve could be that Run/Build actions could show warning dialog saying that project still has broken
references and that may cause build/run to fail and whether user want to continue or resolve broken references first. 
Comment 6 Martin Balin 2016-07-07 08:54:45 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