I tried it with the archive that you sent me and simply replaced the RIFE jar with the latest binary nightly build.

On 24 Mar 2007, at 10:46, Mork0075 wrote:

Hello Geert,

have you tried it with the jumpstart 1.5.1 archive from the rife site or
with an snapshot from the current head of the repository?

Geert Bevin schrieb:
Strange, I tried it with a recent snapshot and it works just fine. You
have an error in your site structure though since you're linking from
an exit that doesn't exit (logged_out). Besides that, the site starts
up without any errors. Are you sue you don't have another copy
lingering around in your classpath?

On 23 Mar 2007, at 09:44, Mork Ork wrote:

Ok, tried it, but same error

"The property 'datasource' of element
'rife/authenticated/database.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."

Have you received the project archive? it was about 10mb, so it took
a while.

2007/3/23, Geert Bevin < [EMAIL PROTECTED]>:Hang on, can you quickly
try something for me, don't use the MySQL
jar that is in your project (mysql-connector-java-5.0.5-bin.jar).
MySQL's JDBC drivers have a tendency to be frequently unstable and
incompatible, can you try with this one that's in here http://
rifers.org/download/95/rife-sumo-1.5.1-jdk15.zip ? That's what is
used to test RIFE.

On 23 Mar 2007, at 03:00, Mork Ork wrote:

I did some debugging, perhaps this is helpful:

The error occurs in PurgingDatabaseAuthenticatedDeployer.java where
a Datasource object tries to be created (line 59). This line is
executed twice. First time the correct datasource object is created
(with my mysql settings). The second time in
ElementInfo.getPropertyTyped an exception is thrown in line 1195
(if (!type.isAssignableFrom(result.getClass()))).  In the first run
the value of result is Datsource (the mysql one), in the second
run, the value of result is "".

I think this is the failure. The datasource seems to be identified
correctly once and then (i dont know why) a second datasource tries
to be created from an empty input "".

2007/3/23, Mork Ork <[EMAIL PROTECTED]>: 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.ParticipantData bas
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

--
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

--
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


--
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

Reply via email to