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.
at least these two cases are not supported: 1) sun-web.xml is in non-default folder (see the project attached to issue 151070 for an example) - in this case resources URL will be wrong 2) JBoss (or any other than GF and Tomcat) server is not being taken into account - if one tries to create REST client stub there then there's: java.lang.NullPointerException at java.io.File.<init>(File.java:222) at org.netbeans.modules.websvc.rest.codegen.ClientStubsGenerator.findBaseUrl(ClientStubsGenerator.java:260) at org.netbeans.modules.websvc.rest.codegen.ClientStubsGenerator.generate(ClientStubsGenerator.java:353) [catch] at org.netbeans.modules.websvc.rest.wizard.ClientStubsIterator$1.run(ClientStubsIterator.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) attached patch address both issues. Ayub, take a look at it and let me know what do you think, please. Thanks.
Created attachment 72495 [details] proposed fix
Thanks Lukas for fixing this. The changes looks good! -Ayub
thanks Ayub, now it's my turn...
f. in c802e4e9e567
Integrated into 'main-golden', will be available in build *200810240201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c802e4e9e567 User: Lukas Jungmann <jungi@netbeans.org> Log: IZ #151077: client stub does not support non-standard environments