NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Netbeans Platform and web services

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
ymajoros



Joined: 25 May 2009
Posts: 21

PostPosted: Thu Oct 29, 2009 8:36 am    Post subject: Netbeans Platform and web services Reply with quote

Hello,

I have been trying to call a web service from a netbeans platform module. I can get it to work as a module, clicking on "run" from my development environment. But no luck developing a netbeans plugin: see http://forums.netbeans.org/viewtopic.php?t=18922

I tried to open a bug: http://www.netbeans.org/issues/show_bug.cgi?id=175268 . But it is still open and I still don't have a solution.

I tried to use the 3 nb jaxb modules, with the tricks mentioned in various blogs and forum posts.

I then tried to wrap metro and use this, with various combinations. I then got a message telling me that some classes would not be loaded arbitrarily, because they where available from different class loaders.
I tried different combinations of wrapper modules with the different jars of metro, without luck.

So I still can't have a web service client in a netbeans plugin.

Please, please help, I'm lost! Sad
Back to top
kiuma



Joined: 15 Jun 2009
Posts: 26

PostPosted: Thu Oct 29, 2009 9:13 am    Post subject: Netbeans Platform and web services Reply with quote

Hi, I'm using jaxb-ws with nb application platform too. All you need is :create a nb service (in my example I use basic authentication too) public class UserServiceFacadeImpl implements UserServiceFacade {
Back to top
ymajoros



Joined: 25 May 2009
Posts: 21

PostPosted: Fri Oct 30, 2009 10:57 am    Post subject: answer truncated Reply with quote

Hi,

I'm really interested in your answer to my post, but it has been truncated. Could you please repost it?

Regards,

Yannick
Back to top
tomwheeler



Joined: 03 Sep 2008
Posts: 950

PostPosted: Fri Oct 30, 2009 3:39 pm    Post subject: Netbeans Platform and web services Reply with quote

It's probably best to look at the Web archive of it:

http://openide.netbeans.org/servlets/ReadMsg?list=dev&msgNo=42050

On Fri, Oct 30, 2009 at 5:57 AM, ymajoros <address-removed> wrote:
Quote:
Hi,

I'm really interested in your answer to my post, but it has been
truncated. Could you please repost it?

--
Tom Wheeler
http://www.tomwheeler.com/
Back to top
ymajoros



Joined: 25 May 2009
Posts: 21

PostPosted: Thu Nov 05, 2009 10:16 am    Post subject: Reply with quote

Hi,

I tried the suggestion mentionned. This is the stack trace I get now:

SEVERE [global]
javax.xml.bind.JAXBException: return is not a valid property on class be.ucl.epc.common.erreur.ChercherErreursResponse
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:926)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.<init>(ResponseBuilder.java:500)
at com.sun.xml.ws.client.sei.SEIMethodHandler.buildResponseBuilder(SEIMethodHandler.java:136)
at com.sun.xml.ws.client.sei.SyncMethodHandler.<init>(SyncMethodHandler.java:85)
at com.sun.xml.ws.client.sei.SEIStub.<init>(SEIStub.java:82)
at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:639)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:341)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:323)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:305)
at javax.xml.ws.Service.getPort(Service.java:92)
at be.ucl.epc.common.erreur.GestionErreursServiceService.getGestionErreursServicePort(GestionErreursServiceService.java:56)
at be.ucl.epc.erreurs.nb.module.ui.control.ErreursController.getEpcErreursClient(ErreursController.java:93)
at be.ucl.epc.erreurs.nb.module.ui.control.ErreursController.uiSetup(ErreursController.java:106)
at be.ucl.epc.erreurs.nb.module.ui.control.ErreursController.show(ErreursController.java:140)
at be.ucl.epc.erreurs.nb.module.action.ErreursAction.actionPerformed(ErreursAction.java:17)
at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:115)
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.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
at java.awt.Component.processMouseEvent(Component.java:6216)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
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)
Caused: javax.xml.ws.WebServiceException: class be.ucl.epc.common.erreur.ChercherErreursResponse do not have a property of the name return
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.<init>(ResponseBuilder.java:511)
at com.sun.xml.ws.client.sei.SEIMethodHandler.buildResponseBuilder(SEIMethodHandler.java:136)
at com.sun.xml.ws.client.sei.SyncMethodHandler.<init>(SyncMethodHandler.java:85)
at com.sun.xml.ws.client.sei.SEIStub.<init>(SEIStub.java:82)
at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:639)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:341)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:323)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:305)
at javax.xml.ws.Service.getPort(Service.java:92)
at be.ucl.epc.common.erreur.GestionErreursServiceService.getGestionErreursServicePort(GestionErreursServiceService.java:56)
at be.ucl.epc.erreurs.nb.module.ui.control.ErreursController.getEpcErreursClient(ErreursController.java:93)
at be.ucl.epc.erreurs.nb.module.ui.control.ErreursController.uiSetup(ErreursController.java:106)
at be.ucl.epc.erreurs.nb.module.ui.control.ErreursController.show(ErreursController.java:140)
at be.ucl.epc.erreurs.nb.module.action.ErreursAction.actionPerformed(ErreursAction.java:17)
at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:115)
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.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
at java.awt.Component.processMouseEvent(Component.java:6216)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
[catch] 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)

Which dependencies should I have?

Could you provide me some sample module, or is one available somewhere? This would really help!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo