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.
Create a Web Module on Windows XP Add a simple WS in it with a simple operation Deploy it Create an App Client Use the wizard to point to the preview WS for WS Client. Enter whatever package name (foo) Code the main to inect the web service reference as: /** Creates a new instance of Main */ public Main() { } @WebServiceRef(foo.FirstWSService.class) private static foo.FirstWS ws; /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here System.out.println(""+ws.sayHello("sdfsdf")); Run this Application Client. You'll see a runtime error: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\abill\projects\ApplicationClient6/src/conf/xml-resources/web-service-references/FirstWSService/wsdl/localhost_8080/demo1/FirstWSService.wsdl at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parse(URI.java:3019) at java.net.URI.<init>(URI.java:578) at com.sun.enterprise.appclient.AppClientInfo.fixupWSDLEntries(AppClientInfo.java:366) at com.sun.enterprise.appclient.AppClientInfo.completeInit(AppClientInfo.java:179) } Char 2 of C:\abill\projects\App is the ":" Windows separator. What is means is that the WSIMPORT command in build-impl.xml is not correct. It is missing the wsdllocation="http://localhost:8080/demo1/FirstWSService?WSDL" parameter. Otherwise, the app client jar needs to have a reference to an absolute path on your PC (bug), and also that the code to load this absolute path is broken for PC url ... This is a demo blocker...
Fixed by adding wsdlLocation attribute to the wsimport build target. The value of this attribute is the original location (URL) of the wsdl. This is used by wsimport when generating the wsdlLocation attribute of the @WebServiceClient annotation in the Service interface.
Commit log: /cvs/j2ee/clientproject/src/org/netbeans/modules/j2ee/clientproject/resources/Attic/build-impl.xsl,v <-- build-impl.xsl new revision: 1.1.4.11; previous revision: 1.1.4.10 /cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/resources/build-impl.xsl,v <-- build-impl.xsl new revision: 1.49.16.4.2.9; previous revision: 1.49.16.4.2.8 /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl,v <-- build-impl.xsl new revision: 1.58.2.5.2.4; previous revision: 1.58.2.5.2.3 /cvs/web/project/src/org/netbeans/modules/web/project/resources/build-impl.xsl,v <-- build-impl.xsl new revision: 1.100.12.6.2.28; previous revision: 1.100.12.6.2.27
VERIFIED