Solution: Download a jbosstools plug-in from jboss.org.
1. Go to javasbuilds JBoss tools 3. 2. Copy the corresponding link.
2. in eclipse, click [help]-> [install new software], paste it in the [Work with] Line in the pop-up window, and click [add] to add an update link. then select the newly added update link and select all the plug-ins.(Note that you do not only select JBoss tools)
And install it.
3. In [Window]-> [Preferences]-> [server]-[runtime environments], you can add the JBoss execution environment.
4. Create a JBoss server instance in [Window]-> [show view]-> [others]-> [servers.
A solution with 50 seconds timeout is prompted when JBoss is started in eclipse.
1. modify the startup Timeout: Eclipse 3.4.0 is used as an example. Double-click the created JBoss server in the servers window and set the start time to a greater value in the timeout option.
2. if the problem persists, the JBoss execution environment port configuration may be suspected. In some cases (for example, one machine starts multiple JBoss instances), we may need to modify the default port of JBoss in our project, according to my observation, the method of checking whether the JBoss server is started by eclipse is to check whether JBoss is bound to the port specified in the server instance. double-click the created JBoss server in the servers window. The configuration in [server properties] is the basis for eclipse to determine server startup. the default value is:
address: 127.0.0.1
port: 8080 (. \ JBoss \ Server \ port-bindings.xml)
JNDI port: 1099 (. \ JBoss \ Server \ Default \ conf \ jboss-service.xml)
server configuration: Default
corresponding runtime environment configuration file paths are marked after, modify the port value of [server properties] to the port value in the configuration file.
3. an error still occurs. You can use the command line or TCP view to check the usage of the system port. Is there any other Program occupying the preceding port, if yes, close the program.