Re: Dependency problems

2019-11-12 Thread David Karlsen
F pulling so much obsolete libraries? > > Regards, > Dominik > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

Disable bean-validation feature for one given resource

2019-08-21 Thread David Karlsen
Hi. I want to have jax-rs beanvalidation in use generally, but to disable it for one given jax-rs client (a rotten backend service that i call) - is this possible? For instance by passing a property to the JaxRsClientFactoryBean? -- -- David J. M. Karlsen - http://www.linkedin.com/in

Re: Signed REST Requests

2019-02-08 Thread David Karlsen
other mediatype. Den fre. 8. feb. 2019 kl. 15:59 skrev Anders Rundgren < anders.rundgren@gmail.com>: > On 2019-02-08 15:27, David Karlsen wrote: > > Cxf 3.3 included support for > > https://tools.ietf.org/html/draft-cavage-http-signatures-09 > > Thanx! I got that

Re: Signed REST Requests

2019-02-08 Thread David Karlsen
Cxf 3.3 included support for https://tools.ietf.org/html/draft-cavage-http-signatures-09 Den fre. 8. feb. 2019, 08:27 skrev Anders Rundgren < anders.rundgren@gmail.com>: > Since there is no IETF standard for signing REST requests and no > such activity in progress either, I took the liberty o

Re: Out of memory on fileupload

2018-11-16 Thread David Karlsen
.object( new FileInputStream(file)) ? Den fre. 16. nov. 2018 kl. 19:00 skrev Joe Schaefer : > You probably need to use a stream instead of loading all of the > attachments into RAM prior to delivery. > > On Fri, Nov 16, 2018 at 12:36 PM David Karlsen > wrote: > >

Out of memory on fileupload

2018-11-16 Thread David Karlsen
ConnectionTimeout( TimeUnit.SECONDS.toMillis( 2 ) ); //have higher timeout on network than towards ADCM httpClientPolicy.setReceiveTimeout( TimeUnit.SECONDS.toMillis( timeoutInSeconds + 10 ) ); httpClientPolicy.setAutoRedirect( false ); httpConduit.setClient( httpClientPolicy ); return t; } -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

Illegal XML characters in Java string lead to invalid XML

2018-11-13 Thread David Balažic
https://stackoverflow.com/questions/53280783/how-to-handle-string-data-characters-that-are-illegal-in-xml Regards, David

Re: multiple CXFNonSpringJaxrsServlets

2018-10-30 Thread David Karlsen
Yes correct. I have two servlets - one for jax-ws, one for jax-rs, the latter with two jaxrsServerFactories. Den tir. 30. okt. 2018 kl. 22:41 skrev Scott Lewis : > On 10/30/2018 12:53 PM, David Karlsen wrote: > > I register several jaxrsServerFactoryBean beans with the same bu

Re: multiple CXFNonSpringJaxrsServlets

2018-10-30 Thread David Karlsen
use/start of more than one > org.apache.cxf.endpoint.ServerImpl instance at: at > org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123). > > Any insights on how to avoid/work around this? > > Scott > > On 10/21/2018 9:53 AM, Scott Lewis wrote: > > On 10/21/201

Re: multiple CXFNonSpringJaxrsServlets

2018-10-21 Thread David Karlsen
ceImpl$3.run(HttpServiceImpl.java:1) > at java.security.AccessController.doPrivileged(Native Method) > at > > org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:145) > > Caused by: org.apache.cxf.service.factory.ServiceConstructionException: > There is an endpoint already running on /. > at > > org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:86) > at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123) > at > > org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:206) > ... 84 more > > > > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

Re: SOAP over IBM MQ - MQHRF2 Format

2018-10-12 Thread David Payne
ent but a > "regular" consumer. > > Try specifying the target queue name like this: > > "queue:///" + queueConfig.getQueue() + "?targetClient=1" > > Cheers, > Jens > > > David Payne-2 wrote > > I'm trying to send a one-way SOAP

SOAP over IBM MQ - MQHRF2 Format

2018-10-11 Thread David Payne
Hi, I'm trying to send a one-way SOAP request over IBM MQ. Unfortunately I know nothing about MQ and have no access to the broker or its tools. My contact who manages the MQ instance knows lots about MQ but nothing about JMS or CXF. He's complaining that the messages I'm sending have a forma

Re: Apache CXF 3.2.6 and 3.1.16 are released

