You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lopez David E-r9374c <r9...@motorola.com> on 2003/05/12 20:10:37 UTC

Can't get /manager working on 4.1.18

Gurus

My win2k standalone tomcat installation has a web interface
to start, stop, & reload apps. I like it. I sold it to the boss.
However, when I moved the app to pre-production, the manager 
servlet no longer works (Solaris 8, tomcat 4.1.18, apache 1.3.26).
The error is a server error message from apache (boiler plate
error message that asks to contact web admin person).

I did check the list archives and the how-to on jakarta web site.
No luck on list archives and the how-to says the web servlet
interface is in the future (written around 4.0.7?).

I did add a separate logger and in the <context> tag to further
isolate the problem and is enclosed below. In fact all the relevant
files or portions of them are enclosed.

>From the web, I tried http://domain/manager/html and /manager/list 
where domain is the internal host domain name. The problem appears
to me in the security/authentication area but I don't have enough 
knowledge to fix it. 

Can anyone point me in the right direction?

Thanks in advance.

David

*********************************************************

file: conf/server.xml
---------------------
        <Context path="/manager" docBase="/opt/jakarta/4.1.18/server/webapps/manager"
                       debug="8" privilged="true">

          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="manager_log." suffix=".txt"
        	  timestamp="true"/>


                 <!-- Link to the user database we will get roles from -->
                 <ResourceLink name="users" global="UserDatabase"
                               type="org.apache.catalina.UserDatabase"/>

       </Context>


file conf/tomcat-users.xml
--------------------------
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="role1"/>
  <role rolename="admin"/>
  <role rolename="tomcat"/>
  <role rolename="manager"/>
  <user username="mngr2" password="secret" roles="admin,manager"/>
  <user username="mngr1" password="secret" roles="admin,manager"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
</tomcat-users>

file: conf/auto/mod_jk.conf
---------------------------

    #################### csamtest.sps.mot.com:/manager ####################

    # Static files 
    Alias /manager "/opt/jakarta/4.1.18/server/webapps/manager"

    <Directory "/opt/jakarta/4.1.18/server/webapps/manager">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/manager/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/manager/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /manager/*.jsp  ajp13
    JkMount /manager/html/*  ajp13
    JkMount /manager/*  ajp13


file logs/manager_log.2003-05-09.txt
------------------------------------

2003-05-09 17:48:51 StandardContext[/manager]: Starting
2003-05-09 17:48:51 StandardContext[/manager]: Processing start(), current available=false
2003-05-09 17:48:51 StandardContext[/manager]: Configuring default Resources
2003-05-09 17:48:51 StandardContext[/manager]: Configuring non-privileged default Loader
2003-05-09 17:48:51 StandardContext[/manager]: Configuring default Manager
2003-05-09 17:48:51 StandardContext[/manager]: Processing standard container startup
2003-05-09 17:48:51 WebappLoader[/manager]: Deploying class repositories to work directory /opt/jakarta/4.1.18/work/Standalone/csamtest.sps.mot.com/manager
2003-05-09 17:48:51 ContextConfig[/manager]: ContextConfig: Processing START
2003-05-09 17:48:51 StandardContext[/manager]: Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
2003-05-09 17:48:52 StandardContext[/manager]: Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
2003-05-09 17:48:52 ContextConfig[/manager]:  Accumulating TLD resource paths
2003-05-09 17:48:52 ContextConfig[/manager]:   Scanning <taglib> elements in web.xml
2003-05-09 17:48:52 ContextConfig[/manager]:   Scanning TLDs in /WEB-INF subdirectory
2003-05-09 17:48:52 ContextConfig[/manager]:   Scanning JARs in /WEB-INF/lib subdirectory
2003-05-09 17:48:52 Authenticator[/manager]: No SingleSignOn Valve is present
2003-05-09 17:48:52 ContextConfig[/manager]: Configured an authenticator for method BASIC
2003-05-09 17:48:52 ContextConfig[/manager]: Pipline Configuration:
2003-05-09 17:48:52 ContextConfig[/manager]:   org.apache.catalina.authenticator.BasicAuthenticator/1.0
2003-05-09 17:48:52 ContextConfig[/manager]:   org.apache.catalina.core.StandardContextValve/1.0
2003-05-09 17:48:52 ContextConfig[/manager]: ======================
2003-05-09 17:48:52 NamingContextListener[/Standalone/csamtest.sps.mot.com/manager]: Creating JNDI naming context
2003-05-09 17:48:52 NamingContextListener[/Standalone/csamtest.sps.mot.com/manager]:   Resource parameters for users = null
2003-05-09 17:48:52 NamingContextListener[/Standalone/csamtest.sps.mot.com/manager]:   Adding resource link users
2003-05-09 17:48:52 NamingContextListener[/Standalone/csamtest.sps.mot.com/manager]:   Resource parameters for UserTransaction = null
2003-05-09 17:48:52 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom
2003-05-09 17:48:52 StandardManager[/manager]: Seeding of random number generator has been completed
2003-05-09 17:48:52 StandardContext[/manager]: Posting standard context attributes
2003-05-09 17:48:52 StandardContext[/manager]: Configuring application event listeners
2003-05-09 17:48:52 StandardContext[/manager]: Sending application start events
2003-05-09 17:48:52 StandardContext[/manager]: Starting filters
2003-05-09 17:48:52 StandardWrapper[/manager:default]: Loading container servlet default
2003-05-09 17:48:52 StandardWrapper[/manager:invoker]: Loading container servlet invoker
2003-05-09 17:48:52 StandardContext[/manager]: Starting completed
2003-05-09 17:49:42 Authenticator[/manager]: Security checking request GET /manager/html
2003-05-09 17:49:42 Authenticator[/manager]:   Checking constraint 'SecurityConstraint[Entire Application]' against GET /html --> true
2003-05-09 17:49:42 Authenticator[/manager]:  Subject to constraint SecurityConstraint[Entire Application]
2003-05-09 17:49:42 Authenticator[/manager]:  Calling checkUserData()
2003-05-09 17:49:42 Authenticator[/manager]:   User data constraint has no restrictions
2003-05-09 17:49:42 Authenticator[/manager]:  Calling authenticate()
2003-05-09 17:49:42 Authenticator[/manager]:  Failed authenticate() test
2003-05-09 17:50:10 Authenticator[/manager]: Security checking request GET /manager/list
2003-05-09 17:50:10 Authenticator[/manager]:   Checking constraint 'SecurityConstraint[Entire Application]' against GET /list --> true
2003-05-09 17:50:10 Authenticator[/manager]:  Subject to constraint SecurityConstraint[Entire Application]
2003-05-09 17:50:10 Authenticator[/manager]:  Calling checkUserData()
2003-05-09 17:50:10 Authenticator[/manager]:   User data constraint has no restrictions
2003-05-09 17:50:10 Authenticator[/manager]:  Calling authenticate()
2003-05-09 17:50:10 Authenticator[/manager]:  Failed authenticate() test

---
David E Lopez
Org:   SPS->WBSG->WITC->SOC->CSAM
Phone: 480-413-6251
email: R9374C@motorola.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org