Bugs item #673669, was opened at 2003-01-23 15:08 Message generated for change (Comment added) made by bstansberry You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=673669&group_id=22866
Category: CatalinaBundle Group: v3.0 Rabbit Hole >Status: Closed Resolution: None Priority: 5 Submitted By: Brian Stansberry (bstansberry) Assigned to: Scott M Stark (starksm) Summary: Tomcat's Single Sign On valve throws NullPointer Initial Comment: Using the JBoss3.0.4/Tomcat4.1.12 bundle. As per the jboss forums, the way to implement single sign on is to add a valve element to tomcat41- service.xml: <Valve className="org.apache.catalina.authenticator.SingleSig nOn" prefix="SSO" suffix=".log" pattern="common" directory="../server/default/log"/> As discussed in http://www.jboss.org/forums/thread.jsp? forum=49&thread=8141&message=3749866, doing this results in an error during JBoss startup: 08:37:23,515 ERROR [Digester] Begin event threw exception java.lang.NullPointerException at org.apache.catalina.authenticator.SingleSignOn.toString (SingleSignOn.java:414) at java.lang.String.valueOf(String.java:1947) at java.lang.StringBuffer.append(StringBuffer.java:370) at org.apache.commons.beanutils.BeanUtils.populate (BeanUtils.java:710) at org.apache.commons.digester.SetPropertiesRule.begin (SetPropertiesRule.java:259) at org.apache.commons.digester.Digester.startElement (Digester.java:1237) at org.jboss.web.catalina.LoggedXmlMapper.startElement (LoggedXmlMapper.java:60) at org.apache.xalan.transformer.TransformerIdentityImpl.sta rtElement(TransformerIdentityImpl.java:1017) at org.apache.xml.utils.TreeWalker.startNode (TreeWalker.java:346) at org.apache.xml.utils.TreeWalker.traverse (TreeWalker.java:167) This is really due to a Tomcat bug; their toString() method references member "container" w/o confirming it's not null. I've submitted that to Tomcat (bug #16378). But, in case Tomcat doesn't fix it, I thought JBoss might appreciate a patch for your integrated bundle. The attached class subclasses org.apache.catalina.authenticator.SingleSignOn and overrides toString() to prevent the NullPointer. If this were included in JBoss in, for example, the org.jboss.web.catalina package, users could add a Valve entry as follows: <Valve className="org.jboss.web.catalina.SingleSignOnValve" prefix="SSO" suffix=".log" pattern="common" directory="../server/default/log"/> I've tested a version of this (packaged in our namespace, not org.jboss) this and it works fine. ---------------------------------------------------------------------- >Comment By: Brian Stansberry (bstansberry) Date: 2004-03-15 22:23 Message: Logged In: YES user_id=695688 This has been fixed in Tomcat. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=673669&group_id=22866 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
