[SOLVED] RTC webservice plugin consumer
![]() Hi folks, I have a issue with plugin development, that works fine on jetty. This plugin just have to consume a webservice, nothing more. But every time I generate client stubs, the plugin deploy fails. Any one knows an article about it, or related issue? Some logs: http://ctrlv.it/id/MzQxMDUx.
Best Regards!
|
Accepted answer
![]()
I had to package the web service runtime jar files in the lib folder of the plugin so that they would be deployed into the plugin classpath.
Joao Bosco Jares A. Chaves selected this answer as the correct answer
|
3 other answers
![]()
Hi All,
The issue above was solved with a simple configuration on when I configured the require-bundle with the necessary plugins. But for now, I have a new issue that is the class dependencies do not appear on runtime for the main plugin, and It´s causing a: java.lang.NoClassDefFoundError: br.gov.bnb.gsolintegrations.DeploymentIntegrationProcessInterface.DeploymentIntegrationProcessInterfaceProxy
Anybody knows how to solve this issue?
Thanks!
Comments 1
what jar file is this class
Hi Sam,
I am very grateful with your hand in this issue. About your question: this interface is part of the second one plugin jar that cover the ws client. For now Iam trying both thing, the first helps the compile of the main plugin, and the second is about you told me, and I created the lib with the jars.. Let try again ;)
Sam,
I tried as your approach, I keep the two other plugins, and I created a site project for both (the plugin that has jax-rpc libs, and plugin that has the webservice stubs client). So with this I can compile the main plugin without build fails. So The two site projects was pointed to the lib folder under the main plugin, and this lib folder was configured as a buildpath in my plugin.xml as below, but the error persists.
plugin.xml
a) br-gov-bnb-s095-webservice => Contains jax-rpc libs;
b) br-gov-bnb-s095-webservice-usd2 => Contains ws staubs.
Attached the workspace image: ![]()
showing 5 of 6
show 1 more comments
|
![]()
Thank you so much Sam. But I cannot understand the approach that you said, is manual or exist a file (plugin.xml or MANIFEST.MF), if this configuration is in some file where is the tab? I had tried many things but nothing works for me. So, let me explain better the scenarios:
a) I have another plugin that package the webservice client (generated by eclipse). This second one has a dependency by the first one. Where this dependency was configured in dependencies tab of MANIFEST.MF file.
b) I have a plugin that was created by existing jars, where this jars is necessaries to jax-rpc execution (axis.jar, commons-discovery-0.2.jar, javax.wsdl_1.6.2.v201012040545.jar, jaxrpc.jar, org.apache.commons.logging_1.0.4.v201101211617.jar, saaj.jar);
c) The third one plugin is the main, who has the advisor class that extends AbstractService and implements IOperationAdvisor. So, just this one has a site project, the others just plugin and feature. Beyond, this project plugin has dependency for the others, and I configured the site project to expose feature and plugins for the all.
I am posting the files for help in this link: https://www.assembla.com/spaces/usdplugin/documents/cNdvok5yar4R7dacwqEsg8/download/cNdvok5yar4R7dacwqEsg8
Provision Status Log: http://www.heypasteit.com/clip/0VI5
Thanks a lot.
Comments Hi All,
Let´s be simple. Any one knows how to call a jax-rpc webservice by the advisor or some article?
Best Regards ;)
|