Bugs item #673669, was opened at 2003-01-23 15:08
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: Open
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.


----------------------------------------------------------------------

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:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to