Skip to Content
author's profile photo Former Member
Former Member

Problem displaying XML data on Iview

I am trying to parse an xml document using DOM parser and display the data on an iview.The development environment I have is SAP PDK 5.0.6 and tomcat version 3.3.1. I am able to run the java class parsing the xml file as a standalone program on eclipse.

But when I try to invoke the same java class from the iview, it is throwing the following error

"<b>java.lang.ClassCastException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl</b>".

The iview gets displayed without any problem, but due to the error thrown, I can't get any data to be displayed on the JSP page. This error is thrown on tomcat server window.

I have declared TOMCAT_HOME as an environment variable and set the path. I would greatly appreciate any help to resolve this issue.



Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 23, 2004 at 05:18 PM


    I've just seen your question. If you havent solved it by now, I could give you one (lots of text...).


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Seema,

      was in vacation...

      Yes, Frederik is right. If you use Eclipse, go the project properties (RMB on the project in the package explorer). Move to Service settings/general profile settings. Check the inqmy checkbox. So you can leave the inqmyxml.jar out of the project par file to keep it small. But for working in eclipse you need to mention it in the project properties "Java build path/libraries", otherwise the compiler wont find the imports at compile time.

      Unfortunately I can not tell you another place for the link. You should be able to access it as long as you are SAP staff member. It describes among other things in detail the development of different Java and XML issues in SAP environment, especially the compatibility of xml parser and EP versions, what fits, what doesnt, which workaround exist and so on. Even EP6 doesnt support J1.4, so additional work is needed to get it working.