db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suneel gupta <gofor_sun...@yahoo.co.in>
Subject Re: TorqueDataModelTask not found error
Date Sun, 08 Feb 2004 12:33:18 GMT
hello 
Dear Frank 
 firstly:- use apache-ant-1.6.0
 second:- avoid any jar file which are in ure torque
lib directory from the classpath
 Third:- Download torque-3.0-b1 from apache sites
 forth:- use j2sdk1.4.1
After that if there is problem mail to me
>From 
suneel gupta



 --- Frank Nguyen <franktnguyen@sbcglobal.net> wrote:
> 
> Hi,
> 
> I kept getting this error message while building:
> 
> D:\torque-3.0-b4>ant -f build-torque.xml
> Buildfile: build-torque.xml
> 
> BUILD FAILED
> file:D:/torque-3.0-b4/build-torque.xml:77: taskdef
> class
> org.apache.torque.task.TorqueDataModelTask cannot be
> found
> 
> Total time: 15 seconds
> 
> I downloaded and installed it straight for the CD.
> There is
> torque-3.0-b4.jar under torque-3.0-b4 dir and I also
> copied it into my java
> home j2sdk1.4.1_05/jre/lib/ext. The jar tvf command
> does show
> org.apache.torque.task.TorqueDataModelTask class is
> in the jar file. So,
> what eles could be wrong ?
> 
> Thanks in advance,
> 
> -Frank
> 
> > <project name="Torque" default="main" basedir=".">
>   <!--
>     Note - You should not have to edit this file.
> 
>     Instead, if calling build-torque.xml directly,
> edit the build.properties
>     that is in the same directory. If calling
> build-torque.xml via another
>     build file, you can also use the
> build.properties in the same directory,
>     or set the property torque.contextProperties to
> the file
>     to use in place of build.properties (e.g.
> project.properties).
>   -->
> 
>   <!--
>     For us to load the default.properties from the
> classpath, we need to bootstrap.
>     To know the right lib.dir for the
> torque-classpath, we need to manually
>     figure out torque.lib.dir, but to do that, we
> need to manually figure
>     out torque.contextProperties and load that so
> that any old configurations
>     still work propertly. Then we can go on and do
> the rest of the mappings via
>     old.properties.
>    -->
>   <property name="build.properties"
> value="build.properties"/>
>   <property name="torque.contextProperties"
> value="${build.properties}"/>
>   <property file="${torque.contextProperties}"/>
>   <property name="lib.dir" value="lib"/>
>   <property name="torque.lib.dir"
> value="${lib.dir}"/>
>   <property name="torque.jar"
> value="torque-3.0-b4.jar"/>
> 
>   <!--
>     Build the classpath. Specifically point to each
> file we're including to avoid
>     version conflicts in the case of the
> torque.lib.dir being something like lib.repo.
>     However, we still need to pull in the user's
> database driver and since we don't
>     know which jar that will be, after we've got all
> of our specific, version-safe jars,
>     do a general inclusion of the torque.lib.dir to
> catch any drivers.
>   -->
>   <path id="torque-classpath">
>     <pathelement location="torque.jar.fullpath"/>
>     <fileset dir="${torque.lib.dir}">
>       <include name="**/commons-beanutils-1.4.jar"/>
>       <include
> name="**/commons-collections-2.0.jar"/>
>       <include
> name="**/commons-configuration-1.0-dev.jar"/>
>       <include
> name="**/commons-dbcp-1.0-dev-20020806.jar"/>
>       <include name="**/commons-lang-1.0-b1.jar"/>
>       <include name="**/commons-logging-1.0.jar"/>
>       <include name="**/commons-pool-1.0.jar"/>
>       <include name="**/jcs-1.0-dev.jar"/>
>       <include name="**/jdbc-2.0.jar"/>
>       <include name="**/jndi-1.2.1.jar"/>
>       <include name="**/log4j-1.2.6.jar"/>
>       <include name="**/stratum-1.0-b3.jar"/>
>       <include name="**/tomcat-naming-common.jar"/>
>       <include name="**/${torque.jar}"/>
>       <include name="**/velocity-1.3.jar"/>
>       <include name="**/village-1.5.3.jar"/>
>       <include name="**/xercesImpl-2.0.2.jar"/>
>       <include name="**/xmlParserAPIs-2.0.2.jar"/>
>       <include name="**/*.jar"/>
>     </fileset>
>   </path>
> 
>   <!--
>     The default.properties file will map old
> properties to the new ones along
>     with setting the corret defaults.
>   -->
>   <property
> resource="org/apache/torque/default.properties">
>     <classpath>
>       <path refid="torque-classpath"/>
>     </classpath>
>   </property>
> 
>   <!--
>     Do forward declarations of all of our tasks to
>     centralize them and clean up the targets.
>   -->
> 
>   <taskdef
>     name="torque-data-model"
>     classpathref="torque-classpath"
>    
>
classname="org.apache.torque.task.TorqueDataModelTask"/>
>   <taskdef
>     name="torque-data-dump"
>     classpathref="torque-classpath"
>    
>
classname="org.apache.torque.task.TorqueDataDumpTask"/>
>   <taskdef
>     name="torque-data-sql"
>     classpathref="torque-classpath"
>    
>
classname="org.apache.torque.task.TorqueDataSQLTask"/>
>   <taskdef
>     name="torque-doc"
>     classpathref="torque-classpath"
>    
>
classname="org.apache.torque.task.TorqueDocumentationTask"/>
>   <taskdef
>     name="torque-jdbc-transform"
>     classpathref="torque-classpath"
>    
>
classname="org.apache.torque.task.TorqueJDBCTransformTask"/>
>   <taskdef
>     name="torque-package-to-path"
>     classpathref="torque-classpath"
>    
>
classname="org.apache.torque.task.PackageAsPathTask"/>
>   <taskdef
>     name="torque-sql"
>     classpathref="torque-classpath"
>    
> classname="org.apache.torque.task.TorqueSQLTask"/>
>   <taskdef
>     name="torque-sql-exec"
>     classpathref="torque-classpath"
>    
> classname="org.apache.torque.task.TorqueSQLExec"/>
>   <taskdef
>     name="torque-sql-transform"
>     classpathref="torque-classpath"
>    
>
classname="org.apache.torque.task.TorqueSQLTransformTask"/>
> 
>   <!--
>
================================================================
> -->
>   <!-- M A I N  T A R G E T                         
>                    -->
>   <!--
>
================================================================
> -->
>   <!-- This default target will run all the targets
> that generate       -->
>   <!-- source. You will probably only run this
> target once then         -->
>   <!-- call individual targets as necessary to
> update your sources      -->
>   <!-- when you change your XML schema.             
>                    -->
>   <!--
>
================================================================
> -->
> 
>   <target
>     name="main"
>     description="==> generates sql + om classes">
> 
>     <antcall target="sql"/>
>     <antcall target="om"/>
>   </target>
> 
>   <!--
>
================================================================
> -->
>   <!-- C H E C K  U S E C L A S S P A T H           
>                    -->
>   <!--
>
================================================================
> -->
>   <!-- Temporary hack around the propertiesUtil bug.
> Should             -->
>   <!-- be fixed soon.                               
>                    -->
>   <!--
>
================================================================
> -->
> 
>   <target name="check-use-classpath">
>     <condition
> property="torque.internal.useClasspath">
>       <equals arg1="${torque.useClasspath}"
> arg2="true"/>
>     </condition>
>   </target>
> 
>   <!--
>
================================================================
> -->
>   <!-- C H E C K  R U N  O N L Y  O N  S C H E M A 
> C H A N G E         -->
>   <!--
>
================================================================

=== message truncated ===>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail:
torque-user-help@db.apache.org 

________________________________________________________________________
Yahoo! India Education Special: Study in the UK now.
Go to http://in.specials.yahoo.com/index1.html

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message