无法从Eclipse中启动JBoss

时间:2011-08-11 09:55:36

标签: eclipse jboss

我无法从eclipse Indigo启动JBoss服务器5.1.0.GA版本。

Eclipse向我显示消息框说'本地主机上的服务器JBoss v5.0无法在500秒内启动。如果服务器需要更多时间,请尝试在服务器编辑器中增加超时。'但在控制台窗口中我可以看到JBoss实际上已经启动。

这里是我在日食的控制台窗口中可以看到的日志的一部分:

    SecureDeploymentManager/remote - EJB3.x Default Remote Business Interface
    SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager - EJB3.x Remote Business Interface

15:14:20,212 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
15:14:20,212 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName: SecureManagementView
15:14:20,222 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

    SecureManagementView/remote - EJB3.x Default Remote Business Interface
    SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView - EJB3.x Remote Business Interface

15:14:20,252 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
15:14:20,262 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService
15:14:20,272 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

    SecureProfileService/remote - EJB3.x Default Remote Business Interface
    SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface

15:14:20,362 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console
15:14:20,412 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'
15:14:23,486 INFO  [TomcatDeployment] deploy, ctxPath=/BannedListSearch
15:14:27,532 INFO  [TomcatDeployment] deploy, ctxPath=/IWorkWebApp
15:14:27,813 INFO  [TomcatDeployment] deploy, ctxPath=/
15:14:29,155 INFO  [TomcatDeployment] deploy, ctxPath=/TestWebProject
15:14:30,036 INFO  [TomcatDeployment] deploy, ctxPath=/displaytag-examples-1.2
15:14:30,136 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
15:14:30,276 INFO  [TomcatDeployment] deploy, ctxPath=/HelloWebService
15:14:30,407 ERROR [EngineConfigurationFactoryServlet] Unable to find config file.  Creating new servlet engine config file: /WEB-INF/server-config.wsdd
15:14:30,687 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8081
15:14:30,707 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
15:14:30,707 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 48s:110ms

我已经将服务器的启动超时增加到500秒,然后我也得到了相同的错误。我没有改变任何其他事情。

我能够从命令提示符成功启动JBoss,但同样的服务器没有从eclipse启动。

请帮我启动JBoss服务器。

1 个答案:

答案 0 :(得分:14)

听起来像JBoss中配置的http端口与JBoss Eclipse配置中的端口不同。

Eclipse使用端口配置来监听JBoss的端口,以便它可以确定JBoss实际上已经启动了。如果它们不同,Eclipse认为JBoss从未启动过,尽管它根据日志控制台确实有。使端口匹配,它可能会工作。

更新:根据您的日志,JBoss使用端口8081进行HTTP:

Starting Coyote HTTP/1.1 on http-127.0.0.1-8081

现在你必须告诉Eclipse监听那个端口,以便它可以判断JBoss是否已经启动(默认为8080,因此Eclipse永远不会意识到它!)。转到服务器视图,双击JBoss服务器,然后会出现配置屏幕:

enter image description here

您必须编辑HTTP端口(在“端口”框中)并将其设置为8081,以便它与您的服务器匹配。