Thanks, it was at wrong place (src/main/resources) But now there is error as C:\Users\mypc\IdeaProjects\myapp>mvn -e clean test -Dusefile=false -Dtest="VehicleDaoTest" + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building AppFuse Struts 2 Application [INFO] task-segment: [clean, test] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory C:\Users\mypc\IdeaProjects\myapp\target [WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build. [INFO] [warpath:add-classes {execution: default}] [INFO] [aspectj:compile {execution: default}] [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}] [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}] [INFO] [resources:resources {execution: default-resources}] [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 13 resources [INFO] Copying 2 resources [INFO] Copying 33 resources [INFO] Copying 33 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources {execution: default-testResources}] [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 4 resources [INFO] Copying 25 resources [INFO] Preparing hibernate3:hbm2ddl [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation. [INFO] [warpath:add-classes {execution: default}] [INFO] [aspectj:compile {execution: default}] [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}] [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}] [INFO] [resources:resources {execution: default-resources}] [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 13 resources [INFO] Copying 2 resources [INFO] Copying 33 resources [INFO] Copying 33 resources [INFO] Copying 33 resources [INFO] Copying 33 resources [INFO] [hibernate3:hbm2ddl {execution: default}] [INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml log4j:WARN Continuable parsing error 57 and column 64 log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack" of type ID must be unique within the document. [INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml [INFO] Configuration Properties file loaded: C:\Users\mypc\IdeaProjects\myapp\target\classes\jdbc.properties alter table VehicleMaintenance drop foreign key FKD1C1D46712C9F342; alter table user_role drop foreign key FK143BF46A4FD90D75; alter table user_role drop foreign key FK143BF46AF503D155; drop table if exists Vehicle; drop table if exists VehicleMaintenance; drop table if exists app_user; drop table if exists role; drop table if exists user_role; create table Vehicle (id bigint not null auto_increment, VIN varchar(255), make varchar(255), model varchar(255), name varchar(255), year varchar (255), primary key (id)) ENGINE=InnoDB; create table VehicleMaintenance (id bigint not null auto_increment, alarmDate datetime, endDate datetime, name varchar(255), startDate datetime, vehicle_id bigint, primary key (id)) ENGINE=InnoDB; create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked bit not null, address varchar(150), city v archar(50) not null, country varchar(100), postal_code varchar(15) not null, province varchar(100), credentials_expired bit not null, email varch ar(255) not null unique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, pa ssword_hint varchar(255), phone_number varchar(255), username varchar(50) not null unique, version integer, website varchar(255), primary key (id )) ENGINE=InnoDB; create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), primary key (id)) ENGINE=InnoDB; create table user_role (user_id bigint not null, role_id bigint not null, primary key (user_id, role_id)) ENGINE=InnoDB; alter table VehicleMaintenance add index FKD1C1D46712C9F342 (vehicle_id), add constraint FKD1C1D46712C9F342 foreign key (vehicle_id) references V ehicle (id); alter table user_role add index FK143BF46A4FD90D75 (role_id), add constraint FK143BF46A4FD90D75 foreign key (role_id) references role (id); alter table user_role add index FK143BF46AF503D155 (user_id), add constraint FK143BF46AF503D155 foreign key (user_id) references app_user (id); [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 2 source files to C:\Users\mypc\IdeaProjects\myapp\target\test-classes [INFO] [dbunit:operation {execution: test-compile}] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing database operation: CLEAN_INSERT Embedded error: Error casting value for table 'vehiclemaintenance' and column 'alarmDate' [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error executing database operation: CLEAN_INSERT at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41) 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:597) 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:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) ... 17 more Caused by: org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'vehiclemaintenance' and column 'alarmDate' at org.dbunit.operation.AbstractBatchOperation.execute(AbstractBatchOperation.java:182) 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) ... 19 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 52 seconds [INFO] Finished at: Wed Jul 29 11:27:56 PDT 2009 [INFO] Final Memory: 32M/57M [INFO] ------------------------------------------------------------------------ C:\Users\mypc\IdeaProjects\myapp> sample-data is . . . <table name='vehicle'> <column>id</column> <column>name</column> <column>make</column> <column>model</column> <column>year</column> <column>vin</column> <row> <value>1</value> <value>David's Truck</value> <value>Ford</value> <value>F-150</value> <value>1995</value> <value>ABC123</value> </row> <row> <value>2</value> <value>Kim's van</value> <value>Dodge</value> <value>Caravan</value> <value>2003</value> <value>ZZZ987</value> </row> </table> <table name="vehiclemaintenance"> <column>id</column> <column>name</column> <column>alarmDate</column> <column>startDate</column> <column>endDate</column> <column>vehicle_id</column> <row> <value>1</value> <value>Oil Change</value> <value><![CDATA[1960-06-01 00:00:00.0]]>]</value> <value><![CDATA[1960-06-01 00:00:00.0]]>]</value> <value><![CDATA[1960-06-01 00:00:00.0]]>]</value> <value>1</value> </row> <row> <value>2</value> <value>New Tires</value> <value><![CDATA[1960-06-01 00:00:00.0]]>]</value> <value><![CDATA[1960-06-01 00:00:00.0]]>]</value> <value><![CDATA[1960-06-01 00:00:00.0]]>]</value> <value>1</value> </row> </table> . . -- View this message in context: http://www.nabble.com/Problems-after-running-appfuse%3Afull-source-tp24696222s2369p24725090.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net