2018-07-02 Thread David Karlsen
able at this location: > > http://cxf.apache.org/security-advisories.data/CVE-2018-8039.txt.asc?version=1&modificationDate=1530184663000&api=v2 > > Please also refer to the CXF security advisories page: > http://cxf.apache.org/security-advisories.html > > > -- > Col

Followed wsdl_first_https but when I deploy to the server get not a valid service

2018-03-02 Thread David Wynter
I converted the wsdl_first_https sample for 3.2.2 to use my wsdl and implemntation classes. I got it running locally. Then when I deploy to my server with my keystore it gives this error javax.xml.ws.WebServiceException: {https://qcbfetchdemo.creditswift.co.uk:8081/qcbfetch}QCBFetchService

Re: Original Exception was org.apache.wss4j.common.ext.WSSecurityException: Cannot find key for alias: [devstore]

2018-01-18 Thread David Karlsen
new WSDL). > > > > -- > Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

RE: Strategies for randomizing or verifying port number for JAXRSServerFactoryBean, or using local transport

2018-01-15 Thread KARR, DAVID
> -Original Message- > From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] > Sent: Monday, January 15, 2018 2:47 AM > To: users@cxf.apache.org > Subject: Re: Strategies for randomizing or verifying port number for > JAXRSServerFactoryBean, or using local trans

RE: Strategies for randomizing or verifying port number for JAXRSServerFactoryBean, or using local transport

2018-01-12 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Friday, January 12, 2018 2:31 PM > To: users@cxf.apache.org > Subject: Strategies for randomizing or verifying port number for > JAXRSServerFactoryBean, or using local transport > > Our codebase is going to ha

Strategies for randomizing or verifying port number for JAXRSServerFactoryBean, or using local transport

2018-01-12 Thread KARR, DAVID
Our codebase is going to have some unit tests using JAXRSServerFactoryBean. To be reliable, I not only have to ensure that I use a port number that is uncommon, I have to make sure that the other unit tests are using a different port. Besides just using a plain random number generator in a ran

Some questions about JAXRSServerFactoryBean

2018-01-12 Thread KARR, DAVID
In the Javadoc for the "JAXRSServerFactoryBean" class, it shows in the example that it sets the "bindingId" property. The apparently suggested value is "JAXRS_BINDING_ID", which is a URI (being something that looks like a URL but doesn't refer to an actual URL resource). What is this for? I d

Re: CXF 3.2.1 JAX RS and bean validation

2017-11-29 Thread David Karlsen
400 bad request.. > > Would be very nice for the client a little more detail on what went wrong.. > > -- > Best regards / Med venlig hilsen > Nino Martinez > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

RE: How to generate WADL on "root" of controller, not just with "?_wadl"?

2017-11-08 Thread KARR, DAVID
ke accessing the following URL give me the WADL? http://localhost:8080/combinedAtgUslMonitorService/controller > On 07/11/17 17:52, KARR, DAVID wrote: > >> -Original Message- > >> From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] > >> Sent: Tuesday, N

RE: How to generate WADL on "root" of controller, not just with "?_wadl"?

2017-11-07 Thread KARR, DAVID
Try > application/vnd.sun.wadl+xml > please. Changed the entry to: --- Still doesn't work. 'http://localhost:8080/combinedAtgUslMonitorService.wadl' still gets 404. Changing ".wadl" to "?_wadl" works. > On 07/11/17 16:43, KARR,

RE: How to generate WADL on "root" of controller, not just with "?_wadl"?

2017-11-07 Thread KARR, DAVID
> -Original Message- > From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] > Sent: Tuesday, November 07, 2017 3:16 AM > To: users@cxf.apache.org > Subject: Re: How to generate WADL on "root" of controller, not just with > "?_wadl"? > > Hi Davi

How to generate WADL on "root" of controller, not just with "?_wadl"?

2017-11-06 Thread KARR, DAVID
I managed to add the 'cxf-rt-rs-service-description' artifact to my build, so that I get the WADL when I add "?_wadl" to my URL. I'd actually like to make it return the WADL when I just try to access the "root" of the controller, without having to add the "?_wadl" string. This feels like a mor

Re: How to remove message from ManagedRouteMBean

2017-09-25 Thread David Hoffer
My bad, typo, will do. -Dave On Mon, Sep 25, 2017 at 9:11 AM, Dennis Kieselhorst wrote: > > We use Camel's JMX feature to report the overall stats/status of all the > > routes in our application (e.g. ManagedRouteMBean). > > > > However the routes often make heavy use of Camel's choice option w

