cxf 1 « cxf « Java Enterprise Q&A





1. Locale instance in web service    stackoverflow.com

How can I use instances of java.util.Locale as parameter or result in a webservice? My webservice uses Apache CXF.

2. CXF IllegalAnnotationException related to no-arg StackTraceElement constructor    stackoverflow.com

I have a web service built using Apache CXF 2.1.3. One of the web params is a java.lang.Throwable. When I call JaxWsServerFactoryBean.setServiceBean, I get an IllegalAnnotationException as java.lang.StackTraceElement doesn't have a ...

3. How to keep Apache CXF from converting primatives to object types?    stackoverflow.com

I'm evaluating Apache CXF for a project so I wrote a small demo application to try a few things out. Following the CXF user's guide, I was able to get ...

4. How to terminate CXF webservice call within Callable upon Future cancellation    stackoverflow.com

Edit This question has gone through a few iterations by now, so feel free to look through the revisions to see some background information on the history and things tried.


I'm using ...

5. CXF and when should I use JaxWsProxyFactoryBean or JAX-WS Proxy    stackoverflow.com

JaxWsProxyFactoryBean and when I should use Java stub generated from wsdl or JAX-WS Proxy? Are there any advantages or disadvantages? thanks

6. cxf.jaxrs: IllegalArgumentException when using JAXRSServerFactoryBean    stackoverflow.com

I ran into the following issue when setting up a JAXRS test service in a unit test. This is the code (taken from an AbstractJUnit4SpringContextTests-derived test class):

    JAXRSServerFactoryBean sf ...

7. How to read the user or identifier supplied in ws-security    stackoverflow.com

I am using latest Apache CXF to create a webservice. I have configured ws-security using org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor. In my passwordCallbackClass I can access the user or identifier by calling getIdentifier() method of ...

8. how to mime type of the url    stackoverflow.com

I am using cxf as a webservice.It supports xml and json format output of the requested data.I want to know that if some exception has occured in my code then ...

9. Using CXF web service from java web start    stackoverflow.com

UPDATE: I have submitted my question to the CXF User's mailing list, here. UPDATE: I have currently signed all of my jars. I still can't seem to get CXF setup in a ...





10. Web Service Call Via CXF Gives Null Parameters    stackoverflow.com

I have two code projects both using CXF to use web services. When I make a call from project A to project B, the method I am calling receives null ...

11. Can I can configure cxf to use a specific XML parser?    stackoverflow.com

Is there a way to specify which XML parser cxf uses? Either through the cfx.xml file or programmatically? Our app has the Woodstox parser on its classpath, and cxf seems to ...

12. How to create an Apache cxf simple web-service consumer?    stackoverflow.com

I'm able to generate a client from a wsdl file. Now I need to run it in Eclipse. When I create a Axis2 Client using Eclipse, I just create an DynamicWebProject and it automatically ...

13. CXF: Set minOccurs=0 for elements of the arrays    stackoverflow.com

We use CXF framework with aegis mapper for java server and .NET client. By default we have minOccurs=0 for all variables in classes in WSDL. We use such setting in CXF config to ...

14. Is there a .Net equivalent of Apache CXF Framework?    stackoverflow.com

Here is the wiki for those who want to know about Apache CXF. http://en.wikipedia.org/wiki/Apache_CXF I am looking for something similar or .Net ports.

15. java.lang.NoSuchMethodError: org.w3c.dom.Document.setDocumentURI    stackoverflow.com

I am getting a NoSuchMethodError error for org.w3c.dom.Document.setDocumentURI. This is strange, as I have rt.jar in the JAVA_HOME path. I am creating a web service using CXF, and the error seem ...

16. Custom Date Format with jax-rs in apache cxf?    stackoverflow.com

I have been googling to figure out how I can customize the Date format when I use jax-rs on apache CXF. I looked at the codes, and it seems that ...





17. How do you use FastInfoset with JAXWS?    stackoverflow.com

I've got code that looks like it should be correct based on what I can find, but the spewed output doesn't indicate that it's using FastInfoset. My understanding is the Accept ...

18. Writing async service using cxf with java first approach    stackoverflow.com

I need to create a async webservice using cxf with java first approach. But i am unable to find any web resource/ website which tells me how to do this? Can you ...

19. How to set WS-SecurityPolicy in an inbound CXF service in Mule?    stackoverflow.com

When configuring the service for handling UsernameToken and signatures, it's setup like this:

<service name="serviceName">
  <inbound>
    <cxf:inbound-endpoint address="someUrl" protocolConnector="httpsConnector" >
      <cxf:inInterceptors>
   ...

20. cxf ws-security: securing web-services & interoperability with .NET and other languages    stackoverflow.com

I wonder how to use the means that CXF provides us to secure web-services and BE SURE THAT THERE'LL BE NO PROBLEM for anyone who wants to generate a non-java client from a ...

21. Logging hostname resolved in CXF    stackoverflow.com

I have a java web service client that uses CXF. The server has 10+ possible ips that are resolved via dynamic dns. I have the jvm configured properly to ...

22. web service reliablility with CXF - MQ    stackoverflow.com

How can I achieve reliability of web service in CXF ? It is used in financial domain and involved in payment system, so requirement is that it must be 100% reliable and ...

23. CXF - Webservice method with parameter type as Element    stackoverflow.com

I am trying to develop SOAP based webservice using CXF. My requirement is to accept any XML data structure as method parameter and then the logic to parse/handle this data would ...

24. cxf web services    stackoverflow.com

Can anybody recommend good book for understanding good concept about cxf web services

25. Transfer large messaeges with Apache CXF    stackoverflow.com

I'm writing a CXF WS to upload some large files - up to 1GB. In most cases they won't be >10-15MB, but the problem is that it is ineffective to load ...

26. What does CXF stands for in "Apache CXF"?    stackoverflow.com

What does CXF abbreviation mean? What is "C"? What is "X"? What is "F"?

27. CXF web services won't work after upgrading to 2.2.10    stackoverflow.com

After upgrading OpenEJB from 3.1.2 (uses CXF 2.0.9) to OpenEJB 3.1.3 (uses CXF 2.2.10) CXF-based web-services are broken with the following exception on a server side:

org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
    WARNING: ...

28. Getting raw XML parameter in JAX-WS webservice method    stackoverflow.com

How to achieve something like that:

@WebService(endpointInterface = "ru.citc.techtest.cxfconcepts.HelloWorld")
public class HelloWorldImpl implements HelloWorld {

    public String sayHi(DOMSource xml) {
        return "Hello";
  ...

29. Apache CXF codegen plugin throws nullpointer    stackoverflow.com

I'm using maven to generate code from a wsdl contract, but when the goal generate-sources is executed I get a nullpointer in WSDL2JavaMojo. It seems like the method processWsdl is trying ...

30. Tuning a WebService    stackoverflow.com

I have a webservice created with CXF. In my service I run an application witch is very time consuming. My application takes about 30 minutes to be executed but inside the ...

31. Logging request/response with Apache CXF as XML    stackoverflow.com

Is it possible to log the request/response as XML using CXF, ideally to a separate file so I can monitor what an application is doing?

32. CXF configuration issues    stackoverflow.com

Im using CXF to generate client-side artifacts and to generate my wsdl using the java2ws plugin. In the configuration of CXF for generation of the WSDL on tomcat where you need to ...

33. How to solve ServiceConstructionException: Could not find definition for service?    stackoverflow.com

I have a simple application with an web service created with Apache CXF. This application works when I run the server and the client (as Java applications). When I try to ...

34. CXF JAX-RS: Proxy returns null instead of Map    stackoverflow.com

I have set up a CXF JAX-RS Server which works fine. Among other services, it has one that returns a Map when invoked, and it’s implemented like this:

@Path("/lqservice/")
@Produces("application/json")
public interface LiqService {

 ...

35. URL Rewriting in Apache CXF JAX/RS call    stackoverflow.com

How to make a jax/rs call with path params having slashes embedded in it?

@DELETE
@Path("/extended/universal/{CID}")
@Produces( { XML, JSON })
public Response deleteCID( @PathParam("CID") String cId ) throws Exception
{
}
Here, {CID} contains a string sometimes ...

36. passwordCallback in CXF    stackoverflow.com

I develop a webservice client for an existing webservice. I am using Apache CXF 2.2. The service requires security with Username and plain text password, which I configured like this:

<bean id="myPasswordCallback"
 ...

37. Cannot call web service    stackoverflow.com

I am currently trying to call a web service with a client built with Apache CXF. Though the service is available in the browser, I cannot connect to it, due to ...

38. Apache CXF CachedOutputStream NoClassDefFoundError    stackoverflow.com

Help! I'm getting this error when trying to connect using JAX-WS webservice call: java.lang.NoClassDefFoundError: org/apache/cxf/io/CachedOutputStream Any idea on what's happening? Update: I added all these jar files

  • cxf.jar
  • commons-logging.jar
  • geronimo-activation.jar (Or the Sun equivalent) [6]
  • geronimo-annotation.jar (Or the Sun ...

39. In CXF Is it possible to publish and subscribe Multiple Web Services one JMS queue?    stackoverflow.com

in CXF is it possible to publish and subscribe Multiple Web Services one JMS queue ?

40. how to test ws-security    stackoverflow.com

I am about to develop web application with web services. I've already tuned jax-ws and ws-security. I used soapUI and sent next request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="..." >
 <soapenv:Header>
  <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1">
 ...

41. CXF - ClassCastException (SEIStub/ClientProxy)    stackoverflow.com

I'm trying to build a client jar file to access a webservice. I'm including the jar in a servlet/war that makes the client webservice calls. I'm getting the following ...

42. JAX-RS - Can two classes have the same @Path identifier?    stackoverflow.com

I have a webapp that redirects to a particular URI: let's say /service/library. In another bundle, I have a jaxrs server that listens for /service in the URI, and defines some ...

43. CXF having issues with returning a list    stackoverflow.com

Am using Aegis for data binding but it throws an exception when returning a list to the clients. am using CXF 2.2.3. the exception is as below. Where could I be ...

44. Empty element issue with CXF-2.3.3    stackoverflow.com

We have one webservice deployed at our client side(Sonic ESB) earlier we used Apache Axis to generate client stub from WSDL at that time everything was working smoothly. Later on we ...

45. Apache CXF - credentials not being sent from WSS4JOutInterceptor?    stackoverflow.com

I am trying to connect to a web service using WS-Security UsernameToken spec 1.0, using apache cxf 2.4.0. I've copied the code below from the CXF docs, but am getting: org.apache.cxf.ws.policy.PolicyException: No ...

46. How to develop a distributed system with Apache CXF D-OSGi?    stackoverflow.com

My development environment and requirement: Eclipse3.6, Equinox framework, Apache cxf-dosgi-ri-singlebundle-distribution-1.2.jar I want to try a demo distributed program, but it seems that the imported cxf jar could't work normally. First of ...

47. call cxf webservice by camel-cxf    stackoverflow.com

I want to call cxf webservice deployed in tomcat by camel-cxf component. I run camel:run command and see this log: INFO Apache Camel 2.6.0-fuse-00-00 starting INFO OSGi environment not detected. INFO Found ...

48. apache CXF - with xml string    stackoverflow.com

I am using CXF for web services. I have an inner xml wrapped by an outher xml. That is, I produce an xml:

<aa><bb><cc>bla</cc></bb></aa>
and than the CXF wraps it:
<answer>&lt;aa&gt;&lt;bb&gt;&lt;cc&gt;bla&lt;/cc&gt;&lt;/bb&gt;&lt;/aa&gt;</answer>
As you can see, the < ...

49. invalid console appender config detected because of WSS4JOutInterceptor    stackoverflow.com

I have the following problem. invalid console appender config detected, console stream is looping I am running a cxf servlet 2.2.10 on a JBoss 5.1 AS. The problem is being caused by a ...

50. Content-Disposition CXF JAX-WS    stackoverflow.com

I was wondering whether JAX-WS using MTOM can product the Content-Disposition header for an attachment or is this just JAX-RS functionality? I am trying to use cxf to implement this and ...

51. Test @Webservice EJBs with WebServiceContext (using OpenEJB?)    stackoverflow.com

I have some EJBs as JAX-WS Web Service:

@WebService
@Stateless
@Remote(MobileFacade.class)
public class MobileFacadeBean implements MobileFacade {
    ... 

   @Resource
   WebServiceContext wsc;

    ...
}
Within this Web ...

52. Inheritance problem in a Java/CXF/SOAP app?    stackoverflow.com

I'm working on an application that uses cxf, the base of the app is a wsdl file and I'm having some trouble working with the inheritance. I'll try to make a clear ...

53. Pass envelope through cxf    stackoverflow.com

I am looking to pass through an envelope using CXF adding headers along the way. I receive an envelope and need to add ssl headers passing the request along to the ...

54. CXF: No message body writer found for class - automatically mapping non-simple resources    stackoverflow.com

I am using the CXF rest client which works well for simple data types (eg: Strings, ints). However, when I attempt to use custom Objects I get this:

Exception in thread "main" ...

55. CXF Asnchronous Service Invocation    stackoverflow.com

I'm looking for an example showing how can I configure my CXF project, so that I can call a service method asynchronously; meaning my invocation in the client side doesn't block ...

56. JAX-WS = When Apache CXF is installed it "steals" default JDK JAX-WS implementation, how to solve?    stackoverflow.com

I have a strange problem. 1.) Using wsimport I generated als JAX-WS Code from a WSDL (in a dedicated eclipse java project). This works fine in JDK6 without any external dependencies (running ...

57. CXF multiple implementors for one address    stackoverflow.com

is it possible to have multiple implementors with only one address ? So something like:

<jaxws:endpoint id="ws1" implementor="#ws1" address="/ws" />
<jaxws:endpoint id="ws2" implementor="#ws2" address="/ws" />
Thanks --MB

58. Is it possible to generate serializable classes with CXF?    stackoverflow.com

I'm using Apache CXF to generate classes from a WSDL file but they don't implement Serializable which is needed to put an object into a JMS queue. Is it possible to ...

59. webservices as datasource for crystal reports    stackoverflow.com

I am a crystal developer but new to webservices. i am using crystal reports 2008 I have following questions wrt web services as data source 1)we are currently using cxf web service with ...

60. CXF argument type mismatch    stackoverflow.com

When trying to call a SOAP service I am getting the following error: javax.xml.ws.soap.SOAPFaultException: argument type mismatch while invoking public void com.fooBar.reportStatus(java.lang.String,int,java.lang.String) with params [test, test, null]. What is interesting is I am ...

61. J2EE Web App Plugin Architecture    stackoverflow.com

I have a simple Web App that receives data via a web service and persists it in a database. I am using CXF, Hibernate and Glassfish 3. I am ...

62. Best way to consume RPC/encoded webservice?    stackoverflow.com

I need to consume old-school RPC/encoded WSDL webservice for my backend (Spring & Apache CXF). At first I tried to use Apache CXF and JAX-WS for that, but JAX-WS wsimport tool ...

63. CXF - How to declare an attribute required and non-primitive?    stackoverflow.com

I have a web sercice method that recieves an object. One of the attributes is "interval" which is an integer. I would like to make this atribute required but without providing any ...

64. How can I override the CXF services list URL?    stackoverflow.com

My webservice has an REST endpoint URL like /myapp/admin/services. If I set org.apache.cxf.servlet.hide-service-list-page=false then my URL is hijacked by the CXF services list. This happens because the listings URL is relative ...

65. Configuring WSS4J with CXF    stackoverflow.com

I was doing pretty well with setting up a contract first set of web services using CXF until I started adding in the WSS4J piece. I'm trying to debug sending a ...

66. How to inject the @Context when consuming FIQL queries in Apache CXF - JAX-RS?    stackoverflow.com

I am trying to implement a FIQL search queries and I am following the guide at http://cxf.apache.org/docs/jax-rs-advanced-features.html#JAX-RSAdvancedFeatures-FIQLsearchqueries. The issue is that the SearchContext is always null and I am getting ...

67. What causes this BeanCreationException    stackoverflow.com

Hello i am using Apache CXF for generating webservice. While i am generate webservice using eclipse apache CXF i am getting error mfollows below

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webservicemethod': Invocation ...

68. How to access webservicecontext programatically in apache cxf?    stackoverflow.com

Is there a way to access webservicecontext in the following format SomeUtil.getWebserviceContext() instead of @Resource private WebServiceContext wsContext; Thanks

69. Adding a HTML Page to a webservice developed uisng Apache CXF    stackoverflow.com

I have created a Apache CXF Webservices . It is working fine . It was deployed successfuly as a war file into Tomcat . The Webservice is running fine Means when i tried ...

70. Apache CXF JAX-RS service is missing XML document start    stackoverflow.com

I am developing web services using Apache CXF and Spring. My interfaces and configuration are configured so that I have both REST and SOAP services. Apache CXF is not putting the XML ...

71. Are there potential issues with using Apache CXF for mobile applications?    stackoverflow.com

We'll be developing mobile applications (for both iOS and Android platforms) that will be using web services. I'll be the one implementing the web services part and I plan on using ...

72. invoking JAX-WS web service with array param using GET    stackoverflow.com

I have a CXF JAX-WS web service operation named "diagnosticPing" that accepts two params, an int and a String[] array. From the wsdl:

<xs:element name="depth" type="xs:int"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="instructions" type="xs:string"/>
I'd like to ...

73. CXF and optional entity parameters    stackoverflow.com

I'm using Apache CXF as JAX-RS implementation and I have a problem with optional "entity parameters". Take a look at this piece of code:

@Path("/")
public class myClass {

   ...

74. How to deal with SocketTimeoutException inside Java Code / Webservices    stackoverflow.com

This is my Method code shown below Actually this serves as a Webservices Method .

public Response getData(ServiceRequest request)
{
    try
    {
      ...

75. What is the need of CXF framework    stackoverflow.com

Today i read about the CXF framework , and i go through one example of creating the webservice. It looks same what we do for JAX-WS webservices , but finally they ask ...

76. Logging request/response with Apache CXF as XML in log4j    stackoverflow.com

How to write request/response xml's in seperate files?

svrFactory.getFeatures().add(
            new LoggingFeature("<stdout>", "file://home/myLog.txt")); 

77. Apache CXF+MTOM sending multiple attachments    stackoverflow.com

I have developed a web-service which receives multiple attachments from a remote web-service via an CXF JAXB client (the client is called from the service), the attachment from the remote service ...

78. Where is Apache CXF plugin for Netbeans?    forums.netbeans.org

Hello, I have recently installed Axis2 plugin for Netbeans, and used it to generate a wsdl file based on my hand-written java class. Now I need to write a consumer (client) to to consume the service, by generate client stubs base on the wsdl. In order to be consistent with the current project, I have to use Apache CXF to generate ...

79. CXF Problem    coderanch.com

Now ,my project is using cxf and tomcat.I deploy a class named TestServiceImpl,this class includes a function GetEncryByte which is used for encrypting some information. That is OK when I call this function,but when I call it by webService,that is exception:javax.soap... proxy15 GetEncryByte[unknown source]...that is illegial characters.. but I call others,All is Ok.Client can get correct result from server. this function ...

80. Web Service through CXF    coderanch.com

82. The Apache CXF web services framework    coderanch.com

83. Stateful Services in CXF    coderanch.com

84. CXF Apache: null pointer problem with my reponse    coderanch.com

Hello, I have a big problem with reception of a CXF answer and i'm looking for a solution since many days. In my aut-generated classes, i have a null pointer. I use "apache-cxf-2.1.2". From a wsdl file, with https, i've auto-generated many classes with wsdl2java. My application send a request to LDAP server with webservice (using https). Communication work fine: my ...

85. UsernameToken in cxf    coderanch.com

Hi, I am using apachi cxf to implement web services. I would like to know how the userid and password values enter by user will set to " UsernameToken " Please let me know the flow or please provide me a brief documentation [ code ]

86. asynchronous webservices in cxf    coderanch.com

87. CXF 2.2 @FormParam - Not working?    coderanch.com

88. @FormParam with CXF 2.2    coderanch.com

Hi, I am using CXF 2.2 for implementing restful services. I have a post method in the service Ex: @POST @Path("/login") public boolean login(@FormParam("userName") String userName, @FormParam("password") String password ) I am not able to get the form param values in the service class there are always null. Does CXF 2.2 support @FromParam? If yes, is there any configuration to make ...

89. apache cxf    coderanch.com

90. CXF fails to serve WebService    coderanch.com

The WebService is generated from a WSDL via wsdl2java, then deployed. Then a client is also generated by wsdl2java, and invoked. The exception on the server is: org.apache.cxf.interceptor.Fault: java.lang.ClassCastException@e9f1cb while invoking public void (msg details). at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:152) at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:83) at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:126) at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55) and so on.. In the message details I trimmed above follow the method signature (which is OK), and ...

92. CXF    coderanch.com

93. web service reliablility with CXF - MQ    coderanch.com

How can I achieve reliability of web service in CXF ? It is used in financial domain and involved in payment system, so requirement is that it must be 100% reliable and secure. for security I have added username/password authentication using ws-security (intercepter). Do I need to use any Middleware (ActiveMQ) for transprot so that MQ provide reliability and security ? ...

95. CXF server-side logging to a table    coderanch.com

96. CXF FAQs    coderanch.com

97. WS-Security with Apache CXF    coderanch.com

98. Apache CXF plugin    coderanch.com

99. Role Authorization using apache cxf.    coderanch.com

Hi, I'm new to Apache CXF and WebServices. I need to authorize the user based on their role to decide whether he can access the web service method or not. On the net we have only how to write use the SimpleAuthorizingInterceptor but we don't have any source for the client to test this authorization concept. I have written some web ...

100. Missing CXF plugins??    coderanch.com

Hi, I have written a simple CXF2 web service application based on CXF2 and spring 3, glassfish3.1 using maven 2. However I encountered the following error during the deployment process: Root WebApplicationContext: initialization started INFO: Refreshing Root WebApplicationContext: startup date [Thu Aug 18 13:45:58 EST 2011]; root of context hierarchy INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/beans.xml] INFO: Loading ...