commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenneth Simpson <...@VirtualMachines.COM>
Subject Re: Can no one help me.
Date Wed, 29 Sep 2004 22:05:30 GMT
 >Yeah, that was a mis-type on my part, it is in common/lib

Then move your Context path in the configuration file

    conf/server.xml

to

    conf/Catalina/localhost

If that doesn't work, then you should post on the Tomcat mailing list 
since this is
a Tomcat configuration problem.

Here's an example:

        <!-- Alignment Context -->
        <Context path="/align" docBase="align" debug="5" 
reloadable="true" crossContext="true">
                <Logger className="org.apache.catalina.logger.FileLogger"
                        prefix="localhost_align_log." suffix=".txt"
                        timestamp="true"/>
                <Resource name="jdbc/systems"
                        auth="Container"
                        type="javax.sql.DataSource"/>
                <ResourceParams name="jdbc/systems">
                        <parameter>
                                <name>factory</name>
                                
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                        </parameter>
                <!-- Maximum number of dB connections in pool.
                -->
                        <parameter>
                                <name>maxActive</name>
                                <value>100</value>
                        </parameter>
                <!-- Maximum number of idle dB connections to retain in 
pool.
                -->
                        <parameter>
                                <name>maxIdle</name>
                                <value>10</value>
                        </parameter>
                <!-- Maximum time to wait for a dB connection to become 
available
                in ms.
                -->
                        <parameter>
                                <name>maxWait</name>
                                <value>10000</value>
                        </parameter>
                <!-- MySQL dB username and password for dB connections  -->
                        <parameter>
                                <name>username</name>
                                <value>systems</value>
                        </parameter>
                        <parameter>
                                <name>password</name>
                                <value>systems</value>
                        </parameter>
                <!-- Class name for mm.mysql JDBC driver -->
                        <parameter>
                                <name>driverClassName</name>
                                <value>com.mysql.jdbc.Driver</value>
                        </parameter>
                <!-- The JDBC connection url for connecting to your 
MySQL dB.
                        The autoReconnect=true argument to the url makes 
sure that the
                        mm.mysql JDBC Driver will automatically 
reconnect if mysqld closed the
                        connection.  mysqld by default closes idle 
connections after 8 hours.
                -->
                        <parameter>
                                <name>url</name>
                                
<value>jdbc:mysql://localhost:3306/systems?autoReconnect=true</value>
                        </parameter>
                </ResourceParams>
        </Context>


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


Mime
View raw message