users@glassfish.java.net

javax.naming.NameNotFoundException

From: <glassfish_at_javadesktop.org>
Date: Tue, 29 Apr 2008 07:35:58 PDT

Hi,

We have two domains running on the same host. I start my client application and login I get the following error:
*****************************************************************************************************
#|2008-04-29T15:25:02.968+0200|WARNING|sun-comms-appserver1.0|javax.enterprise.system.stream.err|_ThreadID=20;_ThreadName=httpWorkerThread-15732-1;_RequestID=ece660dd-2d9b-4975-a6bd-9b634eb05f1c;|javax.naming.NameNotFoundException: com.ericsson.wong.domain.DomainService not found
        at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)
        at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
        at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:74)
        at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:111)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at com.ericsson.wong.admin.backing.application.DomainServiceBean.getDomainService(DomainServiceBean.java:21)
        at com.ericsson.wong.admin.backing.request.LoginBean.login(LoginBean.java:72)

*****************************************************************************************************

Then following the advice in :

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#cross-appserverremoteref

How do I access a Remote EJB from a stand-alone java client? Step 5.

-Dorg.omg.CORBA.ORBInitialPort=15743

15743 is the port for my orb listener.

I add this using the admin gui and under Application Server --> JVM Options I set:

-Dorg.omg.CORBA.ORBInitialPort=15743

This is the orb listener port for my server on the same host as the client. Then is restart the domain with client using:

asadmin start-domain fe

This is the:

[#|2008-04-29T16:18:55.542+0200|SEVERE|sun-comms-appserver1.0|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=10;_ThreadName=main;all interfaces;15743;_RequestID=b8b49d21-9441-4109-9344-e3b014b5c601;|"IOP00410216: (COMM_FAILURE) Unable to create IIOP listener on the specified host/port: all interfaces/15743"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3094)
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3114)
        at com.sun.corba.ee.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:181)
        at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:236)
        at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:253)
        at com.sun.corba.ee.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:127)
        at com.sun.corba.ee.impl.oa.toa.TOAImpl.<init>(TOAImpl.java:107)
        at com.sun.corba.ee.impl.oa.toa.TOAFactory.getTOA(TOAFactory.java:98)
        at com.sun.corba.ee.impl.orb.ORBImpl.connect(ORBImpl.java:1664)
        at com.sun.corba.ee.spi.presentation.rmi.StubAdapter.connect(StubAdapter.java:212)
        at com.sun.corba.ee.impl.orb.ORBImpl.getIOR(ORBImpl.java:2115)
        at com.sun.corba.ee.impl.orb.ORBImpl.getFVDCodeBaseIOR(ORBImpl.java:987)

Any hints?

cheers,

//mikael
[Message sent by forum member 'eraonel' (eraonel)]

http://forums.java.net/jive/thread.jspa?messageID=272020