Hi All, On 10 Jan 2008 at 23:45, Rob Hills wrote:
> On 10 Jan 2008 at 10:01, Johannes Schneider wrote: > > > There has been a bug within the pom.xml of joda-hibernate > > (http://jira.codehaus.org/browse/MEV-554) > > This has been resolved some days ago. > > > > Try to delete "~/.m2/repository/joda-time/joda-hibernate". The > > dependency should work as expected when it is fetched again. > > I had been having the same error so I did as Johannes suggested, but while > the Maven2 build error has gone away, I've > now got a more significant runtime error in my Appfuse application. > > The exception I get in my (Tomcat) log starts with this: > > [myapp] ERROR [http-80-Processor25] > ContextLoader.initWebApplicationContext(206) | Context initialization failed > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'loggerListener' > defined in ServletContext resource [/WEB-INF/security.xml]: > BeanPostProcessor before instantiation of bean failed; > nested exception is org.springframework.beans.factory.BeanCreationException: > Error creating bean with name > 'org.springframework.transaction.config.internalTransactionAdvisor': > Cannot create inner bean '(inner bean)' of type > [org.springframework.transaction.interceptor.TransactionInterceptor] while > setting bean property 'transactionInterceptor'; > nested exception is > org.springframework.beans.factory.BeanCreationException: > Error creating bean with name '(inner bean)#1': Cannot resolve > reference to bean 'transactionManager' while setting > bean property 'transactionManager'; > nested exception is > org.springframework.beans.factory.BeanCreationException: > Error creating bean with name 'transactionManager' defined in URL > [jar:file:/F:/Servers/tomcat/Tomcat- > 5.5/webapps/myapp/WEB-INF/lib/appfuse-hibernate-2.0.1.jar!/applicationContext-dao.xml]: > Cannot resolve reference to bean 'sessionFactory' while setting bean > property 'sessionFactory'; > nested exception is > org.springframework.beans.factory.BeanCreationException: > Error creating bean with name 'sessionFactory' defined in URL > [jar:file:/F:/Servers/tomcat/Tomcat- > 5.5/webapps/myapp/WEB-INF/lib/appfuse-hibernate-2.0.1.jar!/applicationContext-dao.xml]: > Invocation of init method failed; nested exception is > java.lang.IllegalAccessError: > tried to access method net.sf.ehcache.CacheManager.<init>()V > from class org.hibernate.cache.EhCacheProvider > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFac > tory.java:481) > > I've Googled for what seems to me to be the root problem (IllegalAccessError > on the ehcache.CacheManager init method) > but haven't turned up anything useful. > > I guess this is a Maven and/or AppFuse and/or Hibernate issue rather than a > joda-time issue, but I'm hoping someone else > here has had the same problem and worked out what is wrong as I'm getting > nowhere with it ATM and its totally blocking > my project :-( Well, some more creative Googling turned up a similar issue caused by an old jar so that led me to hunt through my deployed WAR file for ehcache jars and I found two - ehcache-1.1.0.jar and ehcache-1.3.0.jar. Manually removing the older one got rid of the problem so now I have to work out what dependency is forcing the old version of ehcache to be included. Cheers, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-357 Fax: +61 (8) 9529-2137 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest