• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat hangs during startup

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic