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.
Please see my forum post in URL field. It looks like Netbeans 6.5 is hardcoding the file path to the local copy of a WSDL file when it auto-generates the Service class for a web service client. This will cause the application to throw exceptions when deployed to a machine other than the one where it was built. This is definitely new to 6.5, as my project has been working fine in NB 6.
Yes, that's known issue. The workaround is to use jax-ws-catalog.xml, which maps remote resources to local files(located in project), Example: <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <system systemId="http://www.webservicex.net/BibleWebservice.asmx?wsdl" uri="wsdl/www.webservicex.net/BibleWebservice.asmx.wsdl"/> <system systemId="http://www.webservicex.net/globalweather.asmx?wsdl" uri="wsdl/www.webservicex.net/globalweather.asmx.wsdl"/> <system systemId="file:/space/home/mkuchtiak/Documents/wsdl/AddNumbers_org.wsdl" uri="wsdl/AddNumbers_org.wsdl"/> <system systemId="file:/space/home/mkuchtiak/Documents/wsdl/CurrencyConvertor.asmx" uri="wsdl/CurrencyConvertor.asmx.wsdl"/> </catalog> The jax-ws-catalog.xml must be located in WEB-INF(META-INF) folder and local resources are referenced relatively to this location. We have an enhancement for that : see the issue 149790. Thank You for pointing at this problem again.
Hi mkuchtiak, Even if I create a jax-ws-catalog.xml file and put it in WEB-INF/ in my netbeans project, whenever I build the project the generated Service.java source ignores the file, and continues to hard-code the location. What else can I do? This has totally shut down our project.
I've experienced the same problem and fixed it by removing the Web Service Client and then removed the references in the xml files. When I add the WS to the project again, the problem is gone. I'm not in front of my development machine right now, but I think the relevant files are catalog.xml and *ws*.xml in the nbproject directory. The only projects I have noticed this bug in, is the ones created in NB 6.1 and opened in NB 6.5. "Pure" NB 6.5 project seems unaffected. (If you want to try this, it's a good idea to make a backup :-P)
> Even if I create a jax-ws-catalog.xml file and put it in WEB-INF/ in my netbeans project, whenever I build the project the generated Service.java source ignores the file, and continues to hard-code the location. What else can I do? This has totally shut down our project. That's fine. jax-ws-catalog.xml, in runtime, should redirect hard-coded url to local file. This is the best solution provided by JAX-WS. However, IMO this works since JAX-WS 2.1 version.
Thanks lagren - removing the web service client and then re-adding it solved the problem!
Fixed. Implemented jax-ws-catalog.xml See the issue 149790.