Re: Missing CXF SOAP services landing/home page with Spring Boot app

2017-09-25 Thread David Hoffer
Okay I will give that a try. I'd like to suggest that CXF document the default value for this on the website/docs. Also perhaps change the default to just /services as the root is how it works when not in a Spring Boot app so assumed it would still be the same. -Dave On Mon, Sep 25, 2017 at 9:0

Re: Missing CXF SOAP services landing/home page with Spring Boot app

2017-09-22 Thread David Hoffer
Thanks that does work fine. Is this path configurable? I'm using an application.yml for configuration and currently just use defaults for CXF, is there a way to change this? Could I change it to list services at /services ? -Dave On Sat, Sep 2, 2017 at 4:27 AM, Dennis Kieselhorst wrote: > Hi

How to remove message from ManagedRouteMBean

2017-09-19 Thread David Hoffer
We use Camel's JMX feature to report the overall stats/status of all the routes in our application (e.g. ManagedRouteMBean). However the routes often make heavy use of Camel's choice option where we have multiple when/simple options and then if no matches are found we use an otherwise/stop to make

Missing CXF SOAP services landing/home page with Spring Boot app

2017-08-21 Thread David Hoffer
I have a war using Spring Boot (normal J2EE war) deployed to Tomcat, I'm using CXF 3.1.12 for the SOAP services. The services work fine but there is no CXF generated landing/home page that lists all the CXF SOAP services. How can I get this page? (Or if there is I don't know the URL) I do not ha

Re: Spring boot - serverside - coexisting JAXRS and JAXWS on distinct url's

2017-08-15 Thread David Karlsen
names - and use these if given. 2017-08-15 17:29 GMT+02:00 Sergey Beryozkin : > I believe the way to do it is to create two SpringVoot applications with > one having jaxws properties and another - jaxrs ones. > > Sergey > On 15/08/17 15:58, David Karlsen wrote: > >> I want my

Spring boot - serverside - coexisting JAXRS and JAXWS on distinct url's

2017-08-15 Thread David Karlsen
? Could they get distinct properties / be able to tie a given set to a given servlet-instance? -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

Re: Configure bus and conduit programatically in Spring Boot

2017-07-03 Thread David Karlsen
Anyone have a comment to this? 2017-06-22 23:06 GMT+02:00 David Karlsen : > Actually I had to switch the code: > > JaxWsProxyFactoryBeanDefinitionParser.JAXWSSpringClientProxyFactoryBean > clientProxyFactoryBean = new > JaxWsProxyFactoryBeanDefinitionParser.JAXWSSpringClientP

Re: Configure bus and conduit programatically in Spring Boot

2017-06-22 Thread David Karlsen
that change? 2017-06-21 14:35 GMT+02:00 David Karlsen : > Great - thanks for your swift answer! > > 2017-06-21 14:21 GMT+02:00 Christian Schneider : > >> You can use the HttpConduitFeature. I created this for CXF-DOSGi but it >> works for any programmatic cxf config. >&g

Re: Configure bus and conduit programatically in Spring Boot

2017-06-21 Thread David Karlsen
t/src/main/java/org/apache/cxf/dosgi/samples/ssl/Ss > lIntent.java#L55-L74 > > Christian > > On 21.06.2017 14:15, David Karlsen wrote: > >> hi! >> I have a spring+cxf app which I'm moving to springboot+cxf (to avoid all >> the .xml), but I'm finding the

Configure bus and conduit programatically in Spring Boot

2017-06-21 Thread David Karlsen
ivalent is https://pastebin.com/jXb5kXQk - but howto make the HTTPConduit with the matcher pattern? Seems like others are struggling with the same: http://trabajosdesisifo.blogspot.no/2016/04/camel-cxf-spring-boot-web-service-proxy.html Any advice - have others gone down this path? -- -- David J.

CXF STS on OSGI Container

2017-05-09 Thread John David
an provide some examples also. [1] https://github.com/wso2-extensions/identity-inbound-auth-sts/blob/master/components/org.wso2.carbon.sts/src/main/java/org/wso2/carbon/sts/STSDeploymentInterceptor.java Best Regards John David

Need help understanding how to marshal "custom" JSON into a pojo

2017-05-02 Thread KARR, DAVID
I've written several small CXF JAX-RS services where I either designed it "code first" or "schema first". In both cases, the resulting json was "conventional", so mapping from the json to pojos happened automatically. I'm now trying to write some client code that gets json data in an "unconven

RE: Can form encoding use JAXB annotations for field name mapping?

2017-04-14 Thread KARR, DAVID
on of the service, clearly on the server side, not the client. I suppose I didn't make this clear. In this case I'm implementing CLIENTS of existing services that I don't control. I'm using ClientBuilder/Client to contact the service. > On Friday, April 14, 2017, KARR, DA

RE: Need to get link to estimator codebase again

2017-04-14 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Friday, April 14, 2017 2:03 PM > To: users@cxf.apache.org > Subject: Need to get link to estimator codebase again > > I'm fairly certain you gave this to me before, but now I can't find it. > I need to ge

Need to get link to estimator codebase again

2017-04-14 Thread KARR, DAVID
I'm fairly certain you gave this to me before, but now I can't find it. I need to get the estimator codebase again. I believe it's in SVN somewhere. I'm going to be moving it to CodeCloud, then deploying it to containers on the new box that I'm setting up. --

Can form encoding use JAXB annotations for field name mapping?

2017-04-14 Thread KARR, DAVID
In the past, I've written REST services using XML or JSON in the request and response, using JAXB annotations in POJOs to facilitate the mapping. I've now started to work on a small set of services that will be using form encoding in the request and response (not my choice). I can certainly get

RE: Curious behavior with "hostnameVerifier" property on ClientBuilder

2017-04-12 Thread KARR, DAVID
test-case to reproduce the problem? I would think that would be pretty complicated, as I'd have to be able to connect to a location that requires 2-way auth. > > Colm. > > On Tue, Apr 11, 2017 at 9:14 PM, KARR, DAVID wrote: > > > So, I got my little client prototyp

Curious behavior with "hostnameVerifier" property on ClientBuilder

2017-04-11 Thread KARR, DAVID
So, I got my little client prototype working in "happy path", and I managed to accidentally discover a way to make the server response barf and give me back a fatal HTML response (which will be rare, but I have to know when it happens), so I added a catch clause for ResponseProcessingException s

RE: How to handle "happy path" form parameters and show fatal html responses?

2017-04-11 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Tuesday, April 11, 2017 12:34 PM > To: users@cxf.apache.org > Subject: How to handle "happy path" form parameters and show fatal html > responses? > > I now have my little client prototype using ClientBu

How to handle "happy path" form parameters and show fatal html responses?

2017-04-11 Thread KARR, DAVID
I now have my little client prototype using ClientBuilder and a MessageBodyReader to unmarshal form parameters into a POJO. This works fine in normal circumstances. When something goes really bad, I don't get a form response, I get an HTML response, but I've nicely abstracted my media so much,

RE: Better way to get post response parameters into a POJO?

2017-04-11 Thread KARR, DAVID
oblem? > On Tuesday, April 11, 2017, KARR, DAVID wrote: > > > > -Original Message- > > > From: Sergey Beryozkin [mailto:sberyoz...@gmail.com ] > > > Sent: Tuesday, April 11, 2017 9:42 AM > > > To: users@cxf.apache.org > > > Subject: Re:

RE: Better way to get post response parameters into a POJO?

