tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noah, Craig [USA]" <>
Subject RE: Configuring users
Date Mon, 15 Nov 2010 16:21:22 GMT
I don't remember making changes to the server.xml file, but here is mine:

<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

    <Resource name="UserDatabase" auth="Container"
              description="User database that can be updated and saved"
              pathname="conf/tomcat-users.xml" />

  <Service name="Catalina">
    <Connector port="8080" protocol="HTTP/1.1" 
               redirectPort="8443" />
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">


-----Original Message-----
From: Mark Thomas [] 
Sent: Monday, November 15, 2010 10:13 AM
To: Tomcat Users List
Subject: Re: Configuring users

On 15/11/2010 16:07, Noah, Craig [USA] wrote:
> Thanks, that's better.  I get prompted for a username and password, but it
> won't accept the values I've configured.  No, I don't have caps lock
> on.

OK. Moving in the right direction.

Clearly, from the URL you provided, the default server.xml isn't being
used. Has the Realm definition been changed? A copy of the complete
server.xml (less comments with any sensitive info replaced with ***) is
the next thing to look at.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message