Ok now finally i was able to install it, problem was i had nexus repository running on port 8081 I changed cargo port to 8082 Now when i run the command mvn jetty:run-war server starts but i get 404 page when i access http://localhost:8080
Here is a output of mvn jetty:run-war spsarolkar wrote: > > C:\jdk1.6.0_14\bin\java > -Dclassworlds.conf=C:\apache-maven-2.2.0\bin\m2.conf > -Dmaven.home=C:\apache-maven-2.2.0 -Didea.launcher.port=7532 > "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA > 8.1.3\bin" -Dfile.encoding=windows-1252 -classpath > "C:\apache-maven-2.2.0\boot\classworlds-1.1.jar;C:\Program > Files\JetBrains\IntelliJ IDEA 8.1.3\lib\idea_rt.jar" > com.intellij.rt.execution.application.AppMain > org.codehaus.classworlds.Launcher --no-plugin-registry --fail-fast > --no-plugin-updates --strict-checksums -f > C:\Users\mypc\IdeaProjects\untitled9\pom.xml > org.mortbay.jetty:maven-jetty-plugin:6.1.9:run-war > + Enabling strict checksum verification on all artifact downloads. > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] Building AppFuse Struts 2 Application > [INFO] task-segment: > [org.mortbay.jetty:maven-jetty-plugin:6.1.9:run-war] > [INFO] > ------------------------------------------------------------------------ > [INFO] Preparing jetty:run-war > [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] [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 > windows-1252, i.e. build is platform dependent! > [WARNING] Using platform encoding (windows-1252 actually) to copy filtered > resources, i.e. build is platform dependent! > [INFO] Copying 45 resources > [INFO] Copying 2 resources > [INFO] Copying 119 resources > [INFO] Copying 119 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 > windows-1252, i.e. build is platform dependent! > [WARNING] Using platform encoding (windows-1252 actually) to copy filtered > resources, i.e. build is platform dependent! > [INFO] Copying 18 resources > [INFO] Copying 11 resources > [INFO] Preparing hibernate3:hbm2ddl > [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive > invocation. > [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 > windows-1252, i.e. build is platform dependent! > [WARNING] Using platform encoding (windows-1252 actually) to copy filtered > resources, i.e. build is platform dependent! > [INFO] Copying 45 resources > [INFO] Copying 2 resources > [INFO] Copying 119 resources > [INFO] Copying 119 resources > [INFO] Copying 119 resources > [INFO] Copying 119 resources > [INFO] [hibernate3:hbm2ddl {execution: default}] > [INFO] Configuration XML file loaded: > file:/C:/Users/mypc/IdeaProjects/untitled9/src/main/resources/hibernate.cfg.xml > [INFO] Configuration XML file loaded: > file:/C:/Users/mypc/IdeaProjects/untitled9/src/main/resources/hibernate.cfg.xml > [INFO] Configuration Properties file loaded: > C:\Users\mypc\IdeaProjects\untitled9\target\classes\jdbc.properties > alter table user_role drop foreign key FK143BF46AEBA3BF9; > alter table user_role drop foreign key FK143BF46AB3E4FFD9; > drop table if exists app_user; > drop table if exists role; > drop table if exists user_role; > create table app_user (id bigint not null auto_increment, account_expired > bit not null, account_locked bit not null, address varchar(150), city > varchar(50) not null, country varchar(100), postal_code varchar(15) not > null, province varchar(100), credentials_expired bit not null, email > varchar(255) not null unique, account_enabled 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), 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 user_role add index FK143BF46AEBA3BF9 (role_id), add > constraint FK143BF46AEBA3BF9 foreign key (role_id) references role (id); > alter table user_role add index FK143BF46AB3E4FFD9 (user_id), add > constraint FK143BF46AB3E4FFD9 foreign key (user_id) references app_user > (id); > [INFO] [compiler:testCompile {execution: default-testCompile}] > [INFO] Nothing to compile - all classes are up to date > [INFO] [dbunit:operation {execution: test-compile}] > [INFO] [surefire:test {execution: default-test}] > [INFO] Surefire report directory: > C:\Users\mypc\IdeaProjects\untitled9\target\surefire-reports > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running untitled9.dao.hibernate.HibernateConfigurationTest > INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | > Loading context for locations: > classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/applicationContext*.xml > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * > from: untitled9.model.Role > DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: > untitled9.model.Role > DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * > from: untitled9.model.User > DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: > untitled9.model.User > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testColumnMapping]. > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.588 sec > Running untitled9.service.UserExistsExceptionTest > INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | > Loading context for locations: > /applicationContext-service.xml,/applicationContext-resources.xml,classpath:/applicationContext-dao.xml > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@60029d]; > rollback [true]. > DEBUG - UserExistsExceptionTest.testAddExistingUser(21) | entered > 'testAddExistingUser' method > DEBUG - UserDaoHibernate.saveUser(47) | user's id: null > WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, > SQLState: 23000 > ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry > 'matt_rai...@yahoo.com' for key 2 > org.springframework.dao.DataIntegrityViolationException: could not insert: > [untitled9.model.User]; nested exception is > org.hibernate.exception.ConstraintViolationException: could not insert: > [untitled9.model.User] > at > org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624) > at > org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) > at > org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424) > at > org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) > at > org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:744) > at > untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:48) > 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:310) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) > at $Proxy30.saveUser(Unknown Source) > at > untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101) > 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:310) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) > at > org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) > at $Proxy32.saveUser(Unknown Source) > at > untitled9.service.UserExistsExceptionTest.testAddExistingUser(UserExistsExceptionTest.java:35) > 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:76) > 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:81) > 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.hibernate.exception.ConstraintViolationException: could not > insert: [untitled9.model.User] > at > org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71) > at > org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) > at > org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40) > at > org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2163) > at > org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2643) > at > org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:51) > at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) > at > org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298) > at > org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181) > at > org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107) > at > org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187) > at > org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172) > at > org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94) > at > org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70) > at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507) > at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499) > at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495) > at > org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:747) > at > org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419) > ... 55 more > Caused by: > com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: > Duplicate entry 'matt_rai...@yahoo.com' for key 2 > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931) > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941) > at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623) > at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715) > at com.mysql.jdbc.Connection.execSQL(Connection.java:3249) > at > com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440) > at > org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73) > at > org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33) > ... 71 more > WARN - UserManagerImpl.saveUser(104) | could not insert: > [untitled9.model.User]; nested exception is > org.hibernate.exception.ConstraintViolationException: could not insert: > [untitled9.model.User] > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testAddExistingUser]. > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.387 sec > Running untitled9.dao.UniversalDaoTest > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testCRUD]. > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.605 sec > Running untitled9.service.impl.LookupManagerImplTest > DEBUG - LookupManagerImplTest.testGetAllRoles(28) | entered > 'testGetAllRoles' method > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.519 sec > Running untitled9.util.DateConverterTest > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.232 sec > Running untitled9.webapp.action.SignupActionTest > INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | > Loading context for locations: > classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath:/applicationContext-service.xml,classpath*:/applicationContext.xml,/WEB-INF/applicationContext*.xml > ERROR - XWorkConverter.loadConversionProperties(784) | Conversion > registration error > java.lang.NullPointerException > at > com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWorkConverter.java:760) > at > com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties(XWorkConverter.java:778) > at > com.opensymphony.xwork2.util.XWorkConverter.<init>(XWorkConverter.java:183) > at > com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverter.java:207) > at > com.opensymphony.xwork2.util.OgnlValueStack.setRoot(OgnlValueStack.java:340) > at > com.opensymphony.xwork2.util.OgnlValueStack.<init>(OgnlValueStack.java:84) > at > com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(OgnlValueStackFactory.java:14) > at > com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue(ActionContext.java:329) > at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141) > at java.lang.ThreadLocal.get(ThreadLocal.java:131) > at > com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:151) > at > untitled9.webapp.action.BaseActionTestCase.onSetUpBeforeTransaction(BaseActionTestCase.java:38) > at > org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransactionalSpringContextTests.java:216) > at > org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:103) > at junit.framework.TestCase.runBare(TestCase.java:132) > at > org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76) > 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:81) > 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) > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@16d4b50]; > rollback [true]. > DEBUG - UserDaoHibernate.saveUser(47) | user's id: null > DEBUG - BaseAction.sendUserMessage(160) | sending e-mail to user > [self-registe...@raibledesigns.com]... > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testExecute]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@16d4b50]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testDisplayForm]. > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.913 sec > Running untitled9.webapp.listener.StartupListenerTest > DEBUG - StartupListener.contextInitialized(38) | Initializing context... > DEBUG - StartupListener.contextInitialized(74) | authenticationManager > bean not found, assuming test and ignoring... > DEBUG - StartupListener.contextInitialized(82) | Remember Me Enabled? null > DEBUG - StartupListener.contextInitialized(86) | Populating drop-downs... > DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names... > DEBUG - StartupListener.setupContext(102) | Drop-down initialization > complete [OK] > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.09 sec > Running untitled9.webapp.filter.StaticFilterTest > DEBUG - GenericFilterBean.init(157) | Initializing filter '' > DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully > DEBUG - StaticFilter.doFilterInternal(88) | Forwarding to static resource: > /scripts/dojo/test.html > DEBUG - GenericFilterBean.init(157) | Initializing filter '' > DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully > DEBUG - MockFilterChain.doFilter(37) | Forwarding to: /editProfile.html > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 sec > Running untitled9.service.UserManagerTest > INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | > Loading context for locations: > /applicationContext-resources.xml,classpath:/applicationContext-dao.xml,/applicationContext-service.xml,classpath*:/**/applicationContext.xml > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@f8ff42]; > rollback [true]. > DEBUG - UserManagerTest.testGetUser(28) | > untitled9.model.u...@e6361e[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted > Authorities: ,ROLE_USER] > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testGetUser]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@f8ff42]; > rollback [true]. > DEBUG - UserDaoHibernate.saveUser(47) | user's id: null > DEBUG - UserManagerTest.testAddAndRemoveUser(56) | removing user... > DEBUG - UserManagerImpl.removeUser(117) | removing user: 3 > DEBUG - UserManagerTest.testAddAndRemoveUser(64) | > org.springframework.security.userdetails.UsernameNotFoundException: user > 'john' not found... > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testAddAndRemoveUser]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@f8ff42]; > rollback [true]. > DEBUG - UserManagerTest.testSaveUser(36) | saving user with updated phone > number: > untitled9.model.u...@126aaca[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted > Authorities: ,ROLE_USER] > DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1 > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testSaveUser]. > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.428 sec > Running untitled9.service.impl.UserManagerImplTest > WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping > password encryption... > DEBUG - UserManagerImpl.removeUser(117) | removing user: 5 > WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping > password encryption... > WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping > password encryption... > org.springframework.dao.DataIntegrityViolationException: > at org.jmock.lib.action.ThrowAction.invoke(ThrowAction.java:27) > at > org.jmock.internal.InvocationExpectation.invoke(InvocationExpectation.java:126) > at > org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:52) > at org.jmock.Mockery.dispatch(Mockery.java:204) > at org.jmock.Mockery.access$000(Mockery.java:37) > at org.jmock.Mockery$MockObject.invoke(Mockery.java:246) > at > org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27) > at > org.jmock.internal.ProxiedObjectIdentity.invoke(ProxiedObjectIdentity.java:36) > at > org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33) > at $Proxy37.saveUser(Unknown Source) > at > untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101) > at > untitled9.service.impl.UserManagerImplTest.testUserExistsException(UserManagerImplTest.java:132) > 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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59) > at org.jmock.integration.junit4.JMock$1.invoke(JMock.java:36) > at > org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98) > at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) > at > org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87) > at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) > at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) > at > org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88) > at > org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) > at > org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) > at > org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) > at > org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) > at > org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) > 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) > WARN - UserManagerImpl.saveUser(104) | > DEBUG - UserManagerImplTest.testUserExistsException(135) | expected > exception: User 'admin' already exists! > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.359 sec > Running untitled9.dao.UserDaoTest > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > WARN - GenericDaoHibernate.get(74) | Uh oh, 'class untitled9.model.User' > object with id '1000' not found... > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testGetUserInvalid]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testGetUser]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - UserDaoTest.testGetUserPassword(44) | password: > 12dea96fec20593566ab75692c9949596833adc9 > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testGetUserPassword]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1 > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testUpdateUser]. > DEBUG - UserDaoHibernate.saveUser(47) | user's id: null > WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, > SQLState: 23000 > ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry > 'matt_rai...@yahoo.com' for key 2 > DEBUG - UserDaoTest.testUpdateUser(71) | expected exception: could not > insert: [untitled9.model.User]; nested exception is > org.hibernate.exception.ConstraintViolationException: could not insert: > [untitled9.model.User] > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1 > DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1 > DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1 > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testAddUserRole]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - UserDaoHibernate.saveUser(47) | user's id: null > WARN - GenericDaoHibernate.get(74) | Uh oh, 'class untitled9.model.User' > object with id '4' not found... > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testAddAndRemoveUser]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testUserExists]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testUserNotExists]. > Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.603 sec > Running untitled9.dao.RoleDaoTest > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testGetRoleInvalid]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testGetRole]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testUpdateRole]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testAddAndRemoveRole]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testFindByNamedQuery]. > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.506 sec > Running untitled9.service.impl.UniversalManagerTest > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 sec > Running untitled9.webapp.filter.LocaleFilterTest > DEBUG - GenericFilterBean.init(157) | Initializing filter '' > DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully > DEBUG - MockFilterChain.doFilter(37) | Forwarding to: > DEBUG - GenericFilterBean.init(157) | Initializing filter '' > DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully > DEBUG - MockFilterChain.doFilter(37) | Forwarding to: > DEBUG - GenericFilterBean.init(157) | Initializing filter '' > DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully > DEBUG - MockFilterChain.doFilter(37) | Forwarding to: > DEBUG - GenericFilterBean.init(157) | Initializing filter '' > DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully > DEBUG - MockFilterChain.doFilter(37) | Forwarding to: > DEBUG - GenericFilterBean.init(157) | Initializing filter '' > DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully > DEBUG - MockFilterChain.doFilter(37) | Forwarding to: > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.115 sec > Running untitled9.util.DateUtilTest > DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Tue Jul 28 > 13:34:08 PDT 2009 > DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 07/28/2009 > DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime' > method > DEBUG - DateUtilTest.testGetDateTime(62) | 13:34 > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 sec > Running untitled9.service.MailEngineTest > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.118 sec > Running untitled9.service.UserSecurityAdviceTest > WARN - UserSecurityAdvice.before(71) | Access Denied: 'user' tried to > modify 'admin'! > WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to > change their role(s)! > WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to > change their role(s)! > Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.834 sec > Running untitled9.dao.LookupDaoTest > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@19d12cc]; > rollback [true]. > DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names... > DEBUG - LookupDaoTest.testGetRoles(18) | [ROLE_ADMIN, ROLE_USER] > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testGetRoles]. > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec > Running untitled9.webapp.action.UserActionTest > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@16d4b50]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testCancel]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@16d4b50]; > rollback [true]. > DEBUG - UserAction.edit(117) | checking for remember me login... > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testEdit]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@16d4b50]; > rollback [true]. > DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1 > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testSave]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@16d4b50]; > rollback [true]. > DEBUG - UserActionTest.testSaveConflictingUser(65) | original version #: 2 > DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1 > WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, > SQLState: 23000 > ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry > 'm...@raibledesigns.com' for key 2 > ERROR - AbstractFlushingEventListener.performExecutions(301) | Could not > synchronize database state with session > org.hibernate.exception.ConstraintViolationException: could not update: > [untitled9.model.User#-1] > at > org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71) > at > org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) > at > org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2430) > at > org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312) > at > org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612) > at > org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96) > at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) > at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) > at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168) > at > org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) > at > org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) > at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) > at > org.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:888) > at > org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419) > at > org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) > at > org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886) > at > untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50) > 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:310) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) > at $Proxy30.saveUser(Unknown Source) > at > untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101) > 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:310) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) > at > org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) > at $Proxy32.saveUser(Unknown Source) > at untitled9.webapp.action.UserAction.save(UserAction.java:177) > at > untitled9.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:76) > 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:81) > 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: > com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: > Duplicate entry 'm...@raibledesigns.com' for key 2 > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931) > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941) > at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623) > at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715) > at com.mysql.jdbc.Connection.execSQL(Connection.java:3249) > at > com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440) > at > org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412) > ... 67 more > org.springframework.dao.DataIntegrityViolationException: could not update: > [untitled9.model.User#-1]; nested exception is > org.hibernate.exception.ConstraintViolationException: could not update: > [untitled9.model.User#-1] > at > org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624) > at > org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) > at > org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424) > at > org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) > at > org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886) > at > untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50) > 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:310) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) > at $Proxy30.saveUser(Unknown Source) > at > untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101) > 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:310) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) > at > org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) > at $Proxy32.saveUser(Unknown Source) > at untitled9.webapp.action.UserAction.save(UserAction.java:177) > at > untitled9.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:76) > 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:81) > 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.hibernate.exception.ConstraintViolationException: could not > update: [untitled9.model.User#-1] > at > org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71) > at > org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) > at > org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2430) > at > org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312) > at > org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612) > at > org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96) > at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) > at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) > at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168) > at > org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) > at > org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) > at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) > at > org.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:888) > at > org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419) > ... 56 more > Caused by: > com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: > Duplicate entry 'm...@raibledesigns.com' for key 2 > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931) > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941) > at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623) > at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715) > at com.mysql.jdbc.Connection.execSQL(Connection.java:3249) > at > com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440) > at > org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412) > ... 67 more > WARN - UserManagerImpl.saveUser(104) | could not update: > [untitled9.model.User#-1]; nested exception is > org.hibernate.exception.ConstraintViolationException: could not update: > [untitled9.model.User#-1] > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testSaveConflictingUser]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@16d4b50]; > rollback [true]. > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testSearch]. > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@16d4b50]; > rollback [true]. > DEBUG - UserManagerImpl.removeUser(117) | removing user: -2 > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testRemove]. > Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.142 sec > Running untitled9.webapp.action.PasswordHintActionTest > DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | > Began transaction (1): transaction manager > [org.springframework.orm.hibernate3.hibernatetransactionmana...@16d4b50]; > rollback [true]. > DEBUG - PasswordHintAction.execute(45) | Processing Password Hint... > DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | > Rolled back transaction after execution of test [testExecute]. > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.638 sec > Running untitled9.AppTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec > > Results : > > Tests run: 64, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] [dbunit:operation {execution: test}] > [INFO] [war:war {execution: default-war}] > [INFO] Exploding webapp... > [INFO] Assembling webapp untitled9 in > C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0 > [INFO] Copy webapp webResources to > C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0 > [INFO] Generating war > C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war > [INFO] Building war: > C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war > [INFO] [jetty:run-war {execution: default-cli}] > [INFO] Configuring Jetty for project: AppFuse Struts 2 Application > 2009-07-28 13:34:47.455::INFO: Logging to STDERR via > org.mortbay.log.StdErrLog > [INFO] Context path = / > [INFO] Tmp directory = determined at runtime > [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml > [INFO] Web overrides = none > 2009-07-28 13:34:48.418::INFO: jetty-6.1.9 > [INFO] Starting jetty 6.1.9 ... > 2009-07-28 13:34:49.634::INFO: Extract > jar:file:/C:/Users/mypc/IdeaProjects/untitled9/target/untitled9-1.0.war!/ > to C:\Users\mypc\IdeaProjects\untitled9\target\work\webapp > 2009-07-28 13:34:59.018::INFO: No Transaction manager found - if your > webapp requires one, please configure one. > 2009-07-28 13:35:01.783:/:INFO: Initializing Spring root > WebApplicationContext > DEBUG [main] StartupListener.contextInitialized(38) | Initializing > context... > DEBUG [main] StartupListener.contextInitialized(82) | Remember Me Enabled? > true > DEBUG [main] StartupListener.contextInitialized(84) | Password Encoder: > org.springframework.security.providers.encoding.ShaPasswordEncoder > DEBUG [main] StartupListener.contextInitialized(86) | Populating > drop-downs... > DEBUG [main] LookupDaoHibernate.getRoles(20) | Retrieving all role > names... > DEBUG [main] StartupListener.setupContext(102) | Drop-down initialization > complete [OK] > DEBUG [main] LocaleFilter.init(157) | Initializing filter 'localeFilter' > DEBUG [main] LocaleFilter.init(182) | Filter 'localeFilter' configured > successfully > WARN [main] Settings.getLocale(143) | Settings: Could not parse > struts.locale setting, substituting default VM locale > [INFO] Started Jetty Server > 2009-07-28 13:35:26.572::INFO: Started > selectchannelconnec...@0.0.0.0:8080 > [INFO] Starting scanner at interval of 3 seconds. > > > -- View this message in context: http://www.nabble.com/Problems-after-running-appfuse%3Afull-source-tp24696222s2369p24707464.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