- 浏览: 224348 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
haozyc:
谢谢 帮助很大
Google App Engine不再仅仅是诱人 -
每个人都可爱:
Hibernate dtd 这个问题太坑爹了
通过AppFuse创建ssh工程问题总结 -
up2pu:
mesopotamiaa 写道你好,pom.xml文件是哪个目 ...
JBoss Hibernate Tools 3.4.0与AppFuse -
mesopotamiaa:
你好,pom.xml文件是哪个目录中的?
JBoss Hibernate Tools 3.4.0与AppFuse -
aze:
安卓市场快烂透了吧 一进后台满屏的铜臭味这个广告位那个广告位的 ...
安卓市场上传应用对广告平台进行限制
下面是成功时的输出,做个记录。
有些测试暂时无法通过,可以在pom.xml中过滤掉:
Maven install输出:
有些测试暂时无法通过,可以在pom.xml中过滤掉:
<plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.7.2</version> <configuration> <!-- ### 关闭测试 --> <!-- <skipTests>true</skipTests> --> <excludes> <exclude>**/*WebTest.java</exclude> <!-- ### 过滤Mail测试 --> <!-- <exclude>**/*Mail*Test.java</exclude> --> </excludes> </configuration> </plugin>
Maven install输出:
[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building AppFuse Light Struts 2 Module 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ light --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 15 resources [INFO] Copying 0 resource [INFO] [INFO] --- javarebel-maven-plugin:1.0.5:generate (generate-rebel-xml) @ light --- [INFO] Processing com.travelsky.angel:light with packaging war [INFO] [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ light --- [INFO] Compiling 37 source files to F:\workspace_seat\light_appfuse\target\classes [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ light --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 11 resources [INFO] Copying 7 resources [INFO] [INFO] >>> hibernate3-maven-plugin:2.2:hbm2ddl (default) @ light >>> [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ light --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 15 resources [INFO] Copying 0 resource [INFO] [INFO] --- javarebel-maven-plugin:1.0.5:generate (generate-rebel-xml) @ light --- [INFO] Processing com.travelsky.angel:light with packaging war [INFO] [INFO] <<< hibernate3-maven-plugin:2.2:hbm2ddl (default) @ light <<< [INFO] [INFO] --- hibernate3-maven-plugin:2.2:hbm2ddl (default) @ light --- [INFO] Configuration XML file loaded: file:/F:/workspace_seat/light_appfuse/src/main/resources/hibernate.cfg.xml [INFO] Configuration XML file loaded: file:/F:/workspace_seat/light_appfuse/src/main/resources/hibernate.cfg.xml [INFO] Configuration Properties file loaded: F:\workspace_seat\light_appfuse\target\classes\jdbc.properties drop table app_user cascade constraints; drop table role cascade constraints; drop table user_role cascade constraints; drop sequence hibernate_sequence; create table app_user (id number(19,0) not null, account_expired number(1,0) not null, account_locked number(1,0) not null, address varchar2(150 char), city varchar2(50 char), country varchar2(100 char), postal_code varchar2(15 char), province varchar2(100 char), credentials_expired number(1,0) not null, email varchar2(255 char) not null unique, account_enabled number(1,0), first_name varchar2(50 char) not null, last_name varchar2(50 char) not null, password varchar2(255 char) not null, password_hint varchar2(255 char), phone_number varchar2(255 char), username varchar2(50 char) not null unique, version number(10,0), website varchar2(255 char), primary key (id)); create table role (id number(19,0) not null, description varchar2(64 char), name varchar2(20 char), primary key (id)); create table user_role (user_id number(19,0) not null, role_id number(19,0) not null, primary key (user_id, role_id)); alter table user_role add constraint FK143BF46AB490DD80 foreign key (user_id) references app_user; alter table user_role add constraint FK143BF46AF6619A0 foreign key (role_id) references role; create sequence hibernate_sequence; [INFO] [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ light --- [INFO] Compiling 20 source files to F:\workspace_seat\light_appfuse\target\test-classes [INFO] [INFO] --- dbunit-maven-plugin:1.0-beta-3:operation (test-compile) @ light --- 196 [main] INFO org.dbunit.database.DatabaseDataSet - database name=Oracle database version=Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options database major version=10 database minor version=2 jdbc driver name=Oracle JDBC driver jdbc driver version=10.2.0.3.0 jdbc driver major version=10 jdbc driver minor version=2 212 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTableMetaData. Corrected table name: oldValue=user_role newValue=USER_ROLE 229 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTableMetaData. Corrected table name: oldValue=role newValue=ROLE 247 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTableMetaData. Corrected table name: oldValue=app_user newValue=APP_USER [INFO] [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ light --- [INFO] Surefire report directory: F:\workspace_seat\light_appfuse\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.travelsky.angel.dao.GenericDaoTest WARN - DTDEntityResolver.resolveEntity(73) | recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide! DEBUG - CompassConfigurationPostProcessor.process(21) | Adding scan for package: com.travelsky.angel.light Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.348 sec Running com.travelsky.angel.dao.hibernate.HibernateConfigurationTest DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: com.travelsky.angel.model.User DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: com.travelsky.angel.model.User DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: com.travelsky.angel.model.Role DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: com.travelsky.angel.model.Role Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 sec Running com.travelsky.angel.dao.LookupDaoTest DEBUG - LookupDaoHibernate.getRoles(38) | Retrieving all role names... DEBUG - LookupDaoTest.testGetRoles(21) | [ROLE_ADMIN, ROLE_USER] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec Running com.travelsky.angel.dao.RoleDaoTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.195 sec Running com.travelsky.angel.dao.UserDaoTest WARN - GenericDaoHibernate.get(106) | Uh oh, 'class com.travelsky.angel.model.User' object with id '1000' not found... DEBUG - UserDaoTest.testGetUserPassword(53) | password: 12dea96fec20593566ab75692c9949596833adc9 DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1 DEBUG - UserDaoHibernate.saveUser(49) | user's id: null WARN - JDBCExceptionReporter.logExceptions(233) | SQL Error: 1, SQLState: 23000 ERROR - JDBCExceptionReporter.logExceptions(234) | ORA-00001: 违反唯一约束条件 (NASA.SYS_C009277) WARN - JDBCExceptionReporter.logExceptions(233) | SQL Error: 1, SQLState: 23000 ERROR - JDBCExceptionReporter.logExceptions(234) | ORA-00001: 违反唯一约束条件 (NASA.SYS_C009277) ERROR - AbstractFlushingEventListener.performExecutions(324) | Could not synchronize database state with session org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216) at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:407) at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:737) at com.travelsky.angel.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:51) 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:592) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) 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:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy38.saveUser(Unknown Source) at com.travelsky.angel.dao.UserDaoTest.testUpdateUser(UserDaoTest.java:76) 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:592) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:22) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) 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:592) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) Caused by: java.sql.BatchUpdateException: ORA-00001: 违反唯一约束条件 (NASA.SYS_C009277) at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343) at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10720) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268) ... 59 more DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1 DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1 DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1 DEBUG - UserDaoHibernate.saveUser(49) | user's id: null WARN - GenericDaoHibernate.get(106) | Uh oh, 'class com.travelsky.angel.model.User' object with id '3' not found... DEBUG - UserDaoHibernate.saveUser(49) | user's id: -2 Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.332 sec Running com.travelsky.angel.light.webapp.action.UserActionTest WARN - DTDEntityResolver.resolveEntity(73) | recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide! DEBUG - CompassConfigurationPostProcessor.process(21) | Adding scan for package: com.travelsky.angel.light DEBUG - UserAction.save(87) | entering 'save' method DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1 DEBUG - UserManagerImpl.removeUser(109) | removing user: -2 Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.49 sec Running com.travelsky.angel.service.impl.LookupManagerImplTest DEBUG - LookupManagerImplTest.testGetAllRoles(29) | entered 'testGetAllRoles' method Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 sec Running com.travelsky.angel.service.impl.UserManagerImplTest WARN - UserManagerImpl.saveUser(89) | PasswordEncoder not set, skipping password encryption... DEBUG - UserManagerImpl.removeUser(109) | removing user: 5 WARN - UserManagerImpl.saveUser(89) | PasswordEncoder not set, skipping password encryption... WARN - UserManagerImpl.saveUser(89) | PasswordEncoder not set, skipping password encryption... WARN - UserManagerImpl.saveUser(96) | DEBUG - UserManagerImplTest.testUserExistsException(134) | expected exception: User 'admin' already exists! Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec Running com.travelsky.angel.service.impl.UserSecurityAdviceTest WARN - UserSecurityAdvice.before(72) | Access Denied: 'user' tried to modify 'admin'! WARN - UserSecurityAdvice.before(93) | Access Denied: 'user' tried to change their role(s)! WARN - UserSecurityAdvice.before(93) | Access Denied: 'user' tried to change their role(s)! Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.302 sec Running com.travelsky.angel.service.MailEngineTest WARN - DTDEntityResolver.resolveEntity(73) | recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide! port:2606 Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.907 sec Running com.travelsky.angel.service.UserExistsExceptionTest WARN - DTDEntityResolver.resolveEntity(73) | recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide! DEBUG - UserExistsExceptionTest.testAddExistingUser(27) | entered 'testAddExistingUser' method DEBUG - UserDaoHibernate.saveUser(49) | user's id: null WARN - JDBCExceptionReporter.logExceptions(233) | SQL Error: 1, SQLState: 23000 ERROR - JDBCExceptionReporter.logExceptions(234) | ORA-00001: 违反唯一约束条件 (NASA.SYS_C009277) WARN - JDBCExceptionReporter.logExceptions(233) | SQL Error: 1, SQLState: 23000 ERROR - JDBCExceptionReporter.logExceptions(234) | ORA-00001: 违反唯一约束条件 (NASA.SYS_C009277) ERROR - AbstractFlushingEventListener.performExecutions(324) | Could not synchronize database state with session org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216) at org.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:883) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406) at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:881) at com.travelsky.angel.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:53) 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:592) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) 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:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy38.saveUser(Unknown Source) at com.travelsky.angel.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:93) 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:592) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) 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:110) 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:110) 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 $Proxy52.saveUser(Unknown Source) at com.travelsky.angel.service.UserExistsExceptionTest.testAddExistingUser(UserExistsExceptionTest.java:40) 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:592) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:22) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) 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:592) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) Caused by: java.sql.BatchUpdateException: ORA-00001: 违反唯一约束条件 (NASA.SYS_C009277) at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343) at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10720) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268) ... 79 more WARN - UserManagerImpl.saveUser(96) | Could not execute JDBC batch update; SQL [insert into app_user (account_expired, account_locked, address, city, country, postal_code, province, credentials_expired, email, account_enabled, first_name, last_name, password, password_hint, phone_number, username, version, website, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.365 sec Running com.travelsky.angel.service.UserManagerTest DEBUG - CompassConfigurationPostProcessor.process(21) | Adding scan for package: com.travelsky.angel.light DEBUG - UserManagerTest.testGetUser(25) | com.travelsky.angel.model.User@309ee1[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER] DEBUG - UserDaoHibernate.saveUser(49) | user's id: null DEBUG - UserManagerTest.testAddAndRemoveUser(55) | removing user... DEBUG - UserManagerImpl.removeUser(109) | removing user: 5 DEBUG - UserManagerTest.testAddAndRemoveUser(63) | org.springframework.security.core.userdetails.UsernameNotFoundException: user 'john' not found... DEBUG - UserManagerTest.testSaveUser(34) | saving user with updated phone number: com.travelsky.angel.model.User@9133f6[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER] DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1 Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.246 sec Running com.travelsky.angel.util.DateConverterTest Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec Running com.travelsky.angel.util.DateUtilTest DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Sat Oct 29 16:13:16 CST 2011 DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 10/29/2011 DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime' method DEBUG - DateUtilTest.testGetDateTime(62) | 16:13 WARN - DateUtil.getDateTime(149) | aDate is null! DEBUG - DateUtil.convertStringToDate(92) | converting '10/29/2011' to date with mask 'MM/dd/yyyy' Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Results : Tests run: 53, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- dbunit-maven-plugin:1.0-beta-3:operation (test) @ light --- 10244 [main] INFO org.dbunit.database.DatabaseDataSet - database name=Oracle database version=Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options database major version=10 database minor version=2 jdbc driver name=Oracle JDBC driver jdbc driver version=10.2.0.3.0 jdbc driver major version=10 jdbc driver minor version=2 10255 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTableMetaData. Corrected table name: oldValue=user_role newValue=USER_ROLE 10271 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTableMetaData. Corrected table name: oldValue=role newValue=ROLE 10287 [main] INFO org.dbunit.util.SQLHelper - class org.dbunit.database.DatabaseTableMetaData. Corrected table name: oldValue=app_user newValue=APP_USER [INFO] [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ light --- [INFO] Packaging webapp [INFO] Assembling webapp [light] in [F:\workspace_seat\light_appfuse\target\light-0.0.1-SNAPSHOT] [INFO] Processing war project [INFO] Copying webapp resources [F:\workspace_seat\light_appfuse\src\main\webapp] [INFO] Webapp assembled in [4810 msecs] [INFO] Building war: F:\workspace_seat\light_appfuse\target\light-0.0.1-SNAPSHOT.war [WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true') [INFO] [INFO] --- cargo-maven2-plugin:1.0.6:start (start-container) @ light --- [INFO] [stalledLocalDeployer] Deploying [F:\workspace_seat\light_appfuse\target\light-0.0.1-SNAPSHOT.war] to [F:\workspace_seat\light_appfuse\target/tomcat6x/container/webapps]... [INFO] [talledLocalContainer] Tomcat 6.x starting... [WARNING] [talledLocalContainer] 2011-10-29 16:13:33 org.apache.tomcat.util.digester.SetPropertiesRule begin [WARNING] [talledLocalContainer] 警告: [SetPropertiesRule]{Server} Setting property 'debug' to '2' did not find a matching property. [WARNING] [talledLocalContainer] 2011-10-29 16:13:33 org.apache.tomcat.util.digester.SetPropertiesRule begin [WARNING] [talledLocalContainer] 警告: [SetPropertiesRule]{Server/Service} Setting property 'debug' to '2' did not find a matching property. [WARNING] [talledLocalContainer] 2011-10-29 16:13:33 org.apache.catalina.core.AprLifecycleListener init [WARNING] [talledLocalContainer] 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_21\jre\bin;.;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.5.0_21/bin/../jre/bin/client;C:/Program Files/Java/jdk1.5.0_21/bin/../jre/bin;C:/Program Files/Java/jdk1.5.0_21/bin/../jre/lib/i386;C:\Program Files\Java\jdk1.5.0_21\bin;C:\Program Files\Common Files\NetSarang;E:\software\dev\Maven\apache-maven-2.2.1\bin;e:\oracle\product\10.2.0\db_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Intel\DMIX;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;c:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files\Roxio\OEM\AudioCore\;C:\Program Files\Windows Live\Shared;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\SecureCRT\;C:\Program Files\Common Files\Teleca Shared;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\Program Files\TortoiseSVN\bin;C:\MySQL\bin;C:\Program Files\Rational\common;C:\Program Files\Mercurial;C:\Program Files\IDM Computer Solutions\UltraEdit\;E:\software\dev\eclipse; [WARNING] [talledLocalContainer] 2011-10-29 16:13:33 org.apache.tomcat.util.digester.SetPropertiesRule begin [WARNING] [talledLocalContainer] 警告: [SetPropertiesRule]{Server/Service/Engine} Setting property 'debug' to '2' did not find a matching property. [WARNING] [talledLocalContainer] 2011-10-29 16:13:33 org.apache.tomcat.util.digester.SetPropertiesRule begin [WARNING] [talledLocalContainer] 警告: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '2' did not find a matching property. [WARNING] [talledLocalContainer] 2011-10-29 16:13:34 org.apache.coyote.http11.Http11Protocol init [WARNING] [talledLocalContainer] 信息: Initializing Coyote HTTP/1.1 on http-25888 [WARNING] [talledLocalContainer] 2011-10-29 16:13:34 org.apache.catalina.startup.Catalina load [WARNING] [talledLocalContainer] 信息: Initialization processed in 907 ms [WARNING] [talledLocalContainer] 2011-10-29 16:13:34 org.apache.catalina.core.StandardService start [WARNING] [talledLocalContainer] 信息: Starting service Catalina [WARNING] [talledLocalContainer] 2011-10-29 16:13:34 org.apache.catalina.core.StandardEngine start [WARNING] [talledLocalContainer] 信息: Starting Servlet Engine: Apache Tomcat/6.0.29 [WARNING] [talledLocalContainer] 2011-10-29 16:13:34 org.apache.catalina.startup.HostConfig deployWAR [WARNING] [talledLocalContainer] 信息: Deploying web application archive cargocpc.war [WARNING] [talledLocalContainer] 2011-10-29 16:13:34 org.apache.catalina.startup.HostConfig deployWAR [WARNING] [talledLocalContainer] 信息: Deploying web application archive ROOT.war [WARNING] [talledLocalContainer] 2011-10-29 16:13:36 org.apache.catalina.core.ApplicationContext log [WARNING] [talledLocalContainer] 信息: Initializing Spring root WebApplicationContext [INFO] [talledLocalContainer] WARN - DTDEntityResolver.resolveEntity(73) | recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide! [WARNING] [talledLocalContainer] 2011-10-29 16:13:40 org.apache.catalina.startup.HostConfig deployDirectory [WARNING] [talledLocalContainer] 信息: Deploying web application directory host-manager [WARNING] [talledLocalContainer] 2011-10-29 16:13:40 org.apache.catalina.startup.HostConfig deployDirectory [WARNING] [talledLocalContainer] 信息: Deploying web application directory manager [WARNING] [talledLocalContainer] 2011-10-29 16:13:40 org.apache.coyote.http11.Http11Protocol start [WARNING] [talledLocalContainer] 信息: Starting Coyote HTTP/1.1 on http-25888 [WARNING] [talledLocalContainer] 2011-10-29 16:13:40 org.apache.jk.common.ChannelSocket init [WARNING] [talledLocalContainer] 信息: JK: ajp13 listening on /0.0.0.0:8009 [WARNING] [talledLocalContainer] 2011-10-29 16:13:40 org.apache.jk.server.JkMain start [WARNING] [talledLocalContainer] 信息: Jk running ID=0 time=0/116 config=null [WARNING] [talledLocalContainer] 2011-10-29 16:13:40 org.apache.catalina.startup.Catalina start [WARNING] [talledLocalContainer] 信息: Server startup in 6268 ms [INFO] [talledLocalContainer] Tomcat 6.x started on port [25888] [INFO] [INFO] --- maven-surefire-plugin:2.7.2:test (surefire-it) @ light --- [INFO] Surefire report directory: F:\workspace_seat\light_appfuse\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.travelsky.angel.light.webapp.UserWebTest [INFO] [talledLocalContainer] DEBUG - CompassConfigurationPostProcessor.process(21) | Adding scan for package: com.travelsky.angel.light [INFO] [talledLocalContainer] DEBUG - UserAction.save(87) | entering 'save' method [INFO] [talledLocalContainer] DEBUG - UserDaoHibernate.saveUser(49) | user's id: null [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | select hibernate_sequence.nextval from dual [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | insert into app_user (account_expired, account_locked, address, city, country, postal_code, province, credentials_expired, email, account_enabled, first_name, last_name, password, password_hint, phone_number, username, version, website, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | select this_.id as id0_1_, this_.account_expired as account2_0_1_, this_.account_locked as account3_0_1_, this_.address as address0_1_, this_.city as city0_1_, this_.country as country0_1_, this_.postal_code as postal7_0_1_, this_.province as province0_1_, this_.credentials_expired as credenti9_0_1_, this_.email as email0_1_, this_.account_enabled as account11_0_1_, this_.first_name as first12_0_1_, this_.last_name as last13_0_1_, this_.password as password0_1_, this_.password_hint as password15_0_1_, this_.phone_number as phone16_0_1_, this_.username as username0_1_, this_.version as version0_1_, this_.website as website0_1_, roles2_.user_id as user1_0_3_, role3_.id as role2_3_, role3_.id as id1_0_, role3_.description as descript2_1_0_, role3_.name as name1_0_ from app_user this_ left outer join user_role roles2_ on this_.id=roles2_.user_id left outer join role role3_ on roles2_.role_id=role3_.id [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | select this_.id as id0_1_, this_.account_expired as account2_0_1_, this_.account_locked as account3_0_1_, this_.address as address0_1_, this_.city as city0_1_, this_.country as country0_1_, this_.postal_code as postal7_0_1_, this_.province as province0_1_, this_.credentials_expired as credenti9_0_1_, this_.email as email0_1_, this_.account_enabled as account11_0_1_, this_.first_name as first12_0_1_, this_.last_name as last13_0_1_, this_.password as password0_1_, this_.password_hint as password15_0_1_, this_.phone_number as phone16_0_1_, this_.username as username0_1_, this_.version as version0_1_, this_.website as website0_1_, roles2_.user_id as user1_0_3_, role3_.id as role2_3_, role3_.id as id1_0_, role3_.description as descript2_1_0_, role3_.name as name1_0_ from app_user this_ left outer join user_role roles2_ on this_.id=roles2_.user_id left outer join role role3_ on roles2_.role_id=role3_.id [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | select this_.id as id0_1_, this_.account_expired as account2_0_1_, this_.account_locked as account3_0_1_, this_.address as address0_1_, this_.city as city0_1_, this_.country as country0_1_, this_.postal_code as postal7_0_1_, this_.province as province0_1_, this_.credentials_expired as credenti9_0_1_, this_.email as email0_1_, this_.account_enabled as account11_0_1_, this_.first_name as first12_0_1_, this_.last_name as last13_0_1_, this_.password as password0_1_, this_.password_hint as password15_0_1_, this_.phone_number as phone16_0_1_, this_.username as username0_1_, this_.version as version0_1_, this_.website as website0_1_, roles2_.user_id as user1_0_3_, role3_.id as role2_3_, role3_.id as id1_0_, role3_.description as descript2_1_0_, role3_.name as name1_0_ from app_user this_ left outer join user_role roles2_ on this_.id=roles2_.user_id left outer join role role3_ on roles2_.role_id=role3_.id [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | select user0_.id as id0_1_, user0_.account_expired as account2_0_1_, user0_.account_locked as account3_0_1_, user0_.address as address0_1_, user0_.city as city0_1_, user0_.country as country0_1_, user0_.postal_code as postal7_0_1_, user0_.province as province0_1_, user0_.credentials_expired as credenti9_0_1_, user0_.email as email0_1_, user0_.account_enabled as account11_0_1_, user0_.first_name as first12_0_1_, user0_.last_name as last13_0_1_, user0_.password as password0_1_, user0_.password_hint as password15_0_1_, user0_.phone_number as phone16_0_1_, user0_.username as username0_1_, user0_.version as version0_1_, user0_.website as website0_1_, roles1_.user_id as user1_0_3_, role2_.id as role2_3_, role2_.id as id1_0_, role2_.description as descript2_1_0_, role2_.name as name1_0_ from app_user user0_ left outer join user_role roles1_ on user0_.id=roles1_.user_id left outer join role role2_ on roles1_.role_id=role2_.id where user0_.id=? [INFO] [talledLocalContainer] DEBUG - UserAction.save(87) | entering 'save' method [INFO] [talledLocalContainer] DEBUG - UserDaoHibernate.saveUser(49) | user's id: 6 [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | update app_user set account_expired=?, account_locked=?, address=?, city=?, country=?, postal_code=?, province=?, credentials_expired=?, email=?, account_enabled=?, first_name=?, last_name=?, password=?, password_hint=?, phone_number=?, username=?, version=?, website=? where id=? and version=? [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | delete from user_role where user_id=? [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | select this_.id as id0_1_, this_.account_expired as account2_0_1_, this_.account_locked as account3_0_1_, this_.address as address0_1_, this_.city as city0_1_, this_.country as country0_1_, this_.postal_code as postal7_0_1_, this_.province as province0_1_, this_.credentials_expired as credenti9_0_1_, this_.email as email0_1_, this_.account_enabled as account11_0_1_, this_.first_name as first12_0_1_, this_.last_name as last13_0_1_, this_.password as password0_1_, this_.password_hint as password15_0_1_, this_.phone_number as phone16_0_1_, this_.username as username0_1_, this_.version as version0_1_, this_.website as website0_1_, roles2_.user_id as user1_0_3_, role3_.id as role2_3_, role3_.id as id1_0_, role3_.description as descript2_1_0_, role3_.name as name1_0_ from app_user this_ left outer join user_role roles2_ on this_.id=roles2_.user_id left outer join role role3_ on roles2_.role_id=role3_.id [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | select this_.id as id0_1_, this_.account_expired as account2_0_1_, this_.account_locked as account3_0_1_, this_.address as address0_1_, this_.city as city0_1_, this_.country as country0_1_, this_.postal_code as postal7_0_1_, this_.province as province0_1_, this_.credentials_expired as credenti9_0_1_, this_.email as email0_1_, this_.account_enabled as account11_0_1_, this_.first_name as first12_0_1_, this_.last_name as last13_0_1_, this_.password as password0_1_, this_.password_hint as password15_0_1_, this_.phone_number as phone16_0_1_, this_.username as username0_1_, this_.version as version0_1_, this_.website as website0_1_, roles2_.user_id as user1_0_3_, role3_.id as role2_3_, role3_.id as id1_0_, role3_.description as descript2_1_0_, role3_.name as name1_0_ from app_user this_ left outer join user_role roles2_ on this_.id=roles2_.user_id left outer join role role3_ on roles2_.role_id=role3_.id [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | select user0_.id as id0_1_, user0_.account_expired as account2_0_1_, user0_.account_locked as account3_0_1_, user0_.address as address0_1_, user0_.city as city0_1_, user0_.country as country0_1_, user0_.postal_code as postal7_0_1_, user0_.province as province0_1_, user0_.credentials_expired as credenti9_0_1_, user0_.email as email0_1_, user0_.account_enabled as account11_0_1_, user0_.first_name as first12_0_1_, user0_.last_name as last13_0_1_, user0_.password as password0_1_, user0_.password_hint as password15_0_1_, user0_.phone_number as phone16_0_1_, user0_.username as username0_1_, user0_.version as version0_1_, user0_.website as website0_1_, roles1_.user_id as user1_0_3_, role2_.id as role2_3_, role2_.id as id1_0_, role2_.description as descript2_1_0_, role2_.name as name1_0_ from app_user user0_ left outer join user_role roles1_ on user0_.id=roles1_.user_id left outer join role role2_ on roles1_.role_id=role2_.id where user0_.id=? [INFO] [talledLocalContainer] DEBUG - UserManagerImpl.removeUser(109) | removing user: 6 [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | select user0_.id as id0_1_, user0_.account_expired as account2_0_1_, user0_.account_locked as account3_0_1_, user0_.address as address0_1_, user0_.city as city0_1_, user0_.country as country0_1_, user0_.postal_code as postal7_0_1_, user0_.province as province0_1_, user0_.credentials_expired as credenti9_0_1_, user0_.email as email0_1_, user0_.account_enabled as account11_0_1_, user0_.first_name as first12_0_1_, user0_.last_name as last13_0_1_, user0_.password as password0_1_, user0_.password_hint as password15_0_1_, user0_.phone_number as phone16_0_1_, user0_.username as username0_1_, user0_.version as version0_1_, user0_.website as website0_1_, roles1_.user_id as user1_0_3_, role2_.id as role2_3_, role2_.id as id1_0_, role2_.description as descript2_1_0_, role2_.name as name1_0_ from app_user user0_ left outer join user_role roles1_ on user0_.id=roles1_.user_id left outer join role role2_ on roles1_.role_id=role2_.id where user0_.id=? [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | delete from app_user where id=? and version=? [INFO] [talledLocalContainer] DEBUG - SQLStatementLogger.logStatement(111) | select this_.id as id0_1_, this_.account_expired as account2_0_1_, this_.account_locked as account3_0_1_, this_.address as address0_1_, this_.city as city0_1_, this_.country as country0_1_, this_.postal_code as postal7_0_1_, this_.province as province0_1_, this_.credentials_expired as credenti9_0_1_, this_.email as email0_1_, this_.account_enabled as account11_0_1_, this_.first_name as first12_0_1_, this_.last_name as last13_0_1_, this_.password as password0_1_, this_.password_hint as password15_0_1_, this_.phone_number as phone16_0_1_, this_.username as username0_1_, this_.version as version0_1_, this_.website as website0_1_, roles2_.user_id as user1_0_3_, role3_.id as role2_3_, role3_.id as id1_0_, role3_.description as descript2_1_0_, role3_.name as name1_0_ from app_user this_ left outer join user_role roles2_ on this_.id=roles2_.user_id left outer join role role3_ on roles2_.role_id=role3_.id Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.775 sec Results : Tests run: 5, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- cargo-maven2-plugin:1.0.6:stop (stop-container) @ light --- [INFO] [talledLocalContainer] Tomcat 6.x is stopping... [WARNING] [talledLocalContainer] 2011-10-29 16:13:58 org.apache.coyote.http11.Http11Protocol pause [WARNING] [talledLocalContainer] 信息: Pausing Coyote HTTP/1.1 on http-25888 [WARNING] [talledLocalContainer] 2011-10-29 16:13:59 org.apache.catalina.core.StandardService stop [WARNING] [talledLocalContainer] 信息: Stopping service Catalina [INFO] [talledLocalContainer] Tomcat 6.x is stopped [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ light --- [INFO] Installing F:\workspace_seat\light_appfuse\target\light-0.0.1-SNAPSHOT.war to C:\Users\sky\.m2\repository\com\travelsky\angel\light\0.0.1-SNAPSHOT\light-0.0.1-SNAPSHOT.war [INFO] Installing F:\workspace_seat\light_appfuse\pom.xml to C:\Users\sky\.m2\repository\com\travelsky\angel\light\0.0.1-SNAPSHOT\light-0.0.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:03.581s [INFO] Finished at: Sat Oct 29 16:14:01 CST 2011 [INFO] Final Memory: 10M/29M [INFO] ------------------------------------------------------------------------
发表评论
-
Eclipse 3.3.2安装Maven插件
2012-01-14 22:40 2571最近要把一个比较老的工程转到Maven管理,用的Eclipse ... -
通过AppFuse创建ssh工程问题总结(二)
2011-11-11 15:43 2685第一篇太长了,也为了纪念这个节日,重新开个贴。第一篇地址:ht ... -
通过AppFuse创建ssh工程问题总结
2011-04-27 09:23 5451一、安装Maven及m2eclipse插件 这部分Maven的 ... -
[转帖]eclipse 3.6.1 安装maven插件失败的解决办法
2011-04-27 09:17 2309一、eclipse 3.6.1 下载地址[eclipse-je ... -
Missing artifact javax.transaction:jta:jar:1.0.1B:compile
2011-04-23 18:12 2667用maven构建hibernate项目时,提示错误,这 ...
相关推荐
AppFuse是一个用于创建Java Web应用程序的模板,它提供了多种框架的集成,比如Spring MVC、Struts2、JSF等。通过AppFuse,开发者可以快速创建一个具有用户认证、权限控制、数据库连接等功能的基础项目结构。 步骤1...
Appfuse2是一款开源的Web应用程序框架,它集成了多种流行的技术,如Struts、Hibernate、Spring和JPA,旨在简化Java应用的开发过程。本文档将详细介绍如何利用Appfuse2来构建一个基于Oracle数据库的项目。 首先,让...
添加完依赖后,运行`mvn install`命令,Maven会自动从中央仓库下载这些jar包,并将其添加到项目的类路径中。如果某些库无法从中央仓库获取,你可能需要去相关的开源项目网站下载对应版本的jar包,并将其存放到本地...
Appfuse正是基于Maven的强大功能,提供了一个预配置的框架,集成了Spring、Hibernate、Struts等流行技术,使得开发者能够快速搭建Web应用的骨架,极大地提高了开发效率。通过熟练掌握Maven的使用,结合Appfuse的特性...
AppFuse 使用Maven作为构建工具,整合了Spring、Hibernate、Struts2(或Spring MVC)等流行框架,简化了开发流程。 这个"一个appfuse的应用"是一个基于AppFuse框架构建的小型应用示例。由于描述中提到“一些jar包...
- 此命令用于构建一个基于Struts2框架的Appfuse项目,并在指定目录下生成相应的项目结构和文件。 2. **启动MySQL服务器**: - 启动MySQL服务器,可以通过图形界面或者命令行方式操作。确保MySQL服务正常运行。 3...
这通常涉及Maven的`install`和`run`命令,或者IDE中的相应配置。 5. **核心组件**:AppFuse 使用的技术栈包含多个核心组件,如Spring管理依赖、Hibernate处理数据持久化、Thymeleaf或JSP作为视图技术。理解这些组件...
AppFuse 基于Maven构建,支持多种技术和框架,如Spring、Hibernate、Struts、JSF等。通过这个演示项目,你可以看到这些技术如何在实际应用中协同工作,从而提高你的开发效率。其中的截屏视频和教程将指导你逐步完成...
- Struts2:基于MVC的框架,整合了许多其他技术如OGNL和拦截器。 - Spring MVC:Spring框架的一部分,提供了强大的MVC支持。 - Tapestry:强调类型安全和组件重用。 - Wicket:基于组件的Web框架,注重开发者...