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 175268 - web service client running fine in module but not as plugin
Summary: web service client running fine in module but not as plugin
Status: RESOLVED INCOMPLETE
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmichalsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-23 10:20 UTC by ymajoros
Modified: 2009-11-11 07:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
nbm 1 - lib (12.16 KB, application/octet-stream)
2009-10-23 11:50 UTC, ymajoros
Details
nbm 2 - module (22.75 KB, application/octet-stream)
2009-10-23 11:51 UTC, ymajoros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ymajoros 2009-10-23 10:20:22 UTC
I wrote a netbeans module talking to some web service. It works fine when I run the module using "run" action from the
suite. However, when trying to deploy it as netbeans plugin, I get below exception.

My module is using a library wrapper, which wraps a web service client and following dependencies (copy-pasted here from
nb):

ModuleDependency[me: BinaryEntry[C:\Program Files\NetBeans 6.7\ide11\modules\org-netbeans-libs-jaxb.jar], relVer: 1,
specVer: null, implDep: true, compDep: true]
ModuleDependency[me: BinaryEntry[C:\Program Files\NetBeans
6.7\java2\modules\org-netbeans-modules-websvc-jaxws21api.jar], relVer: 1, specVer: null, implDep: true, compDep: true]
ModuleDependency[me: BinaryEntry[C:\Program Files\NetBeans 6.7\java2\modules\org-netbeans-modules-websvc-jaxws21.jar],
relVer: 1, specVer: null, implDep: true, compDep: true]

I installed it in netbeans by creating nbm's for the wrapper and installing them. "Install/reload in development IDE" is
grayed out for the module I'd like to install, maybe this has some meaning.

Here is the exception stack I get when running as netbeans plugin:

javax.xml.soap.SOAPException: Unable to create SAAJ meta-factoryProvider
com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
        at javax.xml.soap.SAAJMetaFactory.getInstance(Unknown Source)
        at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
        at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:178)
Caused: java.lang.Error
        at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:181)
        at com.sun.xml.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:83)
        at com.sun.xml.ws.api.BindingID.<clinit>(BindingID.java:321)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseBinding(RuntimeWSDLParser.java:424)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:321)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:146)
        at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:264)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:227)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:175)
        at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
        at javax.xml.ws.Service.<init>(Service.java:56)
        at be.ucl.epc.common.erreur.GestionErreursServiceService.<init>(GestionErreursServiceService.java:46)
        at be.ucl.epc.erreurs.client.EpcErreursClient.<init>(EpcErreursClient.java:23)
        at be.ucl.epc.erreurs.nb.module.ui.control.ErreursController.getEpcErreursClient(ErreursController.java:90)
        at be.ucl.epc.erreurs.nb.module.ui.control.ErreursController.uiSetup(ErreursController.java:96)
        at be.ucl.epc.erreurs.nb.module.ui.control.ErreursController.show(ErreursController.java:130)
        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)
[catch] 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)
Comment 1 Stanislav Aubrecht 2009-10-23 11:32:59 UTC
please attach your module sources or some sample modules to demonstrate the problem, thansk
Comment 2 ymajoros 2009-10-23 11:50:46 UTC
Created attachment 89973 [details]
nbm 1 - lib
Comment 3 ymajoros 2009-10-23 11:51:06 UTC
Created attachment 89974 [details]
nbm 2 - module
Comment 4 ymajoros 2009-10-23 11:51:36 UTC
attached the nbm's - is this enough?
Comment 5 Stanislav Aubrecht 2009-10-23 14:26:41 UTC
well, you using implementation dependencies for jax* libraries so it obviously it won't work in different version of IDE
Comment 6 ymajoros 2009-10-23 15:28:06 UTC
I just can't get it to work otherwise. Is there a way? There doesn't seem to be any documentation, just a few forums or
blog posts as this one: http://forums.netbeans.org/topic13977.html

So, I think it is best to reopen this issue: this trick is the best way I found to do it and it doesn't seem to work. Is
there another way?
Comment 7 Stanislav Aubrecht 2009-10-26 15:18:58 UTC
jax libraries in netbeans are for 'friends' only. so you either have to use impl dependency and make sure your target
platform has the exact specification version or create your own library wrapper module and bundle the jax libraries with
your plugin
Comment 8 ymajoros 2009-10-27 11:50:49 UTC
Why is this "for friends only". Didn't find any doc on the subject, to me it's still a bug.
Comment 9 ymajoros 2009-10-27 13:11:58 UTC
> well, you using implementation dependencies for jax* libraries so it obviously it won't work in different version of IDE

Additionnaly, I use the same Netbeans version I'm developping in to install the nbm... so, I still think there is a bug.
Comment 10 Stanislav Aubrecht 2009-10-27 13:40:09 UTC
projects team, pls evaluate
Comment 11 rmichalsky 2009-11-11 07:36:42 UTC
Hi, could you provide some sample project with source codes that exhibits this bug? I cannot investigate much only with NBMs.