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 147603 - Cannot build J2SE project with Web Service Client
Summary: Cannot build J2SE project with Web Service Client
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P1 blocker with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 147345 147401 147935 148061 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-18 14:10 UTC by Martin Grebac
Modified: 2017-05-09 06:20 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample projects (48.82 KB, application/x-compressed)
2008-09-19 09:20 UTC, Jiri Prox
Details
Projects with issue (50.56 KB, application/octet-stream)
2009-05-05 23:32 UTC, ranbato
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Grebac 2008-09-18 14:10:53 UTC
Create J2SE Project
Create WSClient in it.
Try to run the project.

The project doesn't run and this is printed out to console:

run:
Cancelled by user.
BUILD FAILED (total time: 0 seconds)

Not sure if it's J2SE Project issue or WS side issue, so please reassign where appropriate.
Comment 1 Milan Kuchtiak 2008-09-18 14:37:10 UTC
According to discussion with reporter:

- this is related to Compile on Save feature (when feature is switched off) it works
- IDE started with clean userdir
Comment 2 Milan Kuchtiak 2008-09-18 14:50:00 UTC
Note: the issue is 100% reproducible when project is created from existing sources.
See also the issue 147345.
Finally, even the web service client is removed, the project is still not executable.
Comment 3 Milan Kuchtiak 2008-09-18 14:52:13 UTC
*** Issue 147345 has been marked as a duplicate of this issue. ***
Comment 4 swpalmer 2008-09-18 15:38:13 UTC
This may be a duplicate of Issue 147401.
Comment 5 Jan Lahoda 2008-09-19 09:10:21 UTC
Hm, I tried to reproduce (on Linux using a simple project from existing sources), but did not succeed - could you please
given me either the project on which you are able to reproduce or precise steps to reproduce from scratch? Thanks.
Comment 6 Jiri Prox 2008-09-19 09:18:46 UTC
I can reproduce it 


Product Version: NetBeans IDE Dev (Build 20080919042815)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Linux version 2.6.22-15-generic running on i386; UTF-8; en_US (nb)
Comment 7 Jiri Prox 2008-09-19 09:20:58 UTC
Created attachment 70133 [details]
sample projects
Comment 8 Jan Lahoda 2008-09-19 09:49:04 UTC
Caused by another query not returning correct results for the generated source - BinaryForSourceQuery this time.
Comment 9 Tomas Zezula 2008-09-22 15:11:50 UTC
*** Issue 147401 has been marked as a duplicate of this issue. ***
Comment 10 Lukas Jungmann 2008-09-23 09:45:32 UTC
*** Issue 147935 has been marked as a duplicate of this issue. ***
Comment 11 Lukas Jungmann 2008-09-23 15:49:17 UTC
*** Issue 148061 has been marked as a duplicate of this issue. ***
Comment 12 Jan Lahoda 2008-09-24 07:12:11 UTC
I have added EXECUTE ClassPath to the generated source root, which allows BSFQ to compute the correct result. I can
executed the attached project now. Could someone please verify? Thanks.

http://hg.netbeans.org/main/rev/36852324a88b
Comment 13 Quality Engineering 2008-09-24 17:28:56 UTC
Integrated into 'main-golden', will be available in build *200809241401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/36852324a88b
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #147603: adding execute classpath for the generated roots.
Comment 14 pbelbin 2008-09-24 22:10:59 UTC
*** Issue 148061 has been marked as a duplicate of this issue. ***
Comment 15 ranbato 2009-05-05 23:20:22 UTC
This may not be the exact same problem, but I am getting this error with 6.7 beta when compiling an Enterprise
Application Client.

C:\...\JMSOptimizations\nbproject\build-impl.xml:156: The following error occurred while executing this line:
C:\...\EchoClientServer\nbproject\build-impl.xml:422: The following error occurred while executing this line:
C:\...\EchoClientServer\nbproject\build-impl.xml:183: org.netbeans.modules.java.source.ant.UserCancel
Comment 16 ranbato 2009-05-05 23:31:24 UTC
Correction -- I am getting it with a specific Enterprise Application when trying to deploy it.
Comment 17 ranbato 2009-05-05 23:32:49 UTC
Created attachment 81599 [details]
Projects with issue
Comment 18 David Strupl 2009-05-06 12:22:43 UTC
This was fixed for 6.5.

I have created a new issue
http://www.netbeans.org/issues/show_bug.cgi?id=164577
and put ranbato on Cc: there. Please continue the disscussion in the new issue. Thanks.
Comment 19 Martin Grebac 2009-11-09 06:29:13 UTC
verif
Comment 20 jhammelmann 2017-04-21 18:47:24 UTC
This problem occurs again in newest update of Netbeans 8.2!

Deactivating "Compile on Save" solves the errors!
Comment 21 Tomas Zezula 2017-05-09 06:19:24 UTC
Works fine in dev build - tested with project attached by Jiri Prox.
If you still have the problem please provide the test project.
thanks