Thanks for the note.  I solved the problem by removing all dependencies on
AppFuse application-tier code.  I'm still using the plugins.  You're
probably correct, it was a dependency issue.
-Jason


donleyp wrote:
> 
> I was getting similar errors to these (specifically, the last one you
> listed) after adding a dependency in my 2.0-m4 appfuse based project to
> spring-ws 1.0-rc1. To diagnose the problem I told mvn to skip tests to see
> what it was producing in the WEB-INF/lib directory and it turns out that
> it was including spring-2.0.3 along with all the spring-*-2.0.5 jar files.
> I fixed this by adding an explicit dependency on spring 2.0.5
> (groupId=org.springframework, artifactId=spring, version=2.0.5) in my pom.
> It actually bloats the war a bit because it is including the big
> spring-2.0.5.jar and a bunch of spring-*-2.0.5.jar files in the
> WEB-INF/lib directory. I think fooling with the exclusions in the
> spring-ws dependencies might solve that problem, but I haven't had time to
> work through that yet.
> 
> I hope this helps!
> 
> Donley
> 
> 
> Jason Thrasher wrote:
>> 
>> 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#a11106025
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to