Hi Matt,

I have done(changed configration in pom file) as you said, It works
successfully when I run Mvn,But When I run the " mvn jetty:run-war" ,I could
visit by the http://localhost:8080

Please see all the belowing error message, which are from the stack,When I
run the jetty,It stop the last line "[INFO] Starting scanner at interval of
3 seconds."

are they successful?How to solve the belowing Error Message and Exception?

1)ERROR - JDBCExceptionReporter.logExceptions(101) | Duplicate entry
'matt_raible@
yahoo.com' for key 'email'

2)ERROR - AbstractFlushingEventListener.performExecutions(324) | Could not
synchro
nize database state with session

Thanks,

Art Lingbo Liu

D:\Source\myproject>mvn jetty:run-war | more

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [jetty:run-war]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing jetty:run-war
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 40 resources
[INFO] Copying 2 resources
[INFO] Copying 53 resources
[INFO] Copying 158 resources
[INFO] Copying 158 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 17 source files to D:\Source\myproject\target\classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO] Copying 11 resources
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive
invocati
on.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 40 resources
[INFO] Copying 2 resources
[INFO] Copying 53 resources
[INFO] Copying 158 resources
[INFO] Copying 158 resources
[INFO] Copying 158 resources
[INFO] Copying 158 resources
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded:
file:/D:/Source/myproject/src/main/resourc
es/hibernate.cfg.xml
[INFO] Configuration XML file loaded:
file:/D:/Source/myproject/src/main/resourc
es/hibernate.cfg.xml
[INFO] Configuration Properties file loaded:
D:\Source\myproject\target\classes\
jdbc.properties
alter table user_role drop foreign key FK143BF46A407D00A9;
alter table user_role drop foreign key FK143BF46A9B523CC9;
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 no
t null, account_locked bit not null, address varchar(150), city varchar(50),
cou
140 [main] INFO org.dbunit.database.DatabaseDataSet -
        database name=MySQL
        database version=5.1.36-community
        database major version=5
        database minor version=1
        jdbc driver name=MySQL-AB JDBC Driver
        jdbc driver version=mysql-connector-java-5.1.10 ( Revision:
${svn.Revisi
on} )
        jdbc driver major version=5
        jdbc driver minor version=1 
ntry varchar(100), postal_code varchar(15), province varchar(100),
credentials_e
xpired bit not null, email varchar(255) not null unique, account_enabled
bit, fi
rst_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 v
archar(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), n
ame varchar(20), primary key (id)) ENGINE=InnoDB;
create table user_role (user_id bigint not null, role_id bigint not null,
primar
y key (user_id, role_id)) ENGINE=InnoDB;
alter table user_role add index FK143BF46A407D00A9 (user_id), add constraint
FK1
43BF46A407D00A9 foreign key (user_id) references app_user (id);
alter table user_role add index FK143BF46A9B523CC9 (role_id), add constraint
FK1
43BF46A9B523CC9 foreign key (role_id) references role (id);
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 8 source files to D:\Source\myproject\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
D:\Source\myproject\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.mycompany.service.UserExistsExceptionTest
DEBUG - UserExistsExceptionTest.testAddExistingUser(26) | entered
'testAddExisti
ngUser' method
DEBUG - UserDaoHibernate.saveUser(49) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(100) | SQL Error: 1062, SQLState:
230
00
ERROR - JDBCExceptionReporter.logExceptions(101) | Duplicate entry
'matt_raible@
yahoo.com' for key 'email'
WARN - UserManagerImpl.saveUser(99) | could not insert:
[com.mycompany.model.Use
r]; nested exception is
org.hibernate.exception.ConstraintViolationException: co
uld not insert: [com.mycompany.model.User]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.687 sec
Running com.mycompany.webapp.filter.StaticFilterTest

DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - StaticFilter.doFilterInternal(89) |  ing to static resource: /scri
pts/dojo/test.html
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) |  ing to: /editProfile.html
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.094 sec
Running com.mycompany.util.DateConverterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
Running com.mycompany.dao.UserDaoTest
2009-11-27 18:36:38 net.sf.ehcache.CacheManager
detectAndFixDiskStorePathConflic
 
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.687 sec
Run...
        
18:37 (16 minutes ago)
 
t
警告: Creating a new instance of CacheManager using the diskStorePath
"C:\DOCUME
~1\ADMINI~1\LOCALS~1\Temp\" which is already used by an existing
CacheManager.
The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to
C:\DOCUME~1\ADMINI~1\LOC
ALS~1\Temp\\ehcache_auto_created_1259318198296.

To avoid this warning consider using the CacheManager factory methods to
create
a singleton CacheManager or specifying a separate ehcache configuration
(ehcache
.xml) for each CacheManager instance.
WARN - GenericDaoHibernate.get(107) | Uh oh, 'class
com.mycompany.model.User' ob
ject with id '1000' not found...
DEBUG - UserDaoTest.testGetUserPassword(48) | password:
12dea96fec20593566ab7569
2c9949596833adc9
DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1

DEBUG - UserDaoHibernate.saveUser(49) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(100) | SQL Error: 1062, SQLState:
230
00
ERROR - JDBCExceptionReporter.logExceptions(101) | Duplicate entry
'matt_raible@
yahoo.com' for key 'email'
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(107) | Uh oh, 'class
com.mycompany.model.User' ob
ject with id '3' not found...
DEBUG - UserDaoHibernate.saveUser(49) | user's id: -2
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.5 sec

Running com.mycompany.service.impl.LookupManagerImplTest
DEBUG - LookupManagerImplTest.testGetAllRoles(28) | entered
'testGetAllRoles' me
thod
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
Running com.mycompany.util.DateUtilTest
DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Fri Nov 27
18:36:41 C

ST 2009
DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 11/27/2009
DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime' method
DEBUG - DateUtilTest.testGetDateTime(62) | 18:36

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.mycompany.service.impl.UserManagerImplTest
WARN - UserManagerImpl.saveUser(92) | PasswordEncoder not set, skipping
password
 encryption...
DEBUG - UserManagerImpl.removeUser(112) | removing user: 5
WARN - UserManagerImpl.saveUser(92) | PasswordEncoder not set, skipping
password
 encryption...
WARN - UserManagerImpl.saveUser(92) | PasswordEncoder not set, skipping
password
 encryption...
WARN - UserManagerImpl.saveUser(99) |
DEBUG - UserManagerImplTest.testUserExistsException(136) | expected
exception: U
ser 'admin' already exists!
        
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 82.797 sec
Running com.mycompany.webapp.filter.LocaleFilterTest

DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) |  ing to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) |  ing to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) |  ing to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) |  ing to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) |  ing to:
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.mycompany.service.MailEngineTest
2009-11-27 18:38:04 net.sf.ehcache.CacheManager
detectAndFixDiskStorePathConflic

t
警告: Creating a new instance of CacheManager using the diskStorePath
"C:\DOCUME
~1\ADMINI~1\LOCALS~1\Temp\" which is already used by an existing
CacheManager.
The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to
C:\DOCUME~1\ADMINI~1\LOC
ALS~1\Temp\\ehcache_auto_created_1259318284703.

To avoid this warning consider using the CacheManager factory methods to
create
a singleton CacheManager or specifying a separate ehcache configuration
(ehcache
.xml) for each CacheManager instance.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.625 sec

Running com.mycompany.webapp.listener.StartupListenerTest
2009-11-27 18:38:05 net.sf.ehcache.CacheManager
detectAndFixDiskStorePathConflic

t
警告: Creating a new instance of CacheManager using the diskStorePath
"C:\DOCUME
~1\ADMINI~1\LOCALS~1\Temp\" which is already used by an existing
CacheManager.
The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to
C:\DOCUME~1\ADMINI~1\LOC
ALS~1\Temp\\ehcache_auto_created_1259318285984.

To avoid this warning consider using the CacheManager factory methods to
create
a singleton CacheManager or specifying a separate ehcache configuration
(ehcache
.xml) for each CacheManager instance.
DEBUG - StartupListener.contextInitialized(40) | Initializing context...
DEBUG - StartupListener.contextInitialized(76) | authenticationManager bean
not
found, assuming test and ignoring...
DEBUG - StartupListener.contextInitialized(84) | Remember Me Enabled? null
DEBUG - StartupListener.contextInitialized(88) | Populating drop-downs...

DEBUG - LookupDaoHibernate.getRoles(35) | Retrieving all role names...
DEBUG - StartupListener.setupContext(105) | Drop-down initialization
complete [O
K]
        
2009-11-27 18:38:06 net.sf.ehcache.CacheManager
detectAndFixDiskStorePathConflic

t
警告: Creating a new instance of CacheManager using the diskStorePath
"C:\DOCUME
~1\ADMINI~1\LOCALS~1\Temp\" which is already used by an existing
CacheManager.
The source of the configuration was classpath.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.547 sec

The diskStore path for this CacheManager will be set to
C:\DOCUME~1\ADMINI~1\LOC
ALS~1\Temp\\ehcache_auto_created_1259318286890.

Running com.mycompany.webapp.action.SignupActionTest
To avoid this warning consider using the CacheManager factory methods to
create
a singleton CacheManager or specifying a separate ehcache configuration
(ehcache
.xml) for each CacheManager instance.
INFO - AbstractSingleSpringContextTests.loadContextLocations(187) | Loading
cont
ext for locations:
classpath:/applicationContext-resources.xml,classpath:/applic
ationContext-dao.xml,classpath:/applicationContext-service.xml,classpath*:/appli
cationContext.xml,/WEB-INF/applicationContext*.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began
 transaction (1): transaction manager
[org.springframework.orm.hibernate3.Hibern
atetransactionmana...@18ad9a0]; rollback [true].

DEBUG - UserDaoHibernate.saveUser(49) | user's id: null
DEBUG - BaseAction.sendUserMessage(164) | sending e-mail to user
[self-registere
d...@raibledesigns.com]...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
bac
k transaction after execution of test [testExecute].

DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began
 transaction (1): transaction manager
[org.springframework.orm.hibernate3.Hibern
atetransactionmana...@18ad9a0]; rollback [true].

DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
bac
k transaction after execution of test [testDisplayForm].
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 45.172 sec

Running com.mycompany.service.UserManagerTest
DEBUG - UserManagerTest.testGetUser(24) |
com.mycompany.model.u...@147c01d[usern
ame=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocke
d=false,Granted Authorities: ,ROLE_USER]
DEBUG - UserDaoHibernate.saveUser(49) | user's id: null
DEBUG - UserManagerTest.testAddAndRemoveUser(54) | removing user...
DEBUG - UserManagerImpl.removeUser(112) | removing user: 5
DEBUG - UserManagerTest.testAddAndRemoveUser(62) |
org.springframework.security.
userdetails.UsernameNotFoundException: user 'john' not found...
DEBUG - UserManagerTest.testSaveUser(33) | saving user with updated phone
number
:
com.mycompany.model.u...@1313e0e[username=user,enabled=true,accountExpired=fal
se,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.297 sec
Running com.mycompany.service.impl.UserSecurityAdviceTest
WARN - UserSecurityAdvice.before(71) | Access Denied: 'user' tried to modify
'ad
min'!
        
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change
the
ir role(s)!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change
the
ir role(s)!

Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.547 sec
Running com.mycompany.dao.hibernate.HibernateConfigurationTest
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select *
from:
 com.mycompany.model.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok:
com.mycompany.mod
el.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select *
from:
 com.mycompany.model.User
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok:
com.mycompany.mod
el.User
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec
Running com.mycompany.webapp.action.PasswordHintActionTest

DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began
 transaction (1): transaction manager
[org.springframework.orm.hibernate3.Hibern
atetransactionmana...@18ad9a0]; rollback [true].
DEBUG - PasswordHintAction.execute(45) | Processing Password Hint...

DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
bac
k transaction after execution of test [testExecute].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.141 sec
Running com.mycompany.dao.RoleDaoTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 sec
Running com.mycompany.webapp.action.UserActionTest

DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began
 transaction (1): transaction manager
[org.springframework.orm.hibernate3.Hibern
atetransactionmana...@18ad9a0]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
bac
k transaction after execution of test [testCancel].

DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began
 transaction (1): transaction manager
[org.springframework.orm.hibernate3.Hibern
atetransactionmana...@18ad9a0]; rollback [true].
DEBUG - UserAction.edit(111) | checking for remember me login...

DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
bac
k transaction after execution of test [testEdit].

DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began
 transaction (1): transaction manager
[org.springframework.orm.hibernate3.Hibern
atetransactionmana...@18ad9a0]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1

DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
bac
k transaction after execution of test [testSave].

DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began
 transaction (1): transaction manager
[org.springframework.orm.hibernate3.Hibern
atetransactionmana...@18ad9a0]; rollback [true].
DEBUG - UserActionTest.testSaveConflictingUser(65) | original version #: 3

DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1
        
WARN - JDBCExceptionReporter.logExceptions(100) | SQL Error: 1062, SQLState:
230
00
ERROR - JDBCExceptionReporter.logExceptions(101) | Duplicate entry
'm...@raibled
esigns.com' for key 'email'
ERROR - AbstractFlushingEventListener.performExecutions(324) | Could not
synchro
nize database state with session
org.hibernate.exception.ConstraintViolationException: could not update:
[com.myc
ompany.model.User#-1]
        at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j
ava:94)
        at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp
er.java:66)

        at
