I've upgraded an AppFuse 2.0-M4 project to M5 (modular struts2), and am running into a load of spring-related problems that don't seem to make sense. Spring doesn't seem to be configured properly as I'm getting NoSuchMethodErrors.
When running "mvn clean test" in the web module I get this error from my tests regarding appfuse-service-2.0-m5.jar!/applicationContext-service.xml: [tft] ERROR [main] ContextLoader.initWebApplicationContext(205) | Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [jar:file:/C:/Documents%20and%20Settings/Jason%20Thrasher/.m2/repository/org/appfuse/appfuse-service/2.0-m5/appfuse-service-2.0-m5.jar!/applicationContext-service.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderContext.registerWithGeneratedName(Lorg/springframework/beans/factory/config/BeanDefinition;)Ljava/lang/String; Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderContext.registerWithGeneratedName(Lorg/springframework/beans/factory/config/BeanDefinition;)Ljava/lang/String; >From what I can see, there's nothing wrong with the 2.0-M5 applicationContext-service.xml file, so it seems there's a dependancy issue. Here's a sample error message when attempting "mvn jetty:run" in the web module (after deleting my tests and just trying to move forward): [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] org.springframework.core.CollectionFactory.createConcurrentMapIfPossible(I)Ljava/util/Map; [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NoSuchMethodError: org.springframework.core.CollectionFactory.createConcurrentMapIfPossible(I)Ljava/util/Map; I was getting errors like this in my "core" module before I deleted my Maven2 repo's groupId directory. When I did that, everything started working in core (compile and tests to make my jar). I'm not having such luck with the "web" module though. Is anyone else running into this problem, or do you know what it might be? thanks, Jason -- View this message in context: http://www.nabble.com/Spring-errors-in-2.0-M5-tf3824941s2369.html#a10828325 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
