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

Spring hangs

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 213
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
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

I don't think it is actually hanging at that line. If there is anything wrong with Spring it throws an exception, but you are not seeing the exception in your console. So I am going to guess it is in the Tomcat log file. Go to your TOmcat directory and find the log file and open it up and look for your exception stack trace, then post it here.

My guess is that it couldn't find the properties file.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring hangs