Link to home
Start Free TrialLog in
Avatar of e_sandrs
e_sandrsFlag for United States of America

asked on

Help Remove "Authentication Required" Prompt?

I have a web server that brings up a Tomcat-based login page.  Logins on the page work fine, but in fiddling around with it a long time ago (I believe in an effort to pass Windows login credentials to it)  I made the page prompt for authentication before loading.  :(

Entering valid, invalid, or canceling the prompt makes no difference - all options send you to the login page.  So, I want to get rid of the extra login prompt if someone can help me!

Hopefully someone can help me sleuth out what I set up and unset it?  As mentioned, I get a login prompt box in my browser when I go to the whole path (http://server:8080/path/to/loginpage).  If I go to just http://server:8080 I get the "It works !" page without login.

Is that enough of a start to point me towards some config file where I can turn off the authentication prompt?  I hope so!

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of e_sandrs

ASKER

Thanks for getting us started.  I assumed someone would tell me what to show rather than guessing.

I attached the only server.xml file on the system, the web.xml from the application path, the default web.xml, and the index.jsp page that brings up the prompt.  As I mentioned before, if I load the   $CATALINA_HOME/webapps/ROOT/index.html (note, not jsp) page I am not prompted.

 server.xml
 web.xml
 web-default.xml
 index.jsp.txt

Let me know what else I can provide.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry - REMed out the Realm as listed and no change.....but I think I've discovered the root cause of the prompt (if not how to remove it)?

As alluded to in the tags, the server is set up with Winbind configured to our AD domain.  I discovered that Chrome lets me into the usually-prompting site without entering my password -- it takes my Windows login credentials automatically.

After seeing this behavior in Chrome, I was able to read and get IE (by adding to Intranet Security group) and Firefox (setting about:config - network.automatic-ntlm.trusted-uris) to auto-login when I go to the page as well.  So, I can get rid of the prompt for internal network access with the steps above (and potentially for everyone by applying the changes via Group Policy and such) -- but off campus would still get it.

I'm going to assume that The Powers That Be will say "get rid of it for everyone" (and require a login on the page) -- but I'm still too dim to find where to un-set this winbind functionality.  Maybe somewhere in PAM settings?  I don't know.

Any brilliant ideas?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The IE9 and Firefox login prompts are attached.

I think (forgot to verify from home) that the external link is available but not advertised.  You may be able to generate the prompt yourself at the full URI below:

http://cmsrv1.alverno.edu:8080/terminalfour/SiteManager

Hope that helps.
IE9.jpg
firefox.jpg
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Should $CATALINA_HOME be globally defined somewhere?  When I try the above as root I get:

  ls: cannot access /webapps/terminalfour/SiteManager/: No such file or directory

The only location with webapps/terminalfour is:

  /var/lib/tomcat6/webapps/terminalfour

drwxr-xr-x 2 tomcat6 tomcat6 4096 2011-06-03 09:27 dtds
-rw-r--r-- 1 tomcat6 tomcat6 4082 2011-05-17 15:01 Error.jsp
-rw-r--r-- 1 tomcat6 tomcat6  496 2011-05-17 15:01 GenCache.jsp
-rw-r--r-- 1 tomcat6 tomcat6  255 2011-05-17 15:01 index.jsp
drwxr-xr-x 3 tomcat6 tomcat6 4096 2011-06-03 09:27 license
drwxr-xr-x 2 tomcat6 tomcat6 4096 2011-06-03 09:27 META-INF
-rw-r--r-- 1 tomcat6 tomcat6  307 2011-05-17 15:01 Success.jsp
drwxr-xr-x 6 tomcat6 tomcat6 4096 2011-08-15 10:46 WEB-INF
-rw-r--r-- 1 tomcat6 tomcat6 2601 2011-05-17 15:01 xFormsConfig.jsp

Here's the WEB-INF directory:

-rw-r--r-- 1 tomcat6 tomcat6    9732 2011-05-17 15:01 axis2.xml
drwxr-xr-x 2 tomcat6 tomcat6    4096 2011-06-03 09:27 classes
-rw-r--r-- 1 tomcat6 tomcat6  302423 2011-05-17 15:01 htmlarea.zip
-rw-r--r-- 1 tomcat6 tomcat6    5423 2011-05-17 15:01 left-pane.inc
drwxr-xr-x 2 tomcat6 tomcat6    4096 2011-06-03 09:27 lib
-rw-r--r-- 1 tomcat6 tomcat6   14233 2011-05-17 15:01 menu-config.xml
drwxr-xr-x 2 tomcat6 tomcat6    4096 2011-06-03 09:27 modules
-rw-r--r-- 1 tomcat6 tomcat6    2332 2011-05-17 15:01 premade-files-basic.zip
-rw-r--r-- 1 tomcat6 tomcat6      22 2011-05-17 15:01 premade-files-default.zip
-rw-r--r-- 1 tomcat6 tomcat6 7401672 2011-05-17 15:01 premade-files-large.zip
drwxr-xr-x 2 tomcat6 tomcat6    4096 2011-06-03 09:27 services
-rw-r--r-- 1 tomcat6 tomcat6     948 2011-05-17 15:01 skin-config.xml
-rw-r--r-- 1 tomcat6 tomcat6   38684 2011-05-17 15:01 sm-data-premade-basic.xml
-rw-r--r-- 1 tomcat6 tomcat6 1985492 2011-05-17 15:01 sm-data-premade-large.xml
-rw-r--r-- 1 tomcat6 tomcat6  927294 2011-05-17 15:01 sm-data.xml
-rw-r--r-- 1 tomcat6 tomcat6    1196 2011-05-17 15:01 sm-securityfilter-config.xml
-rw-r--r-- 1 tomcat6 tomcat6    4136 2011-05-17 15:01 sm-structure-premade-basic.xml
-rw-r--r-- 1 tomcat6 tomcat6   18682 2011-05-17 15:01 sm-structure-premade-large.xml
-rw-r--r-- 1 tomcat6 tomcat6   51909 2011-05-17 15:01 sm-structure.xml
-rw-r--r-- 1 tomcat6 tomcat6  103221 2011-05-17 15:01 sm-updates.xml
-rw-r--r-- 1 tomcat6 tomcat6 1404512 2011-05-17 15:01 standardskin.zip
-rw-r--r-- 1 tomcat6 tomcat6   11871 2011-04-27 17:48 web.xml
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
cat  /var/lib/tomcat6/webapps/terminalfour/index.jsp
 
<%@ page import="com.terminalfour.sitemanager.handler.utils.URIUtils" %><%
        String sLoc = URIUtils.getServletLocation (request);
        response.setHeader ("Location", sLoc + "SiteManager");
        response.setStatus (HttpServletResponse.SC_MOVED_PERMANENTLY);

Open in new window


cat /var/lib/tomcat6/webapps/terminalfour/WEB-INF/web.xml
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
        <!-- The name to appear in the application server's management interface. -->
        <display-name>TERMINALFOUR SiteManager 7.0</display-name>

        <!-- xForms file directory -->
        <context-param>
                <param-name>ftproot</param-name>
                <param-value>C:\Program Files\terminalfour\Site Manager 7.0\Storage\</param-value>
        </context-param>


        <!--
                Filters
        -->

        <!-- Planting this filter in front of the web services as it can't handle this. -->
        <filter>
                <filter-name>NTLMType1ZeroLengthFilter</filter-name>
                <display-name>NTLM Type1 Zero Length Filter</display-name>
                <description>Filter to handle Internet Explorer Type 1, zero length requests.</description>
                <filter-class>com.terminalfour.filter.ntlmType1ZeroLength.NTLMType1ZeroLengthFilter</filter-class>
        </filter>

        <!-- Standard authentication filter for the Site Manager servlet. -->
        <filter>
                <filter-name>SiteManagerAuthenticationFilter</filter-name>
                <display-name>Site Manager Authentication Filter</display-name>
                <description>Filters requests to check for suitable authentication.</description>
                <filter-class>com.terminalfour.filter.authentication.AuthenticationFilter</filter-class>
        </filter>

        <!-- Set up the Log Filter -->
        <filter>
                <filter-name>LogFilter</filter-name>
                <filter-class>com.terminalfour.sitemanager.webdav.filter.RequestResponseLogFilter</filter-class>
        </filter>

        <!-- Setup the Preview Filter -->
        <filter>
                <filter-name>PreviewFilter</filter-name>
                <display-name>Preview Filter</display-name>
                <description>Filters preview URLs in Site Manager through the specified application</description>
                <filter-class>com.terminalfour.publish.preview.PreviewFilter</filter-class>
        </filter>

        <!-- Setup the Timer Filter -->
        <filter>
                <filter-name>TimerFilter</filter-name>
                <display-name>Timer Filter</display-name>
                <description>Times Site Manager Context URL Requests</description>
                <filter-class>com.terminalfour.sitemanager.timer.TimerFilter</filter-class>
        </filter>

        <!-- The Multi-part Filter is used for handling file uploads -->
        <filter>
                <filter-name>MultipartFilter</filter-name>
                <filter-class>com.terminalfour.sitemanager.multipart.MultipartFilter</filter-class>
                <!-- <init-param> <param-name>uploadDir</param-name> <param-value>/tmp</param-value> </init-param> -->
        </filter>

        <!-- Setup the Anti-virus Filter -->
        <filter>
                <filter-name>AntivirusFilter</filter-name>
                <display-name>Anti-virus Filter</display-name>
                <description>Filters multi-part requests and uses an anti-virus scanner to scan them.</description>
                <filter-class>com.terminalfour.filter.antivirus.AntivirusFilter</filter-class>
        </filter>

        <filter>
                <filter-name>WebDAV Security Filter</filter-name>
                <filter-class>org.securityfilter.filter.SecurityFilter</filter-class>
                <init-param>
                        <param-name>config</param-name>
                        <param-value>/WEB-INF/sm-securityfilter-config.xml</param-value>
                        <description>Configuration file location</description>
                </init-param>
                <init-param>
                        <param-name>validate</param-name>
                        <param-value>true</param-value>
                        <description>Validate config file if set to true.</description>
                </init-param>
        </filter>

        <!--
                Filter Mappings
        -->

        <!-- Make sure that the application server knows that this should only work with Site Manager -->
        <filter-mapping>
                <filter-name>NTLMType1ZeroLengthFilter</filter-name>
                <servlet-name>AxisServlet</servlet-name>
        </filter-mapping>

        <filter-mapping>
                <filter-name>SiteManagerAuthenticationFilter</filter-name>
                <servlet-name>SiteManager</servlet-name>
        </filter-mapping>

        <filter-mapping>
                <filter-name>AntivirusFilter</filter-name>
                <servlet-name>SiteManager</servlet-name>
        </filter-mapping>

        <filter-mapping>
                <filter-name>PreviewFilter</filter-name>
                <servlet-name>SiteManager</servlet-name>
        </filter-mapping>

        <!-- This filter should be used in conjunction with all servlets! -->
        <filter-mapping>
                <filter-name>TimerFilter</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>

        <!-- This filter should be used in conjunction with all servlets! -->
        <filter-mapping>
                <filter-name>MultipartFilter</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>

        <!-- Map all requests to the SecurityFilter, control what it does with configuration settings. -->
        <filter-mapping>
                <filter-name>WebDAV Security Filter</filter-name>
                <url-pattern>/mlwebdav/*</url-pattern>
        </filter-mapping>

        <filter-mapping>
                <filter-name>WebDAV Security Filter</filter-name>
                <url-pattern>/webdav/*</url-pattern>
        </filter-mapping>

        <filter-mapping>
                <filter-name>LogFilter</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>


        <!--
                Listeners
        -->

        <listener>
                <listener-class>com.terminalfour.sitemanager.SMContextListener</listener-class>
        </listener>

        <listener>
                <listener-class>com.terminalfour.sitemanager.SMLoginListener</listener-class>
        </listener>

        <listener>
                <listener-class>com.terminalfour.sitemanager.SMSessionListener</listener-class>
        </listener>

        <!--
                Servlets
        -->

        <!-- Configure the parameters for the SM application -->
        <servlet>
                <!-- These two lines let us use SiteManager in the URL instead of the full class name. -->
                <servlet-name>SiteManager</servlet-name>
                <servlet-class>com.terminalfour.sitemanager.SiteManager</servlet-class>

                <!-- Define the JNDI name that Site Manager will get the data source from, defined below in resource-ref. -->
                <init-param>
                        <param-name>datasource_location</param-name>
                        <param-value>jdbc/SiteManagerDB</param-value>
                </init-param>

                <!-- The list of available database factories for Site Manager to use.  -->
                <init-param>
                        <param-name>dbFactory</param-name>
                        <param-value>
                                com.terminalfour.database.mssql.MSSQLDBFactory;
                                com.terminalfour.database.mysql.MySQLDBFactory;
                                com.terminalfour.database.oracle.OracleDBFactory;
                                com.terminalfour.database.enterpriseDB.EnterpriseDBDBFactory;
                                com.terminalfour.database.sybase.SybaseDBFactory
                        </param-value>
                </init-param>

                <!-- Startup automatically. -->
                <load-on-startup>1</load-on-startup>
        </servlet>

        <!-- Configure the servlet that will be serving skin related includes. -->
        <servlet>
                <servlet-name>SkinFilesProvider</servlet-name>
                <servlet-class>com.terminalfour.sitemanager.skin.SkinFilesProvider</servlet-class>

                <!-- Skin configuration. -->
                <init-param>
                        <param-name>skin-config</param-name>
                        <param-value>/WEB-INF/skin-config.xml</param-value>
                </init-param>

                <!-- Must be started AFTER Site Manager so system state is known. -->
                <load-on-startup>2</load-on-startup>
        </servlet>

        <!-- Configure the servlet that will be serving link icons. -->
        <servlet>
                <servlet-name>LinkGenerator</servlet-name>
                <servlet-class>com.terminalfour.ui.link.LinkGenerator</servlet-class>

                <load-on-startup>3</load-on-startup>
        </servlet>

        <servlet>
                <servlet-name>eForms</servlet-name>
                <servlet-class>com.terminalfour.eforms.eForms</servlet-class>

                <!-- define the JNDI name that eForm will get the data source from, defined below in resource-ref. -->
                <init-param>
                        <param-name>datasource_location</param-name>
                        <param-value>jdbc/SiteManagerDB</param-value>
                </init-param>

                <load-on-startup>4</load-on-startup>
        </servlet>

        <servlet>
                <servlet-name>AxisServlet</servlet-name>
                <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>

                <load-on-startup>5</load-on-startup>
        </servlet>

        <servlet>
                <servlet-name>xForms</servlet-name>
                <servlet-class>com.terminalfour.xforms.xForms</servlet-class>

                <!-- Define the JNDI name that xForm will get the data source from, defined below in resource-ref. -->
                <init-param>
                        <param-name>datasource_location</param-name>
                        <param-value>jdbc/SiteManagerDB</param-value>
                </init-param>
        </servlet>

        <!-- Definition and configuration of WebDAV servlet. -->
        <servlet>
                <servlet-name>mlwebdav</servlet-name>
                <servlet-class>net.sf.webdav.WebdavServlet</servlet-class>

                <init-param>
                        <param-name>ResourceHandlerImplementation</param-name>
                        <param-value>com.terminalfour.sitemanager.webdav.WebDAVMLStore</param-value>
                        <description>Name of the class that implements net.sf.webdav.WebdavStore</description>
                </init-param>
                <init-param>
                        <param-name>rootpath</param-name>
                        <param-value>/tmp/webdav</param-value>
                        <description>Any file - just to satisfy the constructor</description>
                </init-param>
        </servlet>

        <!-- Definition and configuration of WebDAV servlet. -->
        <servlet>
                <servlet-name>webdav</servlet-name>
                <servlet-class>net.sf.webdav.WebdavServlet</servlet-class>

                <init-param>
                        <param-name>ResourceHandlerImplementation</param-name>
                        <param-value>com.terminalfour.sitemanager.webdav.WebDAVSMStore</param-value>
                        <description>Name of the class that implements net.sf.webdav.WebdavStore.</description>
                </init-param>
                <init-param>
                        <param-name>rootpath</param-name>
                        <param-value>/tmp/webdav</param-value>
                        <description>Any file - just to satisfy the constructor.</description>
                </init-param>
        </servlet>


        <!--
                Servlet Mappings
        -->

        <!-- URL mapping for Site Manager, /deploy-location/SiteManager -->
        <servlet-mapping>
                <servlet-name>SiteManager</servlet-name>
                <url-pattern>/SiteManager</url-pattern>
        </servlet-mapping>

        <!-- URL mapping for Skin Provider, /deploy-location/skin/path/to/include -->
        <servlet-mapping>
                <servlet-name>SkinFilesProvider</servlet-name>
                <url-pattern>/skin/*</url-pattern>
        </servlet-mapping>

        <!-- URL mapping for Link Generator, /deploy-location/links/LinkGenerator -->
        <servlet-mapping>
                <servlet-name>LinkGenerator</servlet-name>
                <url-pattern>/links/*</url-pattern>
        </servlet-mapping>

        <!-- URL mapping for eForms, /deploy-location/eForms -->
        <servlet-mapping>
                <servlet-name>eForms</servlet-name>
                <url-pattern>/eForms</url-pattern>
        </servlet-mapping>

        <!-- URL mapping for xForms, /deploy-location/xForms -->
        <servlet-mapping>
                <servlet-name>xForms</servlet-name>
                <url-pattern>/xForms</url-pattern>
        </servlet-mapping>

        <servlet-mapping>
                <servlet-name>mlwebdav</servlet-name>
                <url-pattern>/mlwebdav/*</url-pattern>
        </servlet-mapping>

        <servlet-mapping>
                <servlet-name>webdav</servlet-name>
                <url-pattern>/webdav/*</url-pattern>
        </servlet-mapping>

        <!-- URL mapping for web services. -->
        <servlet-mapping>
                <servlet-name>AxisServlet</servlet-name>
                <url-pattern>/services/*</url-pattern>
        </servlet-mapping>


        <!-- Set the default session timeout (in minutes) -->
        <session-config>
                <session-timeout>30</session-timeout>
        </session-config>


        <!-- Extra MIME mappings because weblogic has issues with activation.jar and doesn't have mappings for css or js (which kills the skin stuff) -->
        <mime-mapping>
                <extension>css</extension>
                <mime-type>text/css</mime-type>
        </mime-mapping>

        <mime-mapping>
                <extension>js</extension>
                <mime-type>text/javascript</mime-type>
        </mime-mapping>

        <mime-mapping>
                <extension>ico</extension>
                <mime-type>image/vnd.microsoft.icon</mime-type>
        </mime-mapping>


        <!-- define the reference that we will be looking for -->
        <resource-ref>
                <description>SiteManager DB</description>
                <res-ref-name>jdbc/SiteManagerDB</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
        </resource-ref>

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No change ( I even tried rebooting the server after the comment out with no change) - but when I stop tomcat6 with "/etc/init.d/tomcat6 stop" I can still access the page?

Here's what I see running:

ps ax |grep tomcat
 1020 ?        Sl     3:05 /usr/lib/jvm/java-6-openjdk/bin/java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xms1024M -Xmx1536M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomca 6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

Based on that path, I looked in /lib/tomcat6/conf, and there is a different server.xml and web.xml file there that doesn't show up when I do a locate (even after an updatedb).

/var/lib/tomcat6/conf# ls -l
total 84
drwxrwxr-x 3 root tomcat6  4096 2011-01-11 08:19 Catalina
-rw-r--r-- 1 root tomcat6  4021 2010-03-31 04:17 catalina.properties
-rw-r--r-- 1 root tomcat6  1395 2007-08-04 17:17 context.xml
-rw-r--r-- 1 root tomcat6  2370 2010-03-04 10:00 logging.properties
drwxr-xr-x 2 root tomcat6  4096 2011-08-15 10:42 policy.d
-rw-r--r-- 1 root tomcat6  7523 2011-08-16 08:01 server.xml
-rw-r----- 1 root tomcat6  1289 2011-08-15 10:59 tomcat-users.xml
-rw-r--r-- 1 root tomcat6 50475 2010-01-06 04:30 web.xml

I assume that is just defaults, not program specific, but I attached that server.xml anyway.
cat server.xml
<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="8005" shutdown="SHUTDOWN">

  <!--APR library loader. Documentation at /docs/apr.html -->
  <!--
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  -->
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <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" />

    <Resource driverClassName="com.mysql.jdbc.Driver"
         maxActive="100" maxIdle="5" maxWait="5000"
         name="jdbc/MySiteManagerDB"
         username="c_term4"
         password="T4st92ld"
         type="javax.sql.DataSource"
         url="jdbc:mysql://localhost/terminalfour?jdbcCompliantTruncation=false&amp;zeroDateTimeBehavior=convertToNull&amp;characterEncoding=UTF-8"
         validationQuery="SELECT 1"
         testOnBorrow="true"
         testOnReturn="true"
         testWhileIdle="true"
         timeBetweenEvictionRunsMillis="600000" />


  </GlobalNamingResources>

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container",
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">

    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->


    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               URIEncoding="UTF-8"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <!--
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
    -->


    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <Engine name="Catalina" defaultHost="localhost">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->

      <!-- The request dumper valve dumps useful debugging information about
           the request and response data received and sent by Tomcat.
           Documentation at: /docs/config/valve.html -->
      <!--
      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
      -->

      <!-- 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"/> -->

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
        -->

        <Context path="/terminalfour" docBase="/usr/local/terminalfour/servlet/SiteManager.war" reloadable="false" antiJARLocking="true">
          <ResourceLink global="jdbc/MySiteManagerDB" name="jdbc/SiteManagerDB" type="javax.sql.DataSource"/>
        </Context>



      </Host>
    </Engine>
  </Service>
</Server>

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No change -- but /var/lib/tomcat6/work is just a link to /var/cache/tomcat6 - so would I need to move the content differently?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This issue became low priority for my bosses, and therefore me, so I don't expect to get back to it anytime soon.  The expert was getting me to the solution, but I just didn't give enough time and discussion to get all the way there.  I believe the troubleshooting we did would still be helpful for anyone else with my issue, so worth saving.