Using the antelope example i've tried to subclass the DynamicUser as
suggested in the fulcrum docs:

http://jakarta.apache.org/turbine/fulcrum/fulcrum-security-site/index.html
"With the Hibernate SPI, you can just subclass the BasicUser/DynamicUser
class, or implement the User interface, provide your own mapping .hbm file
and then any additional user properties will be persisted! Very easy
customization for your environment!"

So for now I've just created a empty dummy class:

public class MyUser extends DynamicUser
{
}

And I've also changed the DynamicHibernate.hbm.xml so it uses the class
com.mycorp.myproduct.security.hibernate.MyUser And finally I've changed the
DynamicHibernate.xml in the src/test (for the JUnit testing) so it says:

  <component
    role="org.apache.fulcrum.security.UserManager"
    class="org.apache.fulcrum.security.hibernate.HibernateUserManagerImpl">
<className>com.mycorp.myproduct.security.hibernate.MyUser</className>  
  </component>   


However when I run the testing it says:

    [junit] Running
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Testsuite: filtertrace=true
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit]
    [junit]     Caused an ERROR
    [junit] filtertrace=true
    [junit] java.lang.ClassNotFoundException: filtertrace=true
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:141)
    [junit]
    [junit] Testsuite: filtertrace=true
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit]
    [junit] Null Test:  Caused an ERROR
    [junit] filtertrace=true
    [junit] java.lang.ClassNotFoundException: filtertrace=true
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:141)
    [junit]
    [junit]

BUILD FAILED

Have I missed something in the setup of my own DynamicUser?

Also it would be nice if there had been some better pointers to exactly
WHERE the error happened... 

Regards
/Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to