java - Eclipse RCP and Apache CXF -
i'm trying utilize apache cxf in eclipse rcp application. 1 plugin (x) provide osgi service uses cxf. plugin (y) phone call service.
the "x" plugin uses cxf jar's downloaded (cxf 2.7.11) added manifest.mf. when run test cases withint plugin x goes fine i.e. can phone call webservice , response.
when seek run plugin "y" sees osgi service can call. osgi service calls same code withint project "x" in above case, doesnt work. exception is:
com.sun.xml.internal.ws.client.sei.seistub cannot cast org.apache.cxf.frontend.clientproxy
in part:
org.apache.cxf.endpoint.client client = clientproxy.getclient(myserviceport);
now when run same code within plugin (plugin x) runs fine.
so suspect has jar's , dependencies etc. im not sure. searched exception , comes when jar's missing cxf, added all jar's manifest.mf found in cxf distribution.
i'm not sure classes of cxf need, test cases seem run fine.
any ideas went wrong?
i set client way:
jaxwsproxyfactorybean mill = new jaxwsproxyfactorybean(); factory.setserviceclass(yourclass.class); factory.setaddress(endpoint); yourclass port = (yourclass) factory.create(); client client = clientproxy.getclient(port);
if have autogenerated javas have client class name_name_client.java , name_name12_client.java, , yourclass name.java (this java defines webmethods), alter this, , set endpoint. seek , allow know if works you.
java eclipse-rcp jax-ws cxf manifest.mf
No comments:
Post a Comment