Just an FYI, this exact same code works when using JBoss 4.0.1.
Ok, i finally figured it out. In 4.0.0, the default server runs the IIOP ORB implementation from Jacorb. In 4.0.1, the default server does not run the IIOP service. So the code was working in 4.0.1 and not in 4.0.0. In 4.0.0, if i remove the iiop-service.xml file from the server/default/deploy directory and the jacorb.jar from the server/default/lib folder and start the Jboss default server, everything works great.
Now the real question is why does the IIOP ORB implementation interfere with the Weblogic client libraries. What needs to be done to let the Jacorb implementation not interfere with the Weblogic IIOP client calls?