JBoss 4.2.3使用EJB启动/部署

时间:2016-05-18 09:31:18

标签: jboss

当我启动 JBoss 4.2.3 服务器时,它无法正常启动。当我尝试部署任何jar文件时,它无法部署。以下是控制台日志:

14:42:14,591 INFO  [Server] Starting JBoss (MX MicroKernel)
14:42:14,591 INFO  [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
14:42:14,601 INFO  [Server] Home Dir: C:\Users\nishat.l\Desktop\JBoss_4_2_3
14:42:14,601 INFO  [Server] Home URL:file:/C:/Users/nishat.l/Desktop/JBoss_4_2_3/
14:42:14,601 INFO  [Server] Patch URL: null
14:42:14,601 INFO  [Server] Server Name: all
14:42:14,601 INFO  [Server] Server Home Dir: C:\Users\nishat.l\Desktop\JBoss_4_2_3\server\all
14:42:14,601 INFO  [Server] Server Home URL: file:/C:/Users/nishat.l/Desktop/JBoss_4_2_3/server/all/
14:42:14,601 INFO  [Server] Server Log Dir: C:\Users\nishat.l\Desktop\JBoss_4_2_3\server\all\log
14:42:14,601 INFO  [Server] Server Temp Dir: C:\Users\nishat.l\Desktop\JBoss_4_2_3\server\all\tmp
14:42:14,601 INFO  [Server] Root Deployment Filename: jboss-service.xml
14:42:14,873 INFO  [ServerInfo] Java version: 1.8.0_20,Oracle Corporation
14:42:14,873 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 25.20-b23,Oracle Corporation
14:42:14,873 INFO  [ServerInfo] OS-System: Windows 7 6.1,amd64
14:42:15,267 INFO  [Server] Core system initialized
14:42:17,328 INFO  [WebService] Using RMI server codebase: http://localhost:8083/
14:42:17,338 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
14:42:17,719 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
14:42:17,719 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
14:42:17,969 INFO  [TransactionManagerService] Starting recovery manager
14:42:18,049 INFO  [TransactionManagerService] Recovery manager started
14:42:18,049 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
14:42:19,729 INFO  [EJB3Deployer] Starting java:comp multiplexer
14:42:22,060 WARN  [UDP] failed to join /224.0.0.75:7500 on net5: java.net.SocketException: Unrecognized Windows Sockets error: 0: no Inet4Address associated with interface
14:42:22,061 INFO  [STDOUT] 
GMS: address is 127.0.0.1:53409
14:42:24,091 INFO  [TreeCache] viewAccepted(): [127.0.0.1:53409|0] [127.0.0.1:53409]
14:42:24,095 INFO  [TreeCache] TreeCache local address is 127.0.0.1:53409
14:42:24,095 INFO  [TreeCache] State could not be retrieved (we are the first member in group)
14:42:24,095 INFO  [TreeCache] parseConfig(): PojoCacheConfig is empty
14:42:25,745 INFO  [NativeServerConfig] JBoss Web Services - Native
14:42:25,745 INFO  [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
14:42:26,370 INFO  [SnmpAgentService] SNMP agent going active
14:42:26,706 INFO  [DefaultPartition] Initializing
14:42:27,049 WARN  [UDP] failed to join /224.0.0.75:7500 on net5: java.net.SocketException: Unrecognized Windows Sockets error: 0: no Inet4Address associated with interface

2 个答案:

答案 0 :(得分:0)

你犯了一个简单的错误并记录了这里:

WARN [UDP]无法在net5上加入/224.0.0.75:7500:java.net.SocketException:无法识别的Windows套接字错误:0:没有与接口关联的Inet4Address

这意味着您已在配置文件中配置了一个IP,例如standalone.xml,它是无效的(224.0.0.75)。尝试使用命令查看您的ip:

ifconfig (For Linux)
ipconfig (For Windows)

然后抓住你的ip然后只需更改配置文件的ip。

答案 1 :(得分:0)

在Windows 10上,jboss-4.2.2.GA也遇到了同样的问题。

我设法通过使用-b开关启动服务器来使其工作:

run.bat -b 0.0.0.0