Hi Gus,

seems something wrong with your build.properties file
or used version is a little bit corrupted (after playing
around with files ;-))

> syntax to use near '@DATABASE_DEFAULT@' at line 1"
This tag should be replaced by an ant target with the
name of the used database declared in build.properties.
(Maybe I'm wrong, see this error first time today)

Gus Heck wrote:

Hi Bob,

Nothing in the setup instructions on http://db.apache.org/ojb/platforms.html seemed to indicate that I should touch repository_database.xml for testing purposes but there do appear to be several of them in the distro....

[EMAIL PROTECTED] db-ojb-1.0.rc4]$ find . -name repository_database.xml
./doc/repository_database.xml
./src/test/org/apache/ojb/repository_database.xml
orginal source file with @xyz@ ant replace tags

./target/srctest/org/apache/ojb/repository_database.xml
this is the important file to run the junit target.
@xyz@ tags should be replaced by your declared database
(see build.prperties and profile files)

regards,
Armin

./target/doc/repository_database.xml
./target/db-ojb-1.0.rc4/doc/repository_database.xml
./target/db-ojb-1.0.rc4/src/test/org/apache/ojb/repository_database.xml

I'm not sure which one you want. I suspect they won't be of much use since I havn't touched any of them. Was I supposed to? did I miss something? I did notice that something seems awry in the build.sh prepare-testdb:

[torque-create-db] (transform.DTDResolver 128 ) Resolver: used database.dtd from org.apache.torque.engine.database.transform package
[sql] Executing file: /home/gus/zip/db-ojb-1.0.rc4/target/src/sql/create-db.sql
[sql] Failed to execute: drop database if exists @DATABASE_DEFAULT@
[sql] java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '@DATABASE_DEFAULT@' at line 1"
[sql] Failed to execute: create database @DATABASE_DEFAULT@
[sql] java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '@DATABASE_DEFAULT@' at line 1"
[sql] 0 of 2 SQL statements executed successfully


I suspect that this is a tag that didn't get properly replaced somewhere, but the build completes saying build-successful anyway.


-Gus


Robert J Celestino wrote:

Hi Gus,
I have not run the unit tests in a while .. But I suspect you have a configuraton problem .. Can you post your repository_database.xml?
I hear you about getting burned, but I have been very happy with OJB. The JDO stuff is new but the rest seems very solid, and well supported here. I have been using OJB for about 2 months now so I am still a newbie, but so far it has been able to do everything I need it to do.
Bob c


----------------------------------------------------------------
Bob Celestino
SAS Research and Development
919 - 531 - 9425
[EMAIL PROTECTED]

SAS - The Power to Know


> -----Original Message-----
> From: Gus Heck [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 12, 2003 10:57 AM
> To: OJB Users List
> Subject: Re: Mysql4.0?
> > > Bob, Thanks for the reply :).
> > Do you get the same failures with the regression tests? I'm > wondering if > it could have anything to do with my setup... If you
> > As for JDO I was afraid someone would say that.... Though I > seem to have > picked yet another emerging technology that looked ready > until I dug > into it. (The last one I tried to play with was RDF/OWL > which featured a > bug a day for a week and a half... and sourceforge wouldn't > let me into > the cvs to get the fixes anyway.). I should probably take > these problems > to bugzilla and see if they have been reported... or the > dev list I > suppose. Perhaps they are fixed in CVS.
> > -Gus
> > Robert J Celestino wrote:
> > >Hello Gus,
> >
> >As far as the newsgroup: its quality not quantity here :-)
> >
> >I am using MySql4.0 with OJB. I am using the > PersistenceBroker and ODMG > >APIs with good success. I am waiting until the JDO support > is a little more solid before I switch over to that API.
> >
> >Bob c
> >





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to