Re: Maven2 codegen-plugin using more binding files

2008-05-19 Thread bronchito
sorry for double post but i resolve the problem: you have to duplicate the hole wsdlOption part. the new configuration looks like : ${basedir}/${schema.location}/myWsdl.wsdl -b ${basedir}/${schema.location}/binding1.xjb

Message Body Providers for Java types?

2008-05-19 Thread Olivier
Is it possible to return an int, Integer or List objects on a JAX-RS @GET method? I am getting the following error in the browser (example here with ArrayList): .No message body writer found for response class : ArrayList. Thanks Olivier

Re: JAX-RS (JSR 311) Sub Resource NullPointerException

2008-05-19 Thread Olivier
Sergey, Thanks, returning the Impl worked fine. Any plan to support this in the future? Olivier Sergey Beryozkin wrote: Hi Looks lile what is causing the issue is that in hello() method a sub-resource, at the introspection time, is an interface. I'm not sure yet if it's allowed by JAX-RS,

Re: Preferred JDK Version?

2008-05-19 Thread Freeman Fang
Thanks for clarifying this issue for me. Cheers Freeman Daniel Kulp wrote: On May 16, 2008, at 11:53 PM, Freeman Fang wrote: Hi Dan, Can we say cxf 2.0.x fix branch work with jdk 1.6? No, the 2.0.x branch doesn't work with 1.6. It can "somewhat work" with JDK 1.6 up to update 3, but n

Re: Maven2 codegen-plugin using more binding files

2008-05-19 Thread bronchito
Thanks for reply. I've tried it, but now the following failure occures : WSDLToJava Error : Thrown by JAXB : compiler was unable to honor this property customization. It is attached to a wrong place, or its inconsistent with other bindings. Is there another way, to enclose more then one bin

Re: NullPointerException decoding response with SOAP header

2008-05-19 Thread JSP
Here is the log output for the response with some of the response removed for brevity: INFO: Inbound Message Encoding: UTF-8 Headers: {Content-Length=[10025], X-Powered-By=[ASP.NET], X-AspNet-Version=[1.1.4322], Date=[Tue, 20 May 2008 03:14:11 GMT], Server=[Microsoft-

Re: NullPointerException decoding response with SOAP header

2008-05-19 Thread JSP
We are now using 2.1 and I am still getting the same error, although the line numbers have changed. I haven't done any debugging of it yet, just wanted to see if you had any ideas first? Here is the updated stack trace: May 19, 2008 11:14:07 PM org.apache.cxf.phase.PhaseInterceptorChain doInter

Re: Exception running from unit test

2008-05-19 Thread Cord Awtry
Glen: Thanks for the blog info. I ended up moving to a cxf-servlet.xml file in the WEB-INF directory and that worked Benson: Thanks for the info on 2.1.1. I'll check that out. -C- On Mon, May 19, 2008 at 9:20 PM, Benson Margulies <[EMAIL PROTECTED]> wrote: > The immediate error has to do with

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

2008-05-19 Thread Callum Haig
I'm encountering problems with the wsdl first approach when attempting to use ws-addressing types such as ReplyTo in soap headers. Consider the following wsdl: http://mycompany.com/asyncwsa"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://mycompany.com/asyn

Re: Exception running from unit test

2008-05-19 Thread Benson Margulies
The immediate error has to do with your choice of an XML parser. Some optimization code in 2.1 calls a feature API that is absent in some old Xerces code. Snapshots for the will-be 2.1.1 have a fix. On Mon, May 19, 2008 at 8:22 PM, Cord Awtry <[EMAIL PROTECTED]> wrote: > I've recently migrated fro

Re: Exception running from unit test

2008-05-19 Thread Glen Mazza
I would recommend against using a file named cxf.xml for the web service provider (that's best for the SOAP client or for more severe CXF architectural changes on the provider side); typically you use a cxf-servlet.xml file or another-named file as shown in Steps #7 and #8 here: http://www.jroller

Exception running from unit test

2008-05-19 Thread Cord Awtry
I've recently migrated from CXF 2.0.5 to 2.1. After getting the code to compile again, the app seems to run properly. Oddly, when I try to run a unit test that inits the service client, I get the error below. Even after commenting out the complete contents of the cxf.xml in my WEB-INF/classes dire

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

2008-05-19 Thread Glen Mazza
I have not seen that error before, but perhaps my WSDL-first sample can help you: http://www.jroller.com/gmazza/date/20080417. Note it has not been updated to CXF 2.1 yet (it's still on 2.0.6, but quite possibly would work as-is with 2.1.) Glen 2008-05-19 Murthy Malekar wrote: > Hello, > I ha

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

2008-05-19 Thread Murthy Malekar
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. When I start the web-app within Eclipse

Converting Spring POJOs to WebServices with CXF

2008-05-19 Thread Suneet Shah
Hello: I have a set of POJOs that are built using Spring and Hibernate. Some of these have pojos have many to many relationship as shown in the hibernate maps below. When I try to generate a WSDL, I run into a problem due to the circular reference. How are other people working around this without

RE: CXF Spring syntax

2008-05-19 Thread Beryozkin, Sergey
Hi Have a look please at a JAX-RS page, there's an example there showing how to combine JAX-WS and JAX-RS configuration such that a single service class is used... Cheers, Sergey -Original Message- From: John-M Baker [mailto:[EMAIL PROTECTED] Sent: 19 May 2008 15:35 To: users@cxf.ap

Antwort: Re: wsdl2java NPE for complex types with no fields under some circum stances [Virus checked]

2008-05-19 Thread jan . minaroviech
Hello Dan, i tried to send my test wsdl + bindings + pom, but it always returned as spam. is it enough to skip the loop in this method in case of null? (I have to fix my local version now, to continue working) Thank you! best regards jano Daniel Kulp <[EMAIL PROTECTED]> 05/19/2008 21:07

Re: wsdl2java NPE for complex types with no fields under some circum stances [Virus checked]

2008-05-19 Thread Daniel Kulp
Looking at the code at that line number, we aren't checking if the dilldown is null. I've added a null check to the code for that case which may fix the issue in the next snapshots. Dan On May 19, 2008, at 2:30 PM, [EMAIL PROTECTED] wrote: Hello, i have a situation which produces C

Re: CXF Spring syntax

2008-05-19 Thread Daniel Kulp
You seem to be mixing some jaxrs stuff and jaxws stuff.JAX-WS endpoint is for jaxws endpoints only. Are you trying to do soap stuff or JAX-RS stuff or what? Dan On May 19, 2008, at 10:35 AM, John-M Baker wrote: Hello, I wish to define one bean (my service) and pass it to jax

Re: dateTime custom binding

2008-05-19 Thread Christopher . Mathrusse
You need to create a customer binding file for your web service. You can use the following as a guide but change the relevant information to your specific needs. For example: wsldLoction needs to be your services URL, and the targetNamespace must match your services namespace. http://localhost:

Antwort: dateTime custom binding [Virus checked]

2008-05-19 Thread jan . minaroviech
Hello, see below. best regards jano http://java.sun.com/xml/ns/jaxb"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"; > package xxx.common.jaxb;

Re: @XmlRootElement name not working in 2.0.6?

2008-05-19 Thread Daniel Kulp
I'd probably need to see the method signature on the SEI and the annotations there. Also, are you talking JAX-WS SEI interface or REST or what? Per jax-ws/jws spec, the name of the element used for the request/response is taken from the WebResult/WebParam annotations, NOT the XmlRootE

dateTime custom binding

2008-05-19 Thread Cord Awtry
Hello all, Wondering if someone can lend some advice on an issue I'm seeing (may not even be an issue, I'm open to that as an answer ;) ). Essentially, I have a WSDL being generated by CXF with all my types inline. I have a bunch of xs:datetime objects which are being converted to XMLGregorianCa

Re: Maven2 codegen-plugin using more binding files

2008-05-19 Thread Daniel Kulp
I believe it would be: -b ${basedir}/${schema.location}/binding1.xjb -b ${basedir}/${schema.location}/binding2.xjb

Maven2 codegen-plugin using more binding files

2008-05-19 Thread bronchito
Hi, how can I use more then one binding file in my ? If you run wsdlToJava on the command line, it is possible to add more then one binding file with the -b option. (space seperated) But how should i realize it in maven ? My configuration looks like : org.apache.cxf

Re: turning off @XmlSeeAlso in wsdl2java in CXF 2.1

2008-05-19 Thread Daniel Kulp
On May 19, 2008, at 12:47 PM, Daniel Lipofsky wrote: On May 16, 2008, at 1:31 PM, Daniel Kulp wrote Startup performance would probably be slightly better if you grabbed all of the wrapper types, even the ones for the unwrapped methods. If you look in the service interface for those methods,

wsdl2java NPE for complex types with no fields under some circum stances [Virus checked]

2008-05-19 Thread jan . minaroviech
Hello, i have a situation which produces Caused by: org.apache.maven.plugin.MojoExecutionException: java.lang.NullPointerException at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:296) at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo

Re: Control schema output using JAXB binding

2008-05-19 Thread Boxiong Ding
It is really good to know. Thanks, Boxiong - Original Message From: Daniel Kulp <[EMAIL PROTECTED]> To: users@cxf.apache.org Sent: Sunday, May 18, 2008 7:24:46 PM Subject: Re: Control schema output using JAXB binding This is ONE of the "complaints" I have with JAXB.  There isn't a way

RE: turning off @XmlSeeAlso in wsdl2java in CXF 2.1

2008-05-19 Thread Daniel Lipofsky
On May 16, 2008, at 1:31 PM, Daniel Kulp wrote > > On May 16, 2008, at 12:29 PM, Daniel Lipofsky wrote: > > > > I choose the "all services in one directory" strategy > > because many of my services use the same message wrapper > > objects (the @XmlRootElement objects), and I have extended > > some

Re: Control schema output using JAXB binding

2008-05-19 Thread Benson Margulies
To amplify, there are a lot of cases in which JAXB cheefully discards constraints from the schema, never to be seen again. On Sun, May 18, 2008 at 10:24 PM, Daniel Kulp <[EMAIL PROTECTED]> wrote: > > This is ONE of the "complaints" I have with JAXB. There isn't a way to do > this. The maxOccurs

Re: Problems with schema-validation-enabled

2008-05-19 Thread Benson Margulies
How did you get into Code Page 1252? On Mon, May 19, 2008 at 11:44 AM, Nikolaj A. <[EMAIL PROTECTED]> wrote: > > Seems like FOUGERE Julien experiences almost similar problems in his post > today > http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-td17319174.html > > Sorry fo

Re: Problems with schema-validation-enabled

2008-05-19 Thread Nikolaj A.
Seems like FOUGERE Julien experiences almost similar problems in his post today http://www.nabble.com/Problem-with-schema-validation-%28JAX-WS---JAXB%29-td17319174.html Sorry for the double post, if it is indeed the very same issue... /Nikolaj -- View this message in context: http://www.nabbl

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

2008-05-19 Thread jan . minaroviech
Hi Nikolaj, the same question as someone wrote as reply to simillar email 2 hours ago ... do you have cyclic references between your XSD schemas ? best regards jano "Nikolaj A." <[EMAIL PROTECTED]> 05/19/2008 17:32 Bitte antworten an users@cxf.apache.org An users@cxf.apache.org Kopie The

Problems with schema-validation-enabled

2008-05-19 Thread Nikolaj A.
System specs. CXF 2.1 Tomcat 5.5.17 (I know it's old, but I'm stuck with this) Java 1.5.0_12 I'm trying to validate the XML input to my web service, but I ran into this stack overflow. snip stacktrace from log 19 maj 2008 16:59:17,711 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[loca

RE: maven cxf-codegen-plugin question

2008-05-19 Thread Joerg Hubschneider
Hi Daniel, Thx for your advice! I have tested it, and it works properly! For interesting people: org.apache.cxf cxf-codegen-plugin 2.0.6 org.apache.cxf

CXF Spring syntax

2008-05-19 Thread John-M Baker
Hello, I wish to define one bean (my service) and pass it to jaxws:endpoint. How is this done as the following fails: Thanks, John Baker -- Web SSO IT Infrastructure Deutsche Bank London URL: http://websso.cto.gt.intranet.db.com --- This e-mail may contain con

Re: XMLBeans not compatible with cxf 2.1

2008-05-19 Thread Daniel Kulp
On May 19, 2008, at 4:36 AM, Brad wrote: Dan, I didn't realise 2.1 provides XMLBeans support. I added some classes to provide JAX-RS frontend providers (which thinking about it is probbably not what Piotr is looking for), does this mean I can now get that functionailty out of the box from 2.1?

Re: Problem of backward compability between cxf 2.0.2-incubator and cxf 2.1

2008-05-19 Thread Daniel Kulp
On May 19, 2008, at 6:42 AM, jc meillaud wrote: Hi again, I just try a completely empty project with only one wsdl (took from the web), and i still get the two issues : - Warning Exception is still there - Package name passed as an argument to the wsdl2java maven plugin is not taken into

RE: Problem with schema validation (JAX-WS & JAXB)

2008-05-19 Thread Pieper, Aaron (SAIC)
It looks to me like Xerces is recursing trying to follow your XSD imports. Do you have any XSDs that refer to eachother in a cycle? - Aaron -Original Message- From: FOUGERE Julien (Prestataire) [mailto:[EMAIL PROTECTED] Sent: Monday, May 19, 2008 3:49 AM To: [EMAIL PROTECTED] Subject: P

Re: Problem of backward compability between cxf 2.0.2-incubator and cxf 2.1

2008-05-19 Thread Daniel Kulp
On May 19, 2008, at 6:42 AM, jc meillaud wrote: Hi again, I just try a completely empty project with only one wsdl (took from the web), and i still get the two issues : - Warning Exception is still there - Package name passed as an argument to the wsdl2java maven plugin is not taken into

@XmlRootElement name not working in 2.0.6?

2008-05-19 Thread rm-ramos
Hi guys, I just recently upgraded from version 2.0.3 to .6 and I'm having a problem defining names in a @XmlRootElement annotation for my response classes. When in 2.0.3 adding: @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name="userInfoResponse", namespace="http://webservices.messagin

Problem with schema validation (JAX-WS & JAXB)

2008-05-19 Thread FOUGERE Julien (Prestataire)
Hi, I am currently experiencing problem to set up server side schema validation. I have a JAX-WS frontend webservice and JAXB databinding. When I turn schema validation on, I get a stack overflow error. It really looks like that xerces is running on an infinite loop Here is my cxf-servle

Re: JAX-RS (JSR 311) Sub Resource NullPointerException

2008-05-19 Thread Sergey Beryozkin
Hi Looks lile what is causing the issue is that in hello() method a sub-resource, at the introspection time, is an interface. I'm not sure yet if it's allowed by JAX-RS, probably yes... Try to move @GET @Path("/age") annotations from the HelloeImpl.getAge() to the corresponding interf

Re: Problem of backward compability between cxf 2.0.2-incubator and cxf 2.1

2008-05-19 Thread jc meillaud
Hi again, I just try a completely empty project with only one wsdl (took from the web), and i still get the two issues : - Warning Exception is still there - Package name passed as an argument to the wsdl2java maven plugin is not taken into account Could any one confirm me I could open a JIRA

RE: Errors about missing classes when upgrading cxf from version 2.0.6 to 2.1

2008-05-19 Thread Piotr Skawinski
thx, it works now :) > From: [EMAIL PROTECTED] > To: users@cxf.apache.org > Subject: Re: Errors about missing classes when upgrading cxf from version > 2.0.6 to 2.1 > Date: Sun, 18 May 2008 22:28:10 -0400 > > > > ASM version miss matches. We need version 2.x or 3.x. Some old > libraries

RE: XMLBeans not compatible with cxf 2.1

2008-05-19 Thread Piotr Skawinski
I gave up in the end to use xmlbeans with cxf. I rewrote my application to use dom4j for parsing and validating xml documents, which took me only 3 ours with all unit test and integration test. I don't think I will go back to use xml beans with cxf, or at least not untill I have read that someo

Re: XMLBeans not compatible with cxf 2.1

2008-05-19 Thread Brad
Dan, I didn't realise 2.1 provides XMLBeans support. I added some classes to provide JAX-RS frontend providers (which thinking about it is probbably not what Piotr is looking for), does this mean I can now get that functionailty out of the box from 2.1? Brad. On Mon, May 19, 2008 at 3:04 AM, Dan