Hi Emmanuel,

you need to set the datasource like this:
<property name="datasource"><datasource>datasource</datasource></ property>

Just as for the authentication element.

Best regards,

Geert

On 15-nov-05, at 17:03, Emmanuel Okyere wrote:

Geert,

I am trying to use the logout function of the authentication module.

The logout element is defined as:

        <element id="Logout" url="logout"
extends="rife/logout/passthrough/database.xml">
                        <property name="datasource">datasource</property>
                        <property name="authvar_type">cookie</property>
                        
                        <incookie name="rememberid"/>
                        <outcookie name="rememberid"/>
                        
                        <flowlink srcexit="logged_out" destid="Home"/>
        </element>

When a I navigate too 'appurl/logout' I get the exception stack trace
posted below:

[java] Nov 15, 2005 10:56:35 AM com.uwyn.rife.engine.Gate handleRequest
[java] SEVERE: Error on host localhost:8999/
[java] java.lang.ClassCastException: java.lang.String
[java] at com.uwyn.rife.authentication.elements.DatabaseLogoutPassthrough.initia lize(DatabaseLogoutPassthrough.java:28) [java] at com.uwyn.rife.engine.ElementContext.processContext (ElementContext.java:582) [java] at com.uwyn.rife.engine.RequestState.service (RequestState.java:217)
[java]     at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:422)
[java]     at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:240)
[java] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
[java]     at java.lang.reflect.Method.invoke(Method.java:585)
[java] at com.uwyn.rife.servlet.RifeFilter.doFilter (RifeFilter.java:112) [java] at org.mortbay.jetty.servlet.WebApplicationHandler $CachedChain.doFilter(WebApplicationHandler.java:823) [java] at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch (WebApplicationHandler.java:473) [java] at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:567) [java] at org.mortbay.http.HttpContext.handle(HttpContext.java: 1565) [java] at org.mortbay.jetty.servlet.WebApplicationContext.handle (WebApplicationContext.java:635) [java] at org.mortbay.http.HttpContext.handle(HttpContext.java: 1517)
[java]     at org.mortbay.http.HttpServer.service(HttpServer.java:954)
[java] at org.mortbay.http.HttpConnection.service (HttpConnection.java:814) [java] at org.mortbay.http.HttpConnection.handleNext (HttpConnection.java:981) [java] at org.mortbay.http.HttpConnection.handle (HttpConnection.java:831) [java] at org.mortbay.http.SocketListener.handleConnection (SocketListener.java:244) [java] at org.mortbay.util.ThreadedServer.handle (ThreadedServer.java:357) [java] at org.mortbay.util.ThreadPool$PoolThread.run (ThreadPool.java:534)

Any pointers?

Thanks,
Emmanuel


On 11/14/05, Emmanuel Okyere <[EMAIL PROTECTED]> wrote:
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 com    Tel +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
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users


_______________________________________________
Rife-users mailing list
[email protected]
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 com    Tel +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
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to