jboss下的奇怪问题!
在运行:
Properties props= System.getProperties();
InitialContext ctx = null;
try {
ctx = new InitialContext(props);
} catch (NamingException e) {
e.printStackTrace(); //To change body of catch statement use Options | File Templates.
}
Object obj = null;
try {
obj = ctx.lookup("ejb/uos/workflow/FlowServerEJB");
} catch (NamingException e) {
e.printStackTrace(); //To change body of catch statement use Options | File Templates.
}
其中lookup时出错,错误提示如下:
javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1043)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1143)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:479)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:472)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
运行环境为:win2k,jboss3.0.8,请各位高手帮助解答!
问题点数:0、回复次数:0Top




