-
Jun 20th, 2007, 03:14 AM
#1
Profiling a Spring app using Rational Application Developer
If I use the profile option of RAD to run my tests, in order to get code coverage statistics, I get:
org.springframework.beans.factory.BeanDefinitionSt oreException: Parser configuration exception parsing XML from class path resource [net/targetgroup/newbusiness/client/bcm/spring/applicationContext.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl @15e9756] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
Caused by: javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl @15e9756] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
Has anyone managed to profile a Spring application using RAD ?
-
Jun 20th, 2007, 03:21 AM
#2
Sussed it:
add -Djavax.xml.parsers.DocumentBuilderFactory=org.apac he.xerces.jaxp.DocumentBuilderFactoryImpl
to the startup parms for the JVM, and add
C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\java\j re\lib\xml.jar to the unit test classpath.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules