• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009

Description

spring/hibernate/ehcache destroy cache exception:

When I undeploy my application, on Tomcat 5.5, I get an error from ehcache/hibernate, that says that it cannot find a method. java.lang.NoSuchMethodError

The method exists.

This happens inside net.sf.ehcache.hibernate.EhCache.

Any idea?

Thanks,

Gisella


[b]Hibernate version:[/b] hibernate3-3.2.5.ga.jar hibernate-annotations-3.3.0.ga.jar Other related .jars spring-2.5.0.jar ehcache-1.3.0.jar

[b]Full stack trace of any exception that occurs:[/b]

INFO: Closing Hibernate SessionFactory Feb 24, 2008 4:27:33 PM org.hibernate.impl.SessionFactoryImpl close INFO: closing Feb 24, 2008 4:27:33 PM org.springframework.beans.factory.support.DisposableBeanAdapter destroy SEVERE: Couldn’t invoke destroy method of bean with name ‘sessionFactory’ java.lang.NoSuchMethodError: org.hibernate.cache.CacheException.(Ljava/lang/Exception;)V at net.sf.ehcache.hibernate.EhCache.destroy(EhCache.java:179) at org.hibernate.cache.ReadWriteCache.destroy(ReadWriteCache.java:232) at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:777) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.destroy(AbstractSessionFactoryBean.java:251) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.destroy(LocalSessionFactoryBean.java:804) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:154) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:397) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:375) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:348) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:856) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:834) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:801) at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:357) at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:70) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3805) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4364) at org.apache.catalina.manager.ManagerServlet.undeploy(ManagerServlet.java:1287) at org.apache.catalina.manager.HTMLManagerServlet.undeploy(HTMLManagerServlet.java:509) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:101) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Unknown Source) Feb 24, 2008 4:27:34 PM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/MCD-auth]

[b]Name and version of the database you are using:[/b] Oracle 10g 10.1 express

My configuration parameters for sessionFactory are:

org.hibernate.dialect.Oracle9Dialect true true true 0 /conf/ehcache.xml net.sf.ehcache.hibernate.SingletonEhCacheProvider true true com.mcd.dep.data.domain.Application com.mcd.dep.data.domain.Campaign com.mcd.dep.data.domain.BlueWord com.mcd.dep.data.domain.CleanWord com.mcd.dep.data.domain.Country com.mcd.dep.data.domain.Language com.mcd.dep.data.domain.Hint com.mcd.dep.auth.data.domain.Account com.mcd.dep.auth.data.domain.LegalRequirement com.mcd.dep.auth.data.domain.LegalAgreement com.mcd.tlr.auth.data.domain.Profile

And my cacheManager is:

classpath:conf/ehcache.xml

[b]Debug level Hibernate log excerpt:[/b] debug Sourceforge Ticket ID: 1901094 - Opened By: nobody - 25 Feb 2008 01:07 UTC

Comments

Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira