Re: [Rife-users] signature issues
Geert, I've seen weird behavior with Eclipse in the past regarding to this. Sometimes Eclipse thinks that there are bad signatures or other errors while there aren't any. When I compile with the javac from the JDK everything is ok. Yes, the compilation is ok (only a bunch of deprecated and unchecked warnings), only this weird error message from Eclipse. Just make sure that you're using a JDK 1.5 version of the RIFE jar, not doing so confuses Eclipse completely. Last time I checked, RIFE/Crud compiled without a problem in Eclipse though. I'll check again later tonight. Compilation is ok and Eclipse doesn't complain. May I ask a "name" attribute for project element in build.xml? Regards Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Using Tomcat Authentication with Rife
JR added the WebDAV HTTP methods to Rife, and my setup is using them. Heh, well, I added them ;-) However it is still the case that: I can access a particular content item in a browser with a plain old HTTP URL and it executes my Rife code and I can pipe the content into the output stream and it just works, but when I try to "open" the same URL with WebDAV, _no_ Rife code is executed. Not even any of the new, added WebDAV methods are detected and passed to my code. Therefore I suspect that the editor is first trying to authenticate itself using an HTTP-based mechanism which is unfamiliar to (i.e. unimplemented by) Rife. Why don't you setup a HTTP monitor and proxy to track what's really going on, like that you know, we can trace it and make sure that everything goes through to RIFE. Thus my motivation for handing off authentication chores to Tomcat. However, this suspicion (that the editor is trying to authenticate itself using HTTP) is still unverified. Another possibility of course is that JR's code contains bugs. But, I would expect to see a proton decay before I saw that ;-) I'd be very surprised to see a but appear in the handling of the additional HTTP methods, they are just additions to a type-safe enum. I even made the enum self-adapting in case other methods pop up. -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Using Tomcat Authentication with Rife
Surely sendmail reeled when thusly spake Geert Bevin: > > AFAIK Tomcat authentication should just work. > > I however don't fully understand what benefit you would get from it, > besides the downside of tying your authentication scheme to one > particular servlet container. That is true. > I suppose I'm missing something, can you give me pore details about > what it would bring you over RIFE's authentication? JR added the WebDAV HTTP methods to Rife, and my setup is using them. However it is still the case that: I can access a particular content item in a browser with a plain old HTTP URL and it executes my Rife code and I can pipe the content into the output stream and it just works, but when I try to "open" the same URL with WebDAV, _no_ Rife code is executed. Not even any of the new, added WebDAV methods are detected and passed to my code. Therefore I suspect that the editor is first trying to authenticate itself using an HTTP-based mechanism which is unfamiliar to (i.e. unimplemented by) Rife. Thus my motivation for handing off authentication chores to Tomcat. However, this suspicion (that the editor is trying to authenticate itself using HTTP) is still unverified. Another possibility of course is that JR's code contains bugs. But, I would expect to see a proton decay before I saw that ;-) fred ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Using Tomcat Authentication with Rife
AFAIK Tomcat authentication should just work. I however don't fully understand what benefit you would get from it, besides the downside of tying your authentication scheme to one particular servlet container. I suppose I'm missing something, can you give me pore details about what it would bring you over RIFE's authentication? On 14-nov-05, at 21:59, F Baube wrote: Has anyone tried using Rife with any of Tomcat's authentication mechanisms ? In particular, forms-based authentication ? Authentication by Tomcat is attractive to me because (AFAICT) it could then also cleanly handle the authentication process that is expected by a WebDAV editor. Then I would have a "single sign-on" that controls access both to my existing URL space and also to a new URL space which would speak to WebDAV-capable standalone editors using WebDAV-based content access: I could access Tomcat's authentication data at runtime in order to perform access control within the WevDAV URL space that is as fine-grained as I wish. (Note that since forms-based login credentials are sent in the clear, it should be done over an HTTPS connection.) This has the potential to be much simpler than trying to integrate any WebDAV codebase that is even remotely connected to Jakarta Slide, except for (*perhaps*) the Slide WCK translation layer. It would require that Tomcat is configured with a login form URL and a login failure URL, whcih could both (AFAICT) be served up by Rife. These are described at http://www.cafesoft.com/products/cams/tomcat- security.html#Form_Based_Authentication and an example "web.xml" is given at http://servlets.com/jservlet2/examples/ch08b/web.xml The idea then would be to transfer responsibility for authenticating access to my servlet's entire URL space (both WebDAV and non-WebDAV) from Rife to Tomcat. Any relevant code, ideas, tips, or criticism would be quite welcome. -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Using Tomcat Authentication with Rife
Has anyone tried using Rife with any of Tomcat's authentication mechanisms ? In particular, forms-based authentication ? Authentication by Tomcat is attractive to me because (AFAICT) it could then also cleanly handle the authentication process that is expected by a WebDAV editor. Then I would have a "single sign-on" that controls access both to my existing URL space and also to a new URL space which would speak to WebDAV-capable standalone editors using WebDAV-based content access: I could access Tomcat's authentication data at runtime in order to perform access control within the WevDAV URL space that is as fine-grained as I wish. (Note that since forms-based login credentials are sent in the clear, it should be done over an HTTPS connection.) This has the potential to be much simpler than trying to integrate any WebDAV codebase that is even remotely connected to Jakarta Slide, except for (*perhaps*) the Slide WCK translation layer. It would require that Tomcat is configured with a login form URL and a login failure URL, whcih could both (AFAICT) be served up by Rife. These are described at http://www.cafesoft.com/products/cams/tomcat-security.html#Form_Based_Authentication and an example "web.xml" is given at http://servlets.com/jservlet2/examples/ch08b/web.xml The idea then would be to transfer responsibility for authenticating access to my servlet's entire URL space (both WebDAV and non-WebDAV) from Rife to Tomcat. Any relevant code, ideas, tips, or criticism would be quite welcome. fred -- F.Baube* Georgetown/MSFS/1988 * Act locally. email fbaube#welho.com * Think pangalactically. gsm +358 41 536 8192 * wmd 60°11'10.8"N 24°57'36.9"E ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] signature issues
Hi Pierre, I've seen weird behavior with Eclipse in the past regarding to this. Sometimes Eclipse thinks that there are bad signatures or other errors while there aren't any. When I compile with the javac from the JDK everything is ok. Just make sure that you're using a JDK 1.5 version of the RIFE jar, not doing so confuses Eclipse completely. Last time I checked, RIFE/Crud compiled without a problem in Eclipse though. I'll check again later tonight. Best regards, Geert I think I misunderstood, these are suggestions, right? Not a remark about that fact that the signatures don't work? So you want to add some methods? No. In fact, it's AspectJ which complains about some errors inside rife-framework and rife-crud jars. When I check rife-framework files, the only one I found is about com.uwyn.rife.database.queries.CreateTable.foreignKey. But in fact it seems it's a false alarm. Eclipse points out an error about the call in line 608: "The method foreignKey(String, String, String) in the type CreateTable is not applicable for the arguments (String, String, String, CreateTable.ViolationAction, CreateTable.ViolationAction)" but I don't see why. So... I'll check now why AspectJ isn't happy with rife-crud. Regards Pierre -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] signature issues
Geert, I think I misunderstood, these are suggestions, right? Not a remark about that fact that the signatures don't work? So you want to add some methods? No. In fact, it's AspectJ which complains about some errors inside rife-framework and rife-crud jars. When I check rife-framework files, the only one I found is about com.uwyn.rife.database.queries.CreateTable.foreignKey. But in fact it seems it's a false alarm. Eclipse points out an error about the call in line 608: "The method foreignKey(String, String, String) in the type CreateTable is not applicable for the arguments (String, String, String, CreateTable.ViolationAction, CreateTable.ViolationAction)" but I don't see why. So... I'll check now why AspectJ isn't happy with rife-crud. Regards Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] signature issues
Hi Pierre, I think I misunderstood, these are suggestions, right? Not a remark about that fact that the signatures don't work? So you want to add some methods? Best regards, Geert On 14-nov-05, at 16:07, Raoul Pierre wrote: Geert, Which RIFE jar are you using (jdk 1.4 or jdk 1.5 version?) Are you using Eclipse? Are you using a 1.5 JDK? I'm working with Eclipse and jre from jdk1.5.0_05. I'm using svn repository rife (local files updated four hours ago) and build-1.5.xml (revision 2663) Regards Pierre Best regards, Geert On 14-nov-05, at 13:56, Raoul Pierre wrote: Geert, There are signature function issues with com.uwyn.rife.database.queries.CreateTable.foreignKey. In the first and fifth cases, there are 6 parameters... I think these need some transformation as in second case: localColumn and foreignColumn in a String[] Regards Pierre public CreateTable foreignKey(String foreignTable, String localColumn, String foreignColumn) { return foreignKey(null, foreignTable, localColumn, foreignColumn, null, null); <== } public CreateTable foreignKey(String foreignTable, String localColumn, String foreignColumn, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(null, foreignTable, new String[] {localColumn, foreignColumn}, onUpdate, onDelete); } public CreateTable foreignKey(String foreignTable, String[] columnsMapping) { return foreignKey(null, foreignTable, columnsMapping, null, null); } public CreateTable foreignKey(String foreignTable, String[] columnsMapping, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(null, foreignTable, columnsMapping, onUpdate, onDelete); } public CreateTable foreignKey(String name, String foreignTable, String localColumn, String foreignColumn) { return foreignKey(name, foreignTable, localColumn, foreignColumn, null, null);<== } public CreateTable foreignKey(String name, String foreignTable, String localColumn, String foreignColumn, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(name, foreignTable, new String[] {localColumn, foreignColumn}, onUpdate, onDelete); } public CreateTable foreignKey(String name, String foreignTable, String[] columnsMapping) { return foreignKey(name, foreignTable, columnsMapping, null, null); } public CreateTable foreignKey(String name, String foreignTable, String[] columnsMapping, ViolationAction onUpdate, ViolationAction onDelete) { if (name != null && 0 == name.length())throw new IllegalArgumentException("name can't be empty."); ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] signature issues
Geert, Which RIFE jar are you using (jdk 1.4 or jdk 1.5 version?) Are you using Eclipse? Are you using a 1.5 JDK? I'm working with Eclipse and jre from jdk1.5.0_05. I'm using svn repository rife (local files updated four hours ago) and build-1.5.xml (revision 2663) Regards Pierre Best regards, Geert On 14-nov-05, at 13:56, Raoul Pierre wrote: Geert, There are signature function issues with com.uwyn.rife.database.queries.CreateTable.foreignKey. In the first and fifth cases, there are 6 parameters... I think these need some transformation as in second case: localColumn and foreignColumn in a String[] Regards Pierre public CreateTable foreignKey(String foreignTable, String localColumn, String foreignColumn) { return foreignKey(null, foreignTable, localColumn, foreignColumn, null, null); <== } public CreateTable foreignKey(String foreignTable, String localColumn, String foreignColumn, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(null, foreignTable, new String[] {localColumn, foreignColumn}, onUpdate, onDelete); } public CreateTable foreignKey(String foreignTable, String[] columnsMapping) { return foreignKey(null, foreignTable, columnsMapping, null, null); } public CreateTable foreignKey(String foreignTable, String[] columnsMapping, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(null, foreignTable, columnsMapping, onUpdate, onDelete); } public CreateTable foreignKey(String name, String foreignTable, String localColumn, String foreignColumn) { return foreignKey(name, foreignTable, localColumn, foreignColumn, null, null);<== } public CreateTable foreignKey(String name, String foreignTable, String localColumn, String foreignColumn, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(name, foreignTable, new String[] {localColumn, foreignColumn}, onUpdate, onDelete); } public CreateTable foreignKey(String name, String foreignTable, String[] columnsMapping) { return foreignKey(name, foreignTable, columnsMapping, null, null); } public CreateTable foreignKey(String name, String foreignTable, String[] columnsMapping, ViolationAction onUpdate, ViolationAction onDelete) { if (name != null && 0 == name.length())throw new IllegalArgumentException("name can't be empty."); ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] RIFE Authentication
Thanks, Emmanuel On 11/14/05, Geert Bevin <[EMAIL PROTECTED]> wrote: > Hi Emmanuel, > > you can actually set that up with the 'submission_name' property, > which defaults to 'credentials'. > > Best regards, > > Geert > > On 14-nov-05, at 13:26, Emmanuel Okyere wrote: > > > OK, i found it... it expects 'credentials' for the submission name. > > > > Thanks, > > Emmanuel > > -- > Geert Bevin Uwyn bvba > "Use what you need" Avenue de Scailmont 34 > http://www.uwyn.com 7170 Manage, Belgium > gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://www.uwyn.com/mailman/listinfo/rife-users > ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] signature issues
Hi Pierre, Which RIFE jar are you using (jdk 1.4 or jdk 1.5 version?) Are you using Eclipse? Are you using a 1.5 JDK? Best regards, Geert On 14-nov-05, at 13:56, Raoul Pierre wrote: Geert, There are signature function issues with com.uwyn.rife.database.queries.CreateTable.foreignKey. In the first and fifth cases, there are 6 parameters... I think these need some transformation as in second case: localColumn and foreignColumn in a String[] Regards Pierre public CreateTable foreignKey(String foreignTable, String localColumn, String foreignColumn) { return foreignKey(null, foreignTable, localColumn, foreignColumn, null, null); <== } public CreateTable foreignKey(String foreignTable, String localColumn, String foreignColumn, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(null, foreignTable, new String[] {localColumn, foreignColumn}, onUpdate, onDelete); } public CreateTable foreignKey(String foreignTable, String[] columnsMapping) { return foreignKey(null, foreignTable, columnsMapping, null, null); } public CreateTable foreignKey(String foreignTable, String[] columnsMapping, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(null, foreignTable, columnsMapping, onUpdate, onDelete); } public CreateTable foreignKey(String name, String foreignTable, String localColumn, String foreignColumn) { return foreignKey(name, foreignTable, localColumn, foreignColumn, null, null);<== } public CreateTable foreignKey(String name, String foreignTable, String localColumn, String foreignColumn, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(name, foreignTable, new String[] {localColumn, foreignColumn}, onUpdate, onDelete); } public CreateTable foreignKey(String name, String foreignTable, String[] columnsMapping) { return foreignKey(name, foreignTable, columnsMapping, null, null); } public CreateTable foreignKey(String name, String foreignTable, String[] columnsMapping, ViolationAction onUpdate, ViolationAction onDelete) { if (name != null && 0 == name.length())throw new IllegalArgumentException("name can't be empty."); ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] signature issues
Geert, There are signature function issues with com.uwyn.rife.database.queries.CreateTable.foreignKey. In the first and fifth cases, there are 6 parameters... I think these need some transformation as in second case: localColumn and foreignColumn in a String[] Regards Pierre public CreateTable foreignKey(String foreignTable, String localColumn, String foreignColumn) { return foreignKey(null, foreignTable, localColumn, foreignColumn, null, null); <== } public CreateTable foreignKey(String foreignTable, String localColumn, String foreignColumn, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(null, foreignTable, new String[] {localColumn, foreignColumn}, onUpdate, onDelete); } public CreateTable foreignKey(String foreignTable, String[] columnsMapping) { return foreignKey(null, foreignTable, columnsMapping, null, null); } public CreateTable foreignKey(String foreignTable, String[] columnsMapping, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(null, foreignTable, columnsMapping, onUpdate, onDelete); } public CreateTable foreignKey(String name, String foreignTable, String localColumn, String foreignColumn) { return foreignKey(name, foreignTable, localColumn, foreignColumn, null, null);<== } public CreateTable foreignKey(String name, String foreignTable, String localColumn, String foreignColumn, ViolationAction onUpdate, ViolationAction onDelete) { return foreignKey(name, foreignTable, new String[] {localColumn, foreignColumn}, onUpdate, onDelete); } public CreateTable foreignKey(String name, String foreignTable, String[] columnsMapping) { return foreignKey(name, foreignTable, columnsMapping, null, null); } public CreateTable foreignKey(String name, String foreignTable, String[] columnsMapping, ViolationAction onUpdate, ViolationAction onDelete) { if (name != null && 0 == name.length())throw new IllegalArgumentException("name can't be empty."); ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] AspectJ bis
OK, it works now. Thanks. Great! May I ask for a "name" attribut in project element of the build.xml, then Eclipse can use it as label in its ant view. It has been committed. Best regards, Geert -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] AspectJ bis
Geert, Nope, it's only in the build file. Not making the java process fork to execute the template precompilation prevents ant on Windows to apply the file globbing to the parameters. OK, it works now. Thanks. May I ask for a "name" attribut in project element of the build.xml, then Eclipse can use it as label in its ant view. Regards Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] RIFE Authentication
Hi Emmanuel, you can actually set that up with the 'submission_name' property, which defaults to 'credentials'. Best regards, Geert On 14-nov-05, at 13:26, Emmanuel Okyere wrote: OK, i found it... it expects 'credentials' for the submission name. Thanks, Emmanuel -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] RIFE Authentication
OK, i found it... it expects 'credentials' for the submission name. Thanks, Emmanuel On 11/14/05, Emmanuel Okyere <[EMAIL PROTECTED]> wrote: > OK Geert, > > Now I've setup an element called UserHome that points to a url > '/user/home' and another element called Registration that takes you to > '/register' and allows you to be added to the user database. > > Registration works perfectly... no exceptions, expected errors if you > ommit something etc etc. > > After a Registration, the user is exited to the UserHome element. This > also works as expected. > > Now, I have setup a 'User' element that extends > 'rife/authenticated/database.xml' as per the docs > > As the UserHome is working as expected, I decided to make it inherit > the User element. This seems to work, as UserHome now forces a Login > page as expected. > > At the the login page, I enter the user credentials (for 'foobar', I > just added through the registration page), but nothing happens; it > just returns to the Login page. > > I double-checked to make sure the user is indeed in the database, as > when I try to readd him, i get the following exception: > > [java] SEVERE: > com.uwyn.rife.authentication.credentialsmanagers.exceptions.DuplicateLoginException: > The login 'foobar' is already present. > > The following is how the element and subsite are defined: > > > > > > user > name="datasource">derby > SHA > login.Login > cookie > > > > destid="PublicSite.Register"/> > > > > > > > > > > > > > > inherits="User" /> > > > > Any Pointers? > > Thanks, > Emmanuel > > > On 11/11/05, Emmanuel Okyere <[EMAIL PROTECTED]> wrote: > > nah, don't sweat it... just think its wierd that when you drop the jar > > in the webinf/lib folder, it does find the classes it needs, and then > > just throws errors out of the blue... thx.. this setup works now.. > > plus i only need derby for testing anyways... thx > > > > Emmanuel > > > > On 11/11/05, Geert Bevin <[EMAIL PROTECTED]> wrote: > > > I suspect it's some weird classloading issue, but tracking this down > > > is extremely tedious since it could be something in Derby, the > > > servlet container, RIFE or another 3rd party lib. > > > > > > I doubt I ever have time to track it down. > > > > > > On 11-nov-05, at 16:35, Emmanuel Okyere wrote: > > > > btw, do you know why this happens? thx > > > > > > > > Emmanuel > > > > > > -- > > > Geert Bevin Uwyn bvba > > > "Use what you need" Avenue de Scailmont 34 > > > http://www.uwyn.com 7170 Manage, Belgium > > > gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > > > > > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > > > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > > > > > > > ___ > > > Rife-users mailing list > > > Rife-users@uwyn.com > > > http://www.uwyn.com/mailman/listinfo/rife-users > > > > > > ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] AspectJ bis
Hi Pierre, this was a weird problem on Windows with the java ant task parameters being extrapolated as against an active command prompt, hence it picked up the actual files on the file system instead of passing the parameters to the executed class. I committed a fix, it should now build on Windows. Best regards, Geert On 14-nov-05, at 01:18, Raoul Pierre wrote: Geert, I'm still trying to get AspectJ working with Rife. Atm, as far as joinpoints are in my projects it's ok. But when I try to define a poincut with some joinpoints in rife-1.3-snapshot-jdk15.jar, it doesn't work, with errors from inside rife jar... So I tried to compile rife from svn repository. And then I get this error with build-1.5.xml: precompileSqlTemplates: [echo] Precompiling sql templates: [java] The path '.project' is not a directory. BUILD FAILED C:\DEV\Rife\rife-svn\build-1.5.xml:347: Java returned: 1 I'm working with Eclipse+Subclipse under Windows XP. Even if I add some "-e" parameter, I get System.exit from TemplateDeployer's ctor with file name as ".project". In fact TemplateDeployer checks directory names in its ctor, before the exclusion step in its execute function. May I suggest to replace the exit instructions in the ctor by continue ones (just keep the warnings). Other issue: in target "precompileSqlTemplates", there is an include parameter, This pattern becomes ".classpath" in TemplateDeployer.main. I don't really understand this behavior. May be because ${dbdriver}= "*", so the final pattern is equivalent to ".*"? Anyhow with the pattern ".classpath", none of the sql templates are found by TemplateException execute. Is it at purpose, to avoid taking in account any sql files if no driver is specified? Regards Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] RIFE Authentication
OK Geert, Now I've setup an element called UserHome that points to a url '/user/home' and another element called Registration that takes you to '/register' and allows you to be added to the user database. Registration works perfectly... no exceptions, expected errors if you ommit something etc etc. After a Registration, the user is exited to the UserHome element. This also works as expected. Now, I have setup a 'User' element that extends 'rife/authenticated/database.xml' as per the docs As the UserHome is working as expected, I decided to make it inherit the User element. This seems to work, as UserHome now forces a Login page as expected. At the the login page, I enter the user credentials (for 'foobar', I just added through the registration page), but nothing happens; it just returns to the Login page. I double-checked to make sure the user is indeed in the database, as when I try to readd him, i get the following exception: [java] SEVERE: com.uwyn.rife.authentication.credentialsmanagers.exceptions.DuplicateLoginException: The login 'foobar' is already present. The following is how the element and subsite are defined: user derby SHA login.Login cookie Any Pointers? Thanks, Emmanuel On 11/11/05, Emmanuel Okyere <[EMAIL PROTECTED]> wrote: > nah, don't sweat it... just think its wierd that when you drop the jar > in the webinf/lib folder, it does find the classes it needs, and then > just throws errors out of the blue... thx.. this setup works now.. > plus i only need derby for testing anyways... thx > > Emmanuel > > On 11/11/05, Geert Bevin <[EMAIL PROTECTED]> wrote: > > I suspect it's some weird classloading issue, but tracking this down > > is extremely tedious since it could be something in Derby, the > > servlet container, RIFE or another 3rd party lib. > > > > I doubt I ever have time to track it down. > > > > On 11-nov-05, at 16:35, Emmanuel Okyere wrote: > > > btw, do you know why this happens? thx > > > > > > Emmanuel > > > > -- > > Geert Bevin Uwyn bvba > > "Use what you need" Avenue de Scailmont 34 > > http://www.uwyn.com 7170 Manage, Belgium > > gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > > > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > > > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://www.uwyn.com/mailman/listinfo/rife-users > > > ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] AspectJ bis
Nope, it's only in the build file. Not making the java process fork to execute the template precompilation prevents ant on Windows to apply the file globbing to the parameters. On 14-nov-05, at 12:35, Raoul Pierre wrote: Geert, Mmmm, is there any change in an other place than build-1.5.xml? For this last one, revision 2663 is the same than before (flip flop with r2662...) Pierre -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] AspectJ bis
Geert, Mmmm, is there any change in an other place than build-1.5.xml? For this last one, revision 2663 is the same than before (flip flop with r2662...) Pierre Hi Pierre, this was a weird problem on Windows with the java ant task parameters being extrapolated as against an active command prompt, hence it picked up the actual files on the file system instead of passing the parameters to the executed class. I committed a fix, it should now build on Windows. Best regards, Geert On 14-nov-05, at 01:18, Raoul Pierre wrote: Geert, I'm still trying to get AspectJ working with Rife. Atm, as far as joinpoints are in my projects it's ok. But when I try to define a poincut with some joinpoints in rife-1.3-snapshot-jdk15.jar, it doesn't work, with errors from inside rife jar... So I tried to compile rife from svn repository. And then I get this error with build-1.5.xml: precompileSqlTemplates: [echo] Precompiling sql templates: [java] The path '.project' is not a directory. BUILD FAILED C:\DEV\Rife\rife-svn\build-1.5.xml:347: Java returned: 1 I'm working with Eclipse+Subclipse under Windows XP. Even if I add some "-e" parameter, I get System.exit from TemplateDeployer's ctor with file name as ".project". In fact TemplateDeployer checks directory names in its ctor, before the exclusion step in its execute function. May I suggest to replace the exit instructions in the ctor by continue ones (just keep the warnings). Other issue: in target "precompileSqlTemplates", there is an include parameter, This pattern becomes ".classpath" in TemplateDeployer.main. I don't really understand this behavior. May be because ${dbdriver}= "*", so the final pattern is equivalent to ".*"? Anyhow with the pattern ".classpath", none of the sql templates are found by TemplateException execute. Is it at purpose, to avoid taking in account any sql files if no driver is specified? Regards Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users