Great - excited to have you on team - to get started on richfaces archetype you need to look at the two projects from witchcraft svn
(i) SeamIceFacesArchetype: The archetype that we use for icefaces project
(ii) Richshopper: A sample project - this should be the basis for the archetype

I created a utility ArchCreator that helps with spitting out maven archetype.xml file from a directory - you can find it in MdaSupport project in mdautils package.

Let me know if you run into problems.

On Mon, Aug 10, 2009 at 12:13 PM, Joaquín Robles <> wrote:

I've realized some reports by Jasper reports, I'm using iReport to generate jasper files.

RichFaces maven archetype it's interesting.

2009/8/10 Jess Singh <>

Joaquin ,

Thanks for your offer but I had already fixed the tests - very minor changes were needed anyways - I have committed the code and you can get it at your convenience.

Also I have added you to Witchcraft project with 'Project Manager' privileges - so you can commit the changed pom.xml.

I can assign you creation of a richfaces maven archetype if you are interested

Do you have any experience with Jasper reports ?

On Mon, Aug 10, 2009 at 2:30 AM, Joaquín Robles <> wrote:

If you are working in another thing, I can begin fixing this tests, I can't?

2009/8/9 Jess Singh <>


God work with the hibernate annotation change (from ga to GA) - feel free to check in the new pom.xml into svn.
I am looking into the test failures and will checkin a version with tests fixed.

On Sun, Aug 9, 2009 at 1:49 PM, Joaquín Robles <> wrote:
Hi Jess,

I've realized checkout from imed project, to import java project in Eclipse without error, I only change some version of dependecy libraries like hibernate annotation what have the version in lowercase ( and Linux not fint the folder in maven repository, I change by 3.4.0.GA and it's build correctly.

When I realice clean install from eclipse, 6 test are failed, at the end of mail I copy & paste these errors. I've tried mvn clean install from command line and another error is throw, I copy & paste so.

In the by example fails:

public void init() {
        emf = Persistence.createEntityManagerFactory("imed");
        EntityManager em =  getEntityManagerFactory().createEntityManager();
    public BaseAction<T> getAction(){
        return null;

getAction() return un NPE, this is the latest code?

From eclipse:

Test set: TestSuite
Tests run: 13, Failures: 6, Errors: 0, Skipped: 3, Time elapsed: 26.893 sec <<< FAILURE!
init(org.witchcraft.action.test.AuthenticatorTest)  Time elapsed: 0 sec  <<< FAILURE!
    at org.witchcraft.action.test.BaseTest.init(
    at org.witchcraft.action.test.AuthenticatorTest.init(

testSave(org.cerebrum.domain.customforms.action.CustomFormTest)  Time elapsed: 0.032 sec  <<< FAILURE!
    at java.util.AbstractCollection.addAll(
    at org.cerebrum.domain.customforms.action.CustomFormAction.updateComposedAssociations(
    at org.cerebrum.domain.customforms.action.CustomFormTest.testSave(

testSave(org.cerebrum.domain.customforms.action.FilledFormTest)  Time elapsed: 0.222 sec  <<< FAILURE!
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.RangeCheck(
    at java.util.ArrayList.get(
    at org.cerebrum.domain.customforms.action.FilledFormTest.testSave(

testIndex(org.cerebrum.domain.patient.action.AllergyTest)  Time elapsed: 0.042 sec  <<< FAILURE!
javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.cerebrum.domain.patient.Allergy.patient
    at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(
    at org.hibernate.ejb.AbstractEntityManagerImpl.persist(
    at org.cerebrum.domain.patient.action.AllergyTest.testIndex(
Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.cerebrum.domain.patient.Allergy.patient
    at org.hibernate.engine.Nullability.checkNullability(
    at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(
    at org.hibernate.event.def.AbstractSaveEventListener.performSave(
    at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(
    at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(
    at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(
    at org.hibernate.event.def.DefaultPersistEventListener.onPersist(
    at org.hibernate.event.def.DefaultPersistEventListener.onPersist(
    at org.hibernate.impl.SessionImpl.firePersist(
    at org.hibernate.impl.SessionImpl.persist(
    at org.hibernate.impl.SessionImpl.persist(
    at org.hibernate.ejb.AbstractEntityManagerImpl.persist(
    ... 32 more

testSearch(org.witchcraft.action.test.EntityCommentTest)  Time elapsed: 0.013 sec  <<< FAILURE!
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.RangeCheck(
    at java.util.ArrayList.get(
    at org.witchcraft.action.test.EntityCommentTest.testSearch(

init(org.witchcraft.action.test.TemplateTest)  Time elapsed: 1.197 sec  <<< FAILURE!
    at org.witchcraft.action.test.BaseTest.init(
    at org.witchcraft.action.test.TemplateTest.init(

From command line:

 T E S T S
org.apache.maven.surefire.booter.SurefireExecutionException: org.testng.xml.XmlSuite.setParallel(Z)V; nested exception is java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V
java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V
    at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
    at org.apache.maven.surefire.booter.SurefireBooter.main(

Sorry for the too long mail.

2009/8/6 Jess Singh <>
Hi Joaquin,

Here is what I have replied to your questions on forum :

I apologize, you are getting these problems because the Archetype that you used to generate the project has fallen out of sync with rest of the code - yes for now you can comment out the method from root.rpt file.

If you want to see the latest code you should check out imed from svn which is a large electronic health record system.

Let me know if  you run into any more issues. We definitely need you for Witchcraft to be a success and as stated before I am willing to share revenues with core members should we meet any commercial success.