Can you try 2.0.1 and see if you have similar issues?
Thanks,
Matt
On Nov 9, 2007 1:19 AM, nvin <[EMAIL PROTECTED]> wrote:
>
>
>
> mraible wrote:
> >
> > On Nov 8, 2007 10:25 PM, nvin <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi All,
> >> Does Appfuse generate CRUDL classes for Java objects containing
> >> relationships automatically?
> >
> > No, it does not.
> >
> > Matt
> >
> > --Thanks,Matt for the quick reply,guess I should have posted before trying
> > it out. But,could you suggest any other mechanism or suggest what might be
> > needed to use appfuse(AMP) to fix these issues. My application has a fluid
> > data model,so, I was hoping I could use a auto -generation tool for the
> > initial screens. The reason is my JSF skills are pretty basic and I did
> > notice that it generated the JSF pages ,so, I was hoping there were some
> > minor fixes needed. Also, I am very impressed with your work as such and
> > the whole maven integration and structuring really helped me.
> > Thanks,
> > Amar
>
> >>
> >> I am trying to use the AMP targets (appfuse:gen-model and appfuse:gen) to
> >> generate the CRUD pages of a simple application currently with two
> >> tables
> >> with a many-one relationship.
> >> 1. Table Alertrules
> >> 2. Table Alertrecipients which has a many to one with Alertrules
> >> What I have done so far is follows:
> >> 1. Take the Appfuse JSF basic archetype
> >> 2. Run mvn
> >> 3. Run mvn jetty:run-war (At this stage,I have the basic application up)
> >>
> >> 4. I created the two tables in the MySQL database.
> >> 5. Ran mvn:gen-model and then mvn appfuse:gen -Dentity=Alertrules and
> >> appfuse:gen -Dentity=Alertrecipients. At this stage, I saw I had the
> >> classes
> >> generated for the model and the JSF pages.
> >> 6. But when I run mvn jetty:run-war, it tries to run the test cases and
> >> there were java syntax errors
> >> 7. I tried to import the application in eclipse, and noticed there were
> >> some
> >> compilation errors in the Test classes,(Long value types were being set
> >> to
> >> Double in the test methods). I fixed them,but still, I get the test fail
> >> errors.
> >>
> >>
> >> As can be seen,it does try to run the other tests properly but fails on
> >> the
> >> tests created for the new objects.
> >> --------------------------------------------------------------------------------------
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'jetty'.
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >> [INFO] Building AppFuse JSF 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]
> >> [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] 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]
> >> [INFO] Using default encoding to copy filtered resources.
> >> [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is
> >> invalid.
> >> It will be ignored for artifact resolution. Reason: Parse error reading
> >> POM.
> >> Reason: TEXT must be immediately followed by END_TAG and not START_TAG
> >> (position: START_TAG seen ...<licenses>\n\t\t\t<license>... @12:13) for
> >> project org.hibernate:jtidy at C:\Documents and
> >> Settings\amar\.m2\repository\org\hibernate\jtidy\r8-20060801\jtidy-r8-20060801.pom
> >> [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is
> >> invalid.
> >> It will be ignored for artifact resolution. Reason: Parse error reading
> >> POM.
> >> Reason: TEXT must be immediately followed by END_TAG and not START_TAG
> >> (position: START_TAG seen ...<licenses>\n\t\t\t<license>... @12:13) for
> >> project org.hibernate:jtidy at C:\Documents and
> >> Settings\amar\.m2\repository\org\hibernate\jtidy\r8-20060801\jtidy-r8-20060801.pom
> >> [INFO] [hibernate3:hbm2ddl {execution: default}]
> >> [INFO] Configuration XML file loaded:
> >> c:\personal\testProject\openApp\src\main\resources\hibernate.cfg.xml
> >> [INFO] Configuration XML file loaded:
> >> c:\personal\testProject\openApp\src\main\resources\hibernate.cfg.xml
> >> [INFO] Configuration Properties file loaded:
> >> c:\personal\testProject\openApp\target\classes\jdbc.properties
> >> alter table openApp.alertrecipients drop foreign key FK3F6F57D6457302CF;
> >> alter table user_role drop foreign key FK143BF46A3FD946FE;
> >> alter table user_role drop foreign key FK143BF46A9AAE831E;
> >> drop table if exists app_user;
> >> drop table if exists openApp.alertrecipients;
> >> drop table if exists openApp.alertrules;
> >> drop table if exists role;
> >> drop table if exists user_role;
> >> create table app_user (id bigint not null auto_increment, address
> >> varchar(150), country 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 unique, 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;
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> create table openApp.alertrecipients (id bigint not null auto_increment,
> >> CREATED datetime not null, MODIFIED datetime not null, RecipientType
> >> bigint
> >> not null, EVENTIDGRP bigint not null, primary key (id)) type=InnoDB;
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> create table openApp.alertrules (eventidgrp bigint not null
> >> auto_increment,
> >> ID bigint not null, ATTRIBUTES bigint not null, CREATED datetime not
> >> null,
> >> MODIFIED datetime not null, ITEMTYPE bigint not null, EVENTDESC
> >> varchar(255), EVENTDAYS smallint, primary key (eventidgrp)) type=InnoDB;
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> create table role (id bigint not null auto_increment, name varchar(20),
> >> description varchar(64), primary key (id)) type=InnoDB;
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> create table user_role (user_id bigint not null, role_id bigint not null,
> >> primary key (user_id, role_id)) type=InnoDB;
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> alter table openApp.alertrecipients add index FK3F6F57D6457302CF
> >> (EVENTIDGRP), add constraint FK3F6F57D6457302CF foreign key (EVENTIDGRP)
> >> references openApp.alertrules (eventidgrp);
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> alter table user_role add index FK143BF46A3FD946FE (user_id), add
> >> constraint
> >> FK143BF46A3FD946FE foreign key (user_id) references app_user (id);
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> alter table user_role add index FK143BF46A9AAE831E (role_id), add
> >> constraint
> >> FK143BF46A9AAE831E foreign key (role_id) references role (id);
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> WARN [main] JDBCExceptionReporter.logWarnings(48) | SQL Warning: 1287,
> >> SQLState: HY000
> >> WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_engine'
> >> is
> >> deprecated; use 'ENGINE=storage_engine' instead
> >> [INFO] [compiler:testCompile]
> >> [INFO] Nothing to compile - all classes are up to date
> >> [INFO] [dbunit:operation {execution: test-compile}]
> >> [INFO] [surefire:test]
> >> [INFO] Surefire report directory:
> >> c:\personal\testProject\openApp\target\surefire-reports
> >>
> >> -------------------------------------------------------
> >> T E S T S
> >> -------------------------------------------------------
> >> Running com.myComp.openApp.dao.LookupDaoTest
> >> INFO - AbstractSingleSpringContextTests.loadContextLocations(177) |
> >> Loading
> >> context for locations:
> >> classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/applicationContext*.xml
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> DEBUG - LookupDaoHibernate.getRoles(20) | retrieving all role names...
> >> DEBUG - LookupDaoTest.testGetRoles(18) | [ROLE_ADMIN, ROLE_USER]
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.705 sec
> >> Running com.myComp.openApp.webapp.action.AlertrecipientsFormTest
> >> INFO - AbstractSingleSpringContextTests.loadContextLocations(177) |
> >> Loading
> >> context for locations:
> >> classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath:/applicationContext-service.xml,classpath*:/applicationContext.xml,/WEB-INF/applicationContext*.xml
> >> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 1.643 sec
> >> <<< FAILURE!
> >> Running com.myComp.openApp.dao.hibernate.HibernateConfigurationTest
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select
> >> *
> >> from: com.myComp.openApp.model.Alertrecipients
> >> DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok:
> >> com.myComp.openApp.model.Alertrecipients
> >> DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select
> >> *
> >> from: com.myComp.openApp.model.User
> >> DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok:
> >> com.myComp.openApp.model.User
> >> DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select
> >> *
> >> from: com.myComp.openApp.model.Role
> >> DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok:
> >> com.myComp.openApp.model.Role
> >> DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select
> >> *
> >> from: com.myComp.openApp.model.Alertrules
> >> DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok:
> >> com.myComp.openApp.model.Alertrules
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.15 sec
> >> Running com.myComp.openApp.util.StringUtilTest
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec
> >> Running com.myComp.openApp.webapp.action.SignupFormTest
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: null
> >> DEBUG - BasePage.sendUserMessage(205) | sending e-mail to user
> >> [EMAIL PROTECTED]
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.113 sec
> >> Running com.myComp.openApp.util.DateUtilTest
> >> DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Thu Nov 08
> >> 22:06:56 PST 2007
> >> DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 11/08/2007
> >> DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime'
> >> method
> >> DEBUG - DateUtilTest.testGetDateTime(62) | 22:06
> >> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec
> >> Running com.myComp.openApp.webapp.action.UserListTest
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.13 sec
> >> Running com.myComp.openApp.service.impl.UniversalManagerTest
> >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.07 sec
> >> Running com.myComp.openApp.webapp.action.AlertrecipientsListTest
> >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.04 sec
> >> <<<
> >> FAILURE!
> >> Running com.myComp.openApp.webapp.action.AlertrulesListTest
> >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.03 sec
> >> <<<
> >> FAILURE!
> >> Running com.myComp.openApp.service.UserExistsExceptionTest
> >> INFO - AbstractSingleSpringContextTests.loadContextLocations(177) |
> >> Loading
> >> context for locations:
> >> /applicationContext-service.xml,/applicationContext-resources.xml,classpath:/applicationContext-dao.xml
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> DEBUG - UserExistsExceptionTest.testAddExistingUser(21) | entered
> >> 'testAddExistingUser' method
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: null
> >> WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062,
> >> SQLState:
> >> 23000
> >> ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'user'
> >> for
> >> key 2
> >> org.springframework.dao.DataIntegrityViolationException: could not
> >> insert:
> >> [com.myComp.openApp.model.User]; nested exception is
> >> org.hibernate.exception.ConstraintViolationException: could not insert:
> >> [com.myComp.openApp.model.User]
> >> Caused by: org.hibernate.exception.ConstraintViolationException: could
> >> not
> >> insert: [com.myComp.openApp.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:2158)
> >> at
> >> org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2638)
> >> at
> >> org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:48)
> >> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
> >> 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:689)
> >> at
> >> org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:372)
> >> at
> >> org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:686)
> >> at
> >> com.myComp.openApp.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:43)
> >> 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
> >> at
> >> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
> >> at $Proxy29.saveUser(Unknown Source)
> >> at
> >> com.myComp.openApp.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:57)
> >> 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
> >> at
> >> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
> >> at
> >> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
> >> at
> >> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
> >> at
> >> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
> >> at
> >> org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
> >> at
> >> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
> >> at
> >> org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
> >> at
> >> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
> >> at
> >> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
> >> at
> >> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
> >> at
> >> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> >> at $Proxy30.saveUser(Unknown Source)
> >> at
> >> com.myComp.openApp.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:585)
> >> at junit.framework.TestCase.runTest(TestCase.java:168)
> >> at junit.framework.TestCase.runBare(TestCase.java:134)
> >> at
> >> org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)
> >> 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:138)
> >> at
> >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
> >> at org.apache.maven.surefire.Surefire.run(Surefire.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:585)
> >> at
> >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
> >> at
> >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> >> Caused by:
> >> com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
> >> Duplicate entry 'user' 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)
> >> ... 68 more
> >> WARN - UserManagerImpl.saveUser(60) | could not insert:
> >> [com.myComp.openApp.model.User]; nested exception is
> >> org.hibernate.exception.ConstraintViolationException: could not insert:
> >> [com.myComp.openApp.model.User]
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.791 sec
> >> Running com.myComp.openApp.service.impl.LookupManagerImplTest
> >> DEBUG - LookupManagerImplTest.testGetAllRoles(24) | entered
> >> 'testGetAllRoles' method
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
> >> Running com.myComp.openApp.webapp.filter.StaticFilterTest
> >> DEBUG - GenericFilterBean.init(158) | Initializing filter ''
> >> DEBUG - GenericFilterBean.init(183) | Filter '' configured successfully
> >> DEBUG - StaticFilter.doFilterInternal(88) | Forwarding to static
> >> resource:
> >> /scripts/dojo/test.html
> >> DEBUG - GenericFilterBean.init(158) | Initializing filter ''
> >> DEBUG - GenericFilterBean.init(183) | Filter '' configured successfully
> >> DEBUG - MockFilterChain.doFilter(37) | Forwarding to: /editProfile.html
> >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 sec
> >> Running com.myComp.openApp.dao.RoleDaoTest
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.26 sec
> >> Running com.myComp.openApp.util.DateConverterTest
> >> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec
> >> Running com.myComp.openApp.webapp.listener.StartupListenerTest
> >> DEBUG - StartupListener.contextInitialized(37) | 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(85) | Encrypt Passwords? false
> >> DEBUG - StartupListener.contextInitialized(89) | Populating drop-downs...
> >> DEBUG - LookupDaoHibernate.getRoles(20) | retrieving all role names...
> >> DEBUG - StartupListener.setupContext(105) | Drop-down initialization
> >> complete [OK]
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.451 sec
> >> Running com.myComp.openApp.service.UserManagerTest
> >> INFO - AbstractSingleSpringContextTests.loadContextLocations(177) |
> >> Loading
> >> context for locations:
> >> /applicationContext-resources.xml,classpath:/applicationContext-dao.xml,/applicationContext-service.xml,classpath*:/**/applicationContext.xml
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> DEBUG - UserManagerTest.testGetUser(28) |
> >> [EMAIL
> >> PROTECTED],enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted
> >> Authorities: ,ROLE_USER]
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: null
> >> DEBUG - UserManagerTest.testAddAndRemoveUser(56) | removing user...
> >> DEBUG - UserManagerImpl.removeUser(73) | removing user: 2
> >> DEBUG - UserManagerTest.testAddAndRemoveUser(64) |
> >> org.acegisecurity.userdetails.UsernameNotFoundException: user 'john' not
> >> found...
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> DEBUG - UserManagerTest.testSaveUser(36) | saving user with updated phone
> >> number:
> >> [EMAIL
> >> PROTECTED],enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted
> >> Authorities: ,ROLE_USER]
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: -1
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.811 sec
> >> Running com.myComp.openApp.webapp.action.UserFormTest
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: -1
> >> DEBUG - UserManagerImpl.removeUser(73) | removing user: -2
> >> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.27 sec
> >> Running com.myComp.openApp.webapp.action.AlertrulesFormTest
> >> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.05 sec
> >> <<<
> >> FAILURE!
> >> Running com.myComp.openApp.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.301 sec
> >> Running com.myComp.openApp.dao.UniversalDaoTest
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> WARN - LoadContexts.cleanup(108) | fail-safe cleanup (collections) :
> >> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.3 sec
> >> Running com.myComp.openApp.AppTest
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
> >> Running com.myComp.openApp.dao.UserDaoTest
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> WARN - GenericDaoHibernate.get(60) | Uh oh, 'class
> >> com.myComp.openApp.model.User' object with id '1000' not found...
> >> WARN - LoadContexts.cleanup(108) | fail-safe cleanup (collections) :
> >> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: -1
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: null
> >> WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062,
> >> SQLState:
> >> 23000
> >> ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'user'
> >> for
> >> key 2
> >> DEBUG - UserDaoTest.testUpdateUser(63) | expected exception: could not
> >> insert: [com.myComp.openApp.model.User]; nested exception is
> >> org.hibernate.exception.ConstraintViolationException: could not insert:
> >> [com.myComp.openApp.model.User]
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: -1
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: -1
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: -1
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> DEBUG - UserDaoHibernate.saveUser(42) | user's id: null
> >> WARN - GenericDaoHibernate.get(60) | Uh oh, 'class
> >> com.myComp.openApp.model.User' object with id '4' not found...
> >> WARN - LoadContexts.cleanup(108) | fail-safe cleanup (collections) :
> >> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> INFO - AbstractTransactionalSpringContextTests.startNewTransaction(323) |
> >> Began transaction (1): transaction manager
> >> [EMAIL PROTECTED];
> >> default rollback = true
> >> WARN - LoadContexts.cleanup(108) | fail-safe cleanup (collections) :
> >> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >> INFO - AbstractTransactionalSpringContextTests.endTransaction(290) |
> >> Rolled
> >> back transaction after test execution
> >> Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.561 sec
> >> Running com.myComp.openApp.service.MailEngineTest
> >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.15 sec
> >> Running com.myComp.openApp.webapp.action.PasswordHintTest
> >> DEBUG - PasswordHint.execute(37) | Processing Password Hint...
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.08 sec
> >> Running com.myComp.openApp.webapp.filter.LocaleFilterTest
> >> DEBUG - GenericFilterBean.init(158) | Initializing filter ''
> >> DEBUG - GenericFilterBean.init(183) | Filter '' configured successfully
> >> DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
> >> DEBUG - GenericFilterBean.init(158) | Initializing filter ''
> >> DEBUG - GenericFilterBean.init(183) | Filter '' configured successfully
> >> DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
> >> DEBUG - GenericFilterBean.init(158) | Initializing filter ''
> >> DEBUG - GenericFilterBean.init(183) | Filter '' configured successfully
> >> DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
> >> DEBUG - GenericFilterBean.init(158) | Initializing filter ''
> >> DEBUG - GenericFilterBean.init(183) | Filter '' configured successfully
> >> DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
> >> DEBUG - GenericFilterBean.init(158) | Initializing filter ''
> >> DEBUG - GenericFilterBean.init(183) | Filter '' configured successfully
> >> DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
> >> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec
> >> Running com.myComp.openApp.service.impl.UserManagerImplTest
> >> DEBUG - UserManagerImpl.removeUser(73) | removing user: 5
> >> org.springframework.dao.DataIntegrityViolationException:
> >> at org.jmock.core.stub.ThrowStub.invoke(ThrowStub.java:21)
> >> at
> >> org.jmock.core.InvocationMocker.invoke(InvocationMocker.java:55)
> >> at
> >> org.jmock.core.AbstractInvocationDispatcher.dispatch(AbstractInvocationDispatcher.java:68)
> >> at
> >> org.jmock.core.AbstractDynamicMock.mockInvocation(AbstractDynamicMock.java:89)
> >> at org.jmock.core.CoreMock.invoke(CoreMock.java:39)
> >> at $Proxy41.saveUser(Unknown Source)
> >> at
> >> com.myComp.openApp.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:57)
> >> at
> >> com.myComp.openApp.service.impl.UserManagerImplTest.testUserExistsException(UserManagerImplTest.java:98)
> >> 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 junit.framework.TestCase.runTest(TestCase.java:168)
> >> at
> >> org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39)
> >> 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:138)
> >> at
> >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
> >> at org.apache.maven.surefire.Surefire.run(Surefire.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:585)
> >> at
> >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
> >> at
> >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> >> WARN - UserManagerImpl.saveUser(60) |
> >> DEBUG - UserManagerImplTest.testUserExistsException(101) | expected
> >> exception: User 'admin' already exists!
> >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
> >>
> >> Results :
> >>
> >> Tests in error:
> >> testAdd(com.myComp.openApp.webapp.action.AlertrecipientsFormTest)
> >> testEdit(com.myComp.openApp.webapp.action.AlertrecipientsFormTest)
> >> testSave(com.myComp.openApp.webapp.action.AlertrecipientsFormTest)
> >> testRemove(com.myComp.openApp.webapp.action.AlertrecipientsFormTest)
> >> testSearch(com.myComp.openApp.webapp.action.AlertrecipientsListTest)
> >> testSearch(com.myComp.openApp.webapp.action.AlertrulesListTest)
> >> testAdd(com.myComp.openApp.webapp.action.AlertrulesFormTest)
> >> testEdit(com.myComp.openApp.webapp.action.AlertrulesFormTest)
> >> testSave(com.myComp.openApp.webapp.action.AlertrulesFormTest)
> >> testRemove(com.myComp.openApp.webapp.action.AlertrulesFormTest)
> >>
> >> Tests run: 70, Failures: 0, Errors: 10, Skipped: 0
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] There are test failures.
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Trace
> >> org.apache.maven.BuildFailureException: There are test failures.
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:896)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:739)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:510)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> >> 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)
> >> Caused by: org.apache.maven.plugin.MojoFailureException: There are test
> >> failures.
> >> at
> >> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
> >> at
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> >> ... 20 more
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: 32 seconds
> >> [INFO] Finished at: Thu Nov 08 22:07:01 PST 2007
> >> [INFO] Final Memory: 16M/29M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> ------------------------------------------------------------------------------------
> >>
> >>
> >> If I run the jetty:run-war with maven.test.skip false, I do not even see
> >> the
> >> menu items for the new objects.
> >>
> >> Appreciate any help in this regard,
> >> Thanks,
> >> Amar.
> >> --
> >> View this message in context:
> >> http://www.nabble.com/AMP-gen-target-help-for-classes-with-relationships-tf4776124s2369.html#a13662191
> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> > --
> > http://raibledesigns.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/AMP-gen-target-help-for-classes-with-relationships-tf4776124s2369.html#a13663023
>
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]