:)

After change to tdk-2.2-b3 i got no more Horrible Exception
It seems that my ServiceSecurity classes will be loaded correct.

Regards
Stefan

-----Urspr�ngliche Nachricht-----
Von: Peter Neubauer [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 11. Oktober 2002 12:12
An: Turbine Users List
Betreff: Re: AW: extend user in tdk-2.2-b2


fre 2002-10-11 klockan 11.56 skrev Bozic, Stefan (FF):
> Here is the source for my User-class
> 
> import org.apache.torque.om.Persistent;
> 
> /** 
>  * You should add additional methods to this class to meet the
>  * application requirements.  This class will only be generated as
>  * long as it does not already exist in the output directory.
>  */
> public  class User 
>     extends com.tsystems.varweb.om.BaseUser
what is that class extending? You should check that, in the end, your class
really extends the TurbineUSer class.
That can be a bit tricky, as a lot of implementations are in the move
over to torque. Try turbine-2.2-b3 with torque-3.0-b4

/peter

>     implements Persistent
> {
> }
> 
> -----Urspr�ngliche Nachricht-----
> Von: Peter Neubauer [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 11. Oktober 2002 11:35
> An: Turbine Users List
> Betreff: Re: extend user in tdk-2.2-b2
> 
> 
> Can you provide the code for the userClass as well? It seems that the
> class String is not loaded or is null:
>     public Class getUserClass()
>         throws UnknownEntityException
>     {
>         if (userClass == null)
>         {
>             throw new UnknownEntityException(
>                 "Failed to create a Class object for User
> implementation");
>         }
>         return userClass;
>     }
> in BaseSecurityService.
> I tried the same thing a time ago and run into the same trouble. I could
> test it again, but finally, I just extended the TurbineUser class with a
> regular class, and provided my own methods for the additional behaviour,
> using OJB for my custom classes. That works exellent.
> 
> /peter
> 
>  It could be that the user  fre 2002-10-11 klockan 11.03 skrev Bozic,
> Stefan (FF):
> > Hello,
> > i want to extend the Turbine User in TDK-2.2-b2.
> > I�m following the instructions from the Extend User How-to and  add this
> > tables to my schema.
> > 
> > <table name="TURBINE_USER" description="Benutzer Tabelle"
> > alias="TurbineUser"
> >          javaName="User"
> > baseClass="com.tsystems.varweb.om.TurbineUserAdapter"
> >          basePeer="com.tsystems.varweb.om.TurbineUserPeerAdapter">
> >     <column name="USER_ID" primaryKey="true" required="true"
> type="INTEGER"
> > />
> >   </table>
> >   
> >   <table name="NEWS" >
> >     <column name="NEWS_ID" javaName="id" required="true"
> > autoIncrement="true" primaryKey="true" type="INTEGER"/>
> >     <column name="NEWS_HEADER" javaName="header" size="255"
> type="VARCHAR"/>
> >     <column name="NEWS_VALUE" javaName="value" type="LONGVARCHAR"/>
> >     <column name="NEWS_PICTURE" javaName="picture" size="255"
> > type="VARCHAR"/>
> >     <column name="NEWS_PICTURE_POSITION" javaName="picture_position"
> > type="CHAR"/>
> >     <column name="CHANGE_USER" javaName="user" type="INTEGER" />
> >     <column name="CHANGE_DATE" javaName="date" type="TIMESTAMP" />
> > 
> >     <foreign-key foreignTable="TURBINE_USER">
> >             <reference local="CHANGE_USER" foreign="USER_ID" />
> >     </foreign-key>
> > 
> > All works fine but when i start the tomcat server i got this exception:
> > 
> > Horrible Exception:
> org.apache.turbine.util.security.UnknownEntityException:
> > Failed to create a Class object for User implementation
> > at
> >
>
org.apache.turbine.services.security.BaseSecurityService.getUserClass(BaseSe
> > curityService.java:226)
> > at
> >
>
org.apache.turbine.services.security.BaseSecurityService.getUserInstance(Bas
> > eSecurityService.java:247)
> > rethrown as org.apache.turbine.util.security.UnknownEntityException:
> Failed
> > instantiate an User implementation object: Failed to create a Class
object
> > for User implementation
> > 
> > I update the SecurityService in TurbineResources.properties and in
> > Fulcrum.properties to my own User-Classes.
> > 
> > <snippet form TurbineResources.properties>
> > #
> > # This is the class that implements the User interface.
> > # You want to override this setting only if you want your User
> > # implementation to provide application specific addtional
> > # functionality.
> > #
> > # Default: org.apache.fulcrum.security.impl.db.entity.TurbineUser
> > #
> > 
> >
>
#services.SecurityService.user.class=org.apache.fulcrum.security.impl.db.ent
> > ity.TurbineUser
> > services.SecurityService.user.class=com.tsystems.varweb.om.User
> > 
> > <snippet form Fulcrum.properties>
> > 
> > #
> > # This is the class that implements the User interface.
> > # You want to override this setting only if you want your User
> > # implementation to provide application specific addtional
> > # functionality.
> > #
> > # Default: org.apache.turbine.om.security.TurbineUser
> > #
> >
>
#services.SecurityService.user.class=org.apache.turbine.om.security.TurbineU
> > ser
> > 
> > services.SecurityService.user.class=com.tsystems.varweb.om.User
> > 
> > but nothing changes.
> > Please help me I�m going frustrated
> > 
> > Stefan
> 


_____________________________________________________
Gratis e-mail resten av livet p� www.yahoo.se/mail
Busenkelt!

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

Reply via email to