无法在Websphere 8上查找远程EJB [英] Unable to lookup remote EJB on Websphere 8
问题描述
我已经部署了一个带有本地和远程接口的EJB,我可以在部署之后查找本地的一个OK,但是我不能与Java SE客户端进行远程访问。
EJB代码很简单:
@Local(DemoFacade.class)
@Remote(DemoFacadeRemote.class)
@Stateless
public class DemoFacadeBean implements DemoFacade
< snip>
查找代码也很简单:
属性env1 = new Properties();
env1.put(Context.INITIAL_CONTEXT_FACTORY,com.ibm.websphere.naming.WsnInitialContextFactory);
env1.put(Context.PROVIDER_URL,corbaloc:iiop:localhost:2809);
上下文initialContext;
initialContext = new InitialContext(env1);
对象ejbHome = initialContext.lookup(cell / nodes / OVLM46008QPZKQ1Node01 / servers / server1 / ejb / DemoFacadeRemote);
我也尝试了很多变体的jndi查找,但都失败了同样的错误。 >
对象ejbHome =初始化上下文.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。
完整的控制台输出(对不起输出的长度,其中一些是ommitted)。真正的错误在最后。
感谢任何建议。
************开始显示当前环境* ***********
< snip>
[26/07/2011 15:49:32:122 EST] 00000000 com.ibm.ws.naming.ipbase.NameSpace> lookUpRootContext条目
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退出
javax.naming.NameNotFoundException:找不到根上下文。
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.jcache.Cache 3 lookup
NamingException:javax.naming.NameNotFoundException:找不到根上下文。
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.jcache.Cache<查询退出
抛出CacheEntryNotFoundException:com.ibm.ws.naming.jcache.CacheEntryNotFoundException:缓存中未找到条目IIOP_DEFAULT_ROOT。 [根异常是javax.naming.NameNotFoundException:找不到根语言]
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory> getRootJndiContext条目
[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>暂停条目
[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退出
com.ibm.ws.uow.ClientUOWManagerImpl@fffdb786
[26/07/2011 15:49:32:128 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil 3暂停
当前交易暂停
[26/07/2011 15:49:32:128 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil<暂停退出
[26/07/2011 15:49:32:129 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory> getRootContextFromServer Entry
wsnObjectUrl = corbaloc:iiop:1.0@ovlm46008qpzkq1.oakton.com.au:2809 / WsnNameService
objectUrl = corbaloc:iiop:1.0@ovlm46008qpzkq1.oakton.com.au:2809 / NameService
[26/07/2011 15:49:32:129 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory> getWsnNameService Entry
objectUrl = corbaloc:iiop:1.0@ovlm46008qpzkq1.oakton.com.au:2809 / WsnNameService
[26/07/2011 15:49:32:130 EST] 00000000 com.ibm.ws .naming.util.WsnInitCtxFactory 3 getWsnNameService
尝试使用URL corbaloc连接到名称服务器:iiop:1.0@ovlm46008qpzkq1.oakton.com.au:2809 / WsnNameService
[26/07/2011 15:49 :32:130 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory> stringToObject条目
string = corbaloc:iiop:1.0@ovlm46008qpzkq1.oakton.com.au:2809 / WsnNameService
[26/07/2011 15:49:32:137 EST] 00000000 er.router.selection .WLMClientForCommonRouterImpl>初始化条目
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3版本:
1.30
[26/07 / 2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR> getWLMIOR条目
[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版本:
1.2
[26/07/2011 15 :49:32:147 EST] 00000000 com.ibm.ws.cluster.topography.KeyRepositoryImpl 3版本:
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<初始化 - getWLMIOR返回null退出
[26/07/2011 15:49:32:192 EST] 00000000 er.router.selection.WLMClientForCommonRouterImpl>初始化条目
[26/07/2011 15:49:32:192 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR> getWLMIOR条目
[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<初始化 - getWLMIOR返回null退出
[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条目
[26/07/2011 15:49:32:217 EST] 00000000 com.ibm.ws.ffdc.FFDCFilter 3 FFDC异常:org.omg.CORBA.TRANSIENT:java.net .ConnectException:connect:本地机器上的地址无效,或端口在远程机器上无效:host = OVLM46008QPZKQ1.oakton.com.au,port = 0 vmcid:IBM次要代码:E02已完成:否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 /命名/ 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异常:org.omg.CORBA.TRANSIENT:初始化和转发IOR无法访问vmcid:IBM次要代码:E07完成:否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:初始和转发IOR无法访问vmcid:IBM次要代码:E07已完成:com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)中的
$ com
com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342 )
在com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
在com.ibm.CORBA.iiop.ClientDelegate.createRequest( ClientDelegate.java:1308)
在com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
在com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java: 1264)
在org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
在com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
在com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
在com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
在com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
在com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx。 java:164)
在com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
在javax.naming.InitialContext.lookup(InitialContext.java:431)
at com.oakton.MainTest.main(MainTest.java:20)
导致:java.net.ConnectException:connect:本地机器上的地址无效,或端口在远程机器上无效
在java.net.PlainSocketImpl.socketConnect(本机方法)
在java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
在java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245 )
在java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
在java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
在java.net.Socket。 connect(Socket.java:539)
在com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
在com.ibm.CORBA.transport.TransportConnectionBase.connect( TransportConnectionBase.java:354)
在com.ibm.ws.orbimpl。 transport.WSTransport.getConnection(WSTransport.java:436)
在com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
在com.ibm.rmi.iiop.TransportManager。 get(TransportManager.java:89)
在com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
在com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl。 java:219)
在com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
在com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
在com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
在com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
... 17更多
[26/07/2011 15:49:32:239 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory< mergeWsnNSProperties退出
javax.naming.NamingException:获取WsnNameService属性时出错[根异常是org.omg.CORBA.TRANSIENT:初始和转发IOR无法访问vmcid:IBM次要代码:E07已完成:否]
at com .ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
at com .ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
at com .ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
在com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
at com .ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
在com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
a t javax.naming.InitialContext.lookup(InitialContext.java:431)
在com.oakton.MainTest.main(MainTest.java:20)
导致:org.omg.CORBA.TRANSIENT:initial并转发IOR不可访问的vmcid:IBM次要代码:E07完成:com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)上的
$ com
在com.ibm.CORBA.iiop。 ClientDelegate.createRequest(ClientDelegate.java:1342)
在com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
在com.ibm.CORBA.iiop.ClientDelegate.createRequest( ClientDelegate.java:1308)
在com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
在com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java: 1264)
在org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
在com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
在com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFa ctory.java:1547)
... 9更多
引起的:java.net.ConnectException:connect:本地机器上的地址无效,或端口在远程机器上无效
java.net.PlainSocketImpl.socketConnect(Native Method)
在java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
在java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
在java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
在java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
在java.net.Socket.connect( Socket.java:539)
在com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
在com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase。 java:354)
在com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
在com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java: 187)
在com.ibm.rmi.iiop .TransportManager.get(TransportManager.java:89)
在com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
在com.ibm.rmi.iiop.GIOPImpl.locate (GIOPImpl.java:219)
在com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
在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更多
[26/07/2011 15:49:32:240 EST] 00000000 com.ibm.ws.ffdc.FFDCFilter 3 FFDC异常:javax.naming.NamingException获取WsnNameService属性时出错[根异常是org.omg.CORBA.TRANSIENT:初始化和转发IOR不可访问vmcid:IBM次要代码:E07已完成:否] com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext 963
[26/07/2011 15:49:32:240 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFact ory getRootJndiContext
FFDC:sourceId = com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext,probeId = 963
javax.naming.NamingException:获取WsnNameService属性时出错[根异常是org.omg.CORBA .TRANSIENT:初始化和转发IOR无法访问vmcid:IBM次要代码:E07完成:否]
在com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
at com .ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
at com .ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
在com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
at com .ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
在com.ibm.ws.na ming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
在com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
在javax.naming.InitialContext。 lookup(InitialContext.java:431)
在com.oakton.MainTest.main(MainTest.java:20)
引起的:org.omg.CORBA.TRANSIENT:初始化和转发IOR无法访问vmcid:IBM次要代码:E07完成:com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)中的
$ com
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)
在com.ibm.WsnBootstrap._WsnNameServiceS tub.getProperties(_WsnNameServiceStub.java:38)
在com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
... 9更多
导致:java.net.ConnectException:connect:本地机器上的地址无效,或端口在远程机器上无效
(java.net.PlainSocketImpl.socketConnect(Native Method))
java.net.PlainSocketImpl .doConnect(PlainSocketImpl.java:383)
在java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
在java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
在java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
在java.net.Socket.connect(Socket.java:539)
在com.ibm.ws.orbimpl.transport。 WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
在com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
在com.ibm.ws.orbimpl.transport.WSTransport。的getConnection(WSTra nsport.java:436)
在com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
在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)
在com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
... 17更多
[26/07/2011 15:49:32:242 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory 3 getRootJndiContext
无法使用URL连接到名称服务器corbaloc: iiop:1.0@ovlm46008qpzkq1.oakton.com.au:2809 / NameService
[26/07/2011 15:49:32:245 EST] 00000000 com.ibm.ws.ffdc。 FFDCFilter 3 FFDC异常:javax.naming.NamingException:NMSV0602E:命名服务不可用。发生通信错误。 [根异常是javax.naming.NamingException:获取WsnNameService属性时出错[根异常是org.omg.CORBA.TRANSIENT:初始和转发IOR不可访问vmcid:IBM次要代码:E07已完成:否]] 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:命名服务不可用。发生通信错误。 [根异常是javax.naming.NamingException:获取WsnNameService属性时出错[根异常是org.omg.CORBA.TRANSIENT:初始和转发IOR无法访问vmcid:IBM次要代码:E07已完成:否]]
在com。 ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:979)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
在com。 ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
在com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
在com。 ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
在com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
在javax。 naming.InitialContext.lookup(InitialContext.java:431)
在com.oakton.MainTest.main(MainTest.java:20)
导致:javax.naming.NamingException:获取WsnNameService属性时出错[Root例外是org.omg.CORBA.TRANSIENT:initial并转发IOR不可访问的vmcid:IBM次要代码:E07完成:否]
在com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
在com.ibm.ws .naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
... 7更多
导致:org.omg.CORBA.TRANSIENT:初始化和转发IOR无法访问vmcid:IBM次要代码:E07已完成:否
在com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java: 1274)
在com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
在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.req uest(ClientDelegate.java:1264)
在org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
在com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java: 38)
在com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
... 9更多
引起的:java.net.ConnectException:connect :地址在本地计算机上无效,或端口在远程计算机上无效
在java.net.PlainSocketImpl.socketConnect(本机方法)
在java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383 )
在java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
在java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
在java.net.SocksSocketImpl。 connect(SocksSocketImpl.java:377)
在java.net.Socket.connect(Socket.java:539)
at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java: 295)
在com.ib m.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
在com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
在com.ibm。 CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
在com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
在com.ibm.rmi.iiop。 GIOPImpl.getConnection(GIOPImpl.java:130)
在com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
在com.ibm.rmi.corba.ClientDelegate.locate( ClientDelegate.java:1981)
在com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
在com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java: 1184)
在com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
... 17更多
[26/07/2011 15: 49:32:247 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil>简历条目
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
无交易恢复
[26/07/2011 15:49:32:248 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil<恢复退出
javax.naming.NamingException:获取WsnNameService属性时出错[根异常是org.omg.CORBA.TRANSIENT:初始化和转发IOR无法访问vmcid:IBM次要代码:E07已完成:否]
at com .ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
at com .ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
at com .ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
在com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
at com .ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
在com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
在javax .naming.InitialContext.lookup(InitialCont ext.java:431)
在com.oakton.MainTest.main(MainTest.java:20)
导致:org.omg.CORBA.TRANSIENT:初始和转发IOR无法访问vmcid:IBM次要代码:E07已完成:com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)中的
$ com
com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342 )
在com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
在com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
在com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
在com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
在org。 omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
在com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
在com.ibm.ws.naming。 util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
... 9更多
导致通过:java.net.ConnectException:connect:本地机器上的地址无效,或端口在远程计算机上无效$ java.sql.PlainSocketImpl.socketConnect(Native Method)上的
java.net上的
。 PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
在java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
在java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
在java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
在java.net.Socket.connect(Socket.java:539)
在com.ibm.ws.orbimpl.transport .WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
在com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
在com.ibm.ws.orbimpl.transport.WSTransport .getConnection(WSTransport.java:436)
在com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
在com.ibm.rmi.iiop.TransportManager.get(TransportManager的.java:89)
在com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
在com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
在com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
在com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
在com.ibm .rar b
我遇到这样的事情,并添加了这两个参数: / p>
-Dcom.ibm.SSL.ConfigURL = file:$ profile_root / properties / ssl.client.props
-Dcom.ibm.CORBA.ConfigURL = file:$ profile_root / properties / sas.client.props
您可能还需要设置这些参数或在sas中进行硬编码.client.props,我注意到,如果我没有包括t,提示会保持超时等待登录凭据
-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侦听器端口。
希望有效!
I have deployed an EJB with local and remote interfaces, and I can lookup the local one OK after deployment, but I'm not able to to do with the remote, from a Java SE client.
The EJB code is simple:
@Local(DemoFacade.class)
@Remote(DemoFacadeRemote.class)
@Stateless
public class DemoFacadeBean implements DemoFacade
<snip>
The lookup code is also simple:
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");
I also tried many variations of the jndi lookup, but all fails with the same error.
Object ejbHome = initialContext.lookup("cell/nodes/OVLM46008QPZKQ1Node01/servers/server1/java:global/WebSphereDemo/WebSphereDemoEJB/DemoFacadeBean!com.test.DemoFacadeRemote");
I have added the following arguments to help debug:
-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
The classpath is set to all jars of the websphere/lib folder.
The full console output is (sorry by the length of the output, some of it is ommitted). Real error at the very end. thanks for any suggestions.
************ 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:1.0@ovlm46008qpzkq1.oakton.com.au:2809/WsnNameService
objectUrl=corbaloc:iiop:1.0@ovlm46008qpzkq1.oakton.com.au:2809/NameService
[26/07/2011 15:49:32:129 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory > getWsnNameService Entry
objectUrl=corbaloc:iiop:1.0@ovlm46008qpzkq1.oakton.com.au: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:1.0@ovlm46008qpzkq1.oakton.com.au:2809/WsnNameService
[26/07/2011 15:49:32:130 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory > stringToObject Entry
string=corbaloc:iiop:1.0@ovlm46008qpzkq1.oakton.com.au: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:1.0@ovlm46008qpzkq1.oakton.com.au: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
I came across something like this and adding these two params helped:
-Dcom.ibm.SSL.ConfigURL=file:$profile_root/properties/ssl.client.props
-Dcom.ibm.CORBA.ConfigURL=file:$profile_root/properties/sas.client.props
You may also have to set these params too or hardcode them in sas.client.props, I noticed that the prompt kept timing out waiting for login credentials if I did not include these ones.
-Dcom.ibm.CORBA.loginUserid=${WasUserid}
-Dcom.ibm.CORBA.loginPassword=${WasPassword}
-Dcom.ibm.CORBA.loginSource=properties
just noticed that my listener address / url format is different too: -Djava.naming.provider.url=iiop://localhost:${ORB_LISTENER_ADDRESS} . You can find the orb listener port in config/cells//nodes//serverindex.xml .
Hope that works!
这篇关于无法在Websphere 8上查找远程EJB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!