tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran Patel" <kir...@simas.com>
Subject Re: Migration from Tomcat 4.1 to Tomcat 5.0
Date Wed, 02 Mar 2005 14:39:38 GMT
Thank you.
I setup an environment variable JAVS_HOME and it is working now.

Now, I have another question.  How to setup a context?  In Tomcat 4.1, I have it in server.xml.
 What I found from the documentation is that to create a separate file for context, but I
don't know where to put the file and what to include in it.  The context for my webapps in
server.xml is as follow.  Please help.

<!-- Class Act App Context -->
 <Context path="/CA" docBase="ca" debug="0"
   reloadable="true">
   <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_ca_log." suffix=".txt"
    timestamp="true"/>
 
      
   <ResourceParams name="jdbc/cms">   
  
  <!-- DBCP -->
  <parameter><name>factory</name><value>org.apache.commons.dbcp.BasicDataSourceFactory</value></parameter>
  
  
  <!-- Maximum number of dB connections in pool. Make sure you
       configure your mysqld max_connections large enough to handle
       all of your db connections. Set to 0 for no limit.
  -->
  <parameter><name>maxActive</name><value>100</value></parameter>
  
  
  <!-- Maximum number of idle dB connections to retain in pool.
       Set to 0 for no limit.
  -->
  <parameter><name>maxIdle</name><value>30</value></parameter>
  
  
  <!-- Maximum time to wait for a dB connection to become available
       in ms, in this example 10 seconds. An Exception is thrown if
       this timeout is exceeded.  Set to -1 to wait indefinitely.
   -->
   <parameter><name>maxWait</name><value>10000</value></parameter>
   
  
   <!-- dB username and password for dB connections -->
   <parameter><name>username</name><value>sa</value></parameter>
   <parameter><name>password</name><value>admin</value></parameter>
     
  
   <!-- Class name for JDBC driver -->
   <parameter><name>driverClassName</name><value>sun.jdbc.odbc.JdbcOdbcDriver</value></parameter>
   
      
   <!-- The JDBC connection url for connecting to your dB -->
   <parameter><name>url</name><value>jdbc:odbc:cms-rms</value></parameter>
  
   
  
 </ResourceParams>
 </Context>

Kiran Patel
Software Engineer
Solutions Inc.
817.637.9060 [Work]


> hi!

> look at your environment-variables JAVA_HOME should be set correctly!



> hth

>-Christianx

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message