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 Info <in...@crestax.ca> on 2004/04/20 08:03:58 UTC
About Torque
Hi guys,
I am a newbie to Torque and OJB. I have couple beginner question:
1) As I download Torque packages I get torque-3.1.zip and
torque-gen-3.1.zip. I know the *gen* is for generating java code and OR
mapping xml, how does torque-3.1.zip work?
2) I have started my very simple testing on Torque, after I command ant
-f built-torque.xml, I get a log4j error. It likely can't find
log4j.appender.org.apache.torque.engine property. How should I fix it?
3) After ant -f built-torque.xml, I get java source in src/java. I use
ant -f built-torque.xml compile to compile those java file (is this
correct?), but I get dozen of errors:
compile:
[mkdir] Created dir: D:\Temp\Torque\torque-gen-3.1\bin\classes
[javac] Compiling 6 source files to
D:\Temp\Torque\torque-gen-3.1\bin\classe
s
[javac] D:\Temp\Torque\torque-gen-3.1\src\java\test\.java:15:
<identifier> e
xpected
[javac] public interface
[javac] ^
[javac] D:\Temp\Torque\torque-gen-3.1\src\java\test\.java:18: '{'
expected
[javac] ^
[javac]
D:\Temp\Torque\torque-gen-3.1\src\java\test\BaseOMUser.java:273: ill
egal start of expression
[javac] )
[javac] ^
[javac]
D:\Temp\Torque\torque-gen-3.1\src\java\test\BaseOMUser.java:284: ill
egal start of expression
[javac] )
[javac] ^
[javac] D:\Temp\Torque\torque-gen-3.1\src\java\test\OMUser.java:19:
illegal
start of type
[javac] {
[javac] ^
[javac] D:\Temp\Torque\torque-gen-3.1\src\java\test\OMUser.java:21:
'{' expe
cted
[javac] ^
[javac] 6 errors
I checked the code, difinately Torque generates the wrong code. Did you
met the same problem? (I am using Torque 3.1).
I found Torque and OJB is a very nice tool, but no more doc to support
them. The articals on Apache site are simple and not compitable with the
release package. Do you know where can I get more infomation about Torque?
You replies are very very welcome!
Reagrds,
Wallace
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org