multiple blogs/databases
Is it possible to run Antville with more than one blog/database (mysql) on one server?
What I've done:
created a copy of apps/antville called apps/catch22
added to apps.properties (in /usr/local/helma): catch22 catch22.mountpoint=/catch22
in apps/catch22/db.properties:
catch22.url=jdbc:mysql://localhost/catch22
catch22.driver=org.gjt.mm.mysql.Driver
catch22.user=
When I try to access localhost:8080 I get the following error:
Error in application 'catch22':
java.lang.RuntimeException: Error retrieving Node: java.sql.SQLException: Datasource not defined or unable to load driver: antville.
I'm doing this on a RH9 server
btw: running one blog/database works fine rgds, Per
robert
you can have any number of antville installations with their own database running on one machine, however you should not change the name of the db connection ("antville") to anything else. if you change your catch22 db.properties to
antville.url=jdbc:mysql://localhost/catch22
antville.driver=org.gjt.mm.mysql.Driver
antville.user=
antville.password=
it should work fine (the important thing is the url that points to a different database, of course the user defined needs the appropriate rights in the db).
pers
.. it workes :-). I thought the application name in db.properties had to be the same as the one in apps.properties