tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: Catalina: Adding a new realm
Date Mon, 28 Aug 2000 18:19:05 GMT
James, could you try an experiment for me?

Please temporarily rename your class so that the package name starts with
"org.apache.catalina." and see if it works?  There might be an issue with which
class loader is being consulted to load your class.  It would also be helpful to
turn debugging on so we can see the XmlMapper's output, by setting the "debug"
attribute on the <Server> element to a positive integer like 5.

Then, if you're still having problems, the log output created by the XmlMapper
(which will be somewhat voluminous) will be helpful in tracking down what's going


James Cook wrote:

> I have created my own Realm to do some custom authentication. It is based on
> JDBCRealm and extends RealmBase.
> For some reason, I can't seem to successfully add it to server.xml.
>   <Realm className="" debug="99"
>     vbrokerAddr="ITAOA125"
>     vbrokerPort="49200" />
> I have the appropriate methods defined in my class. I have even tried to deploy
> it without any parameters, without success.
>     public void setVbrokerAddr(String newVbrokerAddr)
>     public void setVbrokerPort(String newVbrokerPort)
> But I get the following exception when Catalina tries to start:
> ERROR reading d:\projects\notes-servlet\servlet\server.xml
> At Line 52 /Server/Engine/Realm/
> Catalina.start: java.lang.IllegalArgumentException: argument type mismatch
> java.lang.IllegalArgumentException: argument type mismatch
>  at java.lang.reflect.Method.invoke(Native Method)
>  at org.apache.tomcat.util.xml.AddChild.end(
>  at org.apache.tomcat.util.xml.XmlMapper.matchEnd(
>  at org.apache.tomcat.util.xml.XmlMapper.endElement(
>  at com.sun.xml.parser.Parser.maybeElement(
>  at com.sun.xml.parser.Parser.content(
>  <snip>
> The JDBCRealm loads fine!? Did I forget to do something obvious? I have added my
> Realm classes and supporting jar files into <catalina_home>/classes.
> jim
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

See you at ApacheCon Europe <>!
Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
                                    Applications to Tomcat

View raw message