On Mar 2, 2005, at 9:39 AM, Kiran Patel wrote:

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.

Put the <Context> tag and everything it contains in a file named CA.xml (maybe the name can be anything) and put it in $CATALINA_BASE/conf/Catalina/localhost/ . You can also toss it in a META-INF directory under your web-app, but I'm not sure if this goes at the top level or under WEB-INF.




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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to