Problem with Java services accessing CORBA

I’ve been tasked with migrating some CORBA integrations from EJBs to WebMethods. I’ve been relying heavily on Java services to get the code moved over, but I’m getting an error that I suspect has to do with behind-the-scenes code generation for Java services.

/apps/webMethods71/is1/IntegrationServer/packages/ST_System_IPCommander/code/source/ST_System_IPCommander/services.java:30: reference to Object is ambiguous, both class org.omg.CORBA.Object in org.omg.CORBA and class java.lang.Object in java.lang match
static services _cast(Object o) { return (services)o; }

There is no code that looks anything like the _cast() method in my source, so it must be generated code. The WM code should be making an explicit reference to java.lang.Object to avoid ambiguities, but there is no way for me to modify what is generated.

Any ideas how to get around this problem?

Due to this problem we ended up upgrading the old Java code to run on Sun App Server 9.1, as there was apparently no way to integrate the code as Java services under WebMethods 7.1.1.