Core tip: When JBoss starts in Eclipse, it prompts: ServerJBossv5 0 atlocalhostwasunabletostartwithin seconds. Iftheserver Requiresmoretime, try Increasingthetimeoutintheservereditor. The first time to see this error is due to the problem caused by the times, so the search on the Internet, you get the following solution.
When JBoss starts in Eclipse prompts:
01.Server JBoss v5.0 at localhost is unable to start within seconds. If the server is more than 02.requires, try increasing the timeout in the server editor.
First see this error is due to the problem of time, so the search on the Internet, you can get the following solution, such as the red font to specify the specific start-timeout value of the file to modify a larger number, I did not others greedy, the 50 expanded 10 times times, As a result, this error still occurs when JBoss starts 500s. 500s is not enough ... I'm a little skeptical of whether it's a matter of time. So I read the log of JBoss startup. It turns out that my suspicions are not superfluous. From the log, it turns out that the system 8009 port is occupied, shut down 8009port program, restart JBoss (Start-time still 500s), haha, start successfully. Change the start-time back to 50, still start successfully. Therefore, the real reason for the unable to start within seconds is that the port being used to start the JBoss program is occupied, and the solution is to shut down the program that occupies port8009 or modify the 8009 port that JBoss initiates.
Solution:
Modify the Workspace/.metadata/.plugins/org.eclipse.wst.server.core/servers.xml file.
01.<servers> 02.<server hostname= "localhost" id= "JBoss v5.0 at localhost" name= "JBoss v5.0 at 03.localhost" Runt Ime-id= "JBoss v5.0" server-type= "ORG.ECLIPSE.JST.SERVER.GENERIC.JBOSS5" 04.server-type-id= " Org.eclipse.jst.server.generic.jboss5 "start-timeout=" 1000 "stop-05.timeout=" timestamp= "0" > 06.<map Jndiport= "1099" key= "generic_server_instance_properties" port= "8090" 07.serveraddress= "127.0.0.1" serverConfig= " Default "/> 08.</server> 09.</servers>
Change start-timeout= "50" to start-timeout= "1000"
You can restart eclipse.