It works :-D but after every edit I restarted the server, it is very strange :-S
Thank you very much :-) On 5/2/05, David Smith <[EMAIL PROTECTED]> wrote: > In addition to the advice below, did you restart Tomcat after updating > tomcat-users.xml? Last I knew this file wasn't reparsed after startup. > Could be wrong on that though. > > If you want the authentication to be updateable while tomcat is running, > use a database realm. Docs should be available in server.xml. > > --David > > Anto Paul wrote: > > >On 5/2/05, Nir Tayeb <[EMAIL PROTECTED]> wrote: > > > > > >>I will try to explain, > >> > >>When I enter the default web app > >>($CATALINA_HOME/webapps/ROOT/index.jsp) by typing 127.0.0.1:8080 in > >>the address-bar. > >> > >>In the side bar I choose "Tomcat manager" under "Administration" and I > >>am prompted for a username and a password. > >> > >>Trying to login with "manager" or "admin" roles failes. > >> > >>What can I do? > >> > >>On 5/1/05, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > >> > >> > >>>>From: Nir Tayeb [mailto:[EMAIL PROTECTED] > >>>>Subject: Re: Tomcat Administration problem > >>>> > >>>>I have created a user with a role of "manager", and I login with his. > >>>>but yet, the server prompt me for a username and password. > >>>> > >>>> > >>>The "manager" role is for the manager app; you must have an "admin" role > >>>to use the admin app. > >>> > >>> - Chuck > >>> > >>>THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > >>>MATERIAL and is thus for use only by the intended recipient. If you > >>>received this in error, please contact the sender and delete the e-mail > >>>and its attachments from all computers. > >>> > >>>--------------------------------------------------------------------- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > >> > > > >You should have a similar entry to the following in conf\tomcat-users.xml. > ><user username="manager" password="" roles="manager"/> > >This declares the user manager has access to manager application > >without any password. > > > > For above configuration to work you need to configure Tomcat to > >use the tomcat-users.xml to read user authentication information. > >Tomcat is shipped configured to use this setup. If somebody has > >changed it to use database or any other authentication realm you will > >have to add the manager username,password and role in that realm. > > You can check which configuration Tomcat is using by looking for > >the <Realm/> element in server.xml. Mine is > > > ><Realm className="org.apache.catalina.realm.UserDatabaseRealm" > > debug="0" resourceName="UserDatabase"/> > > > >This uses the UserDatabaseRealm which reads the file conf\tomcat-users.xml > > > >Hope this helps > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]