I recently upgraded my codebase to Spring 3.0 by a simple edit to my Maven pom. When I did so and ran my TestNG tests that had worked, I got an exception when Spring tries to read the context file:
Caused by: org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 6 in XML document from class path resource [persistenceContext.xml] is invalid; nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'
When I look up this error, everything I read involves OC4J. As I stated, all I am doing is running a test outside of a container. Then again, the database is Oracle, and the Oracle jars are in the classpath. But when I revert to Spring 2.5.6, everything works again.
Why would upgrading to Spring 3.0 cause this exception?