File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes  Jboss server in eclipse is not starting withing 400 seconds Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark " Jboss server in eclipse is not starting withing 400 seconds" Watch " Jboss server in eclipse is not starting withing 400 seconds" New topic
Author

Jboss server in eclipse is not starting withing 400 seconds

Harshani Wickramarathna
Greenhorn

Joined: Nov 15, 2007
Posts: 28

Hi,
My Jboss server is not starting in eclipse. It throws the following error and stops.
error: Server JBoss v4.2 at localhost was unable to start within 400 seconds. If the server requires more time, try increasing the timeout in the server editor.
[color=red]


I'm using jboss-4.2.2.GA and eclipse3.4 ganymede. My Os is Windows XP

Thanks and regards,
Harshani
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

1) Did you change the ports that JBoss AS is using?
2) Have you secured the JMX invoker?
(Eclipse uses the JNDI and JMX ports to communicate with JBoss AS to determine if it has started.)

3) If you run JBoss AS manually, does it start correctly?
4) Did JBoss AS actually start within Eclipse? You can test this by opening a browser and entering http://localhost:8080 (assuming you didn't change the http port)


JBoss In Action
Sakthi Ramasamy
Greenhorn

Joined: Jun 02, 2008
Posts: 17
If it is in eclipse, in the bottom left corner you find the small icon when clicked expands, select servers option,

1. right click JBoss server
2. you can notice timeout in seconds there
3. Increase it

Restart the server, and i am sure this time you wont get that error.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Restart the server, and i am sure this time you wont get that error.


I rather doubt that. Unless Harshani is deploying several very complex apps, or is running an a very underpowered machine, 400 seconds should be more than enough time for JBoss AS to start up, so increasing the start time limit will only delay the display of the error message.

(When did 'quote' break???)
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

Peter Johnson wrote:
Restart the server, and i am sure this time you wont get that error.


...
(When did 'quote' break???)


"Disable BB Code in this message" checkbox appears to be set on, in Sakthi's and your reply :)
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Jaikiran Pai wrote:"Disable BB Code in this message" checkbox appears to be set on, in Sakthi's and your reply :)

Ah, I probably inherited the setting from Sakthi; it's fixed now. Thanks!
Vijeth Konanavar Bhadrappa
Greenhorn

Joined: Jun 09, 2008
Posts: 14
Hi,

I am using Jboss_4_2_0_GA and Eclpise 3.4. I am problem related to Starting of Jboss through Eclipse. When i start Jboss through Eclipse, server starts up and runs fine.

09:51:02,280 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
09:51:02,295 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
09:51:02,311 INFO [Server] JBoss (MX MicroKernel) [4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)] Started in 35s:356ms

But in the Progress view(of eclipse), it will showing "Starting Jboss..". I kept the value as 85000 for Jboss Startup time. When i stop jboss, a alert mesage will prompt as "Jboss failed to start".

Please help me in solving this. How do eclipse will come to know that status of Jboss as started or starting?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Please answer the first three questions I asked Harshani (you already answered question 4).

Also answer these:

5) Did you install JBoss Tools?
6) How did you create the JBoss AS server within Eclipse? Specifically, on the Define A New Server dialog, which entry did you select? Was it "JBoss | JBos v4.2" or some other entry?

By the way, you really should have asked this is a new topic rather than appending to this one.
Vijeth Konanavar Bhadrappa
Greenhorn

Joined: Jun 09, 2008
Posts: 14
Hi Peter Johnson, thank you for your help.

While creating Jboss AS i had wrongly selected Jboss v4.0 whereas i should have Jboss v4.2. Now i changed it to Jboss v4.2 and started it. It is showing "Started" and working fine now.

But please can you help in understanding how Eclipse will come to know about the status of Jboss server? "Started/Stopped/Running".
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Vijeth Konanavar Bhadrappa wrote:But please can you help in understanding how Eclipse will come to know about the status of Jboss server? "Started/Stopped/Running".

See my parenthetical comment under question 2 in my earlier post.
Shilpi Mangal
Greenhorn

Joined: Jan 26, 2010
Posts: 1
Hi,

I am also facing the issue mentioned here. I have changed the Jboss AS to version 4.2 as advised. But it did not solve the problem. On seeing the console, I can see that server is actually started.

My answers :
1) Did you change the ports that JBoss AS is using? NO
2) Have you secured the JMX invoker? NO ( I am not very clear about this but I did not make any such changes).

Below is the start up log:


Thanks.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Shilpi, welcome to Java Ranch!

1) Which version of Eclipse are you using?
2) Have you installed JBoss Tools?
3) What selections did you make in the New Server dialog?

I really recommend installing JBoss Tools and using th "JBoss Community | JBoss 4.2.x" selection for creating the server.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss server in eclipse is not starting withing 400 seconds