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.

Bug 226524 - Not able to specify package for web service client
Summary: Not able to specify package for web service client
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 11:37 UTC by kovica
Modified: 2013-06-12 02:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kovica 2013-02-22 11:37:46 UTC
I'm using NetBeans 7.3
When I create a maven application and a web service client the package specified is not used.
Steps:
- File - New Project - Maven - Maven application
- right click on maven project and select New - Web Service client
- specify WSDL
- in Package write something (com.kovica.ws.client.myOwn for example)
- press Finish
- in Generated Sources you get web service client, but the calsses are not in com.kovica.ws.client.myOwn package

Workaround is to manually edit pom.xml and add
<packageName>com.kovica.ws.client.myOwn</packageName>
under the jaxws-maven-plugin build plugin configuration and do clean - build again
Comment 1 David Konecny 2013-04-08 00:32:27 UTC
Martin could you look at this issue please? Thanks.
Comment 2 Martin Janicek 2013-04-08 09:27:06 UTC
Sure I can David, but I would need a more detailed information how to reproduce as my knowledge of Web Services are limitely closing to zero.

How exactly can I specify WSDL? I tried [1] but nothing happened after I clicked on finish. Debugging shows me that I done this: "Selected wsdl is rpc encoded. You must select JAX-RPC Client." Not sure why it doesn't show anything to the user, but that looks like a different issue. 

Another problem I have found during the debugging is that when Maven Web project is used without selected server then again wizard doesn't show any kind of information about what's going on but it's not possible to finish it.

Anyway I wasn't able to get through the wizard. So two question:
- What exact type of project should I use?
- What to put into the WSDL text field?

Thanks in advance

[1] http://soap.amazon.com/schemas2/AmazonWebServices.wsdl
Comment 3 David Konecny 2013-04-09 03:20:28 UTC
Martin, in Web Service Client wizard choose "IDE Registered" and via Browse button select for example StrikeIron->Email Verification. As for the project I tried it on Maven Web Application.
Comment 4 Martin Janicek 2013-04-30 09:29:29 UTC
If I do that I can finish the wizard because "No saas wsdl file specified."
Am I missing something? :)
Comment 5 Martin Janicek 2013-04-30 09:36:09 UTC
In the IDE log I can see following:

Exception occurred during event dispatching:
java.lang.NullPointerException
	at org.openide.filesystems.FileUtil.toFile(FileUtil.java:813)
	at org.netbeans.modules.websvc.core.client.wizard.ClientInfo.checkSaasState(ClientInfo.java:639)
	at org.netbeans.modules.websvc.core.client.wizard.ClientInfo.saasBrowse(ClientInfo.java:584)
	at org.netbeans.modules.websvc.core.client.wizard.ClientInfo.access$900(ClientInfo.java:145)
	at org.netbeans.modules.websvc.core.client.wizard.ClientInfo$9.actionPerformed(ClientInfo.java:485)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6288)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6053)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4651)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4481)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4481)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
	at java.awt.EventQueue.access$000(EventQueue.java:84)
	at java.awt.EventQueue$1.run(EventQueue.java:602)
	at java.awt.EventQueue$1.run(EventQueue.java:600)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
	at java.awt.EventQueue$2.run(EventQueue.java:616)
	at java.awt.EventQueue$2.run(EventQueue.java:614)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
	at java.awt.Dialog$1.run(Dialog.java:1046)
	at java.awt.Dialog$3.run(Dialog.java:1098)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1096)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1074)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1114)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1096)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:126)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1363)
	at org.openide.util.Mutex.readAccess(Mutex.java:273)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1081)
	at java.awt.Component.show(Component.java:1584)
	at java.awt.Component.setVisible(Component.java:1536)
	at java.awt.Window.setVisible(Window.java:842)
	at java.awt.Dialog.setVisible(Dialog.java:986)
	at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog(DialogDisplayerImpl.java:260)
	at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.run(DialogDisplayerImpl.java:186)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
	at java.awt.EventQueue.access$000(EventQueue.java:84)
	at java.awt.EventQueue$1.run(EventQueue.java:602)
	at java.awt.EventQueue$1.run(EventQueue.java:600)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 6 Martin Janicek 2013-05-13 14:56:42 UTC
HA, I was finally able to finish the whole wizard and reproduce the issue! (FYI: using IDE registered NAAddressVerification6.wsdl) ..I would say this is not a P2 as the workarround is pretty simple (but agree it might be annoying to manually change pom.xml just because the web service wizard doesn't work correctly).

The problem is again in Web Service Client wizard (maven.jaxws.wizards.JaxWsClientCreator and maven.jaxws.MavenModelUtils which doesn't take specified package name into account).
Comment 7 Martin Janicek 2013-05-17 09:46:40 UTC
Won't be part of the 7.3.1 patch. The issue exists even in earlier version and there is possible workarround. Setting TM = 7.4, adding 731-not-a-stopper --> I'll fix it after the 7.3.1 release
Comment 8 Martin Janicek 2013-06-11 08:36:50 UTC
Fixed in: web-main #c4b71610362d

CCing Milan because the changes are in jaxws area..

BTW: One more call of the addWsimportExecution() method exists in class JaxWsServiceCreator but I don't know if the package name attribute should be used there too
Comment 9 Quality Engineering 2013-06-12 02:03:09 UTC
Integrated into 'main-golden', will be available in build *201306112301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c4b71610362d
User: Martin Janicek <mjanicek@netbeans.org>
Log: #226524 - Not able to specify package for web service client