无法从 Eclipse 中启动 JBoss
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7023925/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to start JBoss from within Eclipse
提问by Shekhar
I am unable to start JBoss server 5.1.0.GA version from eclipse Indigo.
我无法从 eclipse Indigo 启动 JBoss 服务器 5.1.0.GA 版本。
Eclipse shows me message box saying 'Server JBoss v5.0 at localhost was unable to start within 500 seconds. If the server requires more time, try increasing the timeout in the server editor.' but in the console window I can see that JBoss has been actually started.
Eclipse 向我显示消息框,上面写着“本地主机上的Server JBoss v5.0 无法在 500 秒内启动。如果服务器需要更多时间,请尝试在服务器编辑器中增加超时时间。' 但在控制台窗口中,我可以看到 JBoss 已实际启动。
here is some part of log which I can see in console window of eclipse :
这是我可以在 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
I have increased start Timeout of server to 500 seconds then also I am getting same error. I have not changed anything else.
我已将服务器的启动超时增加到 500 秒,然后我也遇到了同样的错误。我没有改变任何其他东西。
I am able to start JBoss from command prompt successfully but same server is not getting started from eclipse.
我能够从命令提示符成功启动 JBoss,但没有从 eclipse 启动相同的服务器。
Please help me to start the JBoss server.
请帮我启动 JBoss 服务器。
回答by Gonzalo Garcia Lasurtegui
Sound to me like the http port you are configured in JBoss is different to the port you have in the Eclipse configuration for JBoss.
在我看来,您在 JBoss 中配置的 http 端口与您在 JBoss 的 Eclipse 配置中拥有的端口不同。
Eclipse uses the port configuration to listen to JBoss' port so that it can determine that JBoss has actually started. If they differ, Eclipse thinks JBoss has never started although it actually has according to the log console. Make the ports match and it will probably work.
Eclipse 使用端口配置来监听 JBoss 的端口,以便确定 JBoss 是否真正启动。如果它们不同,则 Eclipse 认为 JBoss 从未启动,尽管它根据日志控制台实际上已经启动。使端口匹配,它可能会工作。
Updated:According to your log, JBoss is using port 8081 for HTTP:
更新:根据您的日志,JBoss 正在使用端口 8081 进行 HTTP:
Starting Coyote HTTP/1.1 on http-127.0.0.1-8081
Now you have to tell Eclipse to listen to that port so that it can figure out whether JBoss has started (default is 8080 and therefore Eclipse will never be aware of it!). Go to your servers view, double click on your JBoss server, and the configuration screen will come up:
现在您必须告诉 Eclipse 侦听该端口,以便它可以确定 JBoss 是否已启动(默认值为 8080,因此 Eclipse 永远不会知道它!)。转到您的服务器视图,双击您的 JBoss 服务器,将出现配置屏幕:
You have to edit the HTTP port (in the 'Port' box) and set it to 8081 so that it matches your server's.
您必须编辑 HTTP 端口(在“端口”框中)并将其设置为 8081,以便与您的服务器匹配。