----- Original Message -----
From: "Jason van Zyl" <[EMAIL PROTECTED]>

> Where are you running this from? Are you sure the hsqldb jar is in your
> classpath?

I built the Torque .zip file (just tonight from CVS), unzipped it to
c:\temp\torque and have been playing there.

I added this to the build.xml there:

  <target name="test" depends="compile">
       <property name="classpath" refid="torque-classpath"/>
       <echo message="classpath = ${classpath}"/>
       <java classname="Test" fork="true">
         <classpath>
           <pathelement location="bin/classes"/>
           <path refid="torque-classpath"/>
         </classpath>
       </java>
  </target>

Added Test.java to src/java, which is the code I posted earlier.  And then I
get whats shown below (sorry for the broken wrapping).  Note: Ant removes
files/directories from a <path> if they do not exist, so it is showing the
real thing here.  I dropped hsqldb.jar into c:\temp\torque\lib, which
automatically got picked up into torque-classpath.

test:
     [echo] classpath =
C:\temp\torque\lib\commons-collections.jar;C:\temp\torqu
e\lib\commons-util-0.1-dev.jar;C:\temp\torque\lib\hsqldb.jar;C:\temp\torque\
lib\
jdbc2_0-stdext.jar;C:\temp\torque\lib\log4j-1.1.3.jar;C:\temp\torque\lib\str
atum
-0.1-dev.jar;C:\temp\torque\lib\torque-3.0-dev.jar;C:\temp\torque\lib\veloci
ty-1
.3-dev.jar;C:\temp\torque\lib\village-1.5.3-dev.jar;C:\temp\torque\lib\xerce
sImp
l-2.0.0.jar;C:\temp\torque\lib\xmlParserAPIs-2.0.0.jar
     [java] log4j:ERROR setFile(null,false) call failed.
     [java] java.io.FileNotFoundException: bin/test/logs/jcs.log (The system
can
not find the path specified)
     [java]     at java.io.FileOutputStream.open(Native Method)
     [java]     at
java.io.FileOutputStream.<init>(FileOutputStream.java:102)
     [java]     at java.io.FileWriter.<init>(FileWriter.java:52)
     [java]     at
org.apache.log4j.FileAppender.setFile(FileAppender.java:284)
     [java]     at
org.apache.log4j.FileAppender.activateOptions(FileAppender.ja
va:239)
     [java]     at
org.apache.log4j.config.PropertySetter.activate(PropertySette
r.java:247)
     [java]     at
org.apache.log4j.config.PropertySetter.setProperties(Property
Setter.java:123)
     [java]     at
org.apache.log4j.config.PropertySetter.setProperties(Property
Setter.java:87)
     [java]     at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyC
onfigurator.java:637)
     [java]     at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyC
onfigurator.java:595)
     [java]     at
org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(P
ropertyConfigurator.java:522)
     [java]     at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
figurator.java:412)
     [java]     at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
figurator.java:436)
     [java]     at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(O
ptionConverter.java:455)
     [java]     at org.apache.log4j.Category.<clinit>(Category.java:146)
     [java]     at org.apache.torque.Torque.<clinit>(Torque.java:126)
     [java]     at Test.main(Test.java:15)
     [java] log4j:ERROR No appenders could be found for category
(org.apache.tor
que.adapter.DBFactory).
     [java] log4j:ERROR Please initialize the log4j system properly.
     [java] java.lang.InstantiationException: Unknown JDBC driver:
org.hsqldb.jd
bcDriver: Check your configuration file
.
.
.


    Erik


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

Reply via email to