Yes, both of them are updated (the one in the test dir is the one with the
components).

Yes I'm sure that it's the AbstractCreateUsersTest that invokes this, but
since JUnit doesn't output any errors you can use, I'm pretty much at a loss
here.. So I don't know what is wrong, or where...

/Martin

-----Original Message-----
From: Jones Michael, Slough [mailto:[EMAIL PROTECTED] 
Sent: 28. juni 2004 17:04
To: Turbine Users List
Subject: RE: Subclassing DynamicUser..

Off the top of my head... Did you know that there were 2
DynamicHibernate.xml one in src/test and one in src/java?

When you build antelope one of the tests (AbstractCreateUsersTest) is used
to populate the database with the sample users. Could this be causing your
problem?
Mike


-----Original Message-----
From: Martin Wendel [mailto:[EMAIL PROTECTED] 
Sent: 28 June 2004 15:37
To: 'Turbine Users List'
Subject: Subclassing DynamicUser..

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]



Scanned for viruses by MessageLabs



Scanned for viruses by MessageLabs. The integrity and security of this
message cannot be guaranteed. This email is intended for the named recipient
only, and may contain confidential information and proprietary material. Any
unauthorised use or disclosure is prohibited.


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

Reply via email to