JBoss 服务器 7.1 未在 Eclipse Luna 中启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26199750/
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
JBoss server 7.1 not starting in Eclipse Luna
提问by Madhya Rehman
I have Eclipse Luna 4.4.1, and JBoss Server 7.1. The problem is when I start the Server, it never starts and after a long time it says Time Out Error. "JBoss is unable to start within 450 seconds".
我有 Eclipse Luna 4.4.1 和 JBoss Server 7.1。问题是当我启动服务器时,它永远不会启动,很长时间后它显示超时错误。“JBoss 无法在 450 秒内启动”。
How to resolve this issue?
如何解决这个问题?
The Console shows the following output and just hangs here for much time:
控制台显示以下输出并在此处挂起很长时间:
12:47:54,100 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
12:47:54,438 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
12:47:54,552 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
The Server never starts. I have changed the time settings but it never helps.
服务器永远不会启动。我已经更改了时间设置,但它从来没有帮助。
回答by Madhya Rehman
I solved that issue, I was using JDK version 1.8 and JBOSS 7.1, The JBOSS server always stuck on "Starting Brontes".... I have tried changing the server startup time, and settings but nothing helped.
我解决了这个问题,我使用的是 JDK 1.8 版和 JBOSS 7.1,JBOSS 服务器总是停留在“启动 Brontes”.... 我尝试更改服务器启动时间和设置,但没有任何帮助。
I then unistalled JDK 1.8, and installed JDK 1.7, and this solves my issue. JBOSS 7.1 works with JDK 1.7.. :)
然后我卸载了 JDK 1.8,并安装了 JDK 1.7,这解决了我的问题。JBOSS 7.1 适用于 JDK 1.7.. :)
And one thing more, JDK 1.8 can work with JBOSS WildFly 8...
还有一件事,JDK 1.8 可以与 JBOSS WildFly 8 一起使用……
回答by Random Guy
Compare the Java Build Path properties in your projects, maybe you mixed up the JDK versions. I faced the same problem..using different java runtime environments in server an project configuration seems not to be the best way for starting the JBoss :)
比较你项目中的Java Build Path属性,可能你混淆了JDK版本。我遇到了同样的问题..在服务器中使用不同的 java 运行时环境,项目配置似乎不是启动 JBoss 的最佳方式:)
回答by Shamitha Silva
If someone hit this problem in the future...
如果将来有人遇到这个问题......
JBoss 7.1 need Runtime JRE 1.7. Edit this under Preferences > Server > Runtime Environments > JBoss 7.1 > edit > Runtime JRE (Change to 7.1)
JBoss 7.1 需要运行时 JRE 1.7。在“首选项”>“服务器”>“运行时环境”>“JBoss 7.1”>“编辑”>“运行时 JRE”下进行编辑(更改为 7.1)
回答by Aravind
You can increase the timeout associated with server starting time as part of the server settings in Eclipse. You might also want to check if you need all the modules that JBOSS starts up as part of the startup process. 6 minutes is a long time in a development environment. Do you have lot of apps being deployed? Would you need all of them for a development environment?
您可以增加与服务器启动时间关联的超时,作为 Eclipse 中服务器设置的一部分。您可能还想检查是否需要 JBOSS 在启动过程中启动的所有模块。6 分钟在开发环境中是很长的时间。您是否正在部署大量应用程序?对于开发环境,您是否需要所有这些?
回答by Kefas
I didn't know that I can't run JBoss As 7.1 on JDK 1.8 and I had the same problem as Madhya Rehman. I've checked if jdk in project properties and jboss runtime is the same, then I set checkbox in project properties/project facets/ runtimes page/ jboss 7.1 runtime ant it seems to work.
我不知道我不能在 JDK 1.8 上运行 JBoss As 7.1,而且我遇到了与 Madhya Rehman 相同的问题。我已经检查了项目属性中的 jdk 和 jboss 运行时是否相同,然后我在项目属性/项目方面/运行时页面/ jboss 7.1 运行时 ant 中设置了复选框,它似乎可以工作。
回答by haranesh sokharaya
For eclipse:
对于日食:
- Double click on server
- Go to General information
- Change Run environment to Java 1.8
- 双击服务器
- 转到一般信息
- 将运行环境更改为 Java 1.8
And it will work fine... ;)
它会正常工作......;)
回答by Java Code
Same problem and changing the java version helped me.
同样的问题,更改 java 版本对我有帮助。
回答by Tijo George
I was trying to start the Jboss bundled with liferay server on jboss as 7.1.I also had similar issue. I changed jre from 1.8 version to 1.7 that solved my issue and server started successfully.
我试图在 jboss 上启动与 liferay 服务器捆绑的 Jboss 作为 7.1。我也有类似的问题。我将 jre 从 1.8 版本更改为 1.7,解决了我的问题并且服务器成功启动。
回答by eduardo castro
Another posible fix is to change the hostname, from 'localhost' to '127.0.0.1' in eclipse jboss server configuration pane, in the 'General Information' section
另一个可能的解决方法是在 Eclipse jboss 服务器配置窗格的“常规信息”部分中将主机名从“localhost”更改为“127.0.0.1”