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.
Product Version: NetBeans IDE Dev (Build 20120731-eec09b527313) Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) User directory: D:\Java\_nb_dev\udir Cache directory: D:\Java\_nb_dev\udir\var\cache -deploy this app to GF-v4: http://java.net/jira/secure/attachment/50106/jaxws-w2j-03-web.war (src is available here: http://java.net/jira/secure/attachment/50107/src.zip) -create new web app -create a web service from WSDL using WSDL of previously deployed ws (http://localhost:8080/jaxws-w2j-03-web/addnumbers?wsdl ) -deploy the web app => fails because IDE generates @WebService.wsdlLocation = "WEB-INF/wsdl/SomeTest/SomeTest.wsdl") but WSDL itself is packaged/available in "WEB-INF/wsdl/SomeTest/localhost_8080/jaxws-w2j-03-web/addnumbers.wsdl" -fix the @WebService.wsdlLocation -deploy app again -open ws tester => quite hard to find this action since there's no web service node visible in the project view
Created attachment 122602 [details] screenshot
note that this happened with fresh IDE build with new usedir another observation/issue: when I realized that there's no visible ws node, I checked nbproject/jax-ws.xml and it contained all necessary entries, so I continued in my work, which was: -create a client for this new service (using WSDL URL because of missing node in from project option), run it and debugged jaxws-ri in GF-v4. At some point I needed to update the ws impl class and re-deploy the app (which already had compile-on-save disabled) but suddenly I wasn't able to build and deploy the project anymore - all ws related info was(silently) deleted(!) (=no build scripts, empty nbproject/jax-ws.xml), only my ws impl class remained untouched by the IDE. As soon as I recreated the service, everything started working correctly - ws node becomes visible, ws impl class had correct wsdlLocation attribute, no dataloss appeared after a bit of work.
I'm able to reproduce it. Deployment is not possible because of wrong WSDL file path.
Fix for absent WS node after WS creation via wizard. web-main#24370daa218a
Integrated into 'main-golden', will be available in build *201208080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/24370daa218a User: Denis Anisimov <ads@netbeans.org> Log: Partial fix for BZ#216219 : absence on WS node after its creation via wizard.
Wrong wsdl file is in the annotation at the very first time of wizard work. All subsequent invocations set the correct WSDL path. Wrong behavior is a subsequence of inability to find service by id in the JaxWsModel. I need to investigate the reason.
I lower the priority because : - this is not a regression: nothing is changed. This bug has been always there. - it is corner case and it is reproducible in only very specific case. It is a consequence of initial WS cleanup when project is opened: project open hook removes all WS entries from the XML file which are not recognized as a WS on the FS. So the issue appears only when WS is created in the model ( in XML file ) but not yet on the FS and project open hook is doing
web-main#9ee7023f57f2
Integrated into 'main-golden', will be available in build *201208090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/dead7851df4d User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#216219 - WS from WSDL contains wrong pointer to WSDL.