Results 1 to 2 of 2

Thread: Profiling a Spring app using Rational Application Developer

  1. #1
    Join Date
    Sep 2004
    Posts
    602

    Default 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. #2
    Join Date
    Sep 2004
    Posts
    602

    Default

    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
  •