Re: SAXParseException: cos-nonambig Error

2009-08-07 Thread Benson Margulies
And this one: http://www.mail-archive.com/j-us...@xerces.apache.org/msg02301.html On Fri, Aug 7, 2009 at 6:49 PM, Benson Margulies wrote: > There's this thread: > > http://lists.xml.org/archives/xml-dev/200512/msg00277.html > > On Fri, Aug 7, 2009 at 12:13 PM, Daniel Kulp wrote: >> >> Honestly, I

Re: SAXParseException: cos-nonambig Error

2009-08-07 Thread Benson Margulies
There's this thread: http://lists.xml.org/archives/xml-dev/200512/msg00277.html On Fri, Aug 7, 2009 at 12:13 PM, Daniel Kulp wrote: > > Honestly, I'm not sure what that error is supposed to mean. > > My suggestion would be to try and change the "ExtensibleType" to remove the > and things tempor

NullPointerException in HolderInInterceptor.handleMessage

2009-08-07 Thread JSP
I am getting a null pointer in handleMessage method of the HolderInInterceptor in cxf-2.1.3. Here is the stacktrace: Aug 7, 2009 6:17:40 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now java.lang.NullPointerException at org.ap

JAX-RS using an existing Jetty server?

2009-08-07 Thread jmdev
I have successfully gotten my JAX-RS services to run in CXF using the following Spring configuration ... https://localhost:9000";> However, I already have a Jetty server running on port 8080 in my application and this will create a second Jetty server on port 9000. I was wonderi

Adding Elements to WS-Security Header .... WSS4JOutInterceptor, SAAJOutInterceptor

2009-08-07 Thread R1ch
CXF 2.2 and WSS4J 1.5.8 Hello all, I have a working webservice configured with WSS4JOutInterceptor to insert a signed SAML token. Now I'm trying to insert an Element before the signature occurs so that my Element is also signed. I tried two different ways and both are not resulting in what I need

Default endpoint via Zookeeper (D-OSGi) (repost to get its own thread, sorry all)

2009-08-07 Thread Shulok, Thomas
Hi All, Working with the Zookeeper discovery setup, and things are working as long as I explicitly specify org.apache.cxf.ws.address in my service decoration xml file. If I don't specify it, it will default to localhost. Not unreasonable, but the problem is, localhost will be the endpoint that get

Default endpoint via Zookeeper (D-OSGi)

2009-08-07 Thread Shulok, Thomas
Hi All, Working with the Zookeeper discovery setup, and things are working as long as I explicitly specify org.apache.cxf.ws.address in my service decoration xml file. If I don't specify it, it will default to localhost. Not unreasonable, but the problem is, localhost will be the endpoint that g

How to throw an exception subclass with custom fields from service

2009-08-07 Thread D'Arcy, Hamlet B
I want to throw a custom exception from a CXF service. The exception class has a List field in it. Failure is a properly JAXB annotated class. Here is one way to write this exception: public class ValidationException extends RuntimeException { private List failures; ... Getters/se

Re: SAXParseException: cos-nonambig Error

2009-08-07 Thread Daniel Kulp
Honestly, I'm not sure what that error is supposed to mean. My suggestion would be to try and change the "ExtensibleType" to remove the and things temporarily and see if that fixes it. My gut feeling is that it will. Two reasons: 1) Alll of the extensions of ExtensibleType also have xs

RE: @XmlRootElement with jax-rs/jax-ws

2009-08-07 Thread Sergey Beryozkin
I have just updated JAXBElementProvider to properly wrap into JAXBElements those JAXB-generated types which are missing for whatever reasons @XmlRootElement annotations. 'jaxbElementClassNames' list property I referred to earlier can only be used with classes which do have @XmlRootElement annotat

Re: JAX-RS : initial WADL support

2009-08-07 Thread Sergey Beryozkin
Hi Gabo Please send me a copy... Unfortunately it is not possible to have multiple root resource classes with the same Path value. Actually, it is possible, but JAX-RS specs says that after the first root class has been selected it is this resource only that the runtime continues working with, o

Re: JAX-RS : initial WADL support

2009-08-07 Thread Gabo Manuel
Hi Sergey, Sergey Beryozkin wrote: I'm not sure we can do it at the XML level, XML Parsers used by Firefox/IE would just most likely skip it as the ignorable whitespaces. HTML WADL view will also be done/available later on and it will make the whole WADL instance more readable, I was thinking

Re: [CXF2.2.3] On exception handling

2009-08-07 Thread Gabo Manuel
Hi Sergey, I am expecting it to handle RuntimeException from the code and from the framework. So far, my test includes both from the method and that of no resource mapping to the url provided, e.g. "/Service/nonexistent" instead of "/Service/operation" Thanks. Gabo Sergey Beryozkin wrote:

Re: [CXF2.2.3] On exception handling

2009-08-07 Thread Sergey Beryozkin
Hi Gabo Is the original RuntimeException thrown from the application code ? Just would like to figure out how to do a test, I don't remember JAXRS runtime setting 203... cheers, Sergey Gabo Manuel wrote: > > Hi All, > > I created and registered an ExceptionMapper implementation as follows:

Re: static properties file can't be found in JAXRSInInterceptor

2009-08-07 Thread Sergey Beryozkin
Hi It appears when the server is running in a standalone mode the JAX-RS runtime attempts to handle static content requests like http://localhost:9000/main/index/Application_en-US.properties Can you provide some more information please. When you have your web app running in Tomcat, what is the v

RE: WS-ReliableMessaging

2009-08-07 Thread EVENO Manuel
Ok thanks for the clear explanation. I'll have a look at callbacks and decoupled endpoints ... Regards, Manuel -Message d'origine- De : Eoghan Glynn [mailto:eogl...@gmail.com] Envoyé : vendredi 7 août 2009 11:24 À : users@cxf.apache.org Objet : Re: WS-ReliableMessaging Well that would

Re: WS-ReliableMessaging

2009-08-07 Thread Eoghan Glynn
Well that would imply that WS-RM maintains a correlation between the response and the original request, which just isn't the case. RM doesn't care whether the original response was two-way or one-way, as its considers the client->server and server->client message streams as completely separate fro

RE: Asynchronous Invocation and connection keep alive on the TCP level

2009-08-07 Thread EVENO Manuel
Thasnk to both of you ! -Message d'origine- De : Daniel Kulp [mailto:dk...@apache.org] Envoyé : jeudi 6 août 2009 17:32 À : users@cxf.apache.org Cc : Eric Johnson Objet : Re: Asynchronous Invocation and connection keep alive on the TCP level On Thu August 6 2009 11:21:03 am Eric Johnson

RE: JAX-RS : initial WADL support

2009-08-07 Thread Sergey Beryozkin
Hi Gabo thanks for your feedback. > 1. The resources tags could use a new line after the closing tag for > readability. Just a nice to have. I'm not sure we can do it at the XML level, XML Parsers used by Firefox/IE would just most likely skip it as the ignorable whitespaces. HTML WADL view wi

RE: Handling Collection returns via JAX-RS

2009-08-07 Thread Sergey Beryozkin
Hi Gabo Yeah, I agree, in some cases names like 'Historys' do no look right :-) but it can be tricky to come with the universally acceptable collection name, as CXF supports now explicit arrays, lists, base collections and sets. One can override it by setting a global 'collectionWrapperName' or