无法在 Websphere 8 上查找远程 EJB

2024-02-07

我已经部署了一个具有本地和远程接口的 EJB,部署后我可以正常查找本地 EJB,但我无法从 Java SE 客户端处理远程。

EJB代码很简单:

@Local(DemoFacade.class)
@Remote(DemoFacadeRemote.class)
@Stateless
public class DemoFacadeBean implements DemoFacade
<snip>

查找代码也很简单:

Properties env1 = new Properties();
env1.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env1.put(Context.PROVIDER_URL, "corbaloc:iiop:localhost:2809");
Context initialContext;

initialContext = new InitialContext(env1);
Object ejbHome =  initialContext.lookup("cell/nodes/OVLM46008QPZKQ1Node01/servers/server1/ejb/DemoFacadeRemote");

我还尝试了 jndi 查找的许多变体,但都失败并出现相同的错误。

Object ejbHome = initialContext.lookup("cell/nodes/OVLM46008QPZKQ1Node01/servers/server1/java:global/WebSphereDemo/WebSphereDemoEJB/DemoFacadeBean!com.test.DemoFacadeRemote");

我添加了以下参数来帮助调试:

-Dcom.ibm.CORBA.Debug=true -Dcom.ibm.CORBA.CommTrace=true -Dcom.ibm.CORBA.Debug.Output=c:/temp/client.log -Dcom.ibm.ejs.ras.lite.traceSpecification=*=all -Djava.endorsed.dirs=C:/data/workspace/WebSphereDemoEJBTest/lib/websphereclient/eee

类路径设置为 websphere/lib 文件夹中的所有 jar。

完整的控制台输出是(抱歉输出的长度,其中一些被省略)。真正的错误在最后。 感谢您的任何建议。

************ Start Display Current Environment ************
<snip>

