Saimon,
If its any comfort, I just did exactly what you did, and got the same
errors :) I don't know what has changed wrt to requirements for the new
tdk/torque and extending Turbine User, but I am guess, we may have to
implement a few more methods. Can anyone give us a prod in the right
direction? Also, where can I find more data on the new manager classes
and their purpose? (only in the src?) Lastly, Martin, with which src
version of turbine was the latest tdk (tdk-020302.tar.gz) built? (I need
the right version to properly set up debugging with jpda)
thanks,
-cam.
On Tue, 2002-03-05 at 16:59, Saimon Moore wrote:
> Hi,
>
> I've been following the Extending TurbineUser tutorial using martin's
> latest
> tdk (with torque uncoupled-updated) and have followed it exactly to the
> point
> where you must call 'ant init' to compile the files (i.e after creating the
> mapbuilder, adapters and implementing retrieveByPK() methods..
>
> Unfortunately, I'm not having much luck in compiling. The errors are quite
> disparate but all seem to point at the extended user files as being the
> problem. I'm not quite sure if this is a problem with the latest tdk or if
> I've done something wrong.
>
> From what I can gather there are methods missing from both the basePeer
> and
> the peer classes that the Manager class is looking for.
>
> Do I just implement all these methods or am I missing something..?
>
> I'd appreciate any help on this as I'd like to really get into Turbine
> again.
>
> Thanks
>
> Saimon
>
> Here are the compile errors...
> compile:
> [javac] Compiling 125 source files to
> /home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/classes
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/BaseDidaxeUserManager.java:200:
>
>
> incompatible types
> [javac] found : org.apache.turbine.util.db.Criteria
> [javac] required: org.apache.torque.util.Criteria
> [javac] Criteria crit = DidaxeUserPeer.buildCriteria(om);
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/BaseDidaxeUserManager.java:201:
>
>
> cannot resolve symbol
> [javac] symbol : method doSelect (org.apache.torque.util.Criteria)
> [javac] location: class org.sam.didaxe.om.DidaxeUserPeer
> [javac] return DidaxeUserPeer.doSelect(crit).size() > 0;
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/DidaxeUser.java:11:
>
>
> org.sam.didaxe.om.DidaxeUser should be declared abstract; it does not
> define
> setPrimaryKey(org.apache.torque.om.ObjectKey) in
> org.sam.didaxe.om.DidaxeUser
> [javac] public class DidaxeUser
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/BaseDidaxeUserPeer.java:44:
>
>
> cannot resolve symbol
> [javac] symbol : variable category
> [javac] location: class org.sam.didaxe.om.BaseDidaxeUserPeer
> [javac] category.error("A FATAL ERROR has occurred which
> should not " +
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/BaseDidaxeUserPeer.java:87:
>
>
> cannot resolve symbol
> [javac] symbol : variable DATABASE_NAME
> [javac] location: class org.sam.didaxe.om.BaseDidaxeUserPeer
> [javac] db = Torque.getConnection( DATABASE_NAME );
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/BaseDidaxeUserPeer.java:110:
>
>
> cannot resolve symbol
> [javac] symbol : method doSelect
> (org.apache.torque.util.Criteria,org.apache.torque.pool.DBConnection)
> [javac] location: class org.sam.didaxe.om.BaseDidaxeUserPeer
> [javac] Vector v = doSelect(criteria, dbcon);
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/BaseDidaxeUserPeer.java:134:
>
>
> cannot resolve symbol
> [javac] symbol : variable DATABASE_NAME
> [javac] location: class org.sam.didaxe.om.BaseDidaxeUserPeer
> [javac] db = Torque.getConnection( DATABASE_NAME );
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/BaseDidaxeUserPeer.java:163:
>
>
> cannot resolve symbol
> [javac] symbol : method doSelect
> (org.apache.torque.util.Criteria,org.apache.torque.pool.DBConnection)
> [javac] location: class org.sam.didaxe.om.BaseDidaxeUserPeer
> [javac] objs = doSelect(criteria, dbcon);
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/DidaxeUserPeer.java:28:
>
>
> cannot resolve symbol
> [javac] symbol : variable TurbineDB
> [javac] location: class org.sam.didaxe.om.DidaxeUserPeer
> [javac] db = TurbineDB.getConnection(getMapBuilder()
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/DidaxeUserPeer.java:36:
>
>
> cannot resolve symbol
> [javac] symbol : variable TurbineDB
> [javac] location: class org.sam.didaxe.om.DidaxeUserPeer
> [javac] TurbineDB.releaseConnection(db);
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/DidaxeUserPeer.java:45:
>
>
> cannot resolve symbol
> [javac] symbol : class Criteria
> [javac] location: class org.sam.didaxe.om.DidaxeUserPeer
> [javac] Criteria criteria = new Criteria();
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/DidaxeUserPeer.java:45:
>
>
> cannot resolve symbol
> [javac] symbol : class Criteria
> [javac] location: class org.sam.didaxe.om.DidaxeUserPeer
> [javac] Criteria criteria = new Criteria();
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/BaseRdfPeer.java:650:
>
>
> addSelectColumns(org.apache.turbine.util.db.Criteria) in
> org.apache.turbine.om.security.peer.TurbineUserPeer cannot be applied to
> (org.apache.torque.util.Criteria)
> [javac] DidaxeUserPeer.addSelectColumns(c);
> [javac] ^
> [javac]
>
>/home/saimonm/development/tdkTDUpdate020302/webapps/didaxe/WEB-INF/src/java/org/sam/didaxe/om/BaseRdf.java:319:
>
>
> cannot resolve symbol
> [javac] symbol : method setCreateUserId
> (org.apache.turbine.om.NumberKey)
> [javac] location: class org.sam.didaxe.om.BaseRdf
> [javac] setCreateUserId(v.getUserId());
> [javac] ^
> [javac] 14 errors
>
> BUILD FAILED
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>