2017-04-11 Thread KARR, DAVID
and after I figured out how to manually register the reader, it worked fine. > On Tuesday, April 11, 2017, KARR, DAVID wrote: > > > I posted this on SO > > (https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com > > _&

RE: Better way to get post response parameters into a POJO?

2017-04-11 Thread KARR, DAVID
#x27;ll start reading up on writing MBRs, but it would be good if I had something similar to start with. > On Tuesday, April 11, 2017, KARR, DAVID wrote: > > > I posted this on SO > > (https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com > > _&d=DwI

Better way to get post response parameters into a POJO?

2017-04-10 Thread KARR, DAVID
I posted this on SO (http://stackoverflow.com/questions/4855/using-cxf-clientbuilder-how-to-unmarshal-post-response-parameters-into-java-cla), but some people might not see it, but might see it here, so I'm asking here also. To put it another way, I have the following code as a base: --

RE: 2-way auth with SSL, ClientBuilder, gets "unable to find valid certification path to requested target", but curl call works

2017-04-10 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Friday, April 07, 2017 2:45 PM > To: users@cxf.apache.org > Subject: 2-way auth with SSL, ClientBuilder, gets "unable to find valid > certification path to requested target", but curl call works > > I&#x

2-way auth with SSL, ClientBuilder, gets "unable to find valid certification path to requested target", but curl call works

2017-04-07 Thread KARR, DAVID
I'm trying to use CXF ClientBuilder to make a call to a REST service on an SSL connection using 2-way auth. I was having some trouble populating the keystore of the ClientBuilder because my key file was in the PKCS#1 format. After I converted the file to PKCS#8 format, I was able to build the

How to set a keystore into ClientBuilder that was created in memory from a cert file?

2017-04-06 Thread KARR, DAVID
I need to make a REST service call using ClientBuilder. We're using 2-way auth. I don't have a truststore and keystore on disk, but I do have cert files. It looks like I can create both the truststore and keystore in memory, but there are two issues that seem like they are going to be a probl

RE: Verifying threadsafety of cached javax.ws.rs.client.Client implementation with basic auth in CXF & 404 in docs

2017-04-05 Thread KARR, DAVID
d:<2> but was:<1> at org.apache.cxf.attachment.AttachmentDeserializerTest.testCXF3383(AttachmentDeserializerTest.java:530) > On 05/04/17 23:16, KARR, DAVID wrote: > >> -Original Message- > >> From: Sergey Beryozkin [mailto:sberyoz...@gmail.com

RE: Verifying threadsafety of cached javax.ws.rs.client.Client implementation with basic auth in CXF & 404 in docs

2017-04-05 Thread KARR, DAVID
docs > > That should be thread safe too, I don't see why not... Ok, well, thanks for that, but the harder question is HOW to do client certificate auth with ClientBuilder? > Sergey > On 05/04/17 23:07, KARR, DAVID wrote: > >> -Original Message- > >> Fro

RE: Verifying threadsafety of cached javax.ws.rs.client.Client implementation with basic auth in CXF & 404 in docs

2017-04-05 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Wednesday, April 05, 2017 12:27 PM > To: users@cxf.apache.org > Subject: Verifying threadsafety of cached javax.ws.rs.client.Client > implementation with basic auth in CXF & 404 in docs > > I'm likely going

Verifying threadsafety of cached javax.ws.rs.client.Client implementation with basic auth in CXF & 404 in docs

2017-04-05 Thread KARR, DAVID
I'm likely going to be implementing a REST service call using ClientBuilder, and it will require basic auth. I'm intending to cache the Client object, if I can be sure it's thread-safe. I'm having trouble getting a clear picture on some of these details from the main docs. I found the section

RE: Best way to handle a HEAD request as a heartbeat?

2017-03-20 Thread KARR, DAVID
Would it just be this then? --- @HEAD @Path("heartbeat") public Response heartbeat() { return Response.ok().build(); } --- > > Cheers, Sergey > On 18/03/17 21:17, KARR, DAVID wrote: > >> -Original Message- > &g

RE: Best way to handle a HEAD request as a heartbeat?

2017-03-20 Thread KARR, DAVID
. Sorry, but I don't understand what that means. > Cheers, Sergey > On 18/03/17 21:17, KARR, DAVID wrote: > >> -Original Message- > >> From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] > >> Sent: Monday, March 13, 2017 3:21 AM > >> To: users@cxf

RE: Best way to handle a HEAD request as a heartbeat?

2017-03-18 Thread KARR, DAVID
ializeMessage Entity body returned by GET-supporting resource method will be dropped as HEAD was the actual http request method So it's no harm done, but how do I make it return a HEAD response, but without an entity body? Would I continue to declare it as returning a String, but

Best way to handle a HEAD request as a heartbeat?

2017-03-10 Thread KARR, DAVID
I have a small REST service and a browser client to go with it. The browser client has a "heartbeat" service that just sends a HEAD request, just to verify the service is available. However, I noticed that I'm seeing a message in the log saying that my HEAD request is being translated to a GET

Re: Getting CXF to ignore wsdl errors

2017-03-10 Thread David Wynter
Hi, I'll hopefully get to this next week. Since it is a private service I cannot expose the server details, so will have to create a complete client and server roundtrip. David From: Colm O hEigeartaigh Sent: 27 February 2017 11:30:15 To: David Wynt

RE: Getting "ClassCastException: class org.apache.cxf.bus.spring.SpringBusFactory" for CXF/Spring app in Tomcat (TomEE)

2017-03-10 Thread KARR, DAVID
y I copied it :-) but may be it can be relevant. > Ask Romain, he will help fast Yes, it's relevant, but I already had that. I'm talking with Romain about it. > On 10/03/17 00:26, KARR, DAVID wrote: > >> -Original Message- > >> From: KARR, D

RE: Getting "ClassCastException: class org.apache.cxf.bus.spring.SpringBusFactory" for CXF/Spring app in Tomcat (TomEE)

2017-03-09 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Thursday, March 09, 2017 2:50 PM > To: users@cxf.apache.org > Subject: RE: Getting "ClassCastException: class > org.apache.cxf.bus.spring.SpringBusFactory" for CXF/Spring app in Tomcat > (TomEE) > >

RE: Getting "ClassCastException: class org.apache.cxf.bus.spring.SpringBusFactory" for CXF/Spring app in Tomcat (TomEE)

2017-03-09 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Thursday, March 09, 2017 2:47 PM > To: users@cxf.apache.org > Subject: Getting "ClassCastException: class > org.apache.cxf.bus.spring.SpringBusFactory" for CXF/Spring app in Tomcat > (TomEE) > > I'm

Getting "ClassCastException: class org.apache.cxf.bus.spring.SpringBusFactory" for CXF/Spring app in Tomcat (TomEE)

2017-03-09 Thread KARR, DAVID
I'm currently using CXF 3.1.9 in an app built with Gradle, and running in Tomcat (TomEE). I currently only specify the following explicit CXF dependencies: --- ['cxf-rt-rs-extension-providers', 'cxf-rt-management'].each { compile "org.apache.cxf:${it}:3.1.9"

How to use JAX-RS ClientBuilder to post plain text?

2017-03-09 Thread KARR, DAVID
I have to make a pseudo-REST call to a URL within our enterprise. The required POST data is somewhat "mutant". It needs to look like the following: -- xmlMessage= -- It's mostly XML, but it needs to begin with "xmlMessage=". Since I'm doing this in a CXF-based JAX-RS

Call "ClientBuilder.newBuilder().newClient()" or "ClientBuilder.newClient()"?

2017-03-09 Thread KARR, DAVID
At http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-JAX-RS2.0ClientAPI I saw the following code sample: - Client client = ClientBuilder.newBuilder().newClient(); WebTarget target = client.target("http://localhost:8080/rs";); target = target.path("service").queryParam(

Re: Getting CXF to ignore wsdl errors

2017-02-25 Thread David Wynter
Hi, Getting no response on this. As far as I can tell I have followed the documentation and should not be having an issue. Should I raise a bug? From: David Wynter Sent: 23 February 2017 16:13:11 To: users@cxf.apache.org; cohei...@apache.org Subject: Re

Re: Getting CXF to ignore wsdl errors

2017-02-23 Thread David Wynter
Hi, A typo in the post below, the variable name "greeter" in the getClient line of the code in 2 is actually "addrPort" David ____ From: David Wynter Sent: 23 February 2017 14:48:58 To: users@cxf.apache.org; cohei...@apache.org Subject: Re: G

Re: Getting CXF to ignore wsdl errors

2017-02-23 Thread David Wynter
o set these values? David ____ From: David Wynter Sent: 22 February 2017 13:23:04 To: users@cxf.apache.org; cohei...@apache.org Subject: Re: Getting CXF to ignore wsdl errors Hi, Ignore the exception, added this to the pom.xml org.springframework spring-con

Re: Getting CXF to ignore wsdl errors

2017-02-22 Thread David Wynter
va:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139) at com.sun.proxy.$Proxy85.listAddressByPostcode(Unknown Source) What should I have in my wssec.xml? David From: David Wynter Sent: 22 February 2017 13:10:01 To: users@cxf.apach

Re: Getting CXF to ignore wsdl errors

2017-02-22 Thread David Wynter
extension is? Thx, David From: Colm O hEigeartaigh Sent: 21 February 2017 15:39:59 To: users@cxf.apache.org Subject: Re: Getting CXF to ignore wsdl errors The policy expects that a UsernameToken is going to be added to the request. For this it needs a username a

Getting CXF to ignore wsdl errors

2017-02-21 Thread David Wynter
issing? I did try Metro for this, recommended by the supplier, but Metro has serious problems, loads an incorrect class, raised on their mailing list in 2014 and never answered. Long live CXF! David

RE: Confusing timezone marshalling results from CXF

2017-01-20 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Thursday, January 19, 2017 2:03 PM > To: cxf-us...@apache.org > Subject: Confusing timezone marshalling results from CXF > > I really have no idea whether this is a problem with CXF, but it was the > last element in

Confusing timezone marshalling results from CXF

2017-01-19 Thread KARR, DAVID
I really have no idea whether this is a problem with CXF, but it was the last element in the chain, where before it the data seemed to be sane. I have a CXF/Spring app running in Tomcat (TomEE). In the controller method I print a date value and the default timezone to stdout. I also store the

Attempting NTLM authentication but CXF tries NEGOTIATE first

2017-01-18 Thread David Robison
irst tries to do NEGOTIATE which fails after about 20s and then it does NTLM which succeeds in less than a second. Is there a way I can disable CXF from attempting NEGOTIATE first? Thanks, David David R Robison Senior Systems Engineer O. +1 512 247 3700 M. +1 757 286 0022 david.robi...@psg

Re: Does it possible to run swagger.json generation from command line

2017-01-18 Thread David Karlsen
You can try https://github.com/kongchen/swagger-maven-plugin Den ons. 18. jan. 2017, 14:27 skrev Sergey Beryozkin : > Hi > > Not in CXF at the moment, one should be able to create it with Swagger > project tools. > I agree it would be useful to have a Maven plugin or java2swagger CXF > tool, si

Re: org.apache.neethi.builders.PolicyContainingPrimitiveAssertion cannot be cast to org.apache.wss4j.policy.model.AlgorithmSuite

2017-01-13 Thread David Wynter
abandon CXF for use with this Web Service. David P Please consider the environment before printing this e-mail. From: David Wynter Sent: 11 January 2017 16:53:24 To: users@cxf.apache.org Subject: Re: org.apache.neethi.builders.PolicyContainingPrimitiveAssertion

Re: org.apache.neethi.builders.PolicyContainingPrimitiveAssertion cannot be cast to org.apache.wss4j.policy.model.AlgorithmSuite

2017-01-11 Thread David Wynter
No response? I'll raise a bug David P Please consider the environment before printing this e-mail. From: David Wynter Sent: 10 January 2017 16:02:12 To: users@cxf.apache.org Subject: org.apache.neethi.builders.PolicyContainingPrimitiveAssertion canno

org.apache.neethi.builders.PolicyContainingPrimitiveAssertion cannot be cast to org.apache.wss4j.policy.model.AlgorithmSuite

2017-01-10 Thread David Wynter
Hi, I have the details of my issue here - http://stackoverflow.com/questions/41569772/cxf-wsdl-causes-classcastexception-to-org-apache-wss4j-policy-model-algorithmsui [https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-i...@2.png?v=73d79a89bded]

Re: CXF BeanValidation annotation support

2016-11-06 Thread David Karlsen
r the hackathon? > > Best regards, > Johannes > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

RE: Get request metadata into controller method parameters?

2016-09-12 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Monday, September 12, 2016 10:08 AM > To: cxf-us...@apache.org > Subject: Get request metadata into controller method parameters? > > I'd like to add some request metadata diagnostics to my JAX-RS REST > servic

Get request metadata into controller method parameters?

2016-09-12 Thread KARR, DAVID
nject data like this directly into the controller method? - David M. Karr | AT&T | Digital Experience Technology Services (206) 909-0664 cell (425) 892-5432 cell (206) 393-9042 skype

RE: CXF app running on Tomee gets numerous "GC overhead limit exceeded" errors

2016-09-09 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Friday, September 09, 2016 11:03 AM > To: cxf-us...@apache.org > Subject: CXF app running on Tomee gets numerous "GC overhead limit > exceeded" errors > > I have a CXF app running in TomEE on a Win7 s

CXF app running on Tomee gets numerous "GC overhead limit exceeded" errors

2016-09-09 Thread KARR, DAVID
I have a CXF app running in TomEE on a Win7 service. It was running fine for several days. I don't know if my new issues have to do with CXF, TomEE, Windows, or multiple of those elements. I'm writing a similar note on the TomEE users list. Today we saw some issues with the box, so we restar

RE: Same code has Date rendering in JSON with local timezone on desktop, but "Z" on VM from desktop

2016-08-16 Thread KARR, DAVID
> -Original Message- > From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] > Sent: Tuesday, August 16, 2016 1:30 PM > To: users@cxf.apache.org > Subject: Re: Same code has Date rendering in JSON with local timezone on > desktop, but "Z" on VM from desktop >

Same code has Date rendering in JSON with local timezone on desktop, but "Z" on VM from desktop

2016-08-16 Thread KARR, DAVID
I'm not sure where the problem for this lies, but I'm having a confusing issue with the out of the box JSON rendering of Date values, with respect to timezones. For instance, a datetime value I'm getting from the DB is "2016-08-16 00:24:07.495". This unfortunately doesn't have a timezone value

RE: Fails to create jax-rs server after renaming app

2016-08-05 Thread KARR, DAVID
ror comes at deployment, so I have to fix this first. > Sergey > On 05/08/16 00:07, KARR, DAVID wrote: > > I'm iterating on a small app using CXF/JAX-RS running on TomEE. > I had the REST service almost working, except for a problem with > the controller instance being created

RE: Why is CXF creating a new instance of my controller for each request?

2016-08-05 Thread KARR, DAVID
> -Original Message- > From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] > Sent: Friday, August 05, 2016 3:05 AM > To: users@cxf.apache.org > Subject: Re: Why is CXF creating a new instance of my controller > for each request? > > Hi David > > By de

Fails to create jax-rs server after renaming app

2016-08-04 Thread KARR, DAVID
I'm iterating on a small app using CXF/JAX-RS running on TomEE. I had the REST service almost working, except for a problem with the controller instance being created on each request (which I asked on a separate note). I decided that I wanted to rename the project in Eclipse. It wouldn't let m

RE: Back to CXF after hiatus; getting javax.ws.rs.NotFoundException at startup

2016-08-04 Thread KARR, DAVID
> -Original Message- > From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] > Sent: Wednesday, August 03, 2016 2:09 AM > To: users@cxf.apache.org > Subject: Re: Back to CXF after hiatus; getting > javax.ws.rs.NotFoundException at startup > > Hi David > On 02/08/

Why is CXF creating a new instance of my controller for each request?

2016-08-04 Thread KARR, DAVID
I'm building a new CXF/JAX-RS/Spring app based on one that I built a few years ago, but with the latest versions of CXF and Spring (3.1.7 and 4.3.2, respectively). I finally thought I had gotten my controller, service, and DAO all wired together, but then I noticed that when I got into the cont

Back to CXF after hiatus; getting javax.ws.rs.NotFoundException at startup

2016-08-02 Thread KARR, DAVID
After years away from CXF and JAX-RS (and other related things), I'm going to be building a small JAX-RS service using CXF and Spring. I'm basing what I have so far on what I read in the docs and the old source code I found for my old service. I'm just building a dummy skeleton right now, whic

CXF 3.1 with log4j2 and slf4j bridge, cannot log req/resp XML

2016-05-20 Thread David Wynter
ideas? Cheers *David* This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party

CXF client for service with SWA file attachment

2016-03-19 Thread David Hoffer
I have an existing (AXIS) service that transfers a binary file using SWA, the schema looks like this: I'm trying to create a new CXF client instead of the old AXIS one that can communicate with the server just like the old client (I can't change the server in any way). When I run wsdl2jav

Timeouts not being used?

2016-02-08 Thread David Karlsen
(HTTPConduit.java:1347) 09:53:31 ... 26 more 09:53:31 -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

WS-addressing - decoupled responses over JMS?

2015-12-10 Thread David Karlsen
point 13 in that diagram? -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

Schema first wsdl2java WSDL location question

2015-11-10 Thread David Hoffer
I'm creating a server via the wsdl/schema first approach and I'm using wsdl2java to generate the Java code. However when it creates the WebService annotation it uses the builds hard coded path to the wsdl file which is never going to be right for the production server. Using this default value ge

Promoting from within

2015-11-06 Thread David Blevins
Hello community! Please disregard the “spam”, but the community should be first in line to benefit from community success. Anyone in the US looking for a TomEE/CXF-related job based in Seattle, shoot me an email. The Tribe has an opening. -- David Blevins http://twitter.com/dblevins http

Re: New TCP connection for each request

2015-10-28 Thread David Karlsen
st-tp5762352.html > Sent from the cxf-user mailing list archive at Nabble.com. -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

  1   2   3   4   5   6   7   8   9   10   >