I'm trying to add integration tests to my Maven build. I'm using Maven, Spring 2.0. (I just tried moving to 2.0.2, but got an XML parse error from my applicationContext.xml file.), and Hibernate as a JPA provider.
I have tied tests to the integration-test life cycle in Maven. I have a test that attempts to instantiate an ApplicationContext, but it fails when attempting to start my entityManager with a StackOverflowException:
It looks to me like it can't parse the persistence.xml file. I've tried adding a xerces dependency and changing it to various different versions to see if that would clear up the problem. Then tried setting xerces to scope=test. None of which worked.
Any ideas you might have would be appreciated.
Mark
I have tied tests to the integration-test life cycle in Maven. I have a test that attempts to instantiate an ApplicationContext, but it fails when attempting to start my entityManager with a StackOverflowException:
Code:
Error creating bean with name 'entityManagerFactory' defined in URL [file:/Users/mark/projects/quadran/target/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.StackOverflowError Caused by: java.lang.StackOverflowError at java.lang.String.toLowerCase(String.java:2213) at java.lang.String.toLowerCase(String.java:2277) at org.apache.xerces.util.URI.setScheme(URI.java:908) at org.apache.xerces.util.URI.initializeScheme(URI.java:576) at org.apache.xerces.util.URI.initialize(URI.java:400) at org.apache.xerces.util.URI.<init>(URI.java:211) at org.apache.xerces.util.URI.<init>(URI.java:195) at org.apache.xerces.impl.XMLEntityManager.expandSystemId(XMLEntityManager.java:1140) at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:581) at org.apache.xerces.impl.xs.XMLSchemaLoader.xsdToXMLInputSource(XMLSchemaLoader.java:625) at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:580) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489) at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489) at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588) these last two lines repeat for a long time.
Any ideas you might have would be appreciated.
Mark
Comment