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 102532 - Adding W/S fails when using default user directory
Summary: Adding W/S fails when using default user directory
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Quy Nguyen
URL:
Keywords:
: 102528 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-25 18:38 UTC by Roman Mostyka
Modified: 2007-04-27 18:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE's log (57.42 KB, text/plain)
2007-04-25 18:43 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2007-04-25 18:38:51 UTC
1. Open 'Runtime' tab.
2. Rightclick 'Web Services' node and select 'Add Web Service'.
3. Enter http://ghobad.homelinux.com:8080/FarsiDate/PersianCalendarService?WSDL
in 'WSDL URL' field.
4. Click Add button.

Result: Build failed and W/S isn't added. See log in attach.
Build 20070425.
Java 1.6.0_01.
Windows XP.

Text from output window:
"C:\Sun\netbeans\visualweb1\ws_import_compile.xml:35: Directory
$HOME\.netbeans\dev\websvc\PersianCalendarService\jaxrpc\build creation was not
successful for an unknown reason
BUILD FAILED (total time: 0 seconds)".

Quy, if it isn't single-port W/S give me please URL for single-port W/S.
Comment 1 Roman Mostyka 2007-04-25 18:43:53 UTC
Created attachment 41655 [details]
IDE's log
Comment 2 Quy Nguyen 2007-04-25 18:52:19 UTC
Run the IDE using JDK 1.5.  There appears to be issues with the bundled jax-ws
implementation with JDK 1.6.
Comment 3 Quy Nguyen 2007-04-25 19:38:21 UTC
*** Issue 102528 has been marked as a duplicate of this issue. ***
Comment 4 Quy Nguyen 2007-04-25 19:40:32 UTC
*** Issue 102530 has been marked as a duplicate of this issue. ***
Comment 5 Quy Nguyen 2007-04-25 21:58:21 UTC
A better workaround:

To use web services with JDK 1.6, copy the following jars to
$JAVA_HOME/jre/lib/endorsed (you may need to create this directory first):

$installdir/java1/modules/ext/jaxws21/api/jaxb-api.jar
$installdir/java1/modules/ext/jaxws21/api/jaxws-api.jar

This is necessary since JDK 1.6 includes the JAX-WS 2.0 APIs, while we are using
JAX-WS 2.1.
Comment 6 Roman Mostyka 2007-04-26 17:27:53 UTC
This workaround doesn't help me. I still got the same errors on Solaris and Windows.
I have jdk1.6.0_01/jre/lib/endorsed/jaxb-api.jar and
jdk1.6.0_01/jre/lib/endorsed/jaxws-api.jar and start IDE with this jdk, but
nothing is changed.
Any suggestion?
Comment 7 Quy Nguyen 2007-04-26 21:12:30 UTC
It turns out that this issue and Issue 102528 were not caused by the
incompatibility with JDK 1.6 but by a problem with the wsdl copy when using the
default user directory location.

This has been fixed in the trunk.  It should probably also integrated in the
preview release branch as well.

/cvs/visualweb/websvcmgr/src/org/netbeans/modules/visualweb/websvcmgr/WebServiceManager.java,v
<--  WebServiceManager.java
new revision: 1.9; previous revision: 1.8
done

/cvs/visualweb/websvcmgr/src/org/netbeans/modules/visualweb/websvcmgr/codegen/Wsdl2Java.java,v
<--  Wsdl2Java.java
new revision: 1.12; previous revision: 1.11
done
Comment 8 Roman Mostyka 2007-04-27 12:21:04 UTC
Verified with build 20070427.