Tomcat startup fails with Ehcache

View: New views
1 Messages — Rating Filter:   Alert me  

Tomcat startup fails with Ehcache

by annuvinayak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I have a web application having tremedous DB interactions (many of them are READ-ONLY). I decided to use secondary level caching for improving performance.

After configuring Ehcache, when I try to start my Tomcat6 server, I get an Applet popup. I click on Allow for all the popups. The folloing is printed on the tomcat console:
-->> returning Frame NULL
BaseDialog: owner frame is a java.awt.Frame

After this, the server keeps trying to start for a while and then says "Server startup failed. ..Took longer than 45 seconds to start"

There is no error logged either on the application logs or the tomcat logs. Everything looks to be fine, but the server doesn't start. I have tried googling a lot but no success. Please help!

Following are the configurations I have done for using ehcahe:

1. Added ehcache1.2.jar to Web-inf/lib
2. Added ehcache configuration to hibernate xml file:

  <prop key="hibernate.cache.use_second_level_cache">true</prop>
  <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
  <prop key="hibernate.cache.use_query_cache">true</prop>
  <prop key="hibernate.cache.provider_configuration_file_resource_path">/ehcache.xml</prop>

3. Added ehcache.xml to classpath.
4. Added @cache annotation to my entity.

Any help would be highly appreciated!