Hi All, Thanks Tuncay for your help. I played aroudn for a while with increasing frustration. I learned that I needed to do some things to setup Postgresql properly - on Linux TCP/IP needs to be explicitly enabled, by default it is not, also needed to make adjustments to the pg_hba.conf file to allow local access. But ...
The PROBLEM with Torque ... the User Guide and the Tutorial fail to mention that if one is in TORQUE_HOME, and runs ant -f build-torque.xml with the default sample bookstore project, that there *MUST* be a bookstore-schema.xml in TORQUE-HOME/schema. The current version of Torque does not provide the bookstore-schema.xml in that directory. I note that there is a bookstore- schema.xml file in another subdirectory. (Actually there are two versions of this file, why?) I copied a version of bookstore-xml from $TORQUE_HOME/src/ rttest to $TORQUE_HOME/schema and then ran ant -f build-torque.xml again. It worked almost! I got this error: [torque-sql] Error [line 7, row 42]: Attribute "defaultIdMethod" with value "@DATABASE_ID_METHOD@" must have a value from the list "idbroker native autoincrement sequence none ". So there are three things: - the user guide should be a little more explicit about what should be in the schema directory (especially the "quick start" should be more explicit) - the sample bookstore database should be defined in the right place for the "quick start" to work properly - the error that is generated (see above) should be fixed. It's always nice to be able to take a new package like Torque off the shelf, and at least run the sample application cleanly with no problem. These are small things but create a good feeling if done right. regards Goffredo Quoting "Tuncay Baskan (Internet Grubu)" <[EMAIL PROTECTED]>: > > -----Original Message----- > > From: f.b. [mailto:[EMAIL PROTECTED]] > > Sent: Friday, December 27, 2002 9:35 AM > > To: Turbine Torque Users List > > Subject: Trouble with Torque > > > > > > Hi All, > > > > > > I've just downloaded Torque and want to use it as a stand-alone tool. > > I've got postgres installed and working, and did a succesful build of > > Torque from source. So everything should be ok. But ... when I run > > the example bookstore application ... nothing seems to be produced > > ... I get some empty files ... the screen messages tricked me into > > thinking something had been created but when I looked, nothing. > > > > I don't know what files the bookstore example is supposed to create, > > I suppose some java files and stuff ... but in my case nothing at > > all is created! > > > > First, I'm new to Torque as well. I think Torque does not override > generated classes and sql scripts if there is no valuable change in > the schema file. I mean, it happened to me too. After running > "ant -f torque-build.xml" once, subsequent runs did not change the > produced files. To workaround this I deleted the generated files/folders > and re-run the ant. > > > What is supposed to be created by running ant -f torque-build.xml. ? > > > > For all ant build files you can get help about the targets by simply > running: > "ant -projecthelp -f <build-file>" > > That prints the available targets. If you look for "main" target, it says > (for build-torque.xml) > "main ==> generates sql + om classes" > > > The tutorial is not much help either ... I mean it doesn't actually > > say what the command ant -f torque-build.xml is supposed to produce. > > > > I think tutorial is very good. (Actually it lacks a little since it is > originally a > mail posted to a list) Your problem is with ant files not torque. > Btw, if you post your exact error message, or what you think you should > get but can't we may help you better. > > Lastly, there is an article about Torque in this link: > http://www.developer.com/java/other/article.php/10936_1457081_2 > > > > > Regards > > Goffredo > > > > HTH. > > /tb. > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
