Loading ...
Sorry, an error occurred while loading the content.
 

org.xml.sax.SAXParseException: File "actions.dtd" not found

Expand Messages
  • Leonardo Kenji Shikida
    I am using java -version java version 1.4.2_06 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Client VM (build
    Message 1 of 3 , Dec 16, 2005
      I am using

      java -version
      java version "1.4.2_06"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

      there is a file samples/actions.dtd

      there is a file samples/orders1.act like this

      <!DOCTYPE Actions SYSTEM "actions.dtd">
      <Actions Version="2.0"
      xmlns="http://www.xmlmiddleware.org/xmldbms/actions/v2">
      <DefaultAction>
      <Insert />
      </DefaultAction>
      </Actions>

      java -cp
      xmldbms20.jar:xerces-1_4_4/xerces.jar:./mysql-connector-java-3.0.16-ga-bin.jar
      org.xmlmiddleware.xmldbms.tools.MapManager File1=samples/parser.props
      File2=samples/db.props Input=DTD DTDFile=my.dtd Output1=Map
      MapFile=my.map Output2=SQL SQLFile=my.sql

      this command worked, I fixed the generated SQL file and created those
      tables. then

      java -cp
      xmldbms20.jar:xerces-1_4_4/xerces.jar:./mysql-connector-java-3.0.16-ga-bin.jar
      org.xmlmiddleware.xmldbms.tools.Transfer File1=samples/parser.props
      File2=samples/db.props Method=StoreDocument MapFile=my.map
      XMLFile=my.xml ActionFile=samples/orders1.act
      org.xml.sax.SAXParseException: File "actions.dtd" not found.
      at
      org.xmlmiddleware.xmldbms.actions.ActionCompiler.compile(ActionCompiler.java:160)
      at
      org.xmlmiddleware.xmldbms.tools.Transfer.createActions(Transfer.java:1539)
      at
      org.xmlmiddleware.xmldbms.tools.Transfer.storeDocumentInternal(Transfer.java:831)
      at
      org.xmlmiddleware.xmldbms.tools.Transfer.storeDocument(Transfer.java:479)
      at
      org.xmlmiddleware.xmldbms.tools.Transfer.dispatchStoreDocument(Transfer.java:696)
      at
      org.xmlmiddleware.xmldbms.tools.Transfer.dispatch(Transfer.java:434)
      at
      org.xmlmiddleware.xmldbms.tools.Transfer.main(Transfer.java:353)

      how can I say to it that actions.dtd is there? I included it to
      classpath, copied to the same directory where I am calling the
      command, without sucess.

      thanks in advance

      Kenji
    • Leonardo Kenji Shikida
      solution : http://groups.yahoo.com/group/xml-dbms/message/3643 ... xmldbms20.jar:xerces-1_4_4/xerces.jar:./mysql-connector-java-3.0.16-ga-bin.jar ...
      Message 2 of 3 , Dec 16, 2005
        solution : http://groups.yahoo.com/group/xml-dbms/message/3643

        --- In xml-dbms@yahoogroups.com, "Leonardo Kenji Shikida"
        <shikida@g...> wrote:
        >
        > I am using
        >
        > java -version
        > java version "1.4.2_06"
        > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
        > Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
        >
        > there is a file samples/actions.dtd
        >
        > there is a file samples/orders1.act like this
        >
        > <!DOCTYPE Actions SYSTEM "actions.dtd">
        > <Actions Version="2.0"
        > xmlns="http://www.xmlmiddleware.org/xmldbms/actions/v2">
        > <DefaultAction>
        > <Insert />
        > </DefaultAction>
        > </Actions>
        >
        > java -cp
        >
        xmldbms20.jar:xerces-1_4_4/xerces.jar:./mysql-connector-java-3.0.16-ga-bin.jar
        > org.xmlmiddleware.xmldbms.tools.MapManager File1=samples/parser.props
        > File2=samples/db.props Input=DTD DTDFile=my.dtd Output1=Map
        > MapFile=my.map Output2=SQL SQLFile=my.sql
        >
        > this command worked, I fixed the generated SQL file and created those
        > tables. then
        >
        > java -cp
        >
        xmldbms20.jar:xerces-1_4_4/xerces.jar:./mysql-connector-java-3.0.16-ga-bin.jar
        > org.xmlmiddleware.xmldbms.tools.Transfer File1=samples/parser.props
        > File2=samples/db.props Method=StoreDocument MapFile=my.map
        > XMLFile=my.xml ActionFile=samples/orders1.act
        > org.xml.sax.SAXParseException: File "actions.dtd" not found.
        > at
        >
        org.xmlmiddleware.xmldbms.actions.ActionCompiler.compile(ActionCompiler.java:160)
        > at
        >
        org.xmlmiddleware.xmldbms.tools.Transfer.createActions(Transfer.java:1539)
        > at
        >
        org.xmlmiddleware.xmldbms.tools.Transfer.storeDocumentInternal(Transfer.java:831)
        > at
        >
        org.xmlmiddleware.xmldbms.tools.Transfer.storeDocument(Transfer.java:479)
        > at
        >
        org.xmlmiddleware.xmldbms.tools.Transfer.dispatchStoreDocument(Transfer.java:696)
        > at
        > org.xmlmiddleware.xmldbms.tools.Transfer.dispatch(Transfer.java:434)
        > at
        > org.xmlmiddleware.xmldbms.tools.Transfer.main(Transfer.java:353)
        >
        > how can I say to it that actions.dtd is there? I included it to
        > classpath, copied to the same directory where I am calling the
        > command, without sucess.
        >
        > thanks in advance
        >
        > Kenji
        >
      • Ronald Bourret
        Correct. I ve added this question to the list of FAQs: http://www.rpbourret.com/xmldbms/faqs/index.htm -- Ron
        Message 3 of 3 , Dec 17, 2005
          Correct. I've added this question to the list of FAQs:

          http://www.rpbourret.com/xmldbms/faqs/index.htm

          -- Ron

          Leonardo Kenji Shikida wrote:

          > solution : http://groups.yahoo.com/group/xml-dbms/message/3643
          >
          > --- In xml-dbms@yahoogroups.com, "Leonardo Kenji Shikida"
          > <shikida@g...> wrote:
          >
          >>I am using
          >>
          >>java -version
          >>java version "1.4.2_06"
          >>Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
          >>Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
          >>
          >>there is a file samples/actions.dtd
          >>
          >>there is a file samples/orders1.act like this
          >>
          >><!DOCTYPE Actions SYSTEM "actions.dtd">
          >><Actions Version="2.0"
          >>xmlns="http://www.xmlmiddleware.org/xmldbms/actions/v2">
          >> <DefaultAction>
          >> <Insert />
          >> </DefaultAction>
          >></Actions>
          >>
          >>java -cp
          >>
          >
          > xmldbms20.jar:xerces-1_4_4/xerces.jar:./mysql-connector-java-3.0.16-ga-bin.jar
          >
          >>org.xmlmiddleware.xmldbms.tools.MapManager File1=samples/parser.props
          >>File2=samples/db.props Input=DTD DTDFile=my.dtd Output1=Map
          >>MapFile=my.map Output2=SQL SQLFile=my.sql
          >>
          >>this command worked, I fixed the generated SQL file and created those
          >>tables. then
          >>
          >>java -cp
          >>
          >
          > xmldbms20.jar:xerces-1_4_4/xerces.jar:./mysql-connector-java-3.0.16-ga-bin.jar
          >
          >>org.xmlmiddleware.xmldbms.tools.Transfer File1=samples/parser.props
          >>File2=samples/db.props Method=StoreDocument MapFile=my.map
          >>XMLFile=my.xml ActionFile=samples/orders1.act
          >>org.xml.sax.SAXParseException: File "actions.dtd" not found.
          >> at
          >>
          >
          > org.xmlmiddleware.xmldbms.actions.ActionCompiler.compile(ActionCompiler.java:160)
          >
          >> at
          >>
          >
          > org.xmlmiddleware.xmldbms.tools.Transfer.createActions(Transfer.java:1539)
          >
          >> at
          >>
          >
          > org.xmlmiddleware.xmldbms.tools.Transfer.storeDocumentInternal(Transfer.java:831)
          >
          >> at
          >>
          >
          > org.xmlmiddleware.xmldbms.tools.Transfer.storeDocument(Transfer.java:479)
          >
          >> at
          >>
          >
          > org.xmlmiddleware.xmldbms.tools.Transfer.dispatchStoreDocument(Transfer.java:696)
          >
          >> at
          >>org.xmlmiddleware.xmldbms.tools.Transfer.dispatch(Transfer.java:434)
          >> at
          >>org.xmlmiddleware.xmldbms.tools.Transfer.main(Transfer.java:353)
          >>
          >>how can I say to it that actions.dtd is there? I included it to
          >>classpath, copied to the same directory where I am calling the
          >>command, without sucess.
          >>
          >>thanks in advance
          >>
          >>Kenji
        Your message has been successfully submitted and would be delivered to recipients shortly.