Re: DOSGI CXF inheritance question

2011-09-29 Thread Sergey Beryozkin
Hi I think it's non a DOSGi issue, more likely Aegis binding (used by default by SOAP proxies) issue. DOSGi itself does not handle the databindings Try enable jaxb and add the annotations (as well as import them) as suggested by Dan Cheers, Sergey On 28/09/11 23:05, András Liter wrote:

Re: DOSGI CXF inheritance question

2011-09-29 Thread András Liter
Hello Sergey, you were right! I just needed to add the jaxb property on the consumer (and provider) side and then JAXB handles polimorphism very well! I even didnt need to put the Xml annotations on my classes. Thanks for the solution! András Liter On Thu, Sep 29, 2011 at 1:21 PM, Sergey

Re: DOSGI CXF inheritance question

2011-09-28 Thread András Liter
Thanks for the tip, it brought some hope, but it just didnt worked. The sad thing is that polimorphism doesnt work this way via CXF-DOSGI (as it does in simple CXF). 2011/9/27 Daniel Kulp dk...@apache.org On Tuesday, September 27, 2011 2:45:08 PM András Liter wrote: Hey, I bumped into the

Re: DOSGI CXF inheritance question

2011-09-28 Thread Sergey Beryozkin
Can you provide more info please, where do abstract classes come into the picture ? Sergey On 28/09/11 19:12, András Liter wrote: Thanks for the tip, it brought some hope, but it just didnt worked. The sad thing is that polimorphism doesnt work this way via CXF-DOSGI (as it does in simple

Re: DOSGI CXF inheritance question

2011-09-28 Thread András Liter
Hello Sergey, Here is the situation simplified: Let's say I have the following Java types as entities/business objects: - abstract Shape - Triangle extends Shape - Rectangle extends Shape And let's say I have the following interface implementation to expose via DOSGI-CXF public

DOSGI CXF inheritance question

2011-09-27 Thread András Liter
Hey, I bumped into the following error during a DOSGI consumer-provider call: org.apache.cxf.interceptor.Fault: Couldn't instantiate class. null. Nested exception is java.lang.InstantiationException: null As it turned out, I got this exception, because I use abstract Java classes and inheritance

Re: DOSGI CXF inheritance question

2011-09-27 Thread Sergey Beryozkin
A patch may be needed Cheers, Sergey On 27/09/11 13:45, András Liter wrote: Hey, I bumped into the following error during a DOSGI consumer-provider call: org.apache.cxf.interceptor.Fault: Couldn't instantiate class. null. Nested exception is java.lang.InstantiationException: null As it

Re: DOSGI CXF inheritance question

2011-09-27 Thread Daniel Kulp
On Tuesday, September 27, 2011 2:45:08 PM András Liter wrote: Hey, I bumped into the following error during a DOSGI consumer-provider call: org.apache.cxf.interceptor.Fault: Couldn't instantiate class. null. Nested exception is java.lang.InstantiationException: null As it turned out, I