This is caused by an issue with EhCache. It's fixed in 1.3.0-beta. We'll be upgrading AppFuse to 1.3.0 when it's released (est. 2 weeks).
Matt On 3/18/07, viggo <[EMAIL PROTECTED]> wrote:
I have a spring modular project (2.0-m4-SNAPSHOT), and when I run mvn install on the core module the log shows me this: [lpoints] ERROR [Thread-2] DisposableBeanAdapter.destroy(148) | Couldn't invoke destroy method of bean with name 'sessionFactory' java.lang.IllegalStateException: Shutdown in progress at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:55) at java.lang.Runtime.removeShutdownHook(Runtime.java:220) at net.sf.ehcache.CacheManager.removeShutdownHook(CacheManager.java:524) at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:711) at org.hibernate.cache.EhCacheProvider.stop(EhCacheProvider.java:158) at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:798) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean$TransactionAwareInvocationHandler.invoke(AbstractSessionFactoryBean.java:313) at $Proxy17.close(Unknown Source) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.destroy(AbstractSessionFactoryBean.java:193) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.destroy(LocalSessionFactoryBean.java:854) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:145) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:308) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:282) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:656) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:634) at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:571) [INFO] [jar:jar] [INFO] Building jar: /home/viggo/workspace/HEAD/lpoints-core/target/lpoints-core-1.0-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/viggo/workspace/HEAD/lpoints-core/target/lpoints-core-1.0-SNAPSHOT.jar to /home/viggo/.m2/repository/com/loyaltyrewarded/lpoints-core/1.0-SNAPSHOT/lpoints-core-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Sun Mar 18 20:49:40 CET 2007 [INFO] Final Memory: 10M/19M [INFO] ------------------------------------------------------------------------ It runs successfully, but why do I get the error on the destroy method of the sessionFactory bean? -- View this message in context: http://www.nabble.com/Error-when-running-install-on-core-module-tf3423614s2369.html#a9542233 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]