Failed to start JBoss from Eclipse

I can not start JBoss version 5.1.0.GA from eclipse Indigo.

Eclipse shows me a window with the message “ JBoss v5.0 server on localhost could not start in 500 seconds. If the server needs more time, try increasing the timeout in the server editor. ', But in the console window I can see that JBoss is really running.

here is some part of the log that I see in the eclipse console window:

SecureDeploymentManager/remote - EJB3.x Default Remote Business Interface SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager - EJB3.x Remote Business Interface 15:14:20,212 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3 15:14:20,212 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName: SecureManagementView 15:14:20,222 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: SecureManagementView/remote - EJB3.x Default Remote Business Interface SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView - EJB3.x Remote Business Interface 15:14:20,252 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3 15:14:20,262 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService 15:14:20,272 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: SecureProfileService/remote - EJB3.x Default Remote Business Interface SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface 15:14:20,362 INFO [TomcatDeployment] deploy, ctxPath=/admin-console 15:14:20,412 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console' 15:14:23,486 INFO [TomcatDeployment] deploy, ctxPath=/BannedListSearch 15:14:27,532 INFO [TomcatDeployment] deploy, ctxPath=/IWorkWebApp 15:14:27,813 INFO [TomcatDeployment] deploy, ctxPath=/ 15:14:29,155 INFO [TomcatDeployment] deploy, ctxPath=/TestWebProject 15:14:30,036 INFO [TomcatDeployment] deploy, ctxPath=/displaytag-examples-1.2 15:14:30,136 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console 15:14:30,276 INFO [TomcatDeployment] deploy, ctxPath=/HelloWebService 15:14:30,407 ERROR [EngineConfigurationFactoryServlet] Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd 15:14:30,687 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8081 15:14:30,707 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 15:14:30,707 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 48s:110ms 

I increased the start of the server timeout to 500 seconds, and then I get the same error. I have not changed anything.

I can start JBoss from the command line successfully, but the same server does not start from eclipse.

Please help me start the JBoss server.

+6
source share
1 answer

The sound for me, like the http port you configured in JBoss, is different from the port you have in the Eclipse configuration for JBoss.

Eclipse uses the port configuration to listen on the JBoss port so that it can determine what JBoss really started. If they are different from each other, Eclipse believes that JBoss never started, although in fact it was in accordance with the log console. Map the ports and they are likely to work.

Updated:. According to your log, JBoss uses port 8081 for HTTP:

 Starting Coyote HTTP/1.1 on http-127.0.0.1-8081 

Now you have to tell Eclipse to listen on this port so that it can find out if JBoss is running (the default is 8080, and so Eclipse will never know about it!). Go to the server browsing page, double click on your JBoss server, and the configuration screen will appear:

enter image description here

You need to edit the HTTP port (in the "Port" field) and set it to 8081 so that it matches your server.

+13
source

Source: https://habr.com/ru/post/894807/


All Articles