Hi All, 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 :-( > On Wed, 2008-01-09 at 17:05 -0700, James Adams wrote: > > I'm trying to resolve the following warning in our Maven2 build: > > > > [WARNING] POM for 'joda-time:joda-time-hibernate:pom:1.0:compile' is > > invalid. It will be ignored for artifact resolution. Reason: Failed to > > validate POM for project joda-time:joda-time-hibernate at Artifact > > [joda-time:joda-time-hibernate:pom:1.0:compile] 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