org.hibernate.persister.entity.AbstractEntityPersister.update(Abstrac
tEntityPersister.java:2453)
        at
org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert
(AbstractEntityPersister.java:2335)

        at
org.hibernate.persister.entity.AbstractEntityPersister.update(Abstrac
tEntityPersister.java:2635)
        at
org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.ja
va:115)
        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.performExecutio
ns(AbstractFlushingEventListener.java:321)
        at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlus
hEventListener.java:50)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
        at
org.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate
(HibernateTemplate.java:892)
        at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(Hibern
ateTemplate.java:419)
        at
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativ
eSession(HibernateTemplate.java:374)
        at
org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateT
emplate.java:890)
        at
com.mycompany.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernat
e.java:52)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
 363500 [main] INFO org.dbunit.database.DatabaseDataSet -

        database name=MySQL
        database version=5.1.36-community
        database major version=5
        database minor version=1
        jdbc driver name=MySQL-AB JDBC Driver
        jdbc driver version=mysql-connector-java-5.1.10 ( Revision:
${svn.Revisi
on} )
        jdbc driver major version=5
        jdbc driver minor version=1

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:307)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:182)

        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:149)
        at
org.springframework.dao.support.PersistenceExceptionTranslationInterc
eptor.invoke(PersistenceExceptionTranslationInterceptor.java:138)

        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:204)
        at $Proxy37.saveUser(Unknown Source)
        at
com.mycompany.service.impl.UserManagerImpl.saveUser(UserManagerImpl.j
ava:96)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:307)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:182)

        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:149)

        at
org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:106)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
        at
org.springframework.aop.framework.adapter.AfterReturningAdviceInterce
ptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
        at
org.springframework.aop.framework.adapter.MethodBeforeAdviceIntercept
or.invoke(MethodBeforeAdviceInterceptor.java:50)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
        at
org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:106)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
        at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invok
e(ExposeInvocationInterceptor.java:89)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:204)
        at $Proxy38.saveUser(Unknown Source)
        at com.mycompany.webapp.action.UserAction.save(UserAction.java:174)
        at
com.mycompany.webapp.action.UserActionTest.testSaveConflictingUser(Us
erActionTest.java:71)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestC
ase.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.executeTes
tSet(AbstractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.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(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:345)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:1009)
Caused by:
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
 Duplicate entry 'm...@raibledesigns.com' for key 'email'
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1011)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2648)
        at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.ja
va:2077)
        at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
:2362)
        at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
:2280)
        at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
:2265)
        at
org.hibernate.persister.entity.AbstractEntityPersister.update(Abstrac
tEntityPersister.java:2435)
        ... 71 more
