[flymine-dev] testmodel/dbmodel

Thomas Riley flymine-dev@flymine.org
Thu, 8 Dec 2005 14:09:14 +0000


On 8 Dec 2005, at 13:59, AlexanderP@gmx.at wrote:

> (well, I have been invited to lunch today, I know ists short timed...
> hopefully your read this in short time...)
> ok, next thing,
>
> in
> testmodel/dbmodel
> exists no target insert-data-testmodel for ant,
> (so I have tried simply 'ant'
> ->
> BUILD
> FAILED
> /bi/common/src/flymine-3.0-checkout/flymine_release_3_0_branch/ 
> imbuild/objectstore.xml:54:
> java.sql.SQLException: ERROR: relation "intermine_metadata" does  
> not exist


Apologies - my original instructions probably weren't quite right.  
What the default ant target in dbmodel does is look at an initialised  
database, pull the model out of the database and build a jar  
containing the model that is added to the final webapp. So the error  
you get is because the database has not been initialised so run:

ant build-db
ant insert-data-unittest

in dbmodel to get the database set up. (The default target will be  
run automatically when you build the testmodel web-app.)

After that, run ant in testmodel/webapp/main to build the final war  
file.

tom