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
----------------
Hibernate version:
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
Full stack trace of any exception that occurs:
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.<init>(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]
Name and version of the database you are using:
Oracle 10g 10.1 express
My configuration parameters for sessionFactory are:
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSourceJndi" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.Oracle9Dialect
</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.use_sql_comments">true</prop>
<prop key="hibernate.jdbc.batch_size">0</prop>
<!-- Make sure there is only one cache manager -->
<prop key="net.sf.ehcache.configurationResourceName">/conf/ehcache.xml</prop>
<prop key="hibernate.cache.provider_class">
net.sf.ehcache.hibernate.SingletonEhCacheProvider
</prop>
<prop key="hibernate.cache.use_second_level_cache">
true
</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
<!-- prop key="hibernate.hbm2ddl.auto">create</prop -->
</props>
</property>
<property name="annotatedClasses">
<list>
<value>com.mcd.dep.data.domain.Application</value>
<value>com.mcd.dep.data.domain.Campaign</value>
<value>com.mcd.dep.data.domain.BlueWord</value>
<value>com.mcd.dep.data.domain.CleanWord</value>
<value>com.mcd.dep.data.domain.Country</value>
<value>com.mcd.dep.data.domain.Language</value>
<value>com.mcd.dep.data.domain.Hint</value>
<value>com.mcd.dep.auth.data.domain.Account</value>
<value>com.mcd.dep.auth.data.domain.LegalRequirement</value>
<value>com.mcd.dep.auth.data.domain.LegalAgreement</value>
<value>com.mcd.tlr.auth.data.domain.Profile</value>
</list>
</property>
</bean>
And my cacheManager is:
<bean id="cacheManager"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation">
<value>classpath:conf/ehcache.xml</value>
</property>
<property name="shared" value="true" />
</bean>
Debug level Hibernate log excerpt:
debug
|