cxf

How to access CXF jars from Wildfly (Jboss) for ws endpoints

守給你的承諾、 提交于 2019-12-19 02:54:16
问题 I've tried to deploy my war file in Wildfly 8.2. My application uses org.apache.cxf for web service. But Wildfly (Jboss) comes by default with its own cxf jars which can be provide full Java EE support. I could eliminate jboss cxf and utilise my own cxf jars for web services by jboss-deployment-structure.xml <jboss-deployment-structure> <deployment> <exclude-subsystems> <subsystem name="webservices" /> </exclude-subsystems> </deployment> </jboss-deployment-structure> But it'll disable ws

Multiple resouceBean configuration in CXF using Spring

穿精又带淫゛_ 提交于 2019-12-18 17:32:38
问题 I'm using CXF RS 2.5.1 with Spring 3.0.6-RELEASE. I would like to have multiple implementation classes for "a single endpoint". I see that this issue was reported and fixed https://issues.apache.org/jira/browse/CXF-2439, however, when I try to do it, CXF just selects the first resource class from jaxrs:serviceBeans tag. For the other request, I see this message on tomcat console as "No operation matching request path /account/rest/transfer is found". Below is the configuration. Appreciate any

https URL hostname not matching Common Name (CN) despite setting 'disableCNCheck' to true

安稳与你 提交于 2019-12-18 15:41:24
问题 I managed to configure my CXF-based client properly so that it finds the correct SSL certificate for the server on which I am running a web service: <http:conduit name="https://myserver/myws/register/soap?wsdl:{http://glob.reg.com/myws}.http-conduit"> <http:tlsClientParameters> <sec:keyManagers keyPassword="changeit"> <sec:keyStore type="JKS" password="changeit" file="C:\Program Files (x86)\Java\jdk1.6.0_45\jre\lib\security\cacerts"/> </sec:keyManagers> <sec:trustManagers> <sec:keyStore type=

https URL hostname not matching Common Name (CN) despite setting 'disableCNCheck' to true

半世苍凉 提交于 2019-12-18 15:41:12
问题 I managed to configure my CXF-based client properly so that it finds the correct SSL certificate for the server on which I am running a web service: <http:conduit name="https://myserver/myws/register/soap?wsdl:{http://glob.reg.com/myws}.http-conduit"> <http:tlsClientParameters> <sec:keyManagers keyPassword="changeit"> <sec:keyStore type="JKS" password="changeit" file="C:\Program Files (x86)\Java\jdk1.6.0_45\jre\lib\security\cacerts"/> </sec:keyManagers> <sec:trustManagers> <sec:keyStore type=

Spring bean not injected into CXF web service, Why?

烂漫一生 提交于 2019-12-18 15:34:17
问题 I am writing a RESTful service (using CXF on JBoss) in which I have inject another class using Spring (Autowired). But the class is not getting injected and is null. Web Service Interface and Class (Where injection needs to happen) package com.company.project.web; @Path("/myws") public interface IMyWebService { @POST @Path("/doSomething") @Consumes("application/json") @Produces("application/json") MyResponse doSomething(MyRequest myRequest) } @Service("myWebService") public class MyWebService

Spring bean not injected into CXF web service, Why?

青春壹個敷衍的年華 提交于 2019-12-18 15:32:59
问题 I am writing a RESTful service (using CXF on JBoss) in which I have inject another class using Spring (Autowired). But the class is not getting injected and is null. Web Service Interface and Class (Where injection needs to happen) package com.company.project.web; @Path("/myws") public interface IMyWebService { @POST @Path("/doSomething") @Consumes("application/json") @Produces("application/json") MyResponse doSomething(MyRequest myRequest) } @Service("myWebService") public class MyWebService

Can I use @RolesAllowed on RESTful Resources implemented on Apache CXF?

前提是你 提交于 2019-12-18 12:47:06
问题 My question is "Can I use @RolesAllowed on RESTful Resources implemented on CXF ?" . First of all, I explain the context causing this question. I'm working at some projects in which developers have to remake one part of the some web systems into RESTful WEB Apis.This present system has server system built by Spring and Hibernate . And its client application as UI is developed by ActionScript through FLEX framework . Now I'm surveying the proper way to design and remake our present system into

CXF without Spring [closed]

风格不统一 提交于 2019-12-18 12:24:20
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . Is it possible to use CXF with Tomcat and without Spring? If so, how? 回答1: I suppose you mean to create a Web Service with CFX that it would run in Tomcat? This is totally possible and Spring is optional. You don

Add Response Header to JAX-RS Webservice

江枫思渺然 提交于 2019-12-18 11:48:43
问题 I am trying add some response headers to some of my webservice calls. I wrote my webservice using CXF 2.1.2 and JAX-RS. I need to return an object and I also want to add some headers to the Response. Without returning a javax.ws.rs.core.Response object , how do I add a header to the response and still return my javabean? 回答1: You can inject a reference to the actual HttpServletResponse via the @Context annotation in your webservice and use addHeader() etc. to add your header. 来源: https:/

Bean creation throws exception at the build time

五迷三道 提交于 2019-12-18 09:36:37
问题 Hi all I have an exception thrown when building application to be deployed in tomcat, and I am suspecting pom.xml is the source as I found in the net that dependencies are the responsible causes for this exception, anyhow, here is my stack trace: GRAVE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productWebService': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException