Help I feel like such a ninny:

I am using apache-tomcat-8.0.20 java version "1.8.0_25"  on a linux box.
my new context.xml is (I changed some datasource parameters) and is living in 
manager

<Context antiResourceLocking="false" privileged="true" >
      <Resource name="jdbc/prot_manager" auth="Container"
        type="javax.sql.DataSource" 
driverClassName="oracle.jdbc.driver.OracleDriver"
        url="jdbc:oracle:thin:xxx.xxx.xxx.xxx:1521:xxx"
        username="xxx"
        password="xxx"
        maxTotal="2"
        maxIdle="2"
        maxWaitMillis="10000"
        testOnCreate="true"
        testOnBorrow="true"
        timeBetweenEvictionRunsMillis="10000"
        removeAbandonedTimeout="300"
        removeAbandonedOnBorrow="true"
        testWhileIdle="true"
        closeMethod="close"
        connectionInitSqls="call dbms_session.set_identifier('manager')"/>

      <Realm className="org.apache.catalina.realm.LockOutRealm">
      <Realm className="org.apache.catalina.realm.DataSourceRealm"
          dataSourceName="jdbc/prot_manager" localDataSource="true"
          userTable="p_user" userNameCol="logon_id" userCredCol="password"
          userRoleTable="p_user_roles" roleNameCol="role_name" />
    </Realm>
      <Valve className="org.apache.catalina.valves.RemoteAddrValve" 
allow="xxx\.xx\.xx\.xxx|xxx\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
</Context>

the old one that worked was
<Context antiResourceLocking="false" privileged="true" >
      <Resource name="jdbc/prot_manager" auth="Container"
        type="javax.sql.DataSource" 
driverClassName="oracle.jdbc.driver.OracleDriver"
        url="jdbc:oracle:thin:xxxx.xxx.xxx.xxx:1521:xxxx"
        username="xxxx"
        password="xxxx"
        maxTotal="2"
        maxIdle="2"
        maxWait="10000"
        validationQuery="SELECT 1 from dual"
        testOnBorrow="true"
        closeMethod="close"
        connectionInitSqls="call dbms_session.set_identifier('manager')"/>

      <Realm className="org.apache.catalina.realm.LockOutRealm">
      <Realm className="org.apache.catalina.realm.DataSourceRealm"
          dataSourceName="jdbc/prot_manager" localDataSource="true"
          userTable="p_user" userNameCol="logon_id" userCredCol="password"
          userRoleTable="p_user_roles" roleNameCol="role_name" />
    </Realm>
      <Valve className="org.apache.catalina.valves.RemoteAddrValve" 
allow="xxx\.xx\.xx\.xx|xx\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
</Context>

I even tried the virginal context.xml

<Context antiResourceLocking="false" privileged="true" >
  <!--
    Remove the comment markers from around the Valve below to limit access to
    the manager application to clients connecting from localhost
  -->
  <!--
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
  -->
</Context>

each time restarting tomcat with no luck in starting the manager.

I don't see anything in my logs but maybe there is some log somewhere I haven't 
found like in /var/logs.

any help would be appreciated.

--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
mark.shif...@yale.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to