Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java EE 综合讨论区
打印话题 寄给朋友 订阅主题 |
作者 | JBoss在Linux下,JNDI无法使用的问题,哪位大哥帮忙解决一把! |
lifangning
发贴: 98 积分: 0 |
于 2004-03-16 09:59
环境: Redhat Linux 7.3 + JBoss 3.2.3 + JDK1.4.2 启动JBoss后一切正常,部署EJB后,从Linux本地使用JNDI访问也一切正常,但从其他计算机上(Windows或Linux操作系统)使用JNDI访问时,则抛如下异常: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507) at javax.naming.InitialContext.lookup(InitialContext.java:347) at com.titan.clients.Client_101.main(Client_101.java:24) Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528) ... 3 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.<init>(Socket.java:309) at java.net.Socket.<init>(Socket.java:124) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562) ... 8 more 抛异常的地方有如下调用: Context jndiContext = getInitialContext (); Object ref = jndiContext.lookup ("ShipHomeRemote"); //该句抛异常 而同样版本的JBoss+JDK在Windows下却一切正常,可以从别的计算机访问。 请问哪位大哥曾经碰到该类问题或如何解决,忘告知。小弟感激不尽! 一个程序员的奋斗历程 |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
5119 | JBoss在Linux下,JNDI无法使用的问题,哪位大哥帮忙解决一把! | lifangning | 2117 | 2004-03-16 09:59 |
3610 | Re:JBoss在Linux下,JNDI无法使用的问题,哪位大哥帮忙解决一把! | 256456 | 95 | 2004-03-16 13:52 |
3818 | Re:JBoss在Linux下,JNDI无法使用的问题,哪位大哥帮忙解决一把! | lifangning | 109 | 2004-03-18 13:14 |
3787 | Re | lifangning | 78 | 2004-03-18 13:15 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |