I have been using Apache CXF 2.7.0 for quite a while now, but recently I assumed my The project was restructured. After doing this, for some reason, I can not add the "WSAddressingFeature" feature to the endpoint.
Am I missing ??
endpoint.getFeatures () am adding (new org.apache.cxf.ws.addressing.WSAaddressingFeature ());
Eclipse reports that:
"not applicable to the type (feature) type list & lt; feature & gt; arguments (WSAddressingFeature) "
This is my complete implementation:
string URL =" http: // localhost: "+ m_Port +" / Inbroborph / Handler "; Object applicator = new handler imple (); Org.apache.cxf.jaxws.EndpointImpl Endpoint = New org.apache.cxf.jaxws.EndpointImpl (implementor); Endpoint.getFeatures (). Add (New org.apache.cxf.ws.addressing.WSAaddressingFeature ()); Endpoint.publish (url); Org.apache.cxf.endpoint.Server Server = endpoint.getServer (); Org.apache.cxf.jaxws.JaxWsServerFactoryBean Server FB = Endpoint .getServerFactory ();
If I add the convenience feature, the following error occurs:
"exception" in thread "main" java.lang.NoSuchMethodError: org .apache.cxf.common.util.ReflectionUtil.getDeclaredMethod (Ljava / Lang / Class; Ljava / Lang / String; [Ljava / Lang / Class;) Ljava / Lang / Mirrored / Method; At org.apache.cxf.jaxws. Support.JaxWsServiceFactoryBean.bindOperation (at JaxWsServiceFactoryBean.java .76) org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createOperation (ReflectionServiceFactoryBean.java:1045) at org.apache.cxf.jaxws .support.JaxWsServiceFactoryBean.createOperation (jaxwsServiceFactoryBean. Java: 642) org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createInterface (ReflectionServiceF ActoryBean.java:990) org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass at org (ReflectionServiceFactoryBean .java: 481) at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass (JaxWsServiceFactoryBean.java:704) .apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel (ReflectionServiceFactoryBean.java) apache.cxf.service.factory.ReflectionServiceFactoryBean.create at 50 or ORG (ReflectionServiceFactoryBean.javaociety65) org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean Org on .create (JaxWsServiceFactoryB ean.java:215) org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint (AbstractWSDLBasedEndpointFactory.java:102) org.apache.cxf.frontend.ServerFactoryBean.create (ServerFactoryBean.java:159) At org.apache.cxf.jaxws.EndpointImpl.getServer (EndpointImpl.java:456) at org.apache.cxf.jaxws.EndpointImpl.doPublish (EndpointImpl.java:334) at .apache.cxf .j Axws.JaxWsServerFactoryBean.create (JaxWsServerFactoryBean.java Month 11)) org.apache.cxf.jaxws.EndpointImpl.publish (EndpointImpl.java:251) org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint (ProviderImpl.java155) ) At javax.xml.ws.Endpoint. Publish on the com.infosol.infoburst.XI4 service (unknown source). HandslerService.publish (handlerService.java:106) com.infosol.infoburst.XI4Service.HandlerService.main on (handlerervice.java 42)
This is the reason why I do not really enjoy working in Java environment ...
Add method to decide" t "(Feature) < / Li>
- " cfx-2.7.0 Take the .jar "file to a higher priority, this may cause little testing and error
is a time Siafaks file transfer priority, the error will be.
Comments
Post a Comment