Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dubbo multi-protocol, dubbo & webservice protocol to publish service,when startup fail to init webservice bean #1560

Closed
lawplus opened this issue Apr 6, 2018 · 6 comments

Comments

@lawplus
Copy link

lawplus commented Apr 6, 2018

because of dubbo2.5.3 webservice RPC is very old dev@2013?,so it replied on cxf2.6.1,but cxf 2.6.1 integriting with dubbo using spring 4.0,is not compatible, when the spring container starting, it raise NoSuchMethod at some spring aop framwork classes。i judge it means cxf2 & spring4 is not compatible。
when cxf upgrade to 3.x above,the dubbo error: NoSuchMethod at some cxf related class,it means cxf3 & dubbo rpc webservice is not compatible, WebServiceProtocol.java

--
refer to https://github.com/apache/incubator-dubbo/blob/master/dubbo-rpc/dubbo-rpc-webservice/src/main/java/com/alibaba/dubbo/rpc/protocol/webservice/WebServiceProtocol.java
error happends @ line 88

so I ask here any plan to upgrade to support cxf3?

@lovepoem
Copy link
Member

lovepoem commented Apr 6, 2018

Please paste some error logs and your test code, if we can fix the bug ,we'll upgrade the cxf as soon as possible.

@lovepoem
Copy link
Member

lovepoem commented Apr 6, 2018

Hi, Welcome!

Would you please consider ask in English? Since this project is moved to ASF repo, we hope it is understandable by people all over the world so that everyone can join to discuss.

Also, please try to ask by sending an email to dev@dubbo.incubator.apache.org-->Subscribe guide , issues is used to track bugs.

@lawplus lawplus changed the title Dubbo 多协议, dubbo和webservice协议发布接口,启动时报错 无法初始化webservice的bean Dubbo multi-protocol, dubbo & webservice protocol to publish service,when startup fail to init webservice bean Apr 7, 2018
@lawplus
Copy link
Author

lawplus commented Apr 7, 2018

@lovepoem thanks to remind. pls help to look at this problem.

@kimmking
Copy link
Member

kimmking commented Apr 7, 2018

@rongmin you can use the latest version by packaging from the master code.

  1. then you can add ws protocol to a xml file just like:
    incubator-dubbo\dubbo-test\dubbo-test-examples\src\main\java\com\alibaba\dubbo\examples\generic\generic-provider.xml

`
<dubbo:application name="generic-generic"/>

<dubbo:registry address="multicast://224.5.6.7:1234"/>

<dubbo:protocol name="dubbo" port="20880"/>
<dubbo:protocol name="webservice" port="10880"/>

<bean id="userserviceimpl" class="com.alibaba.dubbo.examples.generic.impl.UserServiceImpl"/>

<dubbo:service interface="com.alibaba.dubbo.examples.generic.api.IUserService" ref="userserviceimpl" protocol="dubbo,webservice">
</dubbo:service>

2. run git\incubator-dubbo\dubbo-test\dubbo-test-examples\src\main\java\com\alibaba\dubbo\examples\generic\GenericProvider.java` as an application in your IDE.
3. and then visit a WSDL from URL:
http://192.168.123.102:10880/com.alibaba.dubbo.examples.generic.api.IUserService?WSDL
4. you will find WS work well, the ref CXF version is 3.0.14 now.

@kimmking
Copy link
Member

kimmking commented Apr 7, 2018

generic test case is not a good demo,
I update CXF to 3.2.4 and add a demo for it: #1564

As a WebService by SoapUI:
_20180408003210

As a RPC by dubbo-rpc:
_20180408004433

@chickenlj
Copy link
Contributor

This issue is now tracked with #1564

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants