Hi
On 26/11/13 11:32, António Mota wrote:
Sorry, @PreMatching does work, after I registered it in
my javax.ws.rs.core.Application instead of rootContext.

That leads me to a question however. Why do I have to register my classes
with the JAXRSServerFactoryBean itself and not doing it only has the JAX-RS
spec says, like in

@ApplicationPath("rest")
public class RestApplication extends Application {

@Override
     public Set<Class<?>> getClasses() {
         Set<Class<?>> s = new HashSet<Class<?>>();
         s.add(TestService.class); -----------------------> this one I had
to register in JAXRSServerFactoryBean
         s.add(PreMatchingFilter.class);
         return s;
     }
}

I'm a bit confused now :-).
You can have Application activated with CXFNonSpringJaxrsServlet, you don't have to work with JAXRSServerFactoryBean, unless you have you application running in the standalone Jetty container.

What is that 'rootContext' you are referring to ? Is it something we need to fix ?

Sergey







* Melhores cumprimentos / Beir beannacht / Best regards *
*______________________________________________________*

*António Manuel dos Santos Mota <http://gplus.to/amsmota>*
*http://www.linkedin.com/in/amsmota* <http://www.linkedin.com/in/amsmota>
*______________________________________________________*


On 26 November 2013 11:16, António Mota <[email protected]> wrote:

Well, the services works well, however I detected some points:

- if I point to my root address as before it still give me the address of
the WADLs and WSDLs. The WSDL links still work but the WADLs give a 404

- @PreMatching does not seems to work, beside the annotated class I also
registered my annotated class it in the application
with rootContext.register(MyPreMatchingFilter.class);


Cheers.





* Melhores cumprimentos / Beir beannacht / Best regards *
*______________________________________________________*

*António Manuel dos Santos Mota <http://gplus.to/amsmota>*
*http://www.linkedin.com/in/amsmota* <http://www.linkedin.com/in/amsmota>
*______________________________________________________*


On 26 November 2013 11:05, António Mota <[email protected]> wrote:

Yes, I just found out

http://cxf.apache.org/docs/30-migration-guide.html

But the problem is, how stable is this and what's teh roadmap until
Release? If I tell my boss to use a Milestone1 he'll laugh...

Nevertheless I will do test, I'll be happy if I can help somehow.

Cheers.




* Melhores cumprimentos / Beir beannacht / Best regards *
*______________________________________________________*


*António Manuel dos Santos Mota <http://gplus.to/amsmota>*
*http://www.linkedin.com/in/amsmota* <http://www.linkedin.com/in/amsmota>
*______________________________________________________*


On 26 November 2013 11:02, Francesco Chicchiriccò <[email protected]>wrote:

On 26/11/2013 11:58, Sergey Beryozkin wrote:

Hi,
CXF 3.0.0-milestone1 has just been released, give it a try please


Hey, great news: I haven't heard anything yet about this (not even from
announce@) and http://cxf.apache.org/download.html does not show
anything new...

Anyway, is there any migration procedure (or just hints) for people
upgrading from 2.7.X (2.7.8-SNAPSHOT, actually)?

Regards.


  On 26/11/13 10:49, António Mota wrote:

Hi again.

As part of my POC (that ultimately is aimed at aiding us to choose
between
CXF, CXF+Camel or Jersey) I'm now trying to port some use cases from
Jersey
to CXF. It was going very well except for a use case where I'm using
javax.ws.rs.client.ClientBuilder, but it seems that this class is only
present in javax.ws.rs-api:2.0 and CXF 2.7.7 uses
javax.ws.rs-api:2.10-m10.

I tried to just import the RS 2.0 jars and it went OK until CXF tries
to
instantiate a ResponseImpl that uses
a javax.ws.rs.MessageProcessingException that seems to be present in
RS
2.0-m10 but not in 2.0.

So my question is, is there a milestone that uses the final RS 2.0? If
yes,
how stable is it and when it will be available as Release?

Cheers.



* Melhores cumprimentos / Beir beannacht / Best regards *
*______________________________________________________*

*António Manuel dos Santos Mota <http://gplus.to/amsmota>*
*http://www.linkedin.com/in/amsmota* <http://www.linkedin.com/in/
amsmota>
*______________________________________________________*


--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/







--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to