When using Sun's CosNaming it is necessary to use a different naming context factory from the default. CosNaming looks for the ORB in JNDI instead of using the ORB configured in
deploy/iiop-service.xml?. It is necessary to set the global context factory to
org.jboss.iiop.naming.ORBInitialContextFactory, which sets the ORB to JBoss's ORB. This is done in the
# DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING
It is also necessary to use
ORBInitialContextFactory when using CosNaming in an application client.