Re: [Rife-users] Problem adding database support to rife
Hi Mork, what do you mean what 'nothing happens'? Is the user logged out, but you don't see a new page? Is there a URL generated in the login box? Did you look at example 7 about authentication? Btw, if you want to snap back to the same location, you need to trigger the request through a submission (which doesn't mean a form though, you can have URL submissions). The exit in LoginBox is simply there to be able to go to the logout element from within the LoginBox element. If you don't want the submission check to 'pollute' the implementation of LoginBox, you can use precedence to just handle that. http://rifers.org/wiki/display/RIFE/Snapbacks http://rifers.org/wiki/display/RIFE/Precedence Hope this helps, Geert On 29 Mar 2007, at 16:49, Mork Ork wrote: Hello Geert, excuse me fot the delay. Today i tried the jar16 and it works. Thanks :) But now there another issue, i cant logout within my auth template. If i click on theloutout link, nothing happens. Have you any idea? pub.xml element id=Logout file=auth/logout.xml flowlink srcexit=logged_out snapback=true/ /element element id=LoginBox file=auth/loggedInElement.xml inherits=AuthBox flowlink srcexit=logout destid=Logout/ /element loggedInElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element implementation=com.cm.fc.elements.auth.LoggedInElement exit name=logout/ /element loggedIn.html nobrpWelcome r:v name=login/./p/nobr pa href=${v EXIT:QUERY:logout/}log out/a/p logout.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/logout/passthrough/database.xml property name=datasourcedatasourcemysql/datasource/ property property name=authvar_typecookie/property /element 2007/3/25, Geert Bevin [EMAIL PROTECTED]: Ahh, yeah, the upcoming RIFE has specific support for JDK 1.6 and the new JDBC, but that hasn't been integrated in the nightly builds yet since it requires the building to be executed with a different JDK. To have the JDK 1.6 jar, you need to build from sources. Checkout the current version from Subversion and do ant jar16. You'll have that binary jar you need sitting in build/dist. Hope this helps, Geert On 25 Mar 2007, at 02:01, Mork0075 wrote: Hello Geert, now i'am facing a new problem: i changed the rife jar in my project, now its up to date. But if i run my project (with the BlockingParticipant to install the tables and default user) i get an exception that the default user cant be installed, because DBResultSet40 ClassNotFoundException. Are there any other dependencies i have to update when updating to a new rife jar? In my IDE i use Java 1.6 with Compiler Compliance Level set to 1.5. May this also cause problems? Thanks a lot Marvin Geert Bevin schrieb: Hi, definitely, the snapshot is actually more stable that the latest release. I'll be pushing out a new release in the next couple of weeks. I think the problem you're referring to was solved a couple of months in the RIFE core project, not the jumpstart. Take care, Geert On 24 Mar 2007, at 12:51, Mork0075 wrote: Hi, great, this works for me to. But this also means, that there's an issue in the jumpstart archive published on the rife site?! Would you recommand using an snapshot archive for productive development? Geert Bevin schrieb: 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
Re: [Rife-users] Problem adding database support to rife
Ahh, yeah, the upcoming RIFE has specific support for JDK 1.6 and the new JDBC, but that hasn't been integrated in the nightly builds yet since it requires the building to be executed with a different JDK. To have the JDK 1.6 jar, you need to build from sources. Checkout the current version from Subversion and do ant jar16. You'll have that binary jar you need sitting in build/dist. Hope this helps, Geert On 25 Mar 2007, at 02:01, Mork0075 wrote: Hello Geert, now i'am facing a new problem: i changed the rife jar in my project, now its up to date. But if i run my project (with the BlockingParticipant to install the tables and default user) i get an exception that the default user cant be installed, because DBResultSet40 ClassNotFoundException. Are there any other dependencies i have to update when updating to a new rife jar? In my IDE i use Java 1.6 with Compiler Compliance Level set to 1.5. May this also cause problems? Thanks a lot Marvin Geert Bevin schrieb: Hi, definitely, the snapshot is actually more stable that the latest release. I'll be pushing out a new release in the next couple of weeks. I think the problem you're referring to was solved a couple of months in the RIFE core project, not the jumpstart. Take care, Geert On 24 Mar 2007, at 12:51, Mork0075 wrote: Hi, great, this works for me to. But this also means, that there's an issue in the jumpstart archive published on the rife site?! Would you recommand using an snapshot archive for productive development? Geert Bevin schrieb: 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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config- base.xml ParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/ datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.Participant Databas eAuthentication/participant participant param=sites/main.xmlParticipantSite/ participant /rep
Re: [Rife-users] Problem adding database support to rife
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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config- base.xml ParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatabas eAuthentication/participant participant param=sites/main.xmlParticipantSite/ participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/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=rolevisitor/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 urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config- base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param name=database_passwordyourpassword/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
Re: [Rife-users] Problem adding database support to rife
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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config- base.xml ParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatabas eAuthentication/participant participant param=sites/main.xmlParticipantSite/ participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/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=rolevisitor/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 urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config- base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param
Re: [Rife-users] Problem adding database support to rife
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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config- base.xml ParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantData bas eAuthentication/participant participant param=sites/main.xmlParticipantSite/ participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/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=rolevisitor/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 urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config- base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param name=database_passwordyourpassword/param Mysql should be running, the database should exist together with a working user. cheers Henk On 22 Mar
Re: [Rife-users] Problem adding database support to rife
Hi, definitely, the snapshot is actually more stable that the latest release. I'll be pushing out a new release in the next couple of weeks. I think the problem you're referring to was solved a couple of months in the RIFE core project, not the jumpstart. Take care, Geert On 24 Mar 2007, at 12:51, Mork0075 wrote: Hi, great, this works for me to. But this also means, that there's an issue in the jumpstart archive published on the rife site?! Would you recommand using an snapshot archive for productive development? Geert Bevin schrieb: 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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config- base.xml ParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDa tabas eAuthentication/participant participant param=sites/main.xmlParticipantSite/ participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/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=rolevisitor/property /element 2007/3/22, Henk [EMAIL PROTECTED]:Check the following : rep/datasources.xml : should contain datasource name=mysql
Re: [Rife-users] Problem adding database support to rife
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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config-base.xmlParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatabas eAuthentication/participant participant param=sites/main.xmlParticipantSite/participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/datasource/ property childtrigger name=authid/ /element LoginBoxElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=auth/universalAuthElement.xml property name=template_nameauth.login/property property name=rolevisitor/property /element 2007/3/22, Henk [EMAIL PROTECTED]:Check the following : rep/datasources.xml : should contain datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config-base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param name=database_passwordyourpassword/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=datasourcedatasourcemysql/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.xmlParticipantConfig/participant participant param=rep/datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDat abaseAuthentication/participant participant param=sites/main.xmlParticipantSite/ participant /rep This causes this error: com.uwyn.rife.database.exceptions.DriverInstantiationErrorExceptio n:
Re: [Rife-users] Problem adding database support to rife
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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config-base.xml ParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatabas eAuthentication/participant participant param=sites/main.xmlParticipantSite/participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/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=rolevisitor/property /element 2007/3/22, Henk [EMAIL PROTECTED]:Check the following : rep/datasources.xml : should contain datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config-base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param name=database_passwordyourpassword/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=datasourcedatasourcemysql/datasource/ property causes the following error: The
Re: [Rife-users] Problem adding database support to rife
Which version of RIFE are you using? 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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config-base.xml ParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatabas eAuthentication/participant participant param=sites/main.xmlParticipantSite/ participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/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=rolevisitor/property /element 2007/3/22, Henk [EMAIL PROTECTED]:Check the following : rep/datasources.xml : should contain datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config-base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param name=database_passwordyourpassword/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=datasourcedatasourcemysql/datasource/ property causes the following error: The property 'datasource' of element 'auth/
Re: [Rife-users] Problem adding database support to rife
I can't find anything form the snippets you pasted, indeed. Would you mind zipping up your project and sending it to me privately (not to the list). I can step through it myself then and pinpoint why this happens. Take care, Geert On 23 Mar 2007, at 07:33, Geert Bevin wrote: Which version of RIFE are you using? 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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config-base.xml ParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDataba s eAuthentication/participant participant param=sites/main.xmlParticipantSite/ participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/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=rolevisitor/property /element 2007/3/22, Henk [EMAIL PROTECTED]:Check the following : rep/datasources.xml : should contain datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config-base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param name=database_passwordyourpassword/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
Re: [Rife-users] Problem adding database support to rife
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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config-base.xml ParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatabas eAuthentication/participant participant param=sites/main.xmlParticipantSite/ participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/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=rolevisitor/property /element 2007/3/22, Henk [EMAIL PROTECTED]:Check the following : rep/datasources.xml : should contain datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config-base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param name=database_passwordyourpassword/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
Re: [Rife-users] Problem adding database support to rife
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=datasourcedatasourcemysql/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.xmlParticipantConfig/ participant participant param=rep/datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatabas eAuthentication/participant participant param=sites/main.xmlParticipantSite/participant /rep This causes this error: com.uwyn.rife.database.exceptions.DriverInstantiationErrorException: 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 drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name//url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users Henk [EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Problem adding database support to rife
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=datasourcedatasourcemysql/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.xmlParticipantConfig/participant participant param=rep/datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatabaseAuthentication/participant participant param=sites/main.xmlParticipantSite/participant /rep This causes this error: com.uwyn.rife.database.exceptions.DriverInstantiationErrorException: 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 drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name//url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users Henk [EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Problem adding database support to rife
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=datasourcedatasourcemysql/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.xmlParticipantConfig/participant participant param=rep/datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatab aseAuthentication/participant participant param=sites/main.xmlParticipantSite/ participant /rep This causes this error: com.uwyn.rife.database.exceptions.DriverInstantiationErrorException: 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 drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name//url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users Henk [EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users Henk [EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Problem adding database support to rife
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=datasourcedatasourcemysql/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.xmlParticipantConfig/participant participant param=rep/datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatabaseAuthentication/participant participant param=sites/main.xmlParticipantSite/participant /rep This causes this error: com.uwyn.rife.database.exceptions.DriverInstantiationErrorException: 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 drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name//url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users Henk [EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users Henk [EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Problem adding database support to rife
Check the following : rep/datasources.xml : should contain datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config-base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param name=database_passwordyourpassword/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=datasourcedatasourcemysql/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.xmlParticipantConfig/participant participant param=rep/datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDat abaseAuthentication/participant participant param=sites/main.xmlParticipantSite/ 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 drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name//url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users Henk [EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users Henk [EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users Henk [EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Problem adding database support to rife
Ok, i checked this but same error config-base.xml config param name=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config-base.xmlParticipantConfig/participant participant param=rep/datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/property participant blocking=true param=datasource com.cm.financeloupe.participants.ParticipantDatabaseAuthentication /participant participant param=sites/main.xmlParticipantSite/participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/datasource/property childtrigger name=authid/ /element LoginBoxElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=auth/universalAuthElement.xml property name=template_nameauth.login/property property name=rolevisitor/property /element 2007/3/22, Henk [EMAIL PROTECTED]: Check the following : rep/datasources.xml : should contain datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config-base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param name=database_passwordyourpassword/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=datasourcedatasourcemysql/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.xmlParticipantConfig/participant participant param=rep/datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDat abaseAuthentication/participant participant param=sites/main.xmlParticipantSite/ 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 drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name//url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users Henk [EMAIL PROTECTED]
Re: [Rife-users] Problem adding database support to rife
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=datasourcemysql/param param name=database_namerife/param param name=database_userrife/param param name=database_passwordrife/param /config participants.xml rep participant param=rep/config-base.xmlParticipantConfig/ participant participant param=rep/ datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/ property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDatabas eAuthentication/participant participant param=sites/main.xmlParticipantSite/participant /rep datasources.xml datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource universalAuthElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=rife/authenticated/database.xml property name=authvar_typecookie/property submission name=credentials param name=login/ param name=password/ /submission property name=datasourcedatasourcemysql/datasource/ property childtrigger name=authid/ /element LoginBoxElement.xml !DOCTYPE element SYSTEM /dtd/element.dtd element extends=auth/universalAuthElement.xml property name=template_nameauth.login/property property name=rolevisitor/property /element 2007/3/22, Henk [EMAIL PROTECTED]:Check the following : rep/datasources.xml : should contain datasource name=mysql drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name/?autoReconnect=true/url userconfig param=database_user//user passwordconfig param=database_password//password poolsize5/poolsize /datasource rep/config-base.xml : should contain param name=DATASOURCEmysql/param param name=database_nameyourdatabase/param param name=database_useryouruser/param param name=database_passwordyourpassword/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=datasourcedatasourcemysql/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.xmlParticipantConfig/participant participant param=rep/datasources.xmlParticipantDatasources/participant property name=datasourcedatasourcemysql/datasource/property participant blocking=true param=datasourcecom.cm.financeloupe.participants.ParticipantDat abaseAuthentication/participant participant param=sites/main.xmlParticipantSite/ 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 drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://localhost:3306/config param=database_name//url userconfig param=database_user//user passwordconfig