You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Daniel L. Rall" <dl...@finemaltcoding.com> on 2004/04/18 00:12:18 UTC
Re: Creating XXX-schema.xml from existing DB
It looks like your Log4J-based log file is misconfigured. Make sure that
log4j.properties is available to your application. It should probably look
something like this:
log4j.rootLogger = INFO, torque-gen
#
# Turbine goes into Turbine Log
#
log4j.category.org.apache.torque-gen = DEBUG, org.apache.torque.engine
log4j.additivity.org.apache.torque-gen = false
log4j.appender.torque-gen = org.apache.log4j.ConsoleAppender
log4j.appender.torque-gen.layout = org.apache.log4j.PatternLayout
log4j.appender.torque-gen.layout.conversionPattern = %d [%t] %-5p %c - %m%n
(Taken from src/generator/src/conf/log4j.properties.)
Sheng Guo wrote:
> Hello,
>
> I have a similar problem. I wrote a sql file, and used it to generate
> the tables in the PostgreSQL database. And now I want to generate a
> project-schema.xml with the exiting .sql file, but it failed.
>
> In the build-torque.xml I have the following code:
>
> <target
> name="sql2xml"
> description="==> creates an xml schema from an sql schema">
>
> <torque-sql-transform
> inputFile="${torque.schema.dir}/schema.sql"
> outputFile="${torque.schema.dir}/schema.xml"
> />
> </target>
>
> and I tried ant -f build-torque.xml sql2xml , but there was alway a
> problem:
>
> C:\SEP\gogol\components\cnt>ant -f build-torque.xml sql2xml
> Buildfile: build-torque.xml
>
> sql2xml:
> [torque-sql-transform] Parsing SQL Schema
> [torque-sql-transform] log4j:ERROR Could not find value for key
> log4j.appender.o
> rg.apache.torque.engine
> [torque-sql-transform] log4j:ERROR Could not instantiate appender named
> "org.apa
> che.torque.engine".
>
> After that the programm stopped. What is wrong here?
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org