Hello,
I’m trying to call a web service using the generated XFire client from an MDB and no matter what I try I get a ClassCastException. I’m using Spring 2.0.2 and I’m not sure if that is related, although I doubt it. I’ve tried instantiating the generated client class directly and also injecting it using Spring and no matter what it’s the same exception. It is failing in the create0 method which is called from the clients constructor, here:
service0 = asf.create(
(PlaceAnOrderSoapPort.class),
props);
When I run the static main method in the generated client it runs fine, just not in the container. Of course I am not calling the static main method from the MDB. I’m using JBoss 4.0.5. Anyone have any ideas?