Skip to Content
avatar image
Former Member

Error in J2EE - JDO

Hi All,

I am trying to implement a tutorial given in help.sap.com. Following is the link:

http://help.sap.com/saphelp_nw2004s/helpdata/en/f8/b87481445e415395940dc20c1c03a8/frameset.htm

I have followed all the steps as explained in the above tutorial. I am getting the following error while running the JDO Enhancer using ANT Build.

“Fatal error while enhancing: JDO ENHANCER: An internal error occurred while enhancing input class; detailed message: nested exception: com.sap.jdo.model.jdo.JDOModelException: Error during reading XML meta data.

[java] NestedException: org.xml.sax.SAXParseException: Relative URI "jdo.dtd"; can not be resolved without a base URI.

[java] aborted with errors. "

Correct Answers will be rewarded.

Thanks for your help.

Regards,

Rashmi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 06, 2007 at 12:39 PM

    Hi,

    I believe it's something to do with your classpath. Please make sure you have all the right jars/versions under your classpath.

    Or find out which jar has jdo.dtd and make sure that jar is in classpath.

    Hope that helps,

    Rajit

    Message was edited by:

    Rajit Srinivas

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Although a bit late but I guess your build.xml file missing this line.

      [code]<property name="xml" value="$/com.sap.ep.unitTest_7.00/sapxmltoolkit.jar"/>

      ....

      ....

      ....

      <property name="classpath" value="$;$;$;$;$"/>[/code]

  • avatar image
    Former Member
    Sep 06, 2007 at 04:06 PM

    Rashmi. Without knowing more details I can't say for sure that this is the problem but I suggest that you change the reference to the "jdo.dtd" file to the full path where the file is located.

    The error message seems to be saying that the specified path is relative and it can't find it.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 13, 2007 at 03:12 PM

    Hi David,

    Yes i am modifying the XML file myself and I m using this DC in NWDI. Any suggestions what might be the problem. JDO has never been implemented in this landscape before. I am trying it for the first time.

    Regards,

    Rashmi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Rashmi.

      I'm by no means an expert on this stuff so I can just tell you what my experience has been. Earlier this year we wanted to convert an EJB application from WebSphere that was written using Swing and deployed with WebStart.

      It was written a long time ago using EJB 1.0. We decided that it would be easier to just try and rewrite it instead of porting it. We brought in a consultant to help us with Spring and Hibernate.

      Well, one of the things we found we'd need to do was to modify the build.xml file. Struggled with it for awhile only to finally get word from SAP support that we should NOT modify that file because our local modifications would be ignored when we started the transport process.

      To make a long story short, I'm wondering if your approach (modifying build.xml) is a good idea since you're using NWDI.

      Maybe some of the more experienced Netweaver people on here can speak up and either say I'm wrong or maybe suggest some other solution.

      Oh, and I followed your link and it just took me to a section of help.sap.com that discusses JDO but I didn't see a tutorial. Do you have a link to the specific tutorial you're doing?