Starting JBoss from Eclipse

2019-02-21 09:20发布

Staring JBoss server from within Eclipse Ganymede gives me the following problem: "Server JBoss v4.0 at localhost was unable to start within 120 seconds. If the server requires more time, try increasing the timeout in the server editor."

The console shows JBoss has started in so and so minutes but soon after, there is a pop up if the above message. I can also start the JBoss externally.

标签: eclipse jboss
20条回答
成全新的幸福
2楼-- · 2019-02-21 10:10

I had a similar problem, but it was with a Tomcat 5.5 server. The startup time was quite important, so I got this error.

To solve this problem, I did that steps: In Preferences, Server, I changed the property "Server timeout delay" to "Unlimited".

Edit:

For Eclipse Ganymede, you must do that: In the server view, double-click on your server JBoss. In the overview, you have a "Timeouts" panel (by default, it is collapsed). You can define the timeouts for server start and stop operations.

查看更多
Anthone
3楼-- · 2019-02-21 10:12

I could fix it by using Aboucabar Toure's advice: under Eclipse Indigo, I opened JBoss server properties and edited the Server Ports group to match my JBoss ports configuration (unchecking Detect from Local Runtime boxes).

Then everything worked just fine!

查看更多
冷血范
4楼-- · 2019-02-21 10:12

This also happened when you create the jboss with different server version. I was using JBoss AS 7.2.0 final but had no idea to use which server version in eclipse. I tried with WildFly but that leads to this error. With all the good tips in here didn't solve my problem. Thanks to this post i corrected that with correct version. I should have used Jboss Enterprise Application platform 6.1.

enter image description here

查看更多
对你真心纯属浪费
5楼-- · 2019-02-21 10:14

I had a similar problem. It turned out that Eclipse’s server default port was set to 8080 while my JBoss was working from 8180.

By changing the server’s configuration in Eclipse (double-click on the server and edit server property), it worked.

查看更多
狗以群分
6楼-- · 2019-02-21 10:15

I've come upon the same problem and found the explanation. For Eclipse, JBoss is expected to support the jboss-web service (tomcat.sar) which implies an HTTP port to be opened at the end of the process. In my case, as this service is disabled, no HTTP port is opened when the server is running...

Solution: simply double click on the jboss server in the Servers panel and copy the JNDI port to the Port field, in Server Properties section. This makes it.

This way, it is no more necessary to change host name to 127.0.0.1, you may let it be what you want (e.g. localhost is the default).

查看更多
Luminary・发光体
7楼-- · 2019-02-21 10:16

Try the following:-

  1. Check if the port jboss configured correctly in the general information. It is usually 8080 unless you've changed it.
  2. I use the hostname as 0.0.0.0 so that it can be accessed from other computers on the network.
  3. I had a problem where I was connected to a vpn and it was causing this issue. Shut off any vpn connections.
查看更多
登录 后发表回答