administration webapp
Hello list. Just joined the list and I'm very new to Tomcat. I have a problem accessing the administration webapp and manager webapp links from the default Tomcat home page. The following is listed on the home page: NOTE: For security reasons, using the administration webapp is restricted to users with role admin. The manager webapp is restricted to users with role manager. Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users And this is a snippet from server.xml : Realm className=org.apache.catalina.realm.MemoryRealm debug=99 digest=MD2 / I've looked at the manuals, etc. but it just does not seem to work - access always fails. Can anyone see the obvious mistake here. Thanks in advance. -- Michael Simpson Systems Development Express Newspapers mailto:[EMAIL PROTECTED] 020-7922-7225 (w) 020-7922-7799 (f) -- The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###2004### Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. E-mail communications may be monitored. ##EXN2000## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: administration webapp
Hi, This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users So the express user has the admin and manager roles, but those roles are not defined. Add two lines to the file, role rolename=manager / role rolename=admin / Restart Tomcat, and try again. Yoav 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: administration webapp
Hi Yoav. I actually tried that bit of code before - tried again just now and still does not work. Error generated is Invalid username or password. Anything else I can check? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 13:50 To: Tomcat Users List Subject: RE: administration webapp Hi, This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users So the express user has the admin and manager roles, but those roles are not defined. Add two lines to the file, role rolename=manager / role rolename=admin / Restart Tomcat, and try again. Yoav 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] The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###EXN2004### _ Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. Email communications may be monitored ##EXN2000## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: administration webapp
Hi, I actually tried that bit of code before - tried again just now and still does not work. Error generated is Invalid username or password. For me, it's pretty trivial. Download Tomcat .zip, expand. Edit conf/tomcat-users.xml with Notepad, add roles for manager/admin, and a user with those roles. Start Tomcat. And it works. I just did it again from scratch before typing this message. I'd be careful not to use international characters in your user name and role names. Don't modify the Realm definition initially either. But other than that, I don't know what else to check, this is a trivial thing usually ;) Yoav 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: administration webapp
Hi, Make the following the entire contents of your tomcat-users.xml file and all will be happy. ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=express/ role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users Andoni. - Original Message - From: Michael Simpson [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 14, 2004 2:26 PM Subject: RE: administration webapp Hi Yoav. I actually tried that bit of code before - tried again just now and still does not work. Error generated is Invalid username or password. Anything else I can check? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 13:50 To: Tomcat Users List Subject: RE: administration webapp Hi, This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users So the express user has the admin and manager roles, but those roles are not defined. Add two lines to the file, role rolename=manager / role rolename=admin / Restart Tomcat, and try again. Yoav 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] The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###EXN2004### _ Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. Email communications may be monitored ##EXN2000## - 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: administration webapp
Hi Andoni Yoav. Tried what Andoni recommended - no joy. From the documentation, inorder to access admin and manager webapp the user must have those respective roles. I've commented out the Realm code in server.xml, so effectively there no encyption on any passwords, just the password authentification from tomcat-users.xml. Tried Yoav's suggestion of defining rolenames for admin and manager - no joy. I agree with you Yoav - it is a trivial thing, but it's not working. A couple of questions: a) does Apache need to be restarted (aswell as tomcat) when any changes are made to tomcat-user.xml, etc.? b) which file can I look in to check $CATALINA_HOME? Thanks. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 14:43 To: Tomcat Users List Subject: Re: administration webapp Hi, Make the following the entire contents of your tomcat-users.xml file and all will be happy. ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=express/ role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users Andoni. - Original Message - From: Michael Simpson [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 14, 2004 2:26 PM Subject: RE: administration webapp Hi Yoav. I actually tried that bit of code before - tried again just now and still does not work. Error generated is Invalid username or password. Anything else I can check? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 13:50 To: Tomcat Users List Subject: RE: administration webapp Hi, This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users So the express user has the admin and manager roles, but those roles are not defined. Add two lines to the file, role rolename=manager / role rolename=admin / Restart Tomcat, and try again. Yoav 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] The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###EXN2004### _ Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. Email communications may be monitored ##EXN2000## - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: administration webapp
In server.xml, I'm not exactly sure what MD2 is. I know what MD5 is, and it's clear that your passwords in tomcat-users.xml are clear text. Try removing digest= from Realm and restart. -Original Message- From: Michael Simpson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 7:08 AM To: '[EMAIL PROTECTED]' Subject: administration webapp Hello list. Just joined the list and I'm very new to Tomcat. I have a problem accessing the administration webapp and manager webapp links from the default Tomcat home page. The following is listed on the home page: NOTE: For security reasons, using the administration webapp is restricted to users with role admin. The manager webapp is restricted to users with role manager. Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users And this is a snippet from server.xml : Realm className=org.apache.catalina.realm.MemoryRealm debug=99 digest=MD2 / I've looked at the manuals, etc. but it just does not seem to work - access always fails. Can anyone see the obvious mistake here. Thanks in advance. -- Michael Simpson Systems Development Express Newspapers mailto:[EMAIL PROTECTED] 020-7922-7225 (w) 020-7922-7799 (f) -- The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###2004### Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. E-mail communications may be monitored. ##EXN2000## - 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: administration webapp
Hi, I've commented out the Realm code in server.xml, so effectively there no encyption on any passwords, just the password authentification from tomcat-users.xml. What I said is not to comment out the Realm or modify it at all. The Realm and encryption are not one and the same. You must have a Realm to authenticate for the manager and admin webapps. a) does Apache need to be restarted (aswell as tomcat) when any changes are made to tomcat-user.xml, etc.? Generally no. But also generally, at the beginning you should turn off Apache and just work with Tomcat standalone, especially for basic issues like this. b) which file can I look in to check $CATALINA_HOME? It's a variable setting, it's not in a file. Check your environment variables to see if it's set specifically. If it's not set, Tomcat will deduce it as the parent directory above the bin directory. Yoav 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: administration webapp
Hi James. This is from the Digest documentation: The value for this attribute must be one of the digest algorithms supported by the java.security.MessageDigest class (SHA, MD2, or MD5). Tried it with MD5 and the digest param commented out - no joy. Yoav: bear with me, but how would I check the environment variable? Thanks. -Original Message- From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 15:35 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: administration webapp In server.xml, I'm not exactly sure what MD2 is. I know what MD5 is, and it's clear that your passwords in tomcat-users.xml are clear text. Try removing digest= from Realm and restart. -Original Message- From: Michael Simpson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 7:08 AM To: '[EMAIL PROTECTED]' Subject: administration webapp Hello list. Just joined the list and I'm very new to Tomcat. I have a problem accessing the administration webapp and manager webapp links from the default Tomcat home page. The following is listed on the home page: NOTE: For security reasons, using the administration webapp is restricted to users with role admin. The manager webapp is restricted to users with role manager. Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users And this is a snippet from server.xml : Realm className=org.apache.catalina.realm.MemoryRealm debug=99 digest=MD2 / I've looked at the manuals, etc. but it just does not seem to work - access always fails. Can anyone see the obvious mistake here. Thanks in advance. -- Michael Simpson Systems Development Express Newspapers mailto:[EMAIL PROTECTED] 020-7922-7225 (w) 020-7922-7799 (f) -- The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###2004### Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. E-mail communications may be monitored. ##EXN2000## - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting up Administration-Webapp in 4.1.x
Hello Tomcat-users, I'm using jdk1.4.0 on Win2000. I tried this using several 4.1.x prebuilts. Accessing /admin results in an 500... org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE As I could not find other msgs on tomcat-user/tomcat-dev regarding this problem it should be my config. I'm using tomcat out of the box, applied no changes to the tomcat-config. admin-log says 2002-06-02 14:08:04 StandardContext[/admin]: Servlet /admin threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.webapp.admin.ApplicationServlet or a class it depends on Searching the web I found that this might be a classpath issue, but my system-classpath is empty. I don't know enough about struts to figure this out myself. Regards Thanks for help, Thomas mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Administration Webapp
Hi All Could someone please tell what username and password is used to access the Administration webapp??. Thanks Adrian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Administration Webapp
You need to look at tomcat-users.xml under /tomcat/conf You have to assign the role to a user . Example below: !-- NOTE: By default, no user is included in the manager role required to operate the /manager web application. If you wish to use this app, you must define such a user - the username and password are arbitrary. -- tomcat-users user name=tomcat password=secret roles=tomcat,manager / /tomcat-users - Original Message - From: Adrian Threlfall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 02, 2002 4:39 PM Subject: Administration Webapp Hi All Could someone please tell what username and password is used to access the Administration webapp??. Thanks Adrian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]