1,change Database settings <dbunit.dataTypeFactoryName>org.dbunit.ext.h2.H2DataTypeFactory</dbunit.dataTypeFactoryName> <dbunit.operation.type>CLEAN_INSERT</dbunit.operation.type> <hibernate.dialect>org.hibernate.dialect.H2Dialect</hibernate.dialect> <jdbc.groupId>com.h2database</jdbc.groupId> <jdbc.artifactId>h2</jdbc.artifactId> <jdbc.version>1.2.127</jdbc.version> <jdbc.driverClassName>org.h2.Driver</jdbc.driverClassName> <jdbc.url>jdbc:h2:~/h2/${db.name}</jdbc.url> <jdbc.username>sa</jdbc.username> <jdbc.password>sa</jdbc.password> 2,run mvn on core C:\Users\Yen\works\myproject\core>mvn clean install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building AppFuse Modular Application - Core [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory C:\Users\Yen\works\myproject\core\target [INFO] [aspectj:compile {execution: default}] [WARNING] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTran slatorAspect has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDriven StaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMo ckingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMo ckingControl has not been applied [Xlint:adviceDidNotMatch] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 6 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 5 resources [INFO] Preparing hibernate3:hbm2ddl [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocati on. [INFO] [aspectj:compile {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 6 resources [INFO] [hibernate3:hbm2ddl {execution: default}] [INFO] Configuration XML file loaded: file:/C:/Users/Yen/works/myproject/core/sr c/main/resources/hibernate.cfg.xml [INFO] Configuration XML file loaded: file:/C:/Users/Yen/works/myproject/core/sr c/main/resources/hibernate.cfg.xml [INFO] Configuration Properties file loaded: C:\Users\Yen\works\myproject\core\t arget\test-classes\jdbc.properties alter table user_role drop constraint FK143BF46A4FD90D75; alter table user_role drop constraint FK143BF46AF503D155; drop table app_user if exists; drop table role if exists; drop table user_role if exists; create table app_user (id bigint generated by default as identity, account_expir ed bit not null, account_locked bit not null, address varchar(150), city varchar (50), country varchar(100), postal_code varchar(15), province varchar(100), cred entials_expired bit not null, email varchar(255) not null unique, account_enable d bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, password_hint varchar(255), phone_number varchar(255), u sername varchar(50) not null unique, version integer, website varchar(255), prim ary key (id)); create table role (id bigint generated by default as identity, description varch ar(64), name varchar(20), primary key (id)); create table user_role (user_id bigint not null, role_id bigint not null, primar y key (user_id, role_id)); alter table user_role add constraint FK143BF46A4FD90D75 foreign key (role_id) re ferences role; alter table user_role add constraint FK143BF46AF503D155 foreign key (user_id) re ferences app_user; [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 1 source file to C:\Users\Yen\works\myproject\core\target\test- classes [INFO] [dbunit:operation {execution: test-compile}] 192 [main] INFO org.dbunit.database.DatabaseDataSet - database name=H2 database version=1.2.127 (2010-01-15) database major version=1 database minor version=2 jdbc driver name=H2 JDBC Driver jdbc driver version=1.2.127 (2010-01-15) jdbc driver major version=1 jdbc driver minor version=2
213 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTa bleMetaData. Corrected table name: oldValue=user_role newValue=USER_ROLE 219 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTa bleMetaData. Corrected table name: oldValue=role newValue=ROLE 223 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTa bleMetaData. Corrected table name: oldValue=app_user newValue=APP_USER [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: C:\Users\Yen\works\myproject\core\target\suref ire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.mycompany.core.CoreTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.068 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar {execution: default-jar}] [INFO] Building jar: C:\Users\Yen\works\myproject\core\target\core-1.0-SNAPSHOT. jar [INFO] [install:install {execution: default-install}] [INFO] Installing C:\Users\Yen\works\myproject\core\target\core-1.0-SNAPSHOT.jar to C:\Users\Yen\.m2\repository\com\mycompany\core\1.0-SNAPSHOT\core-1.0-SNAPSHO T.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 seconds [INFO] Finished at: Mon Feb 08 18:56:53 CST 2010 [INFO] Final Memory: 33M/60M [INFO] ------------------------------------------------------------------------ C:\Users\Yen\works\myproject\core> 3,run mvn on web C:\Users\Yen\works\myproject\web>mvn [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building AppFuse Modular Application - Web (Struts 2) [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}] [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 21 resources [INFO] Copying 38 resources [INFO] Copying 2 resources [INFO] Copying 72 resources [INFO] Copying 72 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 17 source files to C:\Users\Yen\works\myproject\web\target\clas ses [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 5 resources [INFO] Copying 11 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 8 source files to C:\Users\Yen\works\myproject\web\target\test- classes [INFO] [dbunit:operation {execution: test-compile}] 216 [main] INFO org.dbunit.database.DatabaseDataSet - database name=H2 database version=1.2.127 (2010-01-15) database major version=1 database minor version=2 jdbc driver name=H2 JDBC Driver jdbc driver version=1.2.127 (2010-01-15) jdbc driver major version=1 jdbc driver minor version=2 238 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTa bleMetaData. Corrected table name: oldValue=user_role newValue=USER_ROLE 242 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTa bleMetaData. Corrected table name: oldValue=role newValue=ROLE 247 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTa bleMetaData. Corrected table name: oldValue=app_user newValue=APP_USER [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: C:\Users\Yen\works\myproject\web\target\surefi re-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.mycompany.webapp.listener.StartupListenerTest 2010-2-8 19:02:27 net.sf.ehcache.util.UpdateChecker doCheck 信息: New update(s) found: 1.7.2 [http://ehcache.org/news.html] DEBUG [main] StartupListener.contextInitialized(40) | Initializing context... DEBUG [main] StartupListener.contextInitialized(76) | authenticationManager bean not found, assuming test and ignoring... DEBUG [main] StartupListener.contextInitialized(84) | Remember Me Enabled? null DEBUG [main] StartupListener.contextInitialized(88) | Populating drop-downs... DEBUG [main] StartupListener.setupContext(105) | Drop-down initialization comple te [OK] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.13 sec Running com.mycompany.webapp.action.PasswordHintActionTest INFO [main] PasswordHintActionTest.loadContextLocations(190) | Loading context f or locations: classpath:/applicationContext-resources.xml,classpath:/application Context-dao.xml,classpath:/applicationContext-service.xml,classpath*:/applicatio nContext.xml,/WEB-INF/applicationContext*.xml 2010-2-8 19:02:29 net.sf.ehcache.CacheManager detectAndFixDiskStorePathConflict 警告: Creating a new instance of CacheManager using the diskStorePath "C:\Users\ Yen\AppData\Local\Temp\" which is already used by an existing CacheManager. The source of the configuration was classpath. The diskStore path for this CacheManager will be set to C:\Users\Yen\AppData\Loc al\Temp\\ehcache_auto_created_1265626949789. To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache .xml) for each CacheManager instance. DEBUG [main] PasswordHintActionTest.startNewTransaction(354) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransacti onmana...@365c90]; rollback [true]. DEBUG [main] PasswordHintAction.execute(45) | Processing Password Hint... DEBUG [main] PasswordHintActionTest.endTransaction(324) | Rolled back transactio n after execution of test [testExecute]. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.386 sec Running com.mycompany.webapp.filter.StaticFilterTest DEBUG [main] MockFilterChain.doFilter(37) | Forwarding to: /editProfile.html Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.095 sec Running com.mycompany.webapp.action.SignupActionTest DEBUG [main] SignupActionTest.startNewTransaction(354) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionMana g...@365c90]; rollback [true]. DEBUG [main] SignupAction.sendUserMessage(164) | sending e-mail to user [self-re giste...@raibledesigns.com]... DEBUG [main] SignupActionTest.endTransaction(324) | Rolled back transaction afte r execution of test [testExecute]. DEBUG [main] SignupActionTest.startNewTransaction(354) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionMana g...@365c90]; rollback [true]. DEBUG [main] SignupActionTest.endTransaction(324) | Rolled back transaction afte r execution of test [testDisplayForm]. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.285 sec Running com.mycompany.webapp.filter.LocaleFilterTest DEBUG [main] LocaleFilter.init(157) | Initializing filter '' DEBUG [main] LocaleFilter.init(182) | Filter '' configured successfully DEBUG [main] MockFilterChain.doFilter(37) | Forwarding to: DEBUG [main] LocaleFilter.init(157) | Initializing filter '' DEBUG [main] LocaleFilter.init(182) | Filter '' configured successfully DEBUG [main] MockFilterChain.doFilter(37) | Forwarding to: DEBUG [main] LocaleFilter.init(157) | Initializing filter '' DEBUG [main] LocaleFilter.init(182) | Filter '' configured successfully DEBUG [main] MockFilterChain.doFilter(37) | Forwarding to: DEBUG [main] LocaleFilter.init(157) | Initializing filter '' DEBUG [main] LocaleFilter.init(182) | Filter '' configured successfully DEBUG [main] MockFilterChain.doFilter(37) | Forwarding to: DEBUG [main] LocaleFilter.init(157) | Initializing filter '' DEBUG [main] LocaleFilter.init(182) | Filter '' configured successfully DEBUG [main] MockFilterChain.doFilter(37) | Forwarding to: Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec Running com.mycompany.webapp.action.UserActionTest DEBUG [main] UserActionTest.startNewTransaction(354) | Began transaction (1): tr ansaction manager [org.springframework.orm.hibernate3.HibernateTransactionManage r...@365c90]; rollback [true]. DEBUG [main] UserActionTest.endTransaction(324) | Rolled back transaction after execution of test [testCancel]. DEBUG [main] UserActionTest.startNewTransaction(354) | Began transaction (1): tr ansaction manager [org.springframework.orm.hibernate3.HibernateTransactionManage r...@365c90]; rollback [true]. DEBUG [main] UserAction.edit(111) | checking for remember me login... DEBUG [main] UserActionTest.endTransaction(324) | Rolled back transaction after execution of test [testEdit]. DEBUG [main] UserActionTest.startNewTransaction(354) | Began transaction (1): tr ansaction manager [org.springframework.orm.hibernate3.HibernateTransactionManage r...@365c90]; rollback [true]. DEBUG [main] UserActionTest.endTransaction(324) | Rolled back transaction after execution of test [testSave]. DEBUG [main] UserActionTest.startNewTransaction(354) | Began transaction (1): tr ansaction manager [org.springframework.orm.hibernate3.HibernateTransactionManage r...@365c90]; rollback [true]. DEBUG [main] UserActionTest.testSaveConflictingUser(65) | original version #: 2 2010-2-8 19:02:33 net.sf.ehcache.util.UpdateChecker doCheck 信息: New update(s) found: 1.7.2 [http://ehcache.org/news.html] DEBUG [main] UserActionTest.endTransaction(324) | Rolled back transaction after execution of test [testSaveConflictingUser]. DEBUG [main] UserActionTest.startNewTransaction(354) | Began transaction (1): tr ansaction manager [org.springframework.orm.hibernate3.HibernateTransactionManage r...@365c90]; rollback [true]. DEBUG [main] UserActionTest.endTransaction(324) | Rolled back transaction after execution of test [testSearch]. DEBUG [main] UserActionTest.startNewTransaction(354) | Began transaction (1): tr ansaction manager [org.springframework.orm.hibernate3.HibernateTransactionManage r...@365c90]; rollback [true]. DEBUG [main] UserActionTest.endTransaction(324) | Rolled back transaction after execution of test [testRemove]. Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.524 sec <<< FA ILURE! Results : Tests in error: testSaveConflictingUser(com.mycompany.webapp.action.UserActionTest) Tests run: 17, Failures: 0, Errors: 1, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. Please refer to C:\Users\Yen\works\myproject\web\target\surefire-reports for the individual test results. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 28 seconds [INFO] Finished at: Mon Feb 08 19:02:34 CST 2010 [INFO] Final Memory: 37M/63M [INFO] ------------------------------------------------------------------------ C:\Users\Yen\works\myproject\web> 4,look at surefire-reports ------------------------------------------------------------------------------- Test set: com.mycompany.webapp.action.UserActionTest ------------------------------------------------------------------------------- Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.782 sec <<< FAILURE! testSaveConflictingUser(com.mycompany.webapp.action.UserActionTest) Time elapsed: 2.262 sec <<< ERROR! org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [select password from app_user where username=?]; SQL state [HYT00]; error code [50200]; Timeout trying to lock table "APP_USER"; SQL statement: select password from app_user where username=? [50200-127]; nested exception is org.h2.jdbc.JdbcSQLException: Timeout trying to lock table "APP_USER"; SQL statement: select password from app_user where username=? [50200-127] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:602) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:665) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:673) at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:716) at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:727) at org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(SimpleJdbcTemplate.java:143) at org.appfuse.dao.hibernate.UserDaoHibernate.getUserPassword(UserDaoHibernate.java:88) 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy33.getUserPassword(Unknown Source) at org.appfuse.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:74) 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy34.saveUser(Unknown Source) at com.mycompany.webapp.action.UserAction.save(UserAction.java:174) at com.mycompany.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71) 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 junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:79) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: org.h2.jdbc.JdbcSQLException: Timeout trying to lock table "APP_USER"; SQL statement: select password from app_user where username=? [50200-127] at org.h2.message.Message.getSQLException(Message.java:110) at org.h2.message.Message.getSQLException(Message.java:121) at org.h2.message.Message.getSQLException(Message.java:74) at org.h2.table.TableData.doLock(TableData.java:495) at org.h2.table.TableData.lock(TableData.java:433) at org.h2.table.TableFilter.lock(TableFilter.java:119) at org.h2.command.dml.Select.queryWithoutCache(Select.java:546) at org.h2.command.dml.Query.query(Query.java:243) at org.h2.command.CommandContainer.query(CommandContainer.java:81) at org.h2.command.Command.executeQuery(Command.java:132) at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:98) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92) at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:643) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:586) ... 66 more 5,if run mvn jetty:run it will work good,because ActionTest is skiped. Thanks -- View this message in context: http://n4.nabble.com/ActionTest-Error-on-H2-tp1472791p1472791.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