Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat hangs during startup

 
Benson Fung
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using Tomcat 6.0. I got the following so rare scenario.

I started the tomcat 6.0, but it hangs at the following :

...
13216 [main] INFO org.springframework.beans.factory.config.PropertiesFactoryBean - Loading properties file from ServletContext resource [/WEB-INF/application.properties]
...

The application.properties is located at WEB-INF/application.properties

And the definition in the spring xml is
<util:properties id="app_props" location="WEB-INF/application.properties"/>

Please help why the tomcat hangs at the above line.


Thanks
Benson
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you starting Tomcat? With startup.bat in a command prompt window or what?

Have you modified the application.properties file since the last time it worked?

Is Tomcat consuming CPU time when it is "hung"?

Have you checked the log files for possible error messages?

Bill
 
Benson Fung
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I started the Tomcat by typing ./startup.sh

I did not modify the application.properties file
There is no exception in the log file.

Any other clues?

Benson
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is that Tomcat is trying to create/start some resource that is defined in the properties file. A resource that is for some reason not available, and whatever code is executing does not have a way to recover from the resource not being there.

Perhaps it is trying to connect to a database?

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic