Re: JAX-RS: Invalid URL handling

2009-06-23 Thread Kynan Fraser
Hi Sergey, I already had this @Produces("application/xml") annotation on the custom exception mapper. I presume you don't mean to annotate the actual response class? Out of curiousity I tried this but it didn't make a difference. It does seem strange that for most errors this behaviour is not ex

RE: Question about WADL support in JAX-RS CXF

2009-06-23 Thread Sadhana Jain
Hi Sergey, Sorry about misspelling your name in my earlier email. Just have one more question about WADL support, will there be support both ways ie from wadl2java and java2wadl? If there is any info on how this is going to work, will appreciate a lot. Thanks, Sadhana -Orig

Need help in discovery of a certain class in wsdl

2009-06-23 Thread Rahul Joshi
Hi all, I've just started with CXF to integrate & deploy my existing pojo application as a webservice. I am using JAX-WS annotation style to accomplish this. All is running well, the service gets published and I can call it sucessfully using the stubs I generate from wsdl. The problem is that one

XFireServlet threw exception javax.servlet.ServletException: non-HTTP request or response

2009-06-23 Thread Nail Araz
Hi all, i'm running a xfire-based WS in JBoss-4.2.2-GA without any problems, but when i've deployed this WS into JBoss-5.1.0 and try to connect to it using http://myservername.mydomain.org.8080/MyWebService/services/MyWebService?wsdl, than i always get an exception: 18:47:27,234 ERROR [[XFireSe

RE: Question about WADL support in JAX-RS CXF

2009-06-23 Thread Sadhana Jain
Hi, I have a related question about REST support that's provided in Spring 3.0. Do you know if that is complementary to rest support in CXF (and if in future CXF supports Spring 3.0 that one would be able to use the rest features in Spring 3.0) or it that orthogonal to rest support in CXF? Tha

RE: Question about WADL support in JAX-RS CXF

2009-06-23 Thread Sadhana Jain
Hi Sergery, Thank you very much for your response. I am glad to know that there will be support for wadl in CXF as I was tasked to choose a framework for restful services and one thing that I was in two minds about between CXF and Jersey was wadl support otherwise I like CXF over Jersey for it

Re: Question about WADL support in JAX-RS CXF

2009-06-23 Thread Sergey Beryozkin
Hi I'm working on it. I was hoping to get some initial support by this coming Friday but it's getting a bit tight as some other issues have popped up. Either way it will be in 2.2.3 which is planned for the end of next month Sergey Bugzilla from sj...@macrovision.com wrote: > > > > Hi CXF

Question about WADL support in JAX-RS CXF

2009-06-23 Thread Sadhana Jain
Hi CXF group, I was wondering if there was a support for wadl generation in CXF like the way in Jersey that automatically generates application.wadl for your app. Thanks a lot for help, Sadhana

RE: Configuring streaming web services: error on the call to invoke

2009-06-23 Thread Monica Ferrero
Hi again, After playing with a smaller prototype and following a number of red herrings in the class loading area, the real problem turn out to be a bit different. I hadn't put it in the sample code I sent in my first post to simplify, but the web service implementation class is transactional l

Problem with code generation and binding files

2009-06-23 Thread johannes.konstantinidis
Hello, I have a problem with the generation of the CXF classes when the JAXB classes have been generated before via separate compilation with episode files. I have a WSDL (service.wsdl) which imports a xml schema (service.xsd) that defines all types for service invocation. In addition I have

Re: Applying aspects to service invocations

2009-06-23 Thread Sergey Beryozkin
Hi Can SpringDM help somehow as well. such that the application context sets up the various interceptors on the default bus ? That would be a very CXF-specific solution :-) I like the idea of using custom intents. We may need to think how to ensure that some intents, those not intended for cli

Re: howto read properties on server side

2009-06-23 Thread Daniel Kulp
On Tue June 23 2009 3:59:19 am k...@dossier.no wrote: > Thank you for replay Dan, > > This seems to not work, i get Null after this line: > > ((WrappedMessageContext)ctx.getMessageContext()).getWrappedMessage().getC > >on textualProperty("userId"); > > After debugging, there are no Map on class Wra

In and out logging -- can't get it to work

2009-06-23 Thread Andrew Clegg
Hi folks, I'm trying to set up request/response logging via log4j, as described here: http://cwiki.apache.org/CXF20DOC/debugging.html and elaborated on here: http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/ However, it's not playing nice... I have the following s

Re: How to get servlet context at initialization time of a POJO

2009-06-23 Thread Vassilis Virvilis
Hi Sergey, On Tuesday 23 June 2009, Sergey Beryozkin wrote: > Hi Vassilis > > Is it possible for you to use a Spring's ability to call a user-designated > destroy method ? This will probably be called though when > the whole webapp is undeployed as at the moment we don't support any other > Sp

Re: How to get servlet context at initialization time of a POJO

2009-06-23 Thread Vassilis Virvilis
Hi Ian, On Tuesday 23 June 2009, Ian Roberts wrote: > Vassilis Virvilis wrote: > > The actual point is can a webservice (pojo) be notified on undeploy? > > If you don't mind coupling to Spring then just implement > ServletContextAware and DisposableBean. The former will cause Spring to > inject

RE: Configuring streaming web services: error on the call to invoke

2009-06-23 Thread Monica Ferrero
Hi! I have migrated to 2.2.2 and changed my implementation to implement Provider instead public class PresentationServiceProviderImpl implements Provider{ public Source invoke( Source request ){ but that has just moved the error to the new signature. I'll have to check *again* for class l

Re: How to get servlet context at initialization time of a POJO

2009-06-23 Thread Sergey Beryozkin
Hi Vassilis Is it possible for you to use a Spring's ability to call a user-designated destroy method ? This will probably be called though when the whole webapp is undeployed as at the moment we don't support any other Spring lifecycles like prototype. etc.Or may be @PreDestroy would help you

Re: How to get servlet context at initialization time of a POJO

2009-06-23 Thread Ian Roberts
Vassilis Virvilis wrote: > The actual point is can a webservice (pojo) be notified on undeploy? If you don't mind coupling to Spring then just implement ServletContextAware and DisposableBean. The former will cause Spring to inject the servlet context into your pojo (after calling the constructor

jaxrpc-mapping.xml in combination with Maven plugin

2009-06-23 Thread Jochen Hebbrecht
Hi, I'm having a jaxrpc-mapping.xml file. I want CXF (in combination with Maven) to use the jaxrpc-mapping.xml file. Is there a way to configure my POM that it reads the file. My current config: org.apache.cxf cxf-codegen-plugin 2.2

Re: How to get servlet context at initialization time of a POJO

2009-06-23 Thread Vassilis Virvilis
Hi Sergey, Thanks for replying On Tuesday 23 June 2009, Sergey Beryozkin wrote: > Hi, > > > The only way to do it at the moment is to use a per-request resource class > with @Context ServletContext being one of the constructor > parameters I can't do that at the moment. My servlet must have

How to handle exceptions in server side?

2009-06-23 Thread tutu
Hi all, I'm a newbe to apache cxf. I use it with spring. I've just written few web services and now I want to handle exceptions with them. For example, i have a web service named CreateUserService that create a user in database. I want this service to return exceptions if pb during user creation

Re: JAXB RESTful service example

2009-06-23 Thread Sergey Beryozkin
Hi, here's one example http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/samples/jax_rs/basic_https/src/demo/jaxrs/server/CustomerService.java the samples area is poor at the moment - many more demos will be added. cheers, Sergey - Original Message - From: "ssan

Re: JAX-RS: Invalid URL handling

2009-06-23 Thread Sergey Beryozkin
Hi Kynan, Can you please try to set an application/xml type on your custom Response please ? Hopefully it will make a difference. [2009-06-23 09:12:18,498 DEBUG][AbstractJAXBProvider][http-8080-Processor24 fw9syo1f][0:0:0:0:0:0:0:1][] Error creating a JAXBContext using ObjectFactory : "package

Re: How to get servlet context at initialization time of a POJO

2009-06-23 Thread Sergey Beryozkin
Actually, you don't have to use "jaxrs.scope" parameter in this case, this injection should work wirth singletons too. cheers, Sergey Hi, The only way to do it at the moment is to use a per-request resource class with @Context ServletContext being one of the constructor parameters publi

Re: How to get servlet context at initialization time of a POJO

2009-06-23 Thread Sergey Beryozkin
Hi, The only way to do it at the moment is to use a per-request resource class with @Context ServletContext being one of the constructor parameters public class Resource { private ServletContext servletContext; public Resource(@Context ServletContext servletContext) {} } and use CXFNonSpr

Re: howto read properties on server side

2009-06-23 Thread kr
Thank you for replay Dan, This seems to not work, i get Null after this line: > ((WrappedMessageContext)ctx.getMessageContext()).getWrappedMessage().getCon > textualProperty("userId"); After debugging, there are no Map on class WrappedMessageContext that contains the key userId any other suges

Re: IllegalAccessError: tried to access method org.apache.cxf.service.model.BindingOperationInfo. ...

2009-06-23 Thread Andrew Clegg
Actually an 'mvn clean' seems to have fixed this, should have tried before posting! Must have been older jars stuck in build path somewhere. So ignore me :-) I'll post again if it recurs and won't go away. 2009/6/23 Andrew Clegg : > PS... I should also have mentioned that one of my JUnit tests br