You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by "Mehmet D. AKIN" <md...@uekae.tubitak.gov.tr> on 2003/02/06 10:17:06 UTC
Re: Cannot create database schema and test data using >build prep
aretutorials
Well it says in the site
"To check if OJB runs properly out of the box execute *|bin\build
junit|* under Win32 and *|bin/build.sh junit|* under Unix/Linux.
This will launch the OJB regression test suite. If all tests are passed
the console output looks like follows:
/jakarta-ojb-XXX/target/test/ojb/OJB.properties]]>/jakarta-ojb-XXX/target/test/ojb/OJB.properties]]>/jakarta-ojb-XXX/target/test/ojb/OJB.properties]]>"
I even could not run bin\build junit
it gives same exception,
in site it says default db is hsqldb and it would run wtihout any
trouble, am I wrong? I mean what's the procedure just after downloading
the source code of OJB
thanks in advance
Anthony Kong wrote:
>Hi, Mehmet,
>
>I guess the problem is exactly because you did not touch any conf files? :-)
>
>You have to decide which sql database you will run against in the
>repository_database.xml. Have you set a proper value there?
>
>Anthony
>
>
>-----Original Message-----
>From: Mehmet D. AKIN [mailto:mdakin@uekae.uekae.tubitak.gov.tr]
>Sent: Wednesday, February 05, 2003 7:57 PM
>To: OJB Users List
>Subject: Cannot create database schema and test data using >build
>preparetutorials
>
>
>I just downloaded source and tried to run bin\build prepare-tutorials,
>it compiles sources but when it comes to database preparation, torque
>gives a series of nullPointerExceptions and it cannot write anything to
>database. I didnt touch any of the configuration files, I use newest
>version of ant and Java JDK1.4.1. Anyone else encountered this problem ?
>
>Here is the some part of the exception:
>
>------------------
>[torque-datasql] Resolver: used database.dtd from
>org.apache.torque.engine.database.transform package
>[torque-datasql] Resolver: used
>D:\tools\jakarta-ojb-0.9.8\src\schema\ojbtest-data.dtd
>[torque-datasql] java.lang.NullPointerException
>[torque-datasql] at
>org.apache.torque.engine.database.transform.XmlToData.startElement(XmlToData
>.java:174)
>[torque-datasql] at
>org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
>ava:454)
>[torque-datasql] at
>org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
>DocumentParser.java:217)
>[torque-datasql] at
>org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
>va:594)
>[torque-datasql] at
>org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java
>:777)
>[torque-datasql] at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
>cumentFragmentScannerImpl.java:748)
>[torque-datasql] at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
>her.dispatch(XMLDocumentFragmentScannerImpl.jav
>a:1453)
>[torque-datasql] at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
>ntFragmentScannerImpl.java:333)
>[torque-datasql] at
>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
>[torque-datasql] at
>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
>......
>......
>--------------------
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>For additional commands, e-mail: ojb-user-help@db.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
>