db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alvin Antony" <Alvin.Ant...@internet.lmu.de>
Subject Antw: err when trying to access database after compiling om classes
Date Thu, 25 Sep 2003 15:52:32 GMT
Hi,
        I had this error, in the very beginning, I couldn't remember
the exact reason, but it steps into a wrong/ missing property files
(Torque.property, schema.xml) ,  or  an incompatible version of common
logging or related jars. may be I can help you if I see the property
files.

regards,
Alvin

Alvin K. Antony
Ludwig-Maximilians-Universität München
Referat Internet
Softwareentwicklung
Oettingenstraße 67
80538 München
Germany
-------------------------------------------
Phone: +49 (0)89 2102-5979
Fax: +49 (0)89 2102-5980

Mobile: +49 (0)160 97340713

E-Mail: aantony@lmu.de

Web: http://www.lmu.de/internet/


>>> ve6@indiatimes.com 09/25 7:21  >>>
hi,


i am using torque 3.0 with mysql and ant 1.5.4 .


I tried the example in tutorial and successfully created a
database,generated om classes.i am getting an error when i try to access
database ,using this default ant build file in tutorial -


&lt;project name="quickstart" default="run" basedir="."&gt;&lt;property
name="build" value="bin"/&gt;
   &lt;property name="src" value="."/&gt;
  
   &lt;path id="base.classpath"&gt;
      &lt;pathelement path="."/&gt;
      &lt;pathelement path="${build}/classes"/&gt;
      &lt;fileset dir="${src}/lib/"&gt;
         &lt;include name="*.jar"/&gt;
      &lt;/fileset&gt; 
   &lt;/path&gt;
    
   &lt;target name="run"&gt;
         &lt;java classname="de.stephanwiesner.Bookstore"
         taskname="starter" failonerror="false" fork="true"&gt;  
         &lt;classpath refid="base.classpath" /&gt;   
       &lt;/java&gt;
   &lt;/target&gt;  
  
&lt;/project&gt;


i am getting this error ,can u tell where i am going wrong


C:\tomcat\webapps\medicare_torque_new&gt;ant
Buildfile: build.xml


run:
  [starter] Criteria initialised
  [starter] expc tprop
  [starter] org.apache.commons.logging.LogConfigurationException:
java.lang.refl
ect.InvocationTargetException
  [starter]     at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Lo
gFactoryImpl.java:532)
  [starter]     at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo
gFactoryImpl.java:272)
  [starter]     at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo
gFactoryImpl.java:246)
  [starter]     at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:
395)
  [starter]     at
org.apache.commons.configuration.PropertiesConfiguration.&lt;ini
t&gt;(PropertiesConfiguration.java:101)
  [starter]     at org.apache.torque.Torque.init(Torque.java:384)
  [starter]     at de.stephanwiesner.Bookstore.main(Bookstore.java:14)
  [starter] Caused by: java.lang.reflect.InvocationTargetException
  [starter]     at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
  [starter]     at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:39)
  [starter]     at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:27)
  [starter]     at
java.lang.reflect.Constructor.newInstance(Constructor.java:27
4)
  [starter]     at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Lo
gFactoryImpl.java:525)
  [starter]     ... 6 more
  [starter] Caused by: java.lang.VerifyError: (class:
org/apache/log4j/LogManage
r, method: &lt;clinit&gt; signature: ()V) Incompatible argument to
function
  [starter]     at org.apache.log4j.Logger.getLogger(Logger.java:85)
  [starter]     at
org.apache.commons.logging.impl.Log4JLogger.&lt;init&gt;(Log4JLogge
r.java:102)
  [starter]     ... 11 more
  [starter] log4j:ERROR No appenders could be found for category
(org.apache.tor
que.util.BasePeer).
  [starter] expc tprop 2
  [starter] log4j:ERROR Please initialize the log4j system properly.
  [starter] java.lang.NullPointerException
  [starter]     at org.apache.torque.BaseBook.save(BaseBook.java:353)
  [starter]     at de.stephanwiesner.Bookstore.main(Bookstore.java:24)


BUILD SUCCESSFUL
Get Your Private, Free E-mail from Indiatimes at 
http://email.indiatimes.com 
Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com 
Bid for Air Tickets on Air Sahara Flights at Prices Lower Than Before.
Just log on to http://airsahara.indiatimes.com and Bid Now !

Mime
View raw message