RE: Tomcat UserDatabase
Hi, Tomcat-users.xml is a plain file: you can edit it manually or using a programmatic file I/O API. Alternatively, you can use JMX to invoke operations on the MemoryUserDatabase(Factory) classes: for that you code should be within a privileged context (it's a context attribute) and the common classloader repository. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Robert Harper [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 16, 2004 11:00 AM >To: Tomcat Users >Subject: Tomcat UserDatabase > >Is there an accepted way for an application to directly access/manipulate >the >tomcat-users.xml database? I would like to automate the process of adding >users >from my servlet but I am having a hard time finding documentation/samples >of how >to do this. It may just be that I don't know how to grant access to this >resource to my app. I have added a line like > > > >grant codeBase "file:${catalina.home}/webapps/my_appt/WEB-INF/classes/-" { > >permission java.security.AllPermission; > >}; > > > >to the catalina.policy file. My code compiles but I get a > > > >java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm > > > >error that I assume is due to an access restriction. > > > >Any ideas? Thanks in advance. > > > >Robert > > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Userdatabase
Hi Sjoerd, It's in /tomcat/conf/tomcat-users.xml should look like this: ## ### then restart tomcat and voila! you're in :-) kind regards, Luke On Thu, 2003-08-21 at 05:15, Sjoerd van Leent wrote: > I installed the last binary build on my system, however, I need access > to the manager web application, but I don't know the username/password. > Where can I find this, or what is this password in general? > > Sjoerd van Leent > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- "when my computer smiles, I'm happy" Luke Vanderfluit Mobile: 0421 276 282 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Userdatabase
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html -chris > -Original Message- > From: Sjoerd van Leent [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 20, 2003 3:45 PM > To: 'Tomcat Users List' > Subject: Tomcat Userdatabase > > > I installed the last binary build on my system, however, I need access > to the manager web application, but I don't know the > username/password. > Where can I find this, or what is this password in general? > > Sjoerd van Leent > > > > - > 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]
Re: Tomcat Userdatabase
you can set it in tomcat-users.xml, e.g.: On Wednesday 20 August 2003 3:45 pm, Sjoerd van Leent wrote: > I installed the last binary build on my system, however, I need access > to the manager web application, but I don't know the username/password. > Where can I find this, or what is this password in general? > > Sjoerd van Leent > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Pablo Mayrgundter Director of Applications and Services www.reeltwo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Userdatabase
Try in conf/tomcat-users.xml. - Original Message - From: "Sjoerd van Leent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 20, 2003 8:58 PM Subject: RE: Tomcat Userdatabase > I installed the last binary build on my system, however, I need access > to the manager web application, but I don't know the username/password. > Where can I find this, or what is this password in general? > > Sjoerd van Leent > > > > - > 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]
RE: Tomcat Userdatabase
I installed the last binary build on my system, however, I need access to the manager web application, but I don't know the username/password. Where can I find this, or what is this password in general? Sjoerd van Leent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]