You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Tak Fujimoto <t-...@beingcorp.co.jp> on 2003/05/14 05:49:49 UTC

SOLVED!: Unable to insert data into a table with foreign keys

The reason I couldn't insert any data into mysql was
I had a configuration error in Torque.properties.
It solved now.

Thanks for your concern, Eric.

But, I am still having trouble with logging using log4j.

This is the part of Torque.properties.
****************************************************************
log4j.rootCategory = DEBUG, default
log4j.appender.default = org.apache.log4j.FileAppender
log4j.appender.default.file = ./torque.log
#log4j.appender.default.file = /usr/local/jakarta-tomcat-4.0.6/webapps/reportMy/WEB-INF/classes/torque.log    <-----------
log4j.appender.default.layout = org.apache.log4j.SimpleLayout
log4j.appender.default.layout.conversionPattern = %d [%t] %-5p %c - %m%n

torque.database.default=report
torque.database.report.adapter=mysql
****************************************************************

I have tried both a relative and an absolute path for file
but I haven't made my logging work.

I have refered the bottom part of http://db.apache.org/torque/tutorial/step2.html
but I don't really understand exact meaning of "This is relative to the starting point of the JVM".

I still haven't looked into THE MAIL ARCHIVE for this subject
and I will search from now.