I wrote:
> I added @XmlSeeAlso(MathHelper.class) to MathHelperImpl and vice versa
> with no success.
>
> And i tried to set the osgi.remote.interfaces-property to
> "passobject.interfaces.PassObject" instead of "*" on the remote service
> and in the OSGI-INF/remote-service/*.xml-file. Unfortunately this didn't
> change nything, too. (Did you mean this by "You may need to limit the
> support for PathObject interface only"?)
>
> But I tried something different. Instead of using the interface type
> MathHelper to declare the method argument, I directly used MathHelperImpl.
> The remote service interface now looks like this:
>
> public interface PassObject {
> public void passAnObject(MathHelperImpl helper);
> // instead of: public void passAnObject(MathHelper helper);
> }
>
> Moreover I moved the package containing MathHelperImpl into the interface
> bundle (PassObjectInterface) which is installed on the server and the
> client.
I did this (moving the package), too, when trying the above
@XmlSeeAlso(MathHelper.class) stuff.
> Now it works with both JAXB and Aegis. Well, Aegis complains about a
> missing setter (as you already suggested), which I had to add to get it
> working.
>
> Thus the problem are arguments in a remote service, which are of an
> interface type. Somehow DOSGi can't resolve their type or sth like that.
The full code is on <http://ul.to/irbmwm>.
Saul