Hi,
After downloading the latest sources from trunk (using svn co
https://appfuse.dev.java.net/svn/appfuse/trunk), and
running "mvn install" I am getting:
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from URL [jar:
file:/C:/Documents and Settings/oi/Local
Settings/Temp/summit-5/data/hibernate/target/appfuse-hibernate-2.0-SNAPSHOT
.jar!/applicationContext-dao.xml]; nested exception is
javax.xml.parsers.FactoryConfigurationError: Provider for
javax.x
ml.parsers.DocumentBuilderFactory cannot be found
Caused by: javax.xml.parsers.FactoryConfigurationError:
Provider for javax.xml.parsers.DocumentBuilderFactory
cannot be
found
The full output is shown bellow.
Is anybody getting the same results? Any suggestions?
Thanks,
-- oi
P.S.: I was able to successfully run mvn install with M2
C:\Documents and Settings\oi\Local Settings\Temp\summit-5>mvn
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] AppFuse
[INFO] AppFuse Basic Archetype
[INFO] AppFuse Modular Archetype
[INFO] AppFuse Archetype Modules
[INFO] AppFuse Common Data Module
[INFO] AppFuse Hibernate Module
[INFO] AppFuse iBATIS Module
[INFO] AppFuse Data Modules
[INFO] AppFuse Service Module
[INFO] AppFuse Common Web Module
[INFO] AppFuse JSF Module
[INFO] AppFuse Spring MVC Module
[INFO] AppFuse Struts 2 Module
[INFO] AppFuse Tapestry Module
[INFO] AppFuse Web Modules
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\pom.xml to C:\Documents and Settings\mfa
nti\.m2\repository\org\appfuse\appfuse\2.0-SNAPSHOT\appfuse-2.0-SNAPSHOT.pom
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Basic Archetype
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\archetypes\appfuse-archetype-basic\ta
rget\appfuse-archetype-basic-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\archetypes\appfuse-archetype-basic\targe
t\appfuse-archetype-basic-1.0-SNAPSHOT.jar to C:\Documents
and Settings\oi\.m2\repository\org\appfuse\appfuse-archet
ype-basic\1.0-SNAPSHOT\appfuse-archetype-basic-1.0-SNAPSHOT.jar
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Modular Archetype
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\archetypes\appfuse-archetype-modular\
target\appfuse-archetype-modular-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\archetypes\appfuse-archetype-modular\tar
get\appfuse-archetype-modular-1.0-SNAPSHOT.jar to
C:\Documents and
Settings\oi\.m2\repository\org\appfuse\appfuse-ar
chetype-modular\1.0-SNAPSHOT\appfuse-archetype-modular-1.0-SNAPSHOT.jar
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Archetype Modules
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\archetypes\pom.xml to C:\Documents
and S
ettings\oi\.m2\repository\org\appfuse\appfuse-archetypes\1.0-SNAPSHOT\appfuse-archetypes-1.0-SNAPSHOT.pom
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Common Data Module
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\common\target\appfuse-data-commo
n-2.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\common\target\appfuse-data-common-2
.0-SNAPSHOT.jar to C:\Documents and
Settings\oi\.m2\repository\org\appfuse\appfuse-data-common\2.0-SNAPSHOT\appfuse-
data-common-2.0-SNAPSHOT.jar
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Hibernate Module
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive
invocation.
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\hibernate\src\m
ain\resources\hibernate.cfg.xml
[INFO] Configuration XML file loaded: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\hibernate\src\m
ain\resources\hibernate.cfg.xml
[INFO] Configuration Properties file loaded: C:\Documents and
Settings\oi\Local Settings\Temp\summit-5\data\hibernat
e\target\test-classes\jdbc.properties
create table app_user (id bigint not null auto_increment, address
varchar(150), country varchar(100), city varchar(50) n
ot null, province varchar(100), postal_code varchar(15) not null, version
integer, password varchar(255) not null, usern
ame varchar(50) not null unique, account_enabled bit, email varchar(255)
not
null unique, password_hint varchar(255), fi
rst_name varchar(50) not null, last_name varchar(50) not null,
phone_number
varchar(255), website varchar(255), account_
expired bit not null, account_locked bit not null, credentials_expired
bit
not null, primary key (id)) type=InnoDB;
[ERROR] SchemaExport - Unsuccessful: create table app_user (id bigint not
null auto_increment, address varchar(150), cou
ntry varchar(100), city varchar(50) not null, province varchar(100),
postal_code varchar(15) not null, version integer,
password varchar(255) not null, username varchar(50) not null unique,
account_enabled bit, email varchar(255) not null u
nique, password_hint varchar(255), first_name varchar(50) not null,
last_name varchar(50) not null, phone_number varchar
(255), website varchar(255), account_expired bit not null, account_locked
bit not null, credentials_expired bit not null
, primary key (id)) type=InnoDB
[ERROR] SchemaExport - Table 'app_user' already exists
create table role (id bigint not null auto_increment, name varchar(20),
description varchar(64), primary key (id)) type=
InnoDB;
[ERROR] SchemaExport - Unsuccessful: create table role (id bigint not
null
auto_increment, name varchar(20), description
varchar(64), primary key (id)) type=InnoDB
[ERROR] SchemaExport - Table 'role' already exists
create table user_role (user_id bigint not null, role_id bigint not null,
primary key (user_id, role_id)) type=InnoDB;
[ERROR] SchemaExport - Unsuccessful: create table user_role (user_id
bigint
not null, role_id bigint not null, primary k
ey (user_id, role_id)) type=InnoDB
[ERROR] SchemaExport - Table 'user_role' already exists
alter table user_role add index FK143BF46AF503D155 (user_id), add
constraint
FK143BF46AF503D155 foreign key (user_id) re
ferences app_user (id);
[ERROR] SchemaExport - Unsuccessful: alter table user_role add index
FK143BF46AF503D155 (user_id), add constraint FK143B
F46AF503D155 foreign key (user_id) references app_user (id)
[ERROR] SchemaExport - Duplicate key name 'FK143BF46AF503D155'
alter table user_role add index FK143BF46A4FD90D75 (role_id), add
constraint
FK143BF46A4FD90D75 foreign key (role_id) re
ferences role (id);
[ERROR] SchemaExport - Unsuccessful: alter table user_role add index
FK143BF46A4FD90D75 (role_id), add constraint FK143B
F46A4FD90D75 foreign key (role_id) references role (id)
[ERROR] SchemaExport - Duplicate key name 'FK143BF46A4FD90D75'
[WARNING] 5 errors occurred while performing <hbm2ddl>.
[ERROR] Error #1:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table
'app_user' already exists
[ERROR] Error #1:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table
'role' already exists
[ERROR] Error #1:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table
'user_role' already exists
[ERROR] Error #1:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
Duplicate key name 'FK143BF46AF503D155'
[ERROR] Error #1:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
Duplicate key name 'FK143BF46A4FD90D75'
[INFO] [dbunit:clean-insert {execution: default}]
[INFO] [surefire:test]
[INFO] Setting reports dir: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\hibernate\target/surefire
-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
INFO -
AbstractSingleSpringContextTests.loadContextLocations(179)
| Loading context for: classpath*:/applicationContext-
*.xml
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
DEBUG - LookupDaoHibernate.getRoles(19) | retrieving all role names...
DEBUG - LookupDaoTest.testGetRoles(18) | [admin, user]
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
[surefire] Running org.appfuse.dao.LookupDaoTest
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.183 sec
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
DEBUG - RoleDaoTest.testUpdateRole(25) | user
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(288)
| Committed transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (2): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(288)
| Committed transaction after test execution
[surefire] Running org.appfuse.dao.RoleDaoTest
[surefire] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.19 sec
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
[surefire] Running org.appfuse.dao.UniversalDaoTest
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.07 sec
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
WARN - GenericDaoHibernate.get(44) | Uh oh, 'class
org.appfuse.model.User'
object with id '1000' not found...
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
DEBUG - UserDaoHibernate.saveUser(39) | user's id: 1
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
DEBUG - UserDaoHibernate.saveUser(39) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error:
1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate
entry 'tomcat' for key 2
DEBUG - UserDaoTest.testUpdateUser(60) | expected exception: could not
insert: [org.appfuse.model.User]; nested exceptio
n is org.hibernate.exception.ConstraintViolationException:
could not insert: [org.appfuse.model.User]
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
DEBUG - UserDaoHibernate.saveUser(39) | user's id: 1
DEBUG - UserDaoHibernate.saveUser(39) | user's id: 1
DEBUG - UserDaoHibernate.saveUser(39) | user's id: 1
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
DEBUG - UserDaoHibernate.saveUser(39) | user's id: null
WARN - GenericDaoHibernate.get(44) | Uh oh, 'class
org.appfuse.model.User'
object with id '6' not found...
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
[surefire] Running org.appfuse.dao.UserDaoTest
[surefire] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.13 sec
Results :
[surefire] Tests run: 11, Failures: 0, Errors: 0
[INFO] [jar:jar]
[INFO] Building jar: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\hibernate\target\appfuse-hiberna
te-2.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\hibernate\target\appfuse-hibernate-
2.0-SNAPSHOT.jar to C:\Documents and
Settings\oi\.m2\repository\org\appfuse\appfuse-hibernate\2.0-SNAPSHOT\appfuse-h
ibernate-2.0-SNAPSHOT.jar
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse iBATIS Module
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [sql:execute {execution: create-schema}]
[INFO] Executing file: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\ibatis\src\test\resources\mysq
l-schema.sql
[INFO] 8 of 8 SQL statements executed successfully
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dbunit:clean-insert {execution: default}]
[INFO] [surefire:test]
[INFO] Setting reports dir: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\ibatis\target/surefire-re
ports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
INFO -
AbstractSingleSpringContextTests.loadContextLocations(179)
| Loading context for: classpath*:/applicationContext-
*.xml
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
DEBUG - LookupDaoiBatis.getRoles(19) | retrieving all role names...
DEBUG - LookupDaoTest.testGetRoles(18) | [admin, user]
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
[surefire] Running org.appfuse.dao.LookupDaoTest
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.751 sec
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
DEBUG - RoleDaoTest.testUpdateRole(25) | user
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(288)
| Committed transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (2): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(288)
| Committed transaction after test execution
[surefire] Running org.appfuse.dao.RoleDaoTest
[surefire] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.21 sec
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
WARN - UserDaoiBatis.get(39) | uh oh, user not found...
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
DEBUG - UserDaoTest.testUpdateUser(60) | expected exception: SqlMapClient
operation; SQL [];
--- The error occurred in org/appfuse/model/UserSQL.xml.
--- The error occurred while applying a parameter map.
--- Check the addUser-InlineParameterMap.
--- Check the statement (update failed).
--- Cause:
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
Duplicate entry 'tomcat' for key 2; nes
ted exception is
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in org/appfuse/model/UserSQL.xml.
--- The error occurred while applying a parameter map.
--- Check the addUser-InlineParameterMap.
--- Check the statement (update failed).
--- Cause:
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
Duplicate entry 'tomcat' for key 2
Caused by:
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
Duplicate entry 'tomcat' for key 2
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
WARN - UserDaoiBatis.get(39) | uh oh, user not found...
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
[surefire] Running org.appfuse.dao.UserDaoTest
[surefire] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.11 sec
Results :
[surefire] Tests run: 10, Failures: 0, Errors: 0
[INFO] [jar:jar]
[INFO] Building jar: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\ibatis\target\appfuse-ibatis-2.0
-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\ibatis\target\appfuse-ibatis-2.0-SN
APSHOT.jar to C:\Documents and
Settings\oi\.m2\repository\org\appfuse\appfuse-ibatis\2.0-SNAPSHOT\appfuse-ibatis-2.0
-SNAPSHOT.jar
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Data Modules
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\data\pom.xml to C:\Documents and
Setting
s\oi\.m2\repository\org\appfuse\appfuse-data\2.0-SNAPSHOT\appfuse-data-2.0-SNAPSHOT.pom
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Service Module
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dbunit:clean-insert {execution: default}]
[INFO] [surefire:test]
[INFO] Setting reports dir: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\service\target/surefire-report
s
-------------------------------------------------------
T E S T S
-------------------------------------------------------
INFO -
AbstractSingleSpringContextTests.loadContextLocations(179)
| Loading context for: /applicationContext-manager.xml
,/applicationContext-resources.xml,classpath*:/applicationContext-dao.xml
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
INFO -
AbstractTransactionalSpringContextTests.startNewTransaction(318)
| Began transaction (1): transaction manager [or
[EMAIL PROTECTED];
default rollback = true
INFO -
AbstractTransactionalSpringContextTests.endTransaction(284)
| Rolled back transaction after test execution
[surefire] Running org.appfuse.service.GenericManagerTest
[surefire] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.03 sec
DEBUG - LookupManagerImplTest.testGetAllRoles(24) | entered
'testGetAllRoles' method
[surefire] Running
org.appfuse.service.impl.LookupManagerImplTest
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.02 sec
[surefire] Running
org.appfuse.service.impl.UniversalManagerTest
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec
DEBUG - UserManagerImpl.removeUser(66) | removing user: 5
DEBUG - UserManagerImplTest.testUserExistsException(117) |
expected exception: User 'admin' already exists!
[surefire] Running
org.appfuse.service.impl.UserManagerImplTest
[surefire] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0 sec
INFO -
AbstractSingleSpringContextTests.loadContextLocations(179)
| Loading context for: /applicationContext-service.xml
,/applicationContext-resources.xml,classpath*:/applicationContext-dao.xml
DEBUG - UserExistsExceptionTest.testAddExistingUser(21) |
entered 'testAddExistingUser' method
DEBUG - UserDaoHibernate.saveUser(39) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error:
1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate
entry 'tomcat' for key 2
[surefire] Running
org.appfuse.service.UserExistsExceptionTest
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.212 sec
DEBUG - UserManagerTest.testGetUser(28) |
[EMAIL PROTECTED],enabled=true,accountExpired=fal
se,credentialsExpired=false,accountLocked=false,Granted
Authorities: ,user]
DEBUG - UserDaoHibernate.saveUser(39) | user's id: null
DEBUG - UserSecurityAdvice.afterReturning(113) | Removing
'john' from userCache
DEBUG - UserManagerTest.testAddAndRemoveUser(56) | removing
user...
DEBUG - UserManagerImpl.removeUser(66) | removing user: 4
DEBUG - UserManagerTest.testAddAndRemoveUser(64) |
org.acegisecurity.userdetails.UsernameNotFoundException:
user 'john'
not found...
DEBUG - UserManagerTest.testSaveUser(36) | saving user with updated phone
number: [EMAIL PROTECTED]
=tomcat,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted
Authorities: ,user]
DEBUG - UserDaoHibernate.saveUser(39) | user's id: 1
DEBUG - UserSecurityAdvice.afterReturning(113) | Removing
'tomcat' from userCache
[surefire] Running org.appfuse.service.UserManagerTest
[surefire] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.08 sec
DEBUG - UserSecurityAdvice.before(65) | Verifying that 'user' can modify
'admin'
WARN - UserSecurityAdvice.before(68) | Access Denied: 'user' tried to
modify
'admin'!
WARN - UserSecurityAdvice.before(100) | Access Denied: 'user' tried to
change their role(s)!
WARN - UserSecurityAdvice.before(100) | Access Denied: 'user' tried to
change their role(s)!
DEBUG - UserSecurityAdvice.before(65) | Verifying that 'user' can modify
'cacheduser'
DEBUG - UserSecurityAdvice.afterReturning(113) | Removing
'cacheduser' from userCache
[surefire] Running
org.appfuse.service.UserSecurityAdviceTest
[surefire] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.05 sec
[surefire] Running org.appfuse.util.DateConverterTest
[surefire] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0 sec
[surefire] Running org.appfuse.util.DateUtilTest
[surefire] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0 sec
[surefire] Running org.appfuse.util.StringUtilTest
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec
Results :
[surefire] Tests run: 29, Failures: 0, Errors: 0
[INFO] [jar:jar]
[INFO] Building jar: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\service\target\appfuse-service-2.0-SN
APSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\service\target\appfuse-service-2.0-SNAPS
HOT.jar to C:\Documents and
Settings\oi\.m2\repository\org\appfuse\appfuse-service\2.0-SNAPSHOT\appfuse-service-2.0-
SNAPSHOT.jar
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Common Web Module
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING]
Artifact javax.servlet:servlet-api:jar:2.4:provided
retains local scope 'provided' overriding broader scope 'com
pile'
given by a dependency. If this is not intended, modify or remove
the
local scope.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dbunit:clean-insert {execution: default}]
[INFO] [surefire:test]
[INFO] Setting reports dir: C:\Documents and Settings\oi\Local
Settings\Temp\summit-5\web\common\target/surefire-rep
orts
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Jan 15, 2007 6:07:01 PM
org.springframework.web.filter.GenericFilterBean init
INFO: Initializing filter ''
Jan 15, 2007 6:07:01 PM
org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
Jan 15, 2007 6:07:01 PM
org.springframework.core.CollectionFactory <clinit>
INFO: Commons Collections 3.x available
Jan 15, 2007 6:07:01 PM
org.springframework.web.filter.GenericFilterBean init
INFO: Filter '' configured successfully
Jan 15, 2007 6:07:01 PM
org.springframework.web.filter.GenericFilterBean init
INFO: Initializing filter ''
Jan 15, 2007 6:07:01 PM
org.springframework.web.filter.GenericFilterBean init
INFO: Filter '' configured successfully
Jan 15, 2007 6:07:01 PM
org.springframework.web.filter.GenericFilterBean init
INFO: Initializing filter ''
Jan 15, 2007 6:07:01 PM
org.springframework.web.filter.GenericFilterBean init
INFO: Filter '' configured successfully
Jan 15, 2007 6:07:01 PM
org.springframework.web.filter.GenericFilterBean init
INFO: Initializing filter ''
Jan 15, 2007 6:07:01 PM
org.springframework.web.filter.GenericFilterBean init
INFO: Filter '' configured successfully
[surefire] Running
org.appfuse.webapp.filter.LocaleFilterTest
[surefire] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
Jan 15, 2007 6:07:01 PM
org.springframework.web.context.ContextLoader
initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Jan 15, 2007 6:07:01 PM
org.springframework.mock.web.MockServletContext log
INFO: Loading Spring root WebApplicationContext
Jan 15, 2007 6:07:01 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL [jar:file:/C:/Documents and
Settings/oi/Local Settings/Temp/summit-5/dat
a/hibernate/target/appfuse-hibernate-2.0-SNAPSHOT.jar!/applicationContext-dao.xml]
Jan 15, 2007 6:07:01 PM
org.springframework.web.context.ContextLoader
initWebApplicationContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from URL [jar:
file:/C:/Documents and Settings/oi/Local
Settings/Temp/summit-5/data/hibernate/target/appfuse-hibernate-2.0-SNAPSHOT
.jar!/applicationContext-dao.xml]; nested exception is
javax.xml.parsers.FactoryConfigurationError: Provider for
javax.x
ml.parsers.DocumentBuilderFactory cannot be found
Caused by: javax.xml.parsers.FactoryConfigurationError:
Provider for javax.xml.parsers.DocumentBuilderFactory
cannot be
found
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown
Source)
at
org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoade
r.java:89)
at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:71)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.j
ava:405)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav
a:357)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav
a:334)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini
tionReader.java:126)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini
tionReader.java:142)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext
.java:123)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext
.java:91)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefresha
bleApplicationContext.java:94)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:292)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableW
ebApplicationContext.java:156)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at
org.appfuse.webapp.listener.StartupListenerTest.setUp(StartupListenerTest.java:39)
at
junit.framework.TestCase.runBare(TestCase.java:125)
at
junit.framework.TestResult$1.protect(TestResult.java:106)
at
junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
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:585)
at
org.codehaus.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:246)
at
org.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:220)
at
org.codehaus.surefire.Surefire.executeBattery(Surefire.java:204)
at
org.codehaus.surefire.Surefire.run(Surefire.java:153)
at
org.codehaus.surefire.Surefire.run(Surefire.java:77)
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:585)
at
org.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104)
at
org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:303)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47
5)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at
org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
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:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at
org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[surefire] Running
org.appfuse.webapp.listener.StartupListenerTest
[surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.29 sec
<<<<<<<< FAILURE !!
Results :
[surefire] Tests run: 5, Failures: 0, Errors: 1
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] There are some test failure.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 27 seconds
[INFO] Finished at: Mon Jan 15 18:07:02 EST 2007
[INFO] Final Memory: 22M/508M
[INFO]
------------------------------------------------------------------------
ERROR - DisposableBeanAdapter.destroy(105) | Couldn't invoke destroy
method
of bean with name 'org.springframework.cache
.ehcache.EhCacheManagerFactoryBean#1ba4806'
java.lang.IllegalStateException: The userCache Cache is not alive.
at
net.sf.ehcache.Cache.checkStatus(Cache.java:1201)
at net.sf.ehcache.Cache.dispose(Cache.java:1081)
at
net.sf.ehcache.CacheManager.shutdown(CacheManager.java:702)
at
org.springframework.cache.ehcache.EhCacheManagerFactoryBean.destroy(EhCacheManagerFactoryBean.java:127)
at
org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:102)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegist
ry.java:331)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanR
egistry.java:304)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBean
Registry.java:280)
at
org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:610)
at
org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:548)