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:16

Remove all eclipse breakpoint in the debug view, and the jboss will quickly start.

查看更多
唯我独甜
3楼-- · 2019-02-21 10:16

I am also facing same issue, after change the port number it has worked for me.

Port number in server.xml and jboss port number should be same.

goto -> jboss-4.0.3\server\default\deploy\jbossweb-tomcat55.sar\server.xml

Connector port="9090"

goto -> Double click on server and change your port number as what you gave in server.xml

查看更多
Juvenile、少年°
4楼-- · 2019-02-21 10:18

Increasing the timeout doesn't solve the problem. Eclipse never recognizes that the server has started (not sure if that's a big deal), just irritated me. I had this problem for weeks and finally figured out that (at least for me) the host name and address had to be identical. I had hostname:localhost; address"127.0.0.1" and it would not work. I changed both to 127.0.0.1 and voila!

Like this: enter image description here

查看更多
Emotional °昔
5楼-- · 2019-02-21 10:18

Yes I had similar problem Jboss could not start from Eclipse Galileo within default 50 secs so just changed server startup time by double clicking Jboss server icon in Server window near console & error log (NOT at windows->preferences->server). It opens server editor and then increased the start up time to 300 It worked then. !!!

查看更多
做自己的国王
6楼-- · 2019-02-21 10:19

Are yoy runing on Linux? If so, check if jBoss has write privileges over /tmp ...

I had the same problem, and I fixed creating a temp directory with RW privileges to User, Group and others, and adding this line to eclipse.ini

-Djava.io.tmpdir=yourTempDirectory

where your temp directory is the absolute addres of the Temp directory that you created.

查看更多
等我变得足够好
7楼-- · 2019-02-21 10:20

Double click on the jBoss server icon in the server view. A window pops up with “Timeout” collapsed. Click on the arrow and increase the start time.

查看更多
登录 后发表回答