Hi all
It seem that I have a problem when I try to used the ant ejbjar task
with RMI/IIOP on an EJB which is a web services client.
First, I have a service endpoint using Axis, this endpoint use a
bean(named Address) to transfert information between client and server.
When I use the ejbjar task all is working (stub generation and
compilation).
Then I have another EJB which is the client and use axis generated
Locator. I have used WSDLJava with the generated WSDL to create the
Locator and Stubs (works perfectly). But when the ejbjar task try to add
classes to the jar, it fails. I have to use the RMI/IIOP protocol to
access my bean.
Seems that the generated Address class is the cause of the error :
[genic] error: Class org.apache.axis.AxisFault contains an invalid
argument type in method addHeader.
[genic] error: Class org.apache.axis.encoding.Serializer contains an
invalid argument type in method serialize.
[genic] error: Class Address contains an invalid return type.
[genic] GenIC fatal error:
[genic] error: Class org.objectweb.ws.ab_client_ejb.gen.Address
contains an invalid argument type in method getSerializer.
[genic] Failed when generating the Stubs and Skels with rmic iiop
[genic] error: Class org.objectweb.ws.ab_client_ejb.gen.Address
contains an invalid argument type in method getSerializer.
[genic] error: Class org.objectweb.ws.ab_client_ejb.gen.Address
contains an invalid argument type in method getSerializer.
[genic] org.objectweb.jonas_ejb.genic.GenIC error:
java.lang.reflect.InvocationTargetException
[genic] error: Class AddressBookClientDII contains an invalid return
type.
[genic] java.lang.reflect.InvocationTargetException
[genic] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[genic] error: Class
org.objectweb.ws.ab_client_ejb.beans.ab_diiclt.AddressBookClientDII
contains an invalid argument type in method getAddress.
[genic] 8 errors
[genic] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
[genic] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
[genic] Failed when generating the Stubs and Skels with rmic iiop
[genic] at java.lang.reflect.Method.invoke(Method.java:371)
[genic] at org.objectweb.jonas.server.Bootstrap.main(Unknown
Source)
[genic] Caused by: java.lang.RuntimeException: Failed when
generating the Stubs and Skels with rmic iiop
[genic] at
org.objectweb.jonas_ejb.genic.GenIC.fatalError(Unknown
Source)
[genic] at org.objectweb.jonas_ejb.genic.GenIC.main(Unknown
Source)
[genic] ... 5 more
So I'll be happy to know if someone has tried to use RMI/IIOP for a bean
which is client of a WebService with the geenrated classes of WSDLJava ?
If so maybe a solution ?
Regards
Guillaume
Note : Use of a Call Object instead of the geenrated classes don't cause
the failure.