java.lang.StackOverflowError at org.apache.cxf.transport.http.WSDLQueryHandler.updateDefinition

2008-05-20 Thread Murthy M
Hello, I have setup CXF Webservice using HTTP Servlet (org.apache.cxf.jaxws.servlet.CXFServlet) following the guidelines on the site. http://cwiki.apache.org/CXF20DOC/servlet-transport.html I am using Eclipse Europa 3.3.2, CXF 2.1, Tomcat 6.0.16, on a WSDL-first project with maven build.

Re: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager'

2008-05-20 Thread Murthy M
Thanks Dan for your help. I started from scratch with the Hello world sample (wsdl-first) approach, and it turned out that the instructions for Setting up Apache Tomcat 6.0.6 on the CXF site (http://cwiki.apache.org/CXF20DOC/cxfeclipseplugininstructions.html) were the source of this problem. 1

Re: Using CXF for web services consuming web services

2008-05-20 Thread mattrpav
I suggest creating the various services as 'clients' in separate projects, and just reference those artifacts in the project that is consuming them as Maven dependencies. Keeps things pretty clean and an easy way to manage them individually when they change. -- View this message in context: htt

Using CXF for web services consuming web services

2008-05-20 Thread BillRowell
I'm getting started on a project using CXF where I'm building a web service acting as a proxy for calling another (more complex) web service. I've played around with CXF/Eclipse/Tomcat and things became complicated very quickly. I'd appreciate hearing from anyone who could suggest some references

Re: MTOM WSDL For Gsoap and CXF

2008-05-20 Thread GlennS
I'm struggling with the same/similar problem using a GSOAP generated WSDL file with any of the popular Java SOAP stacks (Metro, Axis2, XFire, CXF, etc...). I have a very simple interface that attempts to retrieve a "chunk" of a file from a service by specifying a filename, file offset, and length

Re: Is cxf no tcompatible with XML beans

2008-05-20 Thread Daniel Kulp
This error is pretty different. Does the message have headers in it? I THINK I may have this fixed now. I'm going to deploy a new snapshot tonight. If you could retry with that snapshot tomorrow morning, that would be great. Dan On May 18, 2008, at 1:51 PM, XeN0s wrote:

Re: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager'

2008-05-20 Thread Daniel Kulp
This is most likely some sort of wacky classloader issue.The ClientBehaviorPolicyType is trying to be cast to a TExtensibilityElementImpl and is failing, but TExtensibilityElementImpl is the superclass of ClientBehaviorPolicyType so it should work. Normally, that means TExtensibil

Re: dateTime custom binding [Virus checked]

2008-05-20 Thread Daniel Kulp
On May 20, 2008, at 3:26 PM, Cord Awtry wrote: Thanks Dan, that's kind of what I thought. So, the question is, if I override dateTime to be Calendar instead of XMLGregorianCalendar, could that cause problems with those asm generated classes? Possibly. I'm not really sure though. :-( I

Re: dateTime custom binding [Virus checked]

2008-05-20 Thread Cord Awtry
Thanks Dan, that's kind of what I thought. So, the question is, if I override dateTime to be Calendar instead of XMLGregorianCalendar, could that cause problems with those asm generated classes? I'm trying to create a small test service which'll expose the problem. While debugging, I did see both

Re: Message Body Providers for Java types?

2008-05-20 Thread Olivier Brand
Any indication when to move toward a 0.7 or 0.8 JAX-WS version? Also browsing through the code, I have noticed that the StringProvider does not support primitive and generic types whereas other JAX-WS implementations do. Thanks Olivier - Original Message From: Sergey Beryozkin <[EMAIL

Re: Off-line maven repository

2008-05-20 Thread burki
Thanks for pointing this out, you are right, maven will go get what it needs and cache it in .m2. For a number of reasons however, I need to reference an "off-line" repository on the local network (I don't really want to debate the merits of doing this ...) dkulp was nice enough to tell me what

Re: Problem with wsdl2java and use of ws-addressing types in soap headers

2008-05-20 Thread Daniel Kulp
OK. I fixed this in the tooling. Next snapshot will have the fix. Dan On May 20, 2008, at 1:11 PM, Daniel Kulp wrote: This is technically not a valid wsdl. I'm not sure why the wsdlvalidator isn't flagging it as invalid. Basically, you have: but the import for the wsa schema i

Re: Off-line maven repository

2008-05-20 Thread burki
Perfect - exactly what I was hoping for - thanks! --dan dkulp wrote: > > > On May 20, 2008, at 1:30 PM, burki wrote: > >> >> I'm finally switching form ant to maven - maven is new to me, so >> please bear >> with me if the question below sounds idiotic ;-) >> >> I need to build an off-line

Re: dateTime custom binding [Virus checked]

2008-05-20 Thread Daniel Kulp
On May 20, 2008, at 1:22 PM, Cord Awtry wrote: Hmmm. I'm fairly certain I have it set up right. And those WrapperTypeHelper classes are no-where to be found on my system. Do they get created on the fly by cxf during the processing? Yes, they do. We use asm to generate some helper classes

Re: Off-line maven repository

2008-05-20 Thread Daniel Kulp
On May 20, 2008, at 1:30 PM, burki wrote: I'm finally switching form ant to maven - maven is new to me, so please bear with me if the question below sounds idiotic ;-) I need to build an off-line maven repository for the cxf modules. As a first step, I used the assembly task to build a

Re: Off-line maven repository

2008-05-20 Thread Glen Mazza
2008-05-20 burki wrote: > I'm finally switching form ant to maven - maven is new to me, so please bear > with me if the question below sounds idiotic ;-) > > I need to build an off-line maven repository for the cxf modules. As a > first step, I used the assembly task to build a repository packag

Off-line maven repository

2008-05-20 Thread burki
I'm finally switching form ant to maven - maven is new to me, so please bear with me if the question below sounds idiotic ;-) I need to build an off-line maven repository for the cxf modules. As a first step, I used the assembly task to build a repository packaged as a jar. Most of the cxf th

Re: Re: dateTime custom binding [Virus checked]

2008-05-20 Thread Cord Awtry
Hmmm. I'm fairly certain I have it set up right. And those WrapperTypeHelper classes are no-where to be found on my system. Do they get created on the fly by cxf during the processing? On Tue, May 20, 2008 at 8:24 AM, <[EMAIL PROTECTED]> wrote: > Hello, > > well, according to my sources, it'll re

Re: Problem with wsdl2java and use of ws-addressing types in soap headers

2008-05-20 Thread Daniel Kulp
This is technically not a valid wsdl. I'm not sure why the wsdlvalidator isn't flagging it as invalid. Basically, you have: but the import for the wsa schema is commented out. Thus, it would not be able to fine the ReplyTo element in the schemas and thus would not be able to properl

Re: CXF 2.1 incompatible with jaxb-impl 2.1.6?

2008-05-20 Thread Daniel Kulp
Is there any way you can create a small sample project that demonstrates this? This might be a bug in the DataTypeAdapter code somehow, but I'm not really sure how that's possible as the code there is VERY simple. It looks like jaxb is sending a null into public static String printDateTi

Re: NullPointerException decoding response with SOAP header

2008-05-20 Thread Daniel Kulp
I just committed a possible fix for this to trunk. Is there any chance you could checkout the code and give it a quick try? A very simple query to strikeiron returned OK, but I'm not a "power user" type thing so if you have more complex cases, I'd love to make sure they work as well.

CXF 2.1 incompatible with jaxb-impl 2.1.6?

2008-05-20 Thread Pieper, Aaron (SAIC)
I'm encountering the following exception using CXF 2.1 with JAXB-impl 2.1.6: Caused by: java.lang.NullPointerException at java.util.Calendar.setTime(Calendar.java:1032) at org.apache.cxf.tools.common.DataTypeAdapter.printDateTime(DataTypeAdapte r.java:52) at gen.jdnet

Re: NullPointerException decoding response with SOAP header

2008-05-20 Thread Daniel Kulp
Ah... strikeiron. :-( I signed up this morning and have the NFL thing up and running in the debugger now. I'm digging into it to figure out what's happening. Dan On May 20, 2008, at 10:54 AM, JSP wrote: I just ran through the debugger and the problem is the same as when I was usi

Re: NullPointerException decoding response with SOAP header

2008-05-20 Thread JSP
I just ran through the debugger and the problem is the same as when I was using 2.0.5. Everything I mentioned previously is still the same - that is, the MessagePartInfo.getTypeClass() method returns null which causes the JAXBEncoderDecoder to attempt to unmarshal a Node without a class. Then it

Re: Message Body Providers for Java types?

2008-05-20 Thread Olivier
Sergey, Thanks. Would be nice to treat output the same way than the WS stack in CXF, using Aegis or JAXB for instance, no. One could have cntrol with JAXB annotation on the output of a specific object at the attribute/element level. Handling primitive types and Collections would be great! Ol

Re: Message Body Providers for Java types?

2008-05-20 Thread Sergey Beryozkin
Hi No primitive types (or their object equivalents) are supported on the output by default, this is per JAX-RS spec, but nothing prevents a user from creating a custom writer, have a look please at a sample code for a Long writer at http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html. The reaso

Re: @XmlRootElement name not working in 2.0.6?

2008-05-20 Thread rm-ramos
Dan, thank you for your quick reply. You nailed down the problem really well, I was indeed using jax-ws services (well, REST but using http bindings) and I should have used the @WebResult annotation directly on the SEI instead of annotating the types. I fixed it and it works perfectly now. My S

Re: NullPointerException decoding response with SOAP header

2008-05-20 Thread Daniel Kulp
Well, unfortunately, that's a pretty useless stack trace.That NPE is occuring while trying to create the Fault to represent the real error. Thus, the real error from JAXB is lost. :-( I've committed a fix to the JAXBEncoderDecoder that will hopefully fix that so we can see what the

Re: Antwort: Problems with schema-validation-enabled [Virus checked]

2008-05-20 Thread Nikolaj A.
Hi jano, I saw the question replied to the similar email - again sorry for the doublepost - but I have checked my XSD schemas thoroughly and I can't locate any cyclic references. I attached the WSDL file and the XSD schemas (located in WEB-INF/servicedescriptions). http://www.nabble.com/file/p17

Antwort: Re: dateTime custom binding [Virus checked]

2008-05-20 Thread jan . minaroviech
Hello, well, according to my sources, it'll return java.util.GregorianCalendar (but internally during it's creation also XMLGregorianCalendar is used) didn't you mixed something? after i used CalendarAdapter (instead of setting parse/print methods), alll strange classes like foo.bar.SetOrderCal

Re: Problems with schema-validation-enabled

2008-05-20 Thread Nikolaj A.
Hmm, that's a very good question. If I eliminate the AOP proxy stuff below (the quotaAnmodningHistorikSamlingHent bean), by pointing the endpoint implementor directly at the implementation class (the quotaAnmodningHistorikSamlingHentTarget bean), then I get the following stack overflow: Stack tr

Re: dateTime custom binding [Virus checked]

2008-05-20 Thread Cord Awtry
Jano, That did the trick, thanks. I'm curious if you or anyone else has any insight on a follow-up question. It would seem the XMLGregorianCalendar is still in use, at least partially, after using the custom bindings file to convert them all to java.util.Calendar objects. Below is a ClassCastExc

Re: Antwort: Re: Maven2 codegen-plugin using more binding files [Virus checked]

2008-05-20 Thread bronchito
Yes , thank you , you're wright. There was a fault in some bindings, as you say. After fixing it, i've seen, that the second binding.xjb was not used. After your reply, i test the first way, like Dan said and now it works. My fault ,sorry. Thanks a lot Bronchito jan.minaroviech wrote

Antwort: Re: Maven2 codegen-plugin using more binding files [Virus checked]

2008-05-20 Thread jan . minaroviech
Hello Bronchito, it's not correct ! Error you had was produced by jaxb, because some binding was incorrect (maybe only with combination with others). for the same wsdl it's correct as Dan wrote. I'm using this way also 5 binding files best regards jano bronchito <[EMAIL PROTECTED]> 05/20/