I have modified the LookupDaoHibernate with the following method:

public List<Club> getClubs(){
        log.debug("retrieving all clubs...");
        
        return getHibernateTemplate().find("from club order by clubName");
}


When I run "mvn jetty:run-war", I encounter the following error:

[INFO] Generating war D:\source\smartclub\target\smartclub-1.0-SNAPSHOT.war
[INFO] Building war: D:\source\smartclub\target\smartclub-1.0-SNAPSHOT.war
[INFO] [jetty:run-war]
[INFO] Configuring Jetty for project: AppFuse Struts 2 Application
2007-07-08 17:04:38.859::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
[INFO] Context path = /
[INFO] Tmp directory = D:\source\smartclub\target\work
[INFO] Web defaults =  jetty default
[INFO] Starting jetty null ...
2007-07-08 17:04:39.046::INFO:  jetty-6.0.x
2007-07-08 17:04:39.125::INFO:  Extract
jar:file:/D:/source/smartclub/target/sma
rtclub-1.0-SNAPSHOT.war!/ to D:\source\smartclub\target\work\webapp
2007-07-08 17:04:49.390:/:INFO:  Initializing Spring root
WebApplicationContext
AbandonedObjectPool is used
([EMAIL PROTECTED])

   LogAbandoned: false
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60
2007-07-08 17:05:00.171::WARN:  failed
[EMAIL PROTECTED]/,file:/D:/source/
smartclub/target/work/webapp/}
2007-07-08 17:05:00.171::WARN:  failed [EMAIL PROTECTED]
2007-07-08 17:05:00.171::WARN:  failed [EMAIL PROTECTED]
2007-07-08 17:05:00.234::INFO:  Started SelectChannelConnector @
0.0.0.0:8080
2007-07-08 17:05:00.234::WARN:  failed [EMAIL PROTECTED]
[INFO] Jetty server exiting.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failure

Embedded error: club is not mapped [from club order by clubName]; nested
excepti
on is org.hibernate.hql.ast.QuerySyntaxException: club is not mapped [from
club
order by clubName]
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 17 seconds
[INFO] Finished at: Sun Jul 08 17:05:00 SGT 2007
[INFO] Final Memory: 27M/48M
[INFO]
------------------------------------------------------------------------
2007-07-08 17:05:00.921::INFO:  Shutdown hook executing
2007-07-08 17:05:00.921::INFO:  Shutdown hook complete


-- 
View this message in context: 
http://www.nabble.com/LookupDaoHibernate-tf4043930s2369.html#a11487110
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to