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.
JDK1.6.0 (rc b100) NetBeans 5.5 RC1 Windows XP SP2 Sun Java System Application Server PE 9 (using jdk1.5.0_09) When I use NetBeans 5.5 + JDK6, calling web service operation in Enterprise Application Client causes exception when it's used. When I use this in normal Java Application, it works. This exception does not occur when I use JDK1.5 for NetBeans. 1. create Web Application project 2. create Web Service on it 3. run the project -> OK 4. create Java Application project 5. create Web Service Client from Web Application project on it 6. modify the source to use it 7. run the project -> OK 8. create Enterprise Application Client project 9. create Web Service Client from Web Application project on it 10. modify the source to use it 11. run the project -> Exception java.lang.ExceptionInInitializerError Web Service is very simple like: @WebMethod public String operation() { // TODO implement operation return "result"; } Also the calling web service is also simple: @WebServiceRef(wsdlLocation = "http://localhost:8080/WebApplication1/NewWebServiceService?wsdl") private static cc.NewWebServiceService service; ... try { // Call Web Service Operation cc.NewWebService port = service.getNewWebServicePort(); // TODO process result here java.lang.String result = port.operation(); System.out.println("Result = "+result); } catch (Exception ex) { // TODO handle custom exceptions here } It works in Java application project, but does not work in Enterprise Application Client with JDK6. When I use JDK1.5 for NetBeans and create these projects, it works fine.
Created attachment 35018 [details] exception
This should be a dup of https://glassfish.dev.java.net/issues/show_bug.cgi?id=1182. It should work if you run GlassFish on JDK1.5
Works for me using AS9.0UR1 as well as AS9.1. Feel free to reopen if you're able to reproduce it using the latest build (of IDE and GlassFish). Only be aware of issue 110190. Thanks.