For some reason, sometimes the hbm2ddl execution is skipped.  Try
running "mvn hibernate3:hbm2dll".  After running this once, it should
continue to run after that.

Matt

On 1/11/07, Jaymin Shah <[EMAIL PROTECTED]> wrote:

I have tried executing above steps after deleting project folder and mySql
database but it still continues to give me errors.



Jaymin Shah wrote:
>
> I have successfully created a new Project using following command –
>
> F:\>mvn archetype:create -DarchetypeGroupId=org.appfuse
> -DarchetypeArtifactId=ap
> pfuse-basic-struts
> -DremoteRepositories=http://static.appfuse.org/repository -Da
> rchetypeVersion=1.0-SNAPSHOT -DgroupId=com.james -DartifactId=RealTrade
>
> I then executed "mvn –e install" from "F:\ RealTrade>" folder and got
> following error.
>
> F:\RealTrade>mvn -e install
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building AppFuse Struts 2 Application
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [warpath:add-classes {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [dbunit:operation {execution: default}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing database operation: CLEAN_INSERT
>
> Embedded error: user_role
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
> database operation: CLEAN_INSERT
>         at
> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>         at
> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>         at
> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at
> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at
> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         at
> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
> database operation: CLEAN_INSERT
>         at
> org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:110)
>         at
> 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>         at
> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         ... 16 more
> Caused by: org.dbunit.dataset.NoSuchTableException: user_role
>         at
> org.dbunit.database.DatabaseDataSet.getTableMetaData(DatabaseDataSet.java:192)
>         at
> org.dbunit.operation.DeleteAllOperation.execute(DeleteAllOperation.java:98)
>         at
> org.dbunit.operation.CompositeOperation.execute(CompositeOperation.java:67)
>         at org.dbunit.ant.Operation.execute(Operation.java:183)
>         at
> org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:101)
>         ... 18 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Fri Jan 12 10:10:48 GMT+05:30 2007
> [INFO] Final Memory: 11M/20M
> [INFO]
> ------------------------------------------------------------------------
>
> F:\RealTrade>
>
> Thanks in advance for all your help,
> Jaymin
>

--
View this message in context: 
http://www.nabble.com/Struts-2-Basic---build-issue-tf2963969s2369.html#a8292727
Sent from the AppFuse - User mailing list archive at Nabble.com.

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




--
http://raibledesigns.com

Reply via email to