Announcement Announcement Module
Collapse
No announcement yet.
Profiling a Spring app using Rational Application Developer Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 ?

  • #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.

    Comment

    Working...
    X