• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Jboss server in eclipse is not starting withing 400 seconds

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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???)
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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!
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic