db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frederik Liden" <fli...@translate.com>
Subject RE: Problem Compiling the Tutorial App
Date Fri, 30 Jan 2004 23:27:16 GMT
This is what I did:

I downloaded the torque-gen-3.1.zip unzipped it.
C:\mytorque\torque-gen-3.1

I modified the C:\mytorque\torque-gen-3.1\build.properties to the
following:

torque.project = bookstore
torque.database = mysql
torque.targetPackage = com.kazmier.om
torque.database.createUrl = jdbc:mysql://127.0.0.1/mysql 
torque.database.buildUrl = jdbc:mysql://127.0.0.1/bookstore 
torque.database.url = jdbc:mysql://127.0.0.1/bookstore 
torque.database.driver = org.gjt.mm.mysql.Driver 
torque.database.user = myuser 
torque.database.password = mypassword 
torque.database.host = 127.0.0.1

The C:\mytorque\torque-gen-3.1\schema\bookstore-schema.xml:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE database SYSTEM
 "http://db.apache.org/torque/dtd/database_3_1.dtd">

<database
  name="bookstore"
  defaultIdMethod="idbroker">

  <table name="book" description="Book Table">
    <column
      name="book_id"
      required="true"
      primaryKey="true"
      type="INTEGER"
      description="Book Id"/>
    <column
      name="title"
      required="true"
      type="VARCHAR"
      size="255"
      description="Book Title"/>
    <column
      name="isbn"
      required="true"
      type="VARCHAR"
      size="24"
      javaName="ISBN"
      description="ISBN Number"/>
    <column
      name="publisher_id"
      required="true"
      type="INTEGER"
      description="Foreign Key Publisher"/>
    <column
      name="author_id"
      required="true"
      type="INTEGER"
      description="Foreign Key Author"/>
    <foreign-key foreignTable="publisher">
      <reference
        local="publisher_id"
        foreign="publisher_id"/>
    </foreign-key>
    <foreign-key foreignTable="author">
      <reference
        local="author_id"
        foreign="author_id"/>
    </foreign-key>
  </table>
  <table name="publisher" description="Publisher Table">
    <column
      name="publisher_id"
      required="true"
      primaryKey="true"
      type="INTEGER"
      description="Publisher Id"/>
    <column
      name="name"
      required="true"
      type="VARCHAR"
      size="128"
      description="Publisher Name"/>
  </table>
  <table name="author" description="Author Table">
    <column
      name="author_id"
      required="true"
      primaryKey="true"
      type="INTEGER"
      description="Author Id"/>
    <column
      name="first_name"
      required="true"
      type="VARCHAR"
      size="128"
      description="First Name"/>
    <column
      name="last_name"
      required="true"
      type="VARCHAR"
      size="128"
      description="Last Name"/>
  </table>
</database>

I successfully run:

ant -f build-torque.xml
ant -f build-torque.xml create-db
ant -f build-torque.xml id-table-init-sql
ant -f build-torque.xml insert-sql

But when I try to compile it using 
ant -f build-torque.xml compile I get the following errors:

Buildfile: build-torque.xml

compile:
    [javac] Compiling 20 source files to
C:\mytorque\torque-gen-3.1\bin\classes
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\Author.java:5:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.Persistent;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:12:
package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:13:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.BaseObject;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:14:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.ComboKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:15:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.DateKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:16:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.NumberKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:17:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.ObjectKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:18:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.SimpleKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:19:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.StringKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:20:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.Persistent;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:21:
package org.apache.torque.util does not exist
    [javac] import org.apache.torque.util.Criteria;
    [javac]                               ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:22:
package org.apache.torque.util does not exist
    [javac] import org.apache.torque.util.Transaction;
    [javac]                               ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:33:
cannot resolve symbol
    [javac] symbol  : class BaseObject 
    [javac] location: class com.kazmier.om.BaseAuthor
    [javac] public abstract class BaseAuthor extends BaseObject
    [javac]                                          ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\Author.java:18:
cannot resolve symbol
    [javac] symbol  : class Persistent 
    [javac] location: class com.kazmier.om.Author
    [javac]     implements Persistent
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
2: package org.apache.torque does not exist
    [javac] import org.apache.torque.NoRowsException;
    [javac]                          ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
3: package org.apache.torque does not exist
    [javac] import org.apache.torque.TooManyRowsException;
    [javac]                          ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
4: package org.apache.torque does not exist
    [javac] import org.apache.torque.Torque;
    [javac]                          ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
5: package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
6: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.MapBuilder;
    [javac]                              ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
7: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.TableMap;
    [javac]                              ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
8: package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.DateKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
9: package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.NumberKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:2
0: package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.StringKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:2
1: package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.ObjectKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:2
2: package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.SimpleKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:2
3: package org.apache.torque.util does not exist
    [javac] import org.apache.torque.util.BasePeer;
    [javac]                               ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:2
4: package org.apache.torque.util does not exist
    [javac] import org.apache.torque.util.Criteria;
    [javac]                               ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:4
1: cannot resolve symbol
    [javac] symbol  : class BasePeer 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     extends BasePeer
    [javac]             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\AuthorPeer.java:15:
cannot resolve symbol
    [javac] symbol  : class List 
    [javac] location: class com.kazmier.om.AuthorPeer
    [javac]   public static List doSelectAll() throws Exception
    [javac]                 ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:5
5: cannot resolve symbol
    [javac] symbol  : class MapBuilder 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static MapBuilder getMapBuilder()
    [javac]                   ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:5
6: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
41: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]             throws TorqueException
    [javac]                    ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
81: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static ObjectKey doInsert(Criteria criteria)
    [javac]                                      ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
81: cannot resolve symbol
    [javac] symbol  : class ObjectKey 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static ObjectKey doInsert(Criteria criteria)
    [javac]                   ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
82: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
98: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static ObjectKey doInsert(Criteria criteria,
Connection con)
    [javac]                                      ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
98: cannot resolve symbol
    [javac] symbol  : class ObjectKey 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static ObjectKey doInsert(Criteria criteria,
Connection con)
    [javac]                   ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:1
99: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:2
26: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static void addSelectColumns(Criteria criteria)
    [javac]                                         ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:2
27: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]             throws TorqueException
    [javac]                    ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:2
46: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:2
79: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:3
01: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static List doSelect(Criteria criteria) throws
TorqueException
    [javac]                                 ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:3
01: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static List doSelect(Criteria criteria) throws
TorqueException
    [javac]                                                           ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:3
15: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static List doSelect(Criteria criteria,
Connection con)
    [javac]                                 ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:3
16: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:3
31: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static List doSelectVillageRecords(Criteria
criteria)
    [javac]                                               ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:3
32: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:3
46: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static List doSelectVillageRecords(Criteria
criteria, Connection con)
    [javac]                                               ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:3
47: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:3
82: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:4
06: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:4
19: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static void doUpdate(Criteria criteria) throws
TorqueException
    [javac]                                 ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:4
19: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static void doUpdate(Criteria criteria) throws
TorqueException
    [javac]                                                           ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:4
36: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static void doUpdate(Criteria criteria,
Connection con)
    [javac]                                 ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:4
37: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:4
66: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]      public static void doDelete(Criteria criteria) throws
TorqueException
    [javac]                                  ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:4
66: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]      public static void doDelete(Criteria criteria) throws
TorqueException
    [javac]                                                            ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:4
82: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]      public static void doDelete(Criteria criteria,
Connection con)
    [javac]                                  ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:4
83: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:5
09: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static List doSelect(Author obj) throws
TorqueException
    [javac]                                                    ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:5
20: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static void doInsert(Author obj) throws
TorqueException
    [javac]                                                    ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:5
32: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static void doUpdate(Author obj) throws
TorqueException
    [javac]                                                    ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:5
43: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static void doDelete(Author obj) throws
TorqueException
    [javac]                                                    ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:5
59: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:5
77: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:5
94: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
06: cannot resolve symbol
    [javac] symbol  : class ObjectKey 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static void doDelete(ObjectKey pk) throws
TorqueException
    [javac]                                 ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
06: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static void doDelete(ObjectKey pk) throws
TorqueException
    [javac]                                                      ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
22: cannot resolve symbol
    [javac] symbol  : class ObjectKey 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static void doDelete(ObjectKey pk, Connection
con)
    [javac]                                 ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
23: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
29: cannot resolve symbol
    [javac] symbol  : class ObjectKey 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static Criteria buildCriteria( ObjectKey pk )
    [javac]                                           ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
29: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static Criteria buildCriteria( ObjectKey pk )
    [javac]                   ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
37: cannot resolve symbol
    [javac] symbol  : class Criteria 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static Criteria buildCriteria( Author obj )
    [javac]                   ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
58: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException, NoRowsException,
TooManyRowsException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
58: cannot resolve symbol
    [javac] symbol  : class NoRowsException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException, NoRowsException,
TooManyRowsException
    [javac]                                 ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
58: cannot resolve symbol
    [javac] symbol  : class TooManyRowsException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException, NoRowsException,
TooManyRowsException
    [javac]                                                  ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
72: cannot resolve symbol
    [javac] symbol  : class ObjectKey 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static Author retrieveByPK(ObjectKey pk)
    [javac]                                       ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
73: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException, NoRowsException,
TooManyRowsException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
73: cannot resolve symbol
    [javac] symbol  : class NoRowsException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException, NoRowsException,
TooManyRowsException
    [javac]                                 ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
73: cannot resolve symbol
    [javac] symbol  : class TooManyRowsException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException, NoRowsException,
TooManyRowsException
    [javac]                                                  ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
72: retrieveByPK(int) is already defined in
com.kazmier.om.BaseAuthorPeer
    [javac]     public static Author retrieveByPK(ObjectKey pk)
    [javac]                          ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:6
99: cannot resolve symbol
    [javac] symbol  : class ObjectKey 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     public static Author retrieveByPK(ObjectKey pk,
Connection con)
    [javac]                                       ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:7
00: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException, NoRowsException,
TooManyRowsException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:7
00: cannot resolve symbol
    [javac] symbol  : class NoRowsException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException, NoRowsException,
TooManyRowsException
    [javac]                                 ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:7
00: cannot resolve symbol
    [javac] symbol  : class TooManyRowsException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException, NoRowsException,
TooManyRowsException
    [javac]                                                  ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:7
26: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:7
51: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:7
83: cannot resolve symbol
    [javac] symbol  : class TableMap 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]     protected static TableMap getTableMap()
    [javac]                      ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthorPeer.java:7
84: cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthorPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseAuthor.java:66:
cannot resolve symbol
    [javac] symbol  : class TorqueException 
    [javac] location: class com.kazmier.om.BaseAuthor
    [javac]     public void setAuthorId(int v) throws TorqueException
    [javac]                                           ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\Book.java:5: package
org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.Persistent;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseBook.java:12:
package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseBook.java:13:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.BaseObject;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseBook.java:14:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.ComboKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseBook.java:15:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.DateKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseBook.java:16:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.NumberKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseBook.java:17:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.ObjectKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseBook.java:18:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.SimpleKey;
    [javac]                             ^
    [javac]
C:\mytorque\torque-gen-3.1\src\java\com\kazmier\om\BaseBook.java:19:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.StringKey;
    [javac]                             ^
    [javac] 100 errors

All the jar files are in the C:\mytorque\torque-gen-3.1\lib\ directory.
Could it be some kind of jar conflict?
Someone please! This is driving me nuts!

Thanks,

Fredrik

-----Original Message-----
From: Marc Berman [mailto:breitmarc@yahoo.com] 
Sent: Friday, January 23, 2004 6:54 PM
To: Apache Torque Users List
Subject: Re: Problem Compiling the Tutorial App


Frederik,

Can you be more specific about the errors. Some
examples would help.

Marc
--- Frederik Liden <fliden@translate.com> wrote:
> Hi,
> 
> I'm a new Torque user trying to get through the
> tutorial.
> I came as far as creating the source files, creating
> the database, and
> modifying the java source files but when I try and
> compile the
> sourcefiles I get 100 errors. A bunch of files
> cannot be found:=20
> 
> TorqueException, Criteria, Etc.
> 
> Have anyone else gotten this problem. Where can I
> modify a classpath to
> be able to compile the tutorial completely. Many
> thanks
> 
> Fredrik
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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


---------------------------------------------------------------------
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