Hi Geert,

this is my site structure (pub.xml)

http://rifers.org/paste/show/4031

This is universalAuthElement.xml

http://rifers.org/paste/show/4032

This is loginBoxElement.xml

http://rifers.org/paste/show/4033

And this is the complete stack trace.

http://rifers.org/paste/show/4034

Thanks a lot for your time.

2007/3/23, Geert Bevin <[EMAIL PROTECTED]>:

Can you post the entire stacktrace of the exception you get and the
site structure in which universalAuthElement.xml is declared also?

On 22 Mar 2007, at 14:17, Mork Ork wrote:

> Ok, i checked this but same error
>
> config-base.xml
>
> <config>
>     <param name="datasource">mysql</param>
>     <param name="database_name">rife</param>
>     <param name="database_user">rife</param>
>     <param name="database_password">rife</param>
> </config>
>
> participants.xml
>
> <rep>
>     <participant param="rep/config-base.xml">ParticipantConfig</
> participant>
>     <participant param="rep/
> datasources.xml">ParticipantDatasources</participant>
>     <property name="datasource"><datasource>mysql</datasource></
> property>
>     <participant blocking="true"
> param="datasource">com.cm.financeloupe.participants.ParticipantDatabas
> eAuthentication</participant>
>     <participant param="sites/main.xml">ParticipantSite</participant>
> </rep>
>
> datasources.xml
>
>     <datasource name="mysql">
>         <driver>com.mysql.jdbc.Driver</driver>
>         <url>jdbc:mysql://localhost:3306/<config
> param="database_name"/>?autoReconnect=true</url>
>         <user><config param="database_user"/></user>
>         <password><config param="database_password"/></password>
>         <poolsize>5</poolsize>
>     </datasource>
>
> universalAuthElement.xml
>
> <!DOCTYPE element SYSTEM "/dtd/element.dtd">
> <element extends="rife/authenticated/database.xml">
>     <property name="authvar_type">cookie</property>
>     <submission name="credentials">
>         <param name="login"/>
>         <param name="password"/>
>     </submission>
>
>     <property name="datasource"><datasource>mysql</datasource></
> property>
>     <childtrigger name="authid"/>
> </element>
>
> LoginBoxElement.xml
>
> <!DOCTYPE element SYSTEM "/dtd/element.dtd">
> <element extends="auth/universalAuthElement.xml">
>     <property name="template_name">auth.login</property>
>     <property name="role">visitor</property>
> </element>
>
> 2007/3/22, Henk < [EMAIL PROTECTED]>:Check the following :
>
> rep/datasources.xml : should contain
>
> <datasource name="mysql">
>          <driver>com.mysql.jdbc.Driver</driver>
>          <url>jdbc:mysql://localhost:3306/<config
> param="database_name"/>?autoReconnect=true</url>
>          <user><config param="database_user"/></user>
>          <password><config param="database_password"/></password>
>          <poolsize>5</poolsize>
> </datasource>
>
> rep/config-base.xml : should contain
>
> <param name="DATASOURCE">mysql</param>
> <param name="database_name">yourdatabase</param>
> <param name="database_user">youruser</param>
> <param name="database_password">yourpassword</param>
>
> Mysql should be running, the database should exist together with a
> working user.
>
> cheers
>
> Henk
>
>
> On 22 Mar 2007, at 21:51, Mork0075 wrote:
>
> > Ok, thanks a lot, this was my mistake.
> >
> > But the other problem remains:
> >
> > The property 'datasource' of element 'auth/loginBoxElement.xml' was
> > expected to have the type ' com.uwyn.rife.database.Datasource',
> however
> > it's actual type 'java.lang.String' couldn't be cast to it.
> >
> >
> > Henk schrieb:
> >> Actually, rife jumpstart does support MySQL, but does not
> include the
> >> driver.  Moreover, it depends on your mysql version which jdbc
> driver
> >> you should use.  Check out http://www.mysql.com/products/
> connector/j/
> >> for more information.
> >>
> >> good luck
> >>
> >> Henk
> >>
> >> On 22 Mar 2007, at 21:23, Mork0075 wrote:
> >>
> >>> I use the rife jumpstart project, i thaught theres mysql support
> >>> out of
> >>> the box?
> >>>
> >>>
> >>> Henk schrieb:
> >>>> Hi,
> >>>>
> >>>> you probably checked this, but are you sure the MySQL jdbc
> >>>> driver is
> >>>> in the classpath ?
> >>>>
> >>>> cheers
> >>>>
> >>>> Henk
> >>>>
> >>>> On 22 Mar 2007, at 21:11, Mork0075 wrote:
> >>>>
> >>>>> Hi,
> >>>>>
> >>>>> i try to add some basic database functionality to my rife app,
> >>>>> but got
> >>>>> some errors.
> >>>>>
> >>>>> First of all, adding this line to my auth.xml  (which extends
> >>>>> rife/autheticated/database.xml) element
> >>>>> <property name="datasource"><datasource>mysql</datasource></
> >>>>> property>
> >>>>> causes the following error:
> >>>>>
> >>>>> The property 'datasource' of element 'auth/loginBoxElement.xml'
> >>>>> was
> >>>>> expected to have the type 'com.uwyn.rife.database.Datasource',
> >>>>> however
> >>>>> it's actual type 'java.lang.String' couldn't be cast to it.
> >>>>>
> >>>>> The second thing i did, i've added the sample blocking
> element to
> >>>>> create
> >>>>> the database tables: (this is my pacitipants.xml )
> >>>>> <rep>
> >>>>>     <participant
> >>>>> param="rep/config-base.xml">ParticipantConfig</participant>
> >>>>>     <participant
> >>>>> param="rep/datasources.xml">ParticipantDatasources</participant>
> >>>>>     <property
> >>>>> name="datasource"><datasource>mysql</datasource></property>
> >>>>>     <participant blocking="true"
> >>>>>
> param="datasource">com.cm.financeloupe.participants.ParticipantDat
> >>>>> abaseAuthentication</participant>
> >>>>>
> >>>>>
> >>>>>     <participant param="sites/main.xml">ParticipantSite</
> >>>>> participant>
> >>>>> </rep>
> >>>>>
> >>>>> This causes this error:
> >>>>>
> com.uwyn.rife.database.exceptions.DriverInstantiationErrorExceptio
> >>>>> n:
> >>>>> Couldn't instantiate the JDBC driver ' com.mysql.jdbc.Driver'.
> >>>>>
> >>>>> I tried to track it down with debugging (incl rife sources) but
> >>>>> without
> >>>>> any luck.
> >>>>>
> >>>>> Can somebody give me a hint? :) Thanks a lot
> >>>>>
> >>>>> P.S.:
> >>>>> The datasource.xml looks like this
> >>>>>
> >>>>>     <datasource name="mysql">
> >>>>>         <driver>com.mysql.jdbc.Driver</driver>
> >>>>>         <url>jdbc:mysql://localhost:3306/<config
> >>>>> param="database_name"/></url>
> >>>>>         <user><config param="database_user"/></user>
> >>>>>         <password><config param="database_password"/></password>
> >>>>>         <poolsize>5</poolsize>
> >>>>>     </datasource>
> >>>>> _______________________________________________
> >>>>> Rife-users mailing list
> >>>>> [email protected]
> >>>>> http://lists.uwyn.com/mailman/listinfo/rife-users
> >>>>
> >>>> Henk
> >>>> [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Rife-users mailing list
> >>>> [email protected]
> >>>> http://lists.uwyn.com/mailman/listinfo/rife-users
> >>>>
> >>>
> >>> _______________________________________________
> >>> Rife-users mailing list
> >>> [email protected]
> >>> http://lists.uwyn.com/mailman/listinfo/rife-users
> >>
> >> Henk
> >> [EMAIL PROTECTED]
> >>
> >>
> >>
> >> _______________________________________________
> >> Rife-users mailing list
> >> [email protected]
> >> http://lists.uwyn.com/mailman/listinfo/rife-users
> >>
> >
> > _______________________________________________
> > Rife-users mailing list
> > [email protected]
> > http://lists.uwyn.com/mailman/listinfo/rife-users
>
> Henk
> [EMAIL PROTECTED]
>
>
>
> _______________________________________________
> Rife-users mailing list
> [email protected]
> http://lists.uwyn.com/mailman/listinfo/rife-users
>
> _______________________________________________
> Rife-users mailing list
> [email protected]
> http://lists.uwyn.com/mailman/listinfo/rife-users

--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to