Instructions for enabling access to Tomcat Manager servlet on Silver Fabric 5.8.0
book
Article ID: KB0084013
calendar_today
Updated On:
Description
NOTE: Silver Fabric 5.8.0 uses Tomcat version 6.0.41 and is subject to change in future versions of Silver Fabric. The following instructions only apply to authenticating to the Tomcat Manager Servlet using the default MemoryRealm, ie., tomcat-users.xml.
Make sure that you only edit server.xml, context.xml and tomcat-users.xml files from under [SF_MANAGER_INSTALLATION_ROOT]\fabric\conf.
1). Download Tomcat 6.0.41 from http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.41/bin/
2). Copy the manager app (the entire 'manager' directory) from under
"[apache-tomcat-6.0.41]\webapps\" to "[SF_MANAGER_INSTALLATION_ROOT]\fabric\webapps\"
3). Add the property privileged="true" to the existing <Context> tag
in the context.xml under "[SF_MANAGER_INSTALLATION_ROOT]\fabric\conf" .
Example:
<Context privileged="true">
4). Add the "manager" role, create a new user and assign the "manager" role to the user in the tomcat-users.xml file under "[SF_MANAGER_INSTALLATION_ROOT]\fabric\conf" using a text editor.
Example:
<role rolename="datasynapse"/>
<role rolename="manager"/>
<user username="datasynapse" password="datasynapse" roles="datasynapse,manager"/>
5). Edit the server.xml file under "[SF_MANAGER_INSTALLATION_ROOT]\fabric\conf" ,
a). Copy the following tag immediately after this line <Listener
className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on"/> in the server.xml file.
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
b). Copy the following tag immediately after this line <Engine
name="Catalina" defaultHost="localhost"> in the server.xml file.
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
6). Restart the manager.
7). Verify you are able to access "http://[hostname]:[8080]/manager/html" , with the credentials datasynapse/datasynapse.
Issue/Introduction
Instructions for enabling access to Tomcat Manager servlet on Silver Fabric 5.8.0
Feedback
thumb_up
Yes
thumb_down
No