aspose file tools*
The moose likes Tomcat and the fly likes Tomcat hangs during startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat hangs during startup" Watch "Tomcat hangs during startup" New topic
Author

Tomcat hangs during startup

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
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

Joined: Mar 22, 2000
Posts: 12682
    
    5
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

Java Resources at www.wbrogden.com
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
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

Joined: Mar 22, 2000
Posts: 12682
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat hangs during startup
 
Similar Threads
Problem in Struts : Error 404 : servlet action as unavailable
placing propertie file in .war file
help, STRUTS with Weblogic, Cannot find message resources ?
Spring hangs
Read Properties File Located In Jar File From A JSP Page