Re: How does CXF determine the namespaces to output?

2008-11-11 Thread Nick Heudecker
Thanks for the pointer. On Tue, Nov 11, 2008 at 8:23 AM, Daniel Kulp <[EMAIL PROTECTED]> wrote: > > The class to look at is PROBABLY the > org.apache.cxf.jaxb.io.DataWriterImpl > The code is a little different on trunk as I've been working on getting it > able to use the jaxb implementation built

cxf-codegen-plugin 2.1.1+ TransformerFactoryImpl not found

2008-11-11 Thread steve666
Hi, I am trying to upgrade to version 2.1.2 of the cxf-codegen-plugin in my mule/maven project. cxf-codegen-plugin version 2.0.6 and 2.1 works fine. With version 2.1.1, 2.1.2 and 2.1.3 i get a javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.Transfo

I see Twice In/Out Bound Soap Messages in logs ...Why ?

2008-11-11 Thread Petr V.
May be I sound stupid but I am trying to learn web services and CXF on hands, please bear with me :-( I am seeing every message in/out bound twice in log, can I tweak it, it is pretty confusing, the only difference is b/w headers. I call

RE: How to Enable Logging of In/Out Bound Soap Messages

2008-11-11 Thread Petr V.
Okay I found out the reason, I was loading cxf.xml before publishing the service. Now the question remains that how can I redirect  the log to some log file. May be cxf:bus has some properties. Thanks, Petr --- On Wed, 11/12/08, Petr V. <[EMAIL PROTECTED]> wrote: From: Petr V. <[EMAIL PROTECT

RE: How to Enable Logging of In/Out Bound Soap Messages

2008-11-11 Thread Petr V.
So I loaded explicitly cxf.xml in my code and now I am getting null pointer exception when I am trying to publish the web service. Here is my cxf.xml http://www.springframework.org/schema/beans";   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";   xmlns:cxf="http://cxf.apache.org/

Looking for a solution for Large XML Messages - streaming and JAXWS

2008-11-11 Thread Saniya Afaq
Hi, I'm using Metro 1.3 with JDK 1.5.x. I need a solution for streaming large messages - currently in my solution - we stream large messages by using the Provider API - dispatching the XML file from the client to the server side. However on the server side we receive a StaxSource object - and i

RE: WELCOME to users@cxf.apache.org

2008-11-11 Thread Saniya Afaq
Hi, I'm using Metro 1.3 with JDK 1.5.x. I need a solution for streaming large messages - currently in my solution - we stream large messages by using the Provider API - dispatching the XML file from the client to the server side. However on the server side we receive a StaxSource object - and i

RE: How to Enable Logging of In/Out Bound Soap Messages

2008-11-11 Thread Petr V.
Thanks Erik but how are you integrating this with your service. Can you please eloborate more. I have this cxf.xml in my class path http://www.springframework.org/schema/beans";     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";     xsi:schemaLocation=" http://www.springframework.org/sch

RE: How to Enable Logging of In/Out Bound Soap Messages

2008-11-11 Thread Ostermueller, Erik
This works for me: Taken from here: http://cwiki.apache.org/CXF20DOC/features.html --Erik -Original Message- From: Petr V. [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 4:40 PM To: users@cxf.apache.org Subject: Re: How to Enable L

Re: How to Enable Logging of In/Out Bound Soap Messages

2008-11-11 Thread Petr V.
Thanks Glex for the reply. Yeah I did look at that page and was able to configured logging via programming includes but I want to do via config files. I have included cxf-2.1.1.jar file in my class path so I do not know what to do when that wiki says I need to change settings in /etc/logging.pr

Re: How to Enable Logging of In/Out Bound Soap Messages

2008-11-11 Thread Glen Mazza
http://cwiki.apache.org/CXF20DOC/debugging.html ? Petr V. wrote: > > So I am trying to figure it out how could I enable logging via > configuration file > -- View this message in context: http://www.nabble.com/How-to-Enable-Logging-of-In-Out-Bound-Soap-Messages-tp20449139p20449787.html Sent

Re: Http-conduit disableCNCheck

2008-11-11 Thread Glen Mazza
The Metro guide seems to suggest the default verifier is a little bit more intelligent than that: https://metro.dev.java.net/guide/Security_Mechanisms.html#Transport_Security__SSL__Workaround But perhaps this is a result of switching from JDK 5 to 6? Anyway, the workaround they have above probab

Re: Creating CXF war file... how to get proper dependencies??

2008-11-11 Thread Glen Mazza
Perhaps my Maven POM files might be something you can use: http://www.jroller.com/gmazza/date/20080417#WFstep3 HTH, Glen Kent Narling wrote: > > Hi! > I am trying to make a CXF webservice package in maven. > -- View this message in context: http://www.nabble.com/Creating-CXF-war-file...-h

How to Enable Logging of In/Out Bound Soap Messages

2008-11-11 Thread Petr V.
So I am trying to figure it out how could I enable logging via configuration file Right now, I have following code String address1 = "http://localhost:9000/service1";; Service1 implementor1 = new Service1();EndpointImpl myEndpoint1 = (EndpointImpl)  Endpoint.publish(address1, implementor1);    

Re: Http-conduit disableCNCheck

2008-11-11 Thread Daniel Kulp
On Tuesday 11 November 2008 4:11:45 pm Glen Mazza wrote: > Hmmm...I'm sure I had tested that. I wonder if my 2.0.x change was *not* > ported to the 2.1 branch? Looking back at the change history, your changes seem to add the "AlwaysTrue" verifier only if DisableCNCheck flag is true. Previous t

Re: Creating CXF war file... how to get proper dependencies??

2008-11-11 Thread Daniel Kulp
> > javax.xml > jaxb-api > 2.1 > > > com.sun.xml.bind > jaxb-xjc > 2.0.3 > compile > > > com.sun.xml.bind > jaxb-impl > 2.0.3 > > Umm... jaxb-api is 2.1, but you are including 2.0.x versions of jaxb-impl and xjc That definitely won't work. I would recommend 2.1 api jar and 2.1

Creating CXF war file... how to get proper dependencies??

2008-11-11 Thread Kent Närling
Hi! I am trying to make a CXF webservice package in maven. But it seems SO darn difficult to get the right dependencies! Either classes are missing or I get stupid collissions... Anyone have tips what dependencies to declare to be able to deploy a CXF war file on a fresh installed tomcat (5.5.27

Re: Http-conduit disableCNCheck

2008-11-11 Thread Glen Mazza
Hmmm...I'm sure I had tested that. I wonder if my 2.0.x change was *not* ported to the 2.1 branch? Glen dkulp wrote: > > > Looking at the decompiled source for the "DefaultHostnameVerifier", it > literally just does a "return false;". Thus, I don't see how it's > possible > to do any SSL

Re: Http-conduit disableCNCheck

2008-11-11 Thread Daniel Kulp
Looking at the decompiled source for the "DefaultHostnameVerifier", it literally just does a "return false;". Thus, I don't see how it's possible to do any SSL things with host bound certs right now without the DisableCNCheck thing.It looks like we need to write a new HostNameVerifier th

Re: CXF 2.1.3 JMS Conduit

2008-11-11 Thread Dawa Sherpa
I am trying to use apache-cxf 's REST service. However, jax-rs seems to be doing something bad to my URLs .. I only get the first query parameter that is passed to the request. Is this a bug or am I missing some configuration ? Eg. If I pass /svc/something?param1=value1¶m2=value2 When print out

CXF 2.1.3 JMS Conduit

2008-11-11 Thread Perch24
We recently upgraded to CXF 2.1.3 from 2.1.2. After the upgrade we noticed that JMS conduits with a reply to queue were not always working if we had multiple instances running. I didn't dive into the problem real deep, but rather just removed the reply to queue config so that it would use a tempor

Re: Http-conduit disableCNCheck

2008-11-11 Thread Glen Mazza
If you can check the CXF source code (I don't have it with me immediately, but search the source code for the error message you're getting to determine the class) -- you can place debugging statements on what CXF thinks the hostname URL and the CN is to determine why it is failing on you. Perhaps

Re: "The matching wildcard is strict but no declaration can be found" error

2008-11-11 Thread Daniel Kulp
On Tuesday 11 November 2008 12:26:38 pm Glen Mazza wrote: > BTW, anyone have the answer to my unphrased question--when referring to a > client-side endpoint, when is the ".http-conduit" suffix needed, and does > its presence have any correlation to the value of the "createdFromAPI" > attribute? Th

Re: Are properties not resolved in http:conduit

2008-11-11 Thread Daniel Kulp
On Tuesday 11 November 2008 12:31:32 pm Harry van Rijn wrote: > Hi, > > It looks like that properties in the http:conduit element are NOT resolved. > Is there a way out? This SHOULD be working in CXF 2.1.3, maybe 2.1.2. What version of CXF are you using? Dan > I want to refer to configuratio

Re: Http-conduit disableCNCheck

2008-11-11 Thread wonderingWV
I understand why it was done, but the problem is I cannot get ssl with cxf to work unless the flag is set to true, which I do not want to do in a production environment. Glen Mazza wrote: > > I'm unsure what the problem is. I had done that last March[1] after > agreement with the team. > > G

Re: Http-conduit disableCNCheck

2008-11-11 Thread Glen Mazza
I'm unsure what the problem is. I had done that last March[1] after agreement with the team. Glen [1] http://www.jroller.com/gmazza/date/20080329 wonderingWV wrote: > > The common name on the cert and the hostName of the url match up so I not > sure why I continue to receive this error. Any

Http-conduit disableCNCheck

2008-11-11 Thread wonderingWV
I'm trying to get ssl to work with CXF, but continue to get Caused by: java.io.IOException: The https URL hostname does not match the Common Name (CN) on the server certificate. To disable this check (NOT recommended fo r production) set the CXF client TLS configuration property "disableCNChe

Re: Need Maven dependencies for CXF 2.2 using Jax-rs

2008-11-11 Thread Daniel Kulp
On Monday 10 November 2008 1:15:54 pm Brad O'Hearne wrote: > Well, I guess throw the idea around with the other developers. If I'm > not an intrusion, I'd be happy to pitch in when I can. Patches to problems are never an intrusion. New ideas and discussions are also great. That's how a project

Re: @Resource not injected, duplicate bean in cxf-extension-jaxws.xml (2.1.3)

2008-11-11 Thread Daniel Kulp
Robin, The second bean definition was added because in one of the Spring versions that we were using (2.5.4 I think, maybe 2.5.2), it couldn't find the bean to inject. The injector was just doing field.getClass().getName() to determine the bean name. We didn't have a bean of that name and

Are properties not resolved in http:conduit

2008-11-11 Thread Harry van Rijn
Hi, It looks like that properties in the http:conduit element are NOT resolved. Is there a way out? I want to refer to configuration files in the JBoss config directoy: Here is my beans containing file: http://www.springframework.org/sc

Re: "The matching wildcard is strict but no declaration can be found" error

2008-11-11 Thread Glen Mazza
BTW, anyone have the answer to my unphrased question--when referring to a client-side endpoint, when is the ".http-conduit" suffix needed, and does its presence have any correlation to the value of the "createdFromAPI" attribute? Thanks, Glen Glen Mazza wrote: > > Thanks, I'll try again. I pu

Re: Easy to Answer REST Interceptor Query

2008-11-11 Thread wildPengiun
Hi Sergey >Would you like your interceptor be invoked before or after JAXRSInInterceptor has been invoked ? After >What stage you're using ? Not sure >Also, can you elaborate a bit more on how you specify interceptors using annotations ? This is the annotation for the class @OutInterceptors

Re: CXF codegen: incorrect portName annotation.

2008-11-11 Thread Daniel Kulp
That looks like a bug. Can you log a JIRA and attach the wsdl? https://issues.apache.org/jira/browse/CXF Dan On Tuesday 11 November 2008 9:48:46 am Alexey Zavizionov wrote: > Hello, list! > > I'm generating sources with CXF maven plugin > > cxf-codegen-plugin > 2.1.2 > > I ha

Re: How does CXF determine the namespaces to output?

2008-11-11 Thread Daniel Kulp
The class to look at is PROBABLY the org.apache.cxf.jaxb.io.DataWriterImpl The code is a little different on trunk as I've been working on getting it able to use the jaxb implementation built into Java6, but it shouldn't be hard to follow. The "com.sun.xml.bind.defaultNamespaceRemap" propert

Re: configuring number of connections and connection pool timeout

2008-11-11 Thread Andrew Clegg
Sorry, misread "connection pool timeout" for "connection timeout", apologies for any confusion. 2008/11/11 Andrew Clegg <[EMAIL PROTECTED]>: > Check out this page, under "Advanced configuration": > > http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html > > The http-con

Re: configuring number of connections and connection pool timeout

2008-11-11 Thread Daniel Kulp
CXF uses the JDK HttpURLConnection objects for client side. Thus, any information pertaining to that that you may google applies. In particular, it holds a pool of 5 connections, but only holds each connection open for 5 seconds beyond the last use. What's worse is it's not exactly co

Re: dependency on asm-2.2.3.jar

2008-11-11 Thread Daniel Kulp
If you use wsdl first and run wsdl2java, you probably don't need the asm jar. Accessing the parts from the wrapper objects will be done by the slightly slower reflection code, but that should be fine. If you do java first, you can remove it if you add run java2ws with the -wrapperbean flag t

CXF codegen: incorrect portName annotation.

2008-11-11 Thread Alexey Zavizionov
Hello, list! I'm generating sources with CXF maven plugin cxf-codegen-plugin 2.1.2 I have just noticed that I get incorrect portName annotation. === service.wsdl = ... ... http://my.service:8082/WSRPService"/> http://

Re: configuring number of connections and connection pool timeout

2008-11-11 Thread Andrew Clegg
Check out this page, under "Advanced configuration": http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html The http-conf:client element is where most of this stuff lives. The easiest way to set global properties is by using this syntax: However if you use JAX-WS Pr

configuring number of connections and connection pool timeout

2008-11-11 Thread nmt999
Hi In axis client to a webservice, we can configure the number of connections and the connection pool timeout as below System.setProperty("axis.http.client.maximum.total.connections", "20"); System.setProperty("axis.http.client.connection.pool.timeout", "0"); Is there a way the

[JAX-RS] Receiving NullPointerException instead of namespace error/UnmarshalException

2008-11-11 Thread Gabo Manuel
Hi All, I encountered this by accident. Here is the scenario: expected payload: http://some.namespace/";> ... more here submitted payload: http://accounts.some.namespace/";> ... more details here On the server side, I see the error as: javax.xml.bind.UnmarshalException: unexpected element (u

Re: dependency on asm-2.2.3.jar

2008-11-11 Thread Ian Roberts
Vi Da wrote: > I am running into an issue where I have to use a legacy library which uses > cglib-full-2.0.2.jar and comes in conflict with asm-2.2.3.jar. If you can use cglib-nodep instead then you will be able to include asm 2.2.3 and it will all work. Ian