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.
Build 200807310201,JDK1.6.0_10,Win Vista If I invoke Generate and copy WSDL action for common JAX-WS web service with operation,created in Web App in Netbeans,I get this exception: java.io.IOException: Unable to find WSDL at org.netbeans.modules.websvc.core.jaxws.actions.JaxWsGenWSDLImpl.generateWSDL(JaxWsGenWSDLImpl.java:140) at org.netbeans.modules.websvc.core.jaxws.actions.JaxWsGenWSDLAction.performAction(JaxWsGenWSDLAction.java:70) at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:581) at org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.actionPerformed(ActionsBridge.java:111) at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:104) at org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:52) at org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.doRun(ActionsBridge.java:102) at org.netbeans.modules.openide.util.ActionsBridge$1.run(ActionsBridge.java:71) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Attaching messages.log.
Created attachment 66175 [details] messages.log
could be related to issue 142230, it also looks like our code is swallowing some exceptions which would help in diagnosing the real cause (just a guess)
Yes it looks like this is related to http://www.netbeans.org/issues/show_bug.cgi?id=142230 which results in the wsgen target not being generated thus the wsdl is not created. This issue has since been fixed in the last day or two. I updated and have not been able to reproduce it. Jarek, kindly try to reproduce in the latest build, meanwhile I will close it. Reopen if it occurs again.
Original exception is no longer displayed,but now there's another in trunk build 200808041401. wsgen-NewWebService window: init: deps-module-jar: deps-ear-jar: deps-jar: Created dir: C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\web\WEB-INF\classes Copying 3 files to C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\web Copied 1 empty directory to 1 empty directory under C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\web library-inclusion-in-archive: library-inclusion-in-manifest: Compiling 1 source file to C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\web\WEB-INF\classes wsgen-init: Created dir: C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\generated\wsgen\service Created dir: C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\generated\wsgen\service\resources Created dir: C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\generated\wsgen\binaries wsgen-NewWebService: java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at javax.xml.soap.FactoryFinder.newInstance(FactoryFinder.java:55) at javax.xml.soap.FactoryFinder.find(FactoryFinder.java:182) at javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:75) at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:144) at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:178) at com.sun.xml.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:83) at com.sun.xml.ws.api.BindingID.<clinit>(BindingID.java:318) at com.sun.tools.ws.wscompile.WsgenOptions.validateBinding(WsgenOptions.java:235) at com.sun.tools.ws.wscompile.WsgenOptions.validateEndpointClass(WsgenOptions.java:230) at com.sun.tools.ws.wscompile.WsgenOptions.validate(WsgenOptions.java:197) at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:118) at com.sun.tools.ws.ant.WsGen2.execute(WsGen2.java:488) at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:486) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Caused by: java.lang.IllegalArgumentException: com.sun.xml.messaging.saaj.soap.LocalStrings != com.sun.xml.internal.messaging.saaj.soap.LocalStrings at java.util.logging.Logger.getLogger(Logger.java:328) at com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl.<clinit>(SAAJMetaFactoryImpl.java:35) ... 34 more BUILD FAILED (total time: 3 seconds)
The same issue I got when deploying Web App with web service on Glassfish v3 (trunk version-fixed).Raising priority to P1,since now this is stopper for Beta.
Thiis issue is valid only for JDK 1.6 - with JDK1.5 this works.
Setting xendorsed="true" for wsgen should help.
This issue is most likely fixed in trunk. See the issue 142920. These are changes: http://hg.netbeans.org/main?cmd=changeset;node=6d8097fd54a3
Yes this has been fixed in http://hg.netbeans.org/main?cmd=changeset;node=6d8097fd54a3 in the trunk. Jarek, do I need to apply this fix to the beta branch?
Verified in trunk.
Yes Rico,definitely.Commit this please to Beta branch.
Verified in Beta