[26/07/2011 15:49:32:122 EST] 00000000 com.ibm.ws.naming.ipbase.NameSpace               >  lookUpRootContext Entry 
                                 bindingName=IIOP_DEFAULT_ROOT
                                 rootBindingData=com.ibm.ws.naming.ipbase.BindingsTableData@fffd6386
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.ipbase.NameSpace               <  lookUpRootContext Exit 
                                 javax.naming.NameNotFoundException: Root context not found.
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.jcache.Cache                   3   lookup 
                                 NamingException: javax.naming.NameNotFoundException: Root context not found.
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.jcache.Cache                   <  lookup Exit 
                                 Throwing CacheEntryNotFoundException: com.ibm.ws.naming.jcache.CacheEntryNotFoundException: Entry "IIOP_DEFAULT_ROOT" not found in cache. [Root exception is javax.naming.NameNotFoundException: Root context not found.]
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory         >  getRootJndiContext Entry
[26/07/2011 15:49:32:124 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil           3   SOURCE CODE INFO: SERV1/ws/code/naming.client/src/com/ibm/ws/naming/util/TransactionUtil.java, WAS.naming.client, WAS80.SERV1, m1116.12, ver. 1.5
[26/07/2011 15:49:32:124 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil           >  suspend Entry
[26/07/2011 15:49:32:127 EST] 00000000 com.ibm.ws.uow.UOWManagerFactory                 >  getUOWManager Entry
[26/07/2011 15:49:32:128 EST] 00000000 com.ibm.ws.uow.UOWManagerFactory                 <  getUOWManager Exit 
                                 com.ibm.ws.uow.ClientUOWManagerImpl@fffdb786
[26/07/2011 15:49:32:128 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil           3   suspend 
                                 current transaction suspended
[26/07/2011 15:49:32:128 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil           <  suspend Exit
[26/07/2011 15:49:32:129 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory         >  getRootContextFromServer Entry 
                                 wsnObjectUrl=corbaloc:iiop:[email protected] /cdn-cgi/l/email-protection:2809/WsnNameService
                                 objectUrl=corbaloc:iiop:[email protected] /cdn-cgi/l/email-protection:2809/NameService
[26/07/2011 15:49:32:129 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory         >  getWsnNameService Entry 
                                 objectUrl=corbaloc:iiop:[email protected] /cdn-cgi/l/email-protection:2809/WsnNameService
[26/07/2011 15:49:32:130 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory         3   getWsnNameService 
                                 Attempting to connect to name server using URL corbaloc:iiop:[email protected] /cdn-cgi/l/email-protection:2809/WsnNameService
[26/07/2011 15:49:32:130 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory         >  stringToObject Entry 
                                 string=corbaloc:iiop:[email protected] /cdn-cgi/l/email-protection:2809/WsnNameService
[26/07/2011 15:49:32:137 EST] 00000000 er.router.selection.WLMClientForCommonRouterImpl >  initialize Entry
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   version :  
                                 1.30 
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              >  getWLMIOR Entry
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   getWLMIOR - typeid= 
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   getWLMIOR - host= ovlm46008qpzkq1.oakton.com.au
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   getWLMIOR - port= 2809
[26/07/2011 15:49:32:139 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   getWLMIOR - objectKey= 0x57736e4e616d6553657276696365
[26/07/2011 15:49:32:139 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   getWLMIOR - taggedcomponent= [Lcom.ibm.rmi.Profile$TaggedComponent;@fffde943
[26/07/2011 15:49:32:143 EST] 00000000 ebsphere.cluster.topography.KeyRepositoryFactory 3   version :  
                                 1.2 
[26/07/2011 15:49:32:147 EST] 00000000 com.ibm.ws.cluster.topography.KeyRepositoryImpl  3   version :  
                                 1.15 
[26/07/2011 15:49:32:147 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   component_data
[26/07/2011 15:49:32:147 EST] 00000000 er.router.selection.WLMClientForCommonRouterImpl <  initialize - getWLMIOR returned a null Exit
[26/07/2011 15:49:32:192 EST] 00000000 er.router.selection.WLMClientForCommonRouterImpl >  initialize Entry
[26/07/2011 15:49:32:192 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              >  getWLMIOR Entry
[26/07/2011 15:49:32:192 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   getWLMIOR - typeid= IDL:com.ibm/WsnBootstrap/WsnNameService:1.0
[26/07/2011 15:49:32:192 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   getWLMIOR - host= OVLM46008QPZKQ1.oakton.com.au
[26/07/2011 15:49:32:192 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   getWLMIOR - port= 0
[26/07/2011 15:49:32:193 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   getWLMIOR - objectKey= 0x4a4d4249000000104773e3aa0000000000000000000000000000000000000024000000080000000000000000
[26/07/2011 15:49:32:193 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   getWLMIOR - taggedcomponent= [Lcom.ibm.rmi.Profile$TaggedComponent;@fffc731f
[26/07/2011 15:49:32:193 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR              3   component_data
[26/07/2011 15:49:32:193 EST] 00000000 er.router.selection.WLMClientForCommonRouterImpl <  initialize - getWLMIOR returned a null Exit
[26/07/2011 15:49:32:198 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory         <  stringToObject Exit 

[26/07/2011 15:49:32:200 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory         <  getWsnNameService Exit 

[26/07/2011 15:49:32:202 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory         >  mergeWsnNSProperties Entry 

[26/07/2011 15:49:32:217 EST] 00000000 com.ibm.ws.ffdc.FFDCFilter                       3   FFDC exception: org.omg.CORBA.TRANSIENT: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine:host=OVLM46008QPZKQ1.oakton.com.au,port=0  vmcid: IBM  minor code: E02  completed: No com.ibm.ws.orbimpl.transport.WSTransport.getConnection 448
[26/07/2011 15:49:32:237 EST] 00000000 com.ibm.ws.naming.util.RasUtil                   3   SOURCE CODE INFO: SERV1/ws/code/naming/src/com/ibm/ws/naming/util/RasUtil.java, WAS.naming, WAS80.SERV1, m1116.12, ver. 1.2
[26/07/2011 15:49:32:238 EST] 00000000 com.ibm.ws.ffdc.FFDCFilter                       3   FFDC exception: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties 1549
[26/07/2011 15:49:32:238 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory           mergeWsnNSProperties 
                                 FFDC: sourceId=com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties, probeId=1549
                                 org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
    at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
    at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
    at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
    at javax.naming.InitialContext.lookup(InitialContext.java:431)
    at com.oakton.MainTest.main(MainTest.java:20)
Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
    at java.net.Socket.connect(Socket.java:539)
    at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
    at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
    at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
    at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
    at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
    at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
    at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
    at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
    at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
    ... 17 more

[26/07/2011 15:49:32:239 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory         <  mergeWsnNSProperties Exit 
                                 javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No]
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
    at javax.naming.InitialContext.lookup(InitialContext.java:431)
    at com.oakton.MainTest.main(MainTest.java:20)
Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
    at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
    at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
    at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
    ... 9 more
Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
    at java.net.Socket.connect(Socket.java:539)
    at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
    at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
    at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
    at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
    at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
    at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
    at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
    at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
    at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
    ... 17 more

[26/07/2011 15:49:32:240 EST] 00000000 com.ibm.ws.ffdc.FFDCFilter                       3   FFDC exception: javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No] com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext 963
[26/07/2011 15:49:32:240 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory           getRootJndiContext 
                                 FFDC: sourceId=com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext, probeId=963
                                 javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No]
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
    at javax.naming.InitialContext.lookup(InitialContext.java:431)
    at com.oakton.MainTest.main(MainTest.java:20)
Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
    at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
    at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
    at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
    ... 9 more
Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
    at java.net.Socket.connect(Socket.java:539)
    at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
    at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
    at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
    at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
    at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
    at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
    at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
    at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
    at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
    ... 17 more

[26/07/2011 15:49:32:242 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory         3   getRootJndiContext 
                                 Could not connect to name server using URL corbaloc:iiop:[email protected] /cdn-cgi/l/email-protection:2809/NameService
[26/07/2011 15:49:32:245 EST] 00000000 com.ibm.ws.ffdc.FFDCFilter                       3   FFDC exception: javax.naming.NamingException: NMSV0602E: Naming Service unavailable. A communications error occurred. [Root exception is javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No]] com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext 886
[26/07/2011 15:49:32:247 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory           getRootJndiContext 
                                 FFDC: sourceId=com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext, probeId=886
                                 javax.naming.NamingException: NMSV0602E: Naming Service unavailable. A communications error occurred. [Root exception is javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No]]
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:979)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
    at javax.naming.InitialContext.lookup(InitialContext.java:431)
    at com.oakton.MainTest.main(MainTest.java:20)
Caused by: javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No]
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
    ... 7 more
Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
    at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
    at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
    at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
    ... 9 more
Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
    at java.net.Socket.connect(Socket.java:539)
    at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
    at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
    at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
    at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
    at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
    at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
    at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
    at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
    at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
    ... 17 more

[26/07/2011 15:49:32:247 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil           >  resume Entry 
                                 wrapper=com.ibm.ws.naming.util.TransactionUtil$TransactionWrapper@fffae2a9[_manager=com.ibm.ws.uow.ClientUOWManagerImpl@fffdb786, _token=null]
[26/07/2011 15:49:32:248 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil           3   resume 
                                 no transaction to resume
[26/07/2011 15:49:32:248 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil           <  resume Exit
javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No]
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
    at javax.naming.InitialContext.lookup(InitialContext.java:431)
    at com.oakton.MainTest.main(MainTest.java:20)
Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
    at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
    at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
    at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
    ... 9 more
Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
    at java.net.Socket.connect(Socket.java:539)
    at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
    at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
    at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
    at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
    at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
    at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
    at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
    at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
    at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
    ... 17 more

我遇到过这样的事情,添加这两个参数有帮助:

-Dcom.ibm.SSL.ConfigURL=文件:$profile_root/properties/ssl.client.props

-Dcom.ibm.CORBA.ConfigURL=文件:$profile_root/properties/sas.client.props

您可能还必须设置这些参数或在 sas.client.props 中对它们进行硬编码,我注意到如果我不包含这些参数,提示会一直超时等待登录凭据。

-Dcom.ibm.CORBA.loginUserid=${WasUserid}

-Dcom.ibm.CORBA.loginPassword=${WasPassword}

-Dcom.ibm.CORBA.loginSource=属性

刚刚注意到我的监听器地址/url 格式也不同: -Djava.naming.provider.url=iiop://localhost:${ORB_LISTENER_ADDRESS} 。您可以在 config/cells//nodes//serverindex.xml 中找到 orb 侦听器端口。

希望有效!

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

无法在 Websphere 8 上查找远程 EJB 的相关文章

随机推荐

  • 通过 JNI 高效传递大型 C 结构

    我有一个大型 C 结构 大约 40 个成员 int 和 char 我必须将其通过 JNI 传递到 Java 端以进行进一步处理 这种情况反复发生 我已经把GetMethodID 等进入init 函数在 C 端 所以我只需调用它们一次 什么是
  • 带重音符号的 MailMessage 附件文件名

    我正在尝试发送带有附加 Excel 文件名的 HTML 电子邮件 一切都运行良好 直到我需要发送附件名称包含重音字母的邮件 我尝试过的每个解决方法都惨败 原始代码 var attachment new Attachment new Memo
  • Java 浮点除法的显式类型转换

    我不确定选项 4 除法 中的浮点除法是否使用显式类型转换 我需要一些帮助来理解什么是浮点除法 我必须使用整数来存储 2 个操作数 使用双精度数来存储结果 您必须对选项 4 中的浮点除法使用显式类型转换 还可以使用 switch 语句来处理菜
  • 如何从 Asp.Net Core 视图组件返回错误的 HTTP 状态代码

    我试图从 Asp Net Core 中的视图组件返回 HTTP 500 或 BadRequest 结果 但是此返回类型似乎不适用于视图组件 状态代码返回类型是否可用于视图组件 或者我的设计是否错误 我正在通过 ajax 调用我的控制器操作
  • 将 VLOOKUP 结果连接到 Google 表格中的一个字符串中

    我的 Google 电子表格有以下任务 在某个 id 右侧的所有单元格中加入字符串 用不同的方式表述 SELECT A JOIN B GROUP BY A WHERE A myid 如果 JOIN 是一个聚合函数 或者换句话说 JOIN V
  • C++ 在循环中实例化模板

    我有一个工厂类 它需要实例化几个带有连续模板参数的模板 这些模板参数是简单的整数 如何在不展开整个循环的情况下实例化此类模板函数 唯一能想到的就是使用boost预处理器 您能推荐其他不依赖于预处理器的东西吗 thanks 模板参数必须是编译
  • 如何从命令行启用“std=c++0x”?

    我试图生成遵循离散分布的随机数 并找到了此链接 http www cplusplus com reference random discrete distribution http www cplusplus com reference r
  • 如何从列表视图上的所选项目中提取文本

    我有一个包含一些项目的列表视图 我想从所选项目中获取文本 这是我的列表适配器和 onItemClickListener ListView lv ListView findViewById R id listView1 lv setAdapt
  • 异常消息是在数据上下文类型上有一个顶级 IQueryable 属性,其元素类型不是实体类型

    我正在构建一个托管在 IIS 7 中的 WCFDataService 我将使用 Reflection Provider 作为数据源提供程序 如果我将实体类型定义保留在定义服务的同一程序集中 我的项目可以工作 但如果我将实体类型移动到另一个引
  • iOS应用程序需要arm64吗?

    我将我的应用程序上传到 Xcode 其中显示构建需要 arm64 这不包括 iPhone 5 5c 及更低版本使用该应用程序 但是 我希望 iPhone 5 5c 能够使用该应用程序 并且一定错误地要求了 arm64 我认为它一定是 inf
  • 如何使应用程序受 Outlook 信任

    我创建了一个正在阅读 Outlook 邮件的应用程序 但是当用户在系统中安装该应用程序并运行它时 Outlook 中会弹出 某些外部应用程序想要访问您的 Outlook 您要授予访问权限吗 如何使我的应用程序受 Outlook 信任 一种方
  • 我应该在渲染到 HTML5 画布之前剔除元素还是让画布剔除

    我应该在调用画布绘制方法之前剔除元素还是让画布处理剔除 我应该实现如下逻辑 if circle x circle radius gt 0 circle x circle radius
  • 准备好的语句删除前导零[关闭]

    Closed 这个问题需要细节或清晰度 help closed questions 目前不接受答案 我试图在我的数据库中输入一个电话号码 该列设置为 varchar 15 并且在 phpMyAdmin 中它将接受一个以 0 开头的电话号码
  • C 中管道命令的问题

    我正在尝试用 C 语言为 Unix 创建一个简单的 shell 我已经能够完成所有命令的解析和执行 但我遇到了管道问题 我认为问题在于我没有连接到正确的管道来输入第二个命令 例如 如果我输入 ls wc 它会在 wc 命令之后暂停 我认为这
  • AndroidJUnit4.class + org.junit.Assume.assumeTrue = AsclusionViolatedException

    我已经成功地将我的 Android 项目转换为 JUnit4 当然我想要这样做的主要原因是不起作用 如果有人在这里有想法 我会很乐意提供帮助 我试图解决的问题是 如果构建未指向登台服务器 我想自动跳过某些测试 我已经设置了这个BUILD T
  • 错误未定义对“std::__ndk1::locale::~locale()”的引用

    我在使用编译代码时遇到问题适用于 Android 的提升 https github com moritz wundke Boost for Android使用 Android Studio ndk 我正在使用 boost 中的 libboo
  • 如何读取和更改 xml 树枝中的 标签和

    我是 xml twig 的新手 如何阅读和更改 and 我如何修改这个标签 因为我不知道如何在 xml Twig 中读取和更改这个标签 我的输入
  • 未找到 Html 帮助程序扩展

    我正在使用 ASP net MVC 的发行版 并且似乎经常遇到此错误 System Web Mvc HtmlHelper does not contain a definition for RenderPartial and no exte
  • scp 失败并显示“协议错误:文件名与请求不匹配”

    我有一个使用 SCP 从 AWS 上的远程 Linux 主机提取文件的脚本 每晚运行相同的代码大约 6 个月没有出现问题后 今天开始失败protocol error filename does not match request 我在下面一
  • 无法在 Websphere 8 上查找远程 EJB

    我已经部署了一个具有本地和远程接口的 EJB 部署后我可以正常查找本地 EJB 但我无法从 Java SE 客户端处理远程 EJB代码很简单 Local DemoFacade class Remote DemoFacadeRemote cl