turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Bachelder" <cho...@chowda.net>
Subject Re: Standalone Torque...
Date Sun, 14 Oct 2001 14:27:40 GMT
Even in standalone mode torque needs velocity, you'll need to get
velocity-1.2-dev.jar (i think) and put it in your class path...

----- Original Message -----
From: "dcr" <david.crosson@wanadoo.fr>
To: <turbine-user@jakarta.apache.org>
Sent: Sunday, October 14, 2001 12:05 PM
Subject: Standalone Torque...


> Hello,
>
>   I'm trying to use Torque in a standalone application, but when trying
> to make my first application, it requires some velocity stuff. Any idea
> how I can say to Torque, use that configuration or please run in
standalone
> mode ? I got the following error :
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/velocity/runtime/configuration/Configuration
>         at
> org.apache.turbine.services.db.TurbineDB.getMapBroker(TurbineDB.java:299)
>         at
>
org.apache.turbine.services.db.TurbineDB.getDatabaseMap(TurbineDB.java:142)
>         at autosql.map.SimpleMapBuilder.doBuild(Unknown Source)
>         at
> org.apache.turbine.om.peer.BasePeer.getMapBuilder(BasePeer.java:1845)
>         at autosql.BaseSimplePeer.<clinit>(Unknown Source)
>         at autosql.BaseSimple.save(Unknown Source)
>         at appli.Main.main(Unknown Source)
>
> appli.Main is a "silly" example application :
>
> package appli;
> import autosql.*;
> public class Main {
>     public static void main(String args[]) throws Exception {
>         Simple s = new Simple();
>         s.save();
>         System.out.println("Exiting...");
>         System.exit(0);
>     }
> }
>
> autosql.* are torque generated classes.
>
>
> Thanks for any help,
> David.
>
> --
> // David CROSSON
> // mailto:david.crosson@wanadoo.fr
> // http://gamma.dyndns.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


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


Mime
View raw message