I did.

 

________________________________

From: Michael Horwitz [mailto:[EMAIL PROTECTED] 
Sent: woensdag 31 oktober 2007 14:34
To: users@appfuse.dev.java.net
Subject: Re: [appfuse-user] Tables not generated by dbunit-maven-plugin

 

You first need to run 'mvn install' either from the top level or from
your ../core module.

 

Mike.
 

On 10/31/07, Bonami, Christian <[EMAIL PROTECTED]> wrote: 

Hi,

 

I'm using oracle XE as underlying DB in appFuse 2 standard distribution.

So, on the commandline in .../web I run:

 

mvn jetty-run:war -P oracle

 

Apparently dbunit-maven-plugin connects well to the database, but then
starts complaining about a table (user_role) that is not found: 

 

[INFO] [dbunit:operation]

[INFO] 

Mazda Motor Logistics Europe NV, Blaasveldstraat 162, B-2830 Willebroek
VAT BE 406.024.281, RPR Mechelen, ING 310-0092504-52, IBAN : BE64 3100
0925 0452, SWIFT : BBRUBEBB




Mazda Motor Logistics Europe NV, Blaasveldstraat 162, B-2830 Willebroek
VAT BE 406.024.281, RPR Mechelen, ING  310-0092504-52, IBAN : BE64 3100 0925 
0452, SWIFT : BBRUBEBB

--------------------------------------------------------------------- 

[ERROR] BUILD ERROR

[INFO]
---------------------------------------------------------------------

[INFO] Error executing database operation: CLEAN_INSERT

 

Embedded error: user_role

[INFO] -------------------------------------------------------------

..

Caused by: org.apache.maven.plugin.MojoExecutionException: Error
executing datab

ase operation: CLEAN_INSERT

        at
org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:110

)

        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:443)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:539)

        ... 20 more

Caused by: org.dbunit.dataset.NoSuchTableException: user_role

..

[INFO]
---------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO]
---------------------------------------------------------------------

[INFO] Total time: 3 seconds

[INFO] Finished at: Wed Oct 31 13:44:19 CET 2007

[INFO] Final Memory: 7M/14M

[INFO]
--------------------------------------------------------------------

 

Why aren't the tables generated automatically? 

Do I have to create them manually?

What am I missing here?

 

Kind regards

Christian Bonami

 

Reply via email to