当前位置: 代码迷 >> JBoss >> JBOSS 4.04GA 1099端口有关问题
  详细解决方案

JBOSS 4.04GA 1099端口有关问题

热度:5880   发布时间:2013-02-26 00:00:00.0
JBOSS 4.04GA 1099端口问题
我JBOSS的jboss-service.xml和jboss-minimal.xml里面的1098端口改成了1188、1099端口改成了1199,为什么我JBOSS启动的时候还会报下面的错?
javax.naming.NamingException: Could not bind statless proxy with ejb name EntityDaoImpl into JNDI under jndiName: /EntityDaoImpl/remote [Root exception is javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]]


------解决方案--------------------------------------------------------
运行这个命令行,你将会看到命令行可用的参数列表,
java -cp $jboss/bin/run.jar org.jboss.Main

里面可能会有些关于端口的参数呢。

有些配置可能直接写成固定值 1099,有些可能是用变量设置的,变量的值可以用命令行参数来设置值。