WARN - UserManagerImpl.saveUser(99) | could not update:
[com.mycompany.model.Use
r#-1]; nested exception is
org.hibernate.exception.ConstraintViolationException:
 could not update: [com.mycompany.model.User#-1]

DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
bac
k transaction after execution of test [testSaveConflictingUser].

DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began
 transaction (1): transaction manager
[org.springframework.orm.hibernate3.Hibern
atetransactionmana...@18ad9a0]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
bac
k transaction after execution of test [testSearch].

DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began
 transaction (1): transaction manager
[org.springframework.orm.hibernate3.Hibern
atetransactionmana...@18ad9a0]; rollback [true].
DEBUG - UserManagerImpl.removeUser(112) | removing user: -2

DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
bac
k transaction after execution of test [testRemove].
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 220.187 sec
Running com.mycompany.dao.GenericDaoTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.mycompany.dao.LookupDaoTest

DEBUG - LookupDaoHibernate.getRoles(35) | Retrieving all role names...
DEBUG - LookupDaoTest.testGetRoles(20) | [ROLE_ADMIN, ROLE_USER]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec

Results :

Tests run: 60, Failures: 0, Errors: 0, Skipped: 0

[INFO] [dbunit:operation {execution: test}]

[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp[myproject] in
[D:\Source\myproject\target\myproject-1.0
-SNAPSHOT]
[INFO] Dependency[Dependency {groupId=mysql,
artifactId=mysql-connector-java, ve
rsion=5.1.10, type=jar}] has changed (was Dependency {groupId=mysql,
artifactId=

mysql-connector-java, version=5.1.10, type=jar}).
[INFO] Dependency[Dependency {groupId=commons-beanutils,
artifactId=commons-bean
utils, version=1.8.1, type=jar}] has changed (was Dependency
{groupId=commons-be
anutils, artifactId=commons-beanutils, version=1.8.1, type=jar}).
[INFO] Dependency[Dependency {groupId=commons-dbcp, artifactId=commons-dbcp,
ver
sion=1.2.1, type=jar}] has changed (was Dependency {groupId=commons-dbcp,
artifa
ctId=commons-dbcp, version=1.2.1, type=jar}).
[INFO] Dependency[Dependency {groupId=commons-lang, artifactId=commons-lang,
ver
sion=2.4, type=jar}] has changed (was Dependency {groupId=commons-lang,
artifact
Id=commons-lang, version=2.4, type=jar}).
[INFO] Dependency[Dependency {groupId=displaytag, artifactId=displaytag,
version
=1.2, type=jar}] has changed (was Dependency {groupId=displaytag,
artifactId=dis
playtag, version=1.2, type=jar}).
[INFO] Dependency[Dependency {groupId=javassist, artifactId=javassist,
version=3
.4.GA, type=jar}] has changed (was Dependency {groupId=javassist,
artifactId=jav
assist, version=3.4.GA, type=jar}).
[INFO] Dependency[Dependency {groupId=javax.mail, artifactId=mail,
version=1.4.1
, type=jar}] has changed (was Dependency {groupId=javax.mail,
artifactId=mail, v
ersion=1.4.1, type=jar}).
[INFO] Dependency[Dependency {groupId=javax.persistence,
artifactId=persistence-
api, version=1.0, type=jar}] has changed (was Dependency
{groupId=javax.persiste
nce, artifactId=persistence-api, version=1.0, type=jar}).
[INFO] Dependency[Dependency {groupId=javax.xml.bind, artifactId=jaxb-api,
versi
on=2.2, type=jar}] has changed (was Dependency {groupId=javax.xml.bind,
artifact
Id=jaxb-api, version=2.2, type=jar}).
[INFO] Dependency[Dependency {groupId=log4j, artifactId=log4j,
version=1.2.13, t
ype=jar}] has changed (was Dependency {groupId=log4j, artifactId=log4j,
version=
1.2.13, type=jar}).
[INFO] Dependency[Dependency {groupId=net.sf.ehcache,
artifactId=ehcache-core, v
ersion=1.7.0, type=jar}] has changed (was Dependency
{groupId=net.sf.ehcache, ar
tifactId=ehcache-core, version=1.7.0, type=jar}).
[INFO] Dependency[Dependency {groupId=net.sf.ehcache,
artifactId=ehcache-web, ve
rsion=1.6.0-beta2, type=jar}] has changed (was Dependency
{groupId=net.sf.ehcach
e, artifactId=ehcache-web, version=1.6.0-beta2, type=jar}).
[INFO] Dependency[Dependency {groupId=opensymphony, artifactId=sitemesh,
version
=2.4.2, type=jar}] has changed (was Dependency {groupId=opensymphony,
artifactId
=sitemesh, version=2.4.2, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.cxf,
artifactId=cxf-rt-frontend
-jaxrs, version=2.2.4, type=jar}] has changed (was Dependency
{groupId=org.apach
e.cxf, artifactId=cxf-rt-frontend-jaxrs, version=2.2.4, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.cxf,
artifactId=cxf-common-util
ities, version=2.2.4, type=jar}] has changed (was Dependency
{groupId=org.apache
.cxf, artifactId=cxf-common-utilities, version=2.2.4, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.cxf,
artifactId=cxf-rt-transpor
ts-http, version=2.2.4, type=jar}] has changed (was Dependency
{groupId=org.apac
he.cxf, artifactId=cxf-rt-transports-http, version=2.2.4, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.cxf,
artifactId=cxf-rt-frontend
-jaxws, version=2.2.4, type=jar}] has changed (was Dependency
{groupId=org.apach
e.cxf, artifactId=cxf-rt-frontend-jaxws, version=2.2.4, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.cxf,
artifactId=cxf-common-util
ities, version=2.2.4, type=jar}] has changed (was Dependency
{groupId=org.apache
.cxf, artifactId=cxf-common-utilities, version=2.2.4, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.cxf,
artifactId=cxf-rt-transpor
ts-http, version=2.2.4, type=jar}] has changed (was Dependency
{groupId=org.apac
he.cxf, artifactId=cxf-rt-transports-http, version=2.2.4, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.cxf,
artifactId=cxf-rt-frontend
-jaxws, version=2.2.4, type=jar}] has changed (was Dependency
{groupId=org.apach
e.cxf, artifactId=cxf-rt-frontend-jaxws, version=2.2.4, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.struts,
artifactId=struts2-core
, version=2.1.8, type=jar}] has changed (was Dependency
{groupId=org.apache.stru
ts, artifactId=struts2-core, version=2.1.8, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.struts,
artifactId=struts2-conv
ention-plugin, version=2.1.8, type=jar}] has changed (was Dependency
{groupId=or
g.apache.struts, artifactId=struts2-convention-plugin, version=2.1.8,
type=jar})
.
[INFO] Dependency[Dependency {groupId=org.apache.struts,
artifactId=struts2-spri
ng-plugin, version=2.1.8, type=jar}] has changed (was Dependency
{groupId=org.ap
ache.struts, artifactId=struts2-spring-plugin, version=2.1.8, type=jar}).
[INFO] Dependency[Dependency {groupId=org.aspectj, artifactId=aspectjweaver,
ver
sion=1.6.6, type=jar}] has changed (was Dependency {groupId=org.aspectj,
artifac
tId=aspectjweaver, version=1.6.6, type=jar}).
[INFO] Dependency[Dependency {groupId=org.aspectj, artifactId=aspectjrt,
version
=1.6.6, type=jar}] has changed (was Dependency {groupId=org.aspectj,
artifactId=
2009-11-27 18:48:17.453::INFO:  Logging to STDERR via org.mortbay.lo
g.StdErrLog

aspectjrt, version=1.6.6, type=jar}).
[INFO] Dependency[Dependency {groupId=org.codehaus.woodstox,
artifactId=woodstox
-core-asl, version=4.0.3, type=jar}] has changed (was Dependency
{groupId=org.co
dehaus.woodstox, artifactId=woodstox-core-asl, version=4.0.3, type=jar}).
2009-11-27 18:48:17.562::INFO:  jetty-6.1.21

[INFO] Dependency[Dependency {groupId=org.compass-project,
artifactId=compass, v
 2009-11-27 18:48:17.609::INFO:  Extract D:\Source\myproject\target\m
yproject-1.0-SNAPSHOT.war to D:\Source\myproject\target\work\webapp

ersion=2.1.3, type=jar}] has changed (was Dependency
{groupId=org.compass-projec
t, artifactId=compass, version=2.1.3, type=jar}).
[INFO] Dependency[Dependency {groupId=org.directwebremoting, artifactId=dwr,
ver
sion=2.0.1, type=jar}] has changed (was Dependency
{groupId=org.directwebremotin
g, artifactId=dwr, version=2.0.1, type=jar}).
[INFO] Dependency[Dependency {groupId=org.hibernate,
artifactId=hibernate-annota
tions, version=3.4.0.GA, type=jar}] has changed (was Dependency
{groupId=org.hib
ernate, artifactId=hibernate-annotations, version=3.4.0.GA, type=jar}).
[INFO] Dependency[Dependency {groupId=org.hibernate,
artifactId=hibernate-core,
version=3.3.1.GA, type=jar}] has changed (was Dependency
{groupId=org.hibernate,
 artifactId=hibernate-core, version=3.3.1.GA, type=jar}).
[INFO] Dependency[Dependency {groupId=org.hibernate,
artifactId=hibernate-ehcach
e, version=3.3.1.GA, type=jar}] has changed (was Dependency
{groupId=org.hiberna
te, artifactId=hibernate-ehcache, version=3.3.1.GA, type=jar}).
[INFO] Dependency[Dependency {groupId=org.slf4j, artifactId=slf4j-log4j12,
versi
on=1.5.2, type=jar}] has changed (was Dependency {groupId=org.slf4j,
artifactId=
slf4j-log4j12, version=1.5.2, type=jar}).
[INFO] Dependency[Dependency {groupId=org.springframework,
artifactId=spring-aop
, version=2.5.6, type=jar}] has changed (was Dependency
{groupId=org.springframe
work, artifactId=spring-aop, version=2.5.6, type=jar}).
[INFO] Dependency[Dependency {groupId=org.springframework,
artifactId=spring-jdb
c, version=2.5.6, type=jar}] has changed (was Dependency
{groupId=org.springfram
ework, artifactId=spring-jdbc, version=2.5.6, type=jar}).
 2009-11-27 18:48:24.812::INFO:  No Transaction manager found - if yo
ur webapp requires one, please configure one.
2009-11-27 18:48:25.875:/:INFO:  Initializing Spring root
WebApplicationContext
2009-11-27 18:48:33
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
信息: Creating Service {http://impl.service.mycompany.com/}UserService from
clas
 
2009-11-27 18:48:24.812::INFO:  No Transaction manager found - if yo
ur webapp requires one, please configure one.
2009-11-27 18:48:25.875:/:INFO:  Initializing Spring root
WebApplicationContext
2009-11-27 18:48:33
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
信息: Creating Service {http://impl.service.mycompany.com/}UserService from
clas
s com.mycompany.service.UserService
2009-11-27 18:48:35 org.apache.cxf.endpoint.ServerImpl initDestination

信息: Setting the server's publish address to be /UserService
2009-11-27 18:48:38 org.apache.cxf.transport.servlet.CXFServlet
updateContext

信息: Load the bus with application context
2009-11-27 18:48:39 org.apache.cxf.bus.spring.BusApplicationContext
getConfigRes

ources
信息: No cxf.xml configuration file detected, relying on defaults.
2009-11-27 18:48:39 org.apache.cxf.transport.servlet.AbstractCXFServlet
replaceD

estinationFactory
信息: Servlet transport factory already registered
2009-11-27 18:48:39 org.apache.cxf.transport.servlet.CXFServlet
loadAdditionalCo

nfig
信息: Build endpoints from config-location: /WEB-INF/cxf-servlet.xml
2009-11-27 18:48:39
org.apache.cxf.service.factory.ReflectionServiceFactoryBean

buildServiceFromClass
信息: Creating Service {http://impl.service.mycompany.com/}UserService from
clas
s com.mycompany.service.UserService
2009-11-27 18:48:39 org.apache.cxf.endpoint.ServerImpl initDestination

信息: Setting the server's publish address to be /UserService
2009-11-27 18:48:39.484::INFO:  Started selectchannelconnec...@0.0.0.0:8080
2009-11-27 18:48:39.484::INFO:  Started selectchannelconnec...@0.0.0.0:8080
[INFO] Dependency[Dependency {groupId=org.springframework,
artifactId=spring-orm

, version=2.5.6, type=jar}] has changed (was Dependency
{groupId=org.springframe
work, artifactId=spring-orm, version=2.5.6, type=jar}).
[INFO] Dependency[Dependency {groupId=org.springframework,
artifactId=spring-asp
ects, version=2.5.6, type=jar}] has changed (was Dependency
{groupId=org.springf
ramework, artifactId=spring-aspects, version=2.5.6, type=jar}).
[INFO] Dependency[Dependency {groupId=org.springframework,
artifactId=spring-con
text-support, version=2.5.6, type=jar}] has changed (was Dependency
{groupId=org
.springframework, artifactId=spring-context-support, version=2.5.6,
type=jar}).
[INFO] Dependency[Dependency {groupId=org.springframework,
artifactId=spring-web
mvc, version=2.5.6, type=jar}] has changed (was Dependency
{groupId=org.springfr
amework, artifactId=spring-webmvc, version=2.5.6, type=jar}).
[INFO] Dependency[Dependency {groupId=org.springframework.security,
artifactId=s
pring-security-core-tiger, version=2.0.4, type=jar}] has changed (was
Dependency
 {groupId=org.springframework.security,
artifactId=spring-security-core-tiger, v
ersion=2.0.4, type=jar}).
[INFO] Dependency[Dependency {groupId=org.springframework.security,
artifactId=s
pring-security-taglibs, version=2.0.4, type=jar}] has changed (was
Dependency {g
roupId=org.springframework.security, artifactId=spring-security-taglibs,
version
=2.0.4, type=jar}).
[INFO] Dependency[Dependency {groupId=org.tuckey,
artifactId=urlrewritefilter, v
ersion=3.1.0, type=jar}] has changed (was Dependency {groupId=org.tuckey,
artifa
ctId=urlrewritefilter, version=3.1.0, type=jar}).
[INFO] Dependency[Dependency {groupId=struts-menu, artifactId=struts-menu,
versi
on=2.4.3, type=jar}] has changed (was Dependency {groupId=struts-menu,
artifactI
d=struts-menu, version=2.4.3, type=jar}).
[INFO] Processing war project
[INFO] Copying webapp resources[D:\Source\myproject\src\main\webapp]
[INFO] Webapp assembled in[223875 msecs]

[INFO] Building war: D:\Source\myproject\target\myproject-1.0-SNAPSHOT.war
[INFO] [jetty:run-war {execution: default-cli}]
[INFO] Configuring Jetty for project: AppFuse Struts 2 Application

[INFO] Context path = /
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] Starting jetty 6.1.21 ...
DEBUG [main] StartupListener.contextInitialized(40) | Initializing
context...
DEBUG [main] StartupListener.contextInitialized(84) | Remember Me Enabled?
true
DEBUG [main] StartupListener.contextInitialized(86) | Password Encoder:
ShaPassw
ordEncoder
DEBUG [main] StartupListener.contextInitialized(88) | Populating
drop-downs...
DEBUG [main] StartupListener.setupContext(105) | Drop-down initialization
comple
te [OK]
DEBUG [main] LocaleFilter.init(157) | Initializing filter 'localeFilter'
DEBUG [main] LocaleFilter.init(182) | Filter 'localeFilter' configured
successfu
lly
[INFO] Started Jetty Server

[INFO] Starting scanner at interval of 3 seconds.
-- 
View this message in context: 
http://n4.nabble.com/struts2-0-error-message-in-appfuse2-10-tp787596p788742.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

Reply via email to