Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

XMLPipeDB and UBL Schema

Help
reginato
2007-05-25
2013-04-25
  • reginato
    reginato
    2007-05-25

    Hi,
    I'm trying to create a DB from this xsd:
    http://docs.oasis-open.org/ubl/os-UBL-2.0/xsd/maindoc/UBL-OrderResponse-2.0.xsd
    But I can't. Is the schema too complex?

    Best Regard

     
    • dondi
      dondi
      2007-06-01

      Sorry for the delay in responding; I got notified of the post at a bad time and wasn't able to get back to it until now.

      What specific error/issue are you seeing when running xsd2db on this schema?  When I get a chance, I can try it myself, but if you can post the messages/results that you're getting, that information will be useful in any case.  Thanks!

       
      • reginato
        reginato
        2007-06-01

        Directory di C:\xsd2db

        25/05/2007  11.44    <DIR>          .
        25/05/2007  11.44    <DIR>          ..
        25/05/2007  11.45    <DIR>          db-gen
        28/05/2006  22.43            13.096 hibernate.properties
        28/05/2006  22.43             4.383 readme.txt
        28/05/2006  22.43                40 xsd2db
        28/05/2006  22.43                64 xsd2db.bat
        28/05/2006  22.43         8.114.611 xsd2db.jar
                       5 File      8.132.194 byte
                       3 Directory  75.860.762.624 byte disponibili

        C:\xsd2db>xsd2db http://docs.oasis-open.org/ubl/os-UBL-2.0/xsd/maindoc/UBL-Order
        Response-2.0.xsd
        0 [main] INFO org.hibernate.cfg.Environment  - Hibernate 3.0.5
        0 [main] INFO org.hibernate.cfg.Environment  - hibernate.properties not found
        0 [main] INFO org.hibernate.cfg.Environment  - using CGLIB reflection optimizer
        16 [main] INFO org.hibernate.cfg.Environment  - using JDK 1.4 java.sql.Timestamp
        handling

        Downloading build.xml...
        Download successful...
        Cannot find CatalogManager.properties
        info: org.xml.sax.SAXParseException: Using Xerces from jar:file:/C:/Programmi/Ja
        va/jre1.5.0_06/lib/rt.jar!/com/sun/org/apache/xerces/internal/impl/Version.class

        Fatal Error: org.xml.sax.SAXParseException: Unexpected <project> appears at line
        2 column 50
        org.xml.sax.SAXParseException: Unexpected <project> appears at line 2 column 50
                at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.unexpectedX(NGCCRuntimeEx.
        java:366)
                at com.sun.xml.xsom.impl.parser.state.NGCCHandler.unexpectedEnterElement
        (NGCCHandler.java:155)
                at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:43
        2)
                at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRunti
        me.java:219)
                at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
                at com.sun.tools.xjc.reader.xmlschema.parser.ProhibitedFeaturesFilter.st
        artElement(ProhibitedFeaturesFilter.java:200)
                at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
                at com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(Extensi
        onBindingChecker.java:203)
                at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
                at com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecke
        r.startElement(IncorrectNamespaceURIChecker.java:97)
                at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
                at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker
        .startElement(CustomizationContextChecker.java:170)
                at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
                at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolv
        er.startElement(DOMForestScanner.java:124)
                at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:192)
                at com.sun.xml.bind.unmarshaller.DOMScanner.parseWithContext(DOMScanner.
        java:113)
                at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForest
        Scanner.java:72)
                at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForest
        Scanner.java:80)
                at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForest
        Parser.java:83)
                at com.sun.tools.xjc.GrammarLoader$XMLSchemaForestParser.parse(GrammarLo
        ader.java:242)
                at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.
        java:220)
                at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:1
        18)
                at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:111)
                at com.sun.tools.xjc.GrammarLoader.loadXMLSchema(GrammarLoader.java:380)

                at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:142)
                at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:91)
                at edu.lmu.xmlpipedb.xsd2db.Xsd2db.run(Xsd2db.java:236)
                at edu.lmu.xmlpipedb.xsd2db.Xsd2dbCommandLine.run(Xsd2dbCommandLine.java
        :162)
                at edu.lmu.xmlpipedb.xsd2db.Xsd2dbCommandLine.main(Xsd2dbCommandLine.jav
        a:150)
        Unable to parse schema
        info: org.xml.sax.SAXParseException: generating code
        Error: There was an error with the hyperjaxb addon or xjc comipler.
        null
        java.lang.NullPointerException
                at com.sun.tools.xjc.generator.SkeletonGenerator.<init>(SkeletonGenerato
        r.java:137)
                at com.sun.tools.xjc.generator.SkeletonGenerator.generate(SkeletonGenera
        tor.java:125)
                at com.sun.tools.xjc.Driver.generateCode(Driver.java:394)
                at edu.lmu.xmlpipedb.xsd2db.Xsd2db.run(Xsd2db.java:245)
                at edu.lmu.xmlpipedb.xsd2db.Xsd2dbCommandLine.run(Xsd2dbCommandLine.java
        :162)
                at edu.lmu.xmlpipedb.xsd2db.Xsd2dbCommandLine.main(Xsd2dbCommandLine.jav
        a:150)
        938 [main] INFO org.hibernate.dialect.Dialect  - Using dialect: org.hibernate.di
        alect.PostgreSQLDialect
        1016 [main] INFO org.hibernate.cfg.Configuration  - processing extends queue
        1016 [main] INFO org.hibernate.cfg.Configuration  - processing collection mappin
        gs
        1016 [main] INFO org.hibernate.cfg.Configuration  - processing association prope
        rty references
        1016 [main] INFO org.hibernate.cfg.Configuration  - processing foreign key const
        raints
        1047 [main] INFO org.hibernate.cfg.Configuration  - processing extends queue
        1047 [main] INFO org.hibernate.cfg.Configuration  - processing collection mappin
        gs
        1047 [main] INFO org.hibernate.cfg.Configuration  - processing association prope
        rty references
        1047 [main] INFO org.hibernate.cfg.Configuration  - processing foreign key const
        raints
        1047 [main] INFO org.hibernate.tool.hbm2ddl.SchemaExport  - Running hbm2ddl sche
        ma export
        1047 [main] INFO org.hibernate.tool.hbm2ddl.SchemaExport  - writing generated sc
        hema to file: db-gen\sql\schema.sql
        1047 [main] INFO org.hibernate.tool.hbm2ddl.SchemaExport  - schema export comple
        te
        found build file
        Build Finished!