2011-08-11 74 views
6

我無法從eclipse Indigo啓動JBoss服務器5.1.0.GA版本。無法從Eclipse內啓動JBoss

Eclipse向我展示消息框'本地主機上的服務器JBoss v5.0無法在500秒內啓動。如果服務器需要更多時間,請嘗試增加服務器編輯器中的超時時間。',但在控制檯窗口中,我可以看到JBoss已經真正啓動了。

這裏是日誌,我可以在eclipse的控制檯窗口中看到的某些部分:

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服務器。

回答

13

對我來說聽起來像您在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以便它匹配您的服務器。

+0

嗨岡薩洛加西亞,如何確保端口匹配? – Shekhar

+0

非常感謝。有效 !!! – Shekhar

+0

我遇到了同樣的問題......用這個建議解決了......非常感謝:) –