I am facing a wired issue during spring application context initialization. Based on the warning from thymeleaf( Please see this link : [http://www.darkedges.com/blog/?cat=28][1])
I have added weblogic-application.xml and weblogic.xml and until I use spring version 3.x there are no issues with xerces and xlan in pom dependencies. But as soon as I upgraded spring version to 4.0.3.RELEASE my deployment failed saying
Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.util.Properties com.freddiemac.car.CarSpringConfiguration.sqlQueries()] threw exception; nested exception is java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
Caused By: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:123)
at java.util.XMLUtils.getLoadingDoc(XMLUtils.java:75)
at java.util.XMLUtils.load(XMLUtils.java:57)
at java.util.Properties.loadFromXML(Properties.java:852)
at org.springframework.util.DefaultPropertiesPersister.loadFromXml(DefaultPropertiesPersister.java:78)
Truncated. see log file for complete stacktrace
If I switch back to spring 3.x everything is working fine.
I am using Spring MVC 4.0.3 with Thymeleaf 2.X and Weblogic 10.3.6 with the xerces and xlan from the above mentioned url.
Please help!