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.
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.
Created attachment 41655 [details] IDE's log
Run the IDE using JDK 1.5. There appears to be issues with the bundled jax-ws implementation with JDK 1.6.
*** Issue 102528 has been marked as a duplicate of this issue. ***
*** Issue 102530 has been marked as a duplicate of this issue. ***
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.
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?
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
Verified with build 20070427.