logo       

Re: latest jbossweb-jetty: msg#00018

java.jetty.general

Subject: Re: latest jbossweb-jetty

Many thanks Jan. Your advise works. An example of correct setup is on http://www.bytes2business.de/b2b_app/forumdetail.jsp?entry_id=408 as well. Peter

Jan Bartel wrote:

Peter,

The error is occuring in some new code that fixes the problem with jaas logout() methods not being invoked in jboss (see emails on this list with the subject: "JAAS logout() still broken").

We use the realm-name in the fix to force jboss to flush the authenticated principal from it's internal cache, which has the side-effect of calling the jaas module logout() method.

You're getting the null pointer because you haven't specified a <realm-name> element in the <login-config> element of your web.xml file.

So, if you want to avoid the exception, you can just specify a <realm-name> that is the same as your jboss-web.xml <security-domain> element minus the java:jaas prefix.

It is probably better for us to use the <security-domain> element instead of requiring a <realm-name>, so I'll look into modifying the patch.

cheers
Jan



Peter Ondruska wrote:

I'll need to find out how to force JBoss to log stack trace. Meanwhile This is <category name="org.jboss.jetty">
<priority value="TRACE" class="org.jboss.jetty.security.JBossUserRealm" />
</category>
output:

2004-09-05 08:29:47,419 DEBUG [org.jboss.jetty.security.JBossUserRealm#null] JBossUserPrincipal: ondruska
2004-09-05 08:29:47,422 DEBUG [org.jboss.jetty.security.JBossUserRealm#null] created JBossUserRealm::JBossUserPrincipal: ondruska
2004-09-05 08:29:47,422 DEBUG [org.jboss.jetty.security.JBossUserRealm#null] authenticating: Name:ondruska Password:****
2004-09-05 08:29:47,698 DEBUG [org.jboss.jetty.security.JBossUserRealm#null] authenticated: ondruska
2004-09-05 08:29:47,699 DEBUG [org.jboss.jetty.security.JBossUserRealm#null] setting JAAS subjectAttributeName(j_subject) : Subject:
Principal: ondruska
Principal: Roles(members:fajx)

2004-09-05 08:29:47,716 DEBUG [org.jboss.jetty.security.JBossUserRealm#null] authenticating: Name:ondruska Password:****
2004-09-05 08:29:47,716 DEBUG [org.jboss.jetty.security.JBossUserRealm#null] authenticated: ondruska
2004-09-05 08:29:47,726 DEBUG [org.jboss.jetty.security.JBossUserRealm#null] JBossUserPrincipal: ondruska is NOT in Role: role1
2004-09-05 08:29:47,726 DEBUG [org.jboss.jetty.security.JBossUserRealm#null] JBossUserPrincipal: ondruska is NOT in Role: role2
2004-09-05 08:29:47,726 DEBUG [org.jboss.jetty.security.JBossUserRealm#null] JBossUserPrincipal: ondruska is in Role: fajx
2004-09-05 08:29:53,471 INFO [org.jboss.jetty.security.JBossUserRealm#null] logout for ondruska
2004-09-05 08:29:53,474 ERROR [org.jboss.jetty.security.JBossUserRealm#null] RuntimeMBeanException: java.lang.NullPointerException
Cause: java.lang.NullPointerException


The logout servlet is just a Struts action:

// Invalidate the current session and create a new one
HttpSession session = request.getSession();
session.invalidate();
session = request.getSession(true);
// Forward control back home
return (mapping.findForward("home"));


Jan Bartel wrote:

Peter,

can you send a full stack trace of this?

thanks
Jan


Peter Ondruska wrote:

I just upgraded to latest jboss-jetty (3.2.5 - 4.2.22) and after logout (either timout or forced) I get this error:

[13:51:43,844,JBossUserRealm#null] RuntimeMBeanException:
java.lang.NullPointerException
Cause: java.lang.NullPointerException

Nothing else happens. Can this be ignored?


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
jetty-discuss mailing list
jetty-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jetty-discuss






-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
jetty-discuss mailing list
jetty-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jetty-discuss




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
jetty-discuss mailing list
jetty-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jetty-discuss




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
jetty-discuss mailing list
jetty-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jetty-discuss




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise