You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Je suis la poubelle <la...@gmail.com> on 2009/03/26 11:52:48 UTC
In server.xml, what if element isn't specified within a
element?
This is actually a following to another post of mine titled "How to make
Tomcat serve/listen to one more port?"
When I implemented my method of adding a new <Service> element in
server.xml in order to make Tomcat serve one more port, I seem to have
user/authentication problem within VMWare Server 2.
I thought the problem came from the fact that I duplicated an existent
<Service> element, and in that element, there's this <Realm> element:
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
But in Tomcat's official doc about "Realm" (
http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html), I can't find
anything about the "resourceName" attribute. So I suppose both websites are
accessing the same "UserDatabase", right?
So I remove the <Realm> element from the new <Service> element, and the
problem seems to have gone. But I'm not sure what I've done is correct: so
what happens if there's no <Realm> element within a <Service> element?
Tomcat doc doesn't seem to have any mention of it....
Re: In server.xml, what if element isn't specified within
a element?
Posted by Mark Thomas <ma...@apache.org>.
Je suis la poubelle wrote:
> This is actually a following to another post of mine titled "How to make
> Tomcat serve/listen to one more port?"
>
> When I implemented my method of adding a new <Service> element in
> server.xml in order to make Tomcat serve one more port, I seem to have
> user/authentication problem within VMWare Server 2.
>
> I thought the problem came from the fact that I duplicated an existent
> <Service> element, and in that element, there's this <Realm> element:
>
> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase"/>
>
> But in Tomcat's official doc about "Realm" (
> http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html), I can't find
> anything about the "resourceName" attribute. So I suppose both websites are
> accessing the same "UserDatabase", right?
>
> So I remove the <Realm> element from the new <Service> element, and the
> problem seems to have gone. But I'm not sure what I've done is correct: so
> what happens if there's no <Realm> element within a <Service> element?
> Tomcat doc doesn't seem to have any mention of it....
Tomcat will use the JAASRealm if no other Realm is defined.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org