tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Caroline Jen <jiapei_...@yahoo.com>
Subject RE: Tomcat & Connection Pool
Date Thu, 09 Sep 2004 18:27:53 GMT
I removed the opening and closing <Context> tag and
inserted the following code inside the <Host> element
of the C:\jakarta-tomcat-5.0.27\conf\server.xml file
(right before the closing </Host> tag).  The Tomcat
can be started again.  Is it the correct way of
configuring Tomcat for using connection pool?

code:
----------------------------------------------------
   <Resource name="jdbc/OracleDB" auth="Container"
             type="javax.sql.DataSource"/> 

   <ResourceParams name="jdbc/OracleDB">
      <parameter>
         <name>factory</name>
        
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
      </parameter>
      <parameter>
         <name>maxWait</name>
         <value>5000</value>
      </parameter>
      <parameter>
         <name>maxActive</name>
         <value>20</value>
      </parameter>
      <parameter>
         <name>password</name>
         <value>cmis001</value>
      </parameter>
      <parameter>
         <name>url</name>
        
<value>jdbc:oracle:thin:@172.19.47.22:1521:devora2</value>
      </parameter>
      <parameter>
         <name>driverClassName</name>
        
<value>oracle.jdbc.driver.OracleDriver</value>
      </parameter>
      <parameter>
         <name>maxIdle</name>
         <value>10</value>
      </parameter>
      <parameter>
         <name>username</name>
         <value>cmis</value>
      </parameter>
      <parameter>
         <name>removeAbandoned</name>
         <value>true</value>
      </parameter>
      <parameter>
         <name>removeAbandonedTimeout</name>
         <value>60</value>
      </parameter>
      <parameter>
         <name>logAbandoned</name>
         <value>true</value>
      </parameter>
</ResourceParams>

--------------------------------------------------
--- "Shapira, Yoav" <Yoav.Shapira@mpi.com> wrote:

> 
> Hi,
> No, I mean a <Context> element with no docBase and
> path attributes is
> cruising for a bruising at best.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-----Original Message-----
> >From: Caroline Jen [mailto:jiapei_jen@yahoo.com]
> >Sent: Thursday, September 09, 2004 9:17 AM
> >To: Tomcat Users List
> >Subject: RE: Tomcat & Connection Pool
> >
> >I do not quite understand the message "A <Context>
> >element will not get you far, no matter what its
> >contents.  But let's assume you actually have a
> >docBase and path at least, and just typed
> shorthand."
> >
> >Do you mean that I should delete the open and
> closing
> ><Context> tag?
> >
> >--- "Shapira, Yoav" <Yoav.Shapira@mpi.com> wrote:
> >
> >>
> >> Hi,
> >> A <Context> element will not get you far, no
> matter
> >> what its contents.
> >> But let's assume you actually have a docBase and
> >> path at least, and just
> >> typed shorthand.
> >>
> >> When you can't start tomcat, look at the logs. 
> They
> >> will have error
> >> messages that tell you what's wrong.
> >>
> >> Yoav Shapira
> >> Millennium Research Informatics
> >>
> >>
> >> >-----Original Message-----
> >> >From: Caroline Jen [mailto:jiapei_jen@yahoo.com]
> >> >Sent: Wednesday, September 08, 2004 5:26 PM
> >> >To: tomcat-user@jakarta.apache.org
> >> >Subject: Tomcat & Connection Pool
> >> >
> >> >I do not know what is going on.  I am using the
> >> Tomcat
> >> >5.0.27 in the Windows XP environment.
> >> >
> >> >I insert the following code right before the
> >> </Host>
> >> >element in the $TOMCAT/conf/server.xml file;
> i.e.
> >> >inside the <Host> element and right before its
> >> closing
> >> >tag. I re-boot my computer, and then, I cannot
> >> start
> >> >the Tomcat. I removed the segment of code shown
> >> below;
> >> >then, Tomcat functions normally. What is wrong?
> >> >
> >> ><Context>
> >> >   <Resource name="jdbc/OracleDB"
> auth="Container"
> >> >             type="javax.sql.DataSource"/>
> >> >
> >> >   <ResourceParams name="jdbc/OracleDB">
> >> >      <parameter>
> >> >         <name>factory</name>
> >> >
> >>
>
>><value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
> >> >      </parameter>
> >> >      <parameter>
> >> >         <name>maxWait</name>
> >> >         <value>5000</value>
> >> >      </parameter>
> >> >      <parameter>
> >> >         <name>maxActive</name>
> >> >         <value>20</value>
> >> >      </parameter>
> >> >      <parameter>
> >> >         <name>password</name>
> >> >         <value>cmis001</value>
> >> >      </parameter>
> >> >      <parameter>
> >> >         <name>url</name>
> >> >
> >>
>
>><value>jdbc:oracle:thin:@172.19.47.22:1521:devora2</value>
> >> >      </parameter>
> >> >      <parameter>
> >> >         <name>driverClassName</name>
> >> >
> >> ><value>oracle.jdbc.driver.OracleDriver</value>
> >> >      </parameter>
> >> >      <parameter>
> >> >         <name>maxIdle</name>
> >> >         <value>10</value>
> >> >      </parameter>
> >> >      <parameter>
> >> >         <name>username</name>
> >> >         <value>cmis</value>
> >> >      </parameter>
> >> >      <parameter>
> >> >         <name>removeAbandoned</name>
> >> >         <value>true</value>
> >> >      </parameter>
> >> >      <parameter>
> >> >         <name>removeAbandonedTimeout</name>
> >> >         <value>60</value>
> >> >      </parameter>
> >> >      <parameter>
> >> >         <name>logAbandoned</name>
> >> >         <value>true</value>
> >> >      </parameter>
> >> ></ResourceParams>
> >> ></Context>
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >__________________________________
> >> >Do you Yahoo!?
> >> >Yahoo! Mail is new and improved - Check it out!
> >> >http://promotions.yahoo.com/new_mail
> >> >
> >>
>
>>---------------------------------------------------------------------
> >> >To unsubscribe, e-mail:
> >> tomcat-user-unsubscribe@jakarta.apache.org
> >> >For additional commands, e-mail:
> >> tomcat-user-help@jakarta.apache.org
> >>
> >>
> >>
> >>
> >> This e-mail, including any attachments, is a
> >> confidential business communication, and may
> contain
> >> information that is confidential, proprietary
> and/or
> >> privileged.  This e-mail is intended only for the
> >> individual(s) to whom it is addressed, and may
> not
> >> be saved, copied, printed, disclosed or used by
> >> anyone else.  If you are not the(an) intended
> >> recipient, please immediately delete this e-mail
> >> from your computer system and notify the sender.
> >> Thank you.
> >>
> >>
> >>
>
>---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> >> tomcat-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail:
> >> tomcat-user-help@jakarta.apache.org
> >>
> >>
> >
> >
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Yahoo! Mail is new and improved - Check it out!
> >http://promotions.yahoo.com/new_mail
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 
> 
> 
> This e-mail, including any attachments, is a
> confidential business communication, and may contain
> information that is confidential, proprietary and/or
> privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not
> be saved, copied, printed, disclosed or used by
> anyone else.  If you are not the(an) intended
> recipient, please immediately delete this e-mail
> from your computer system and notify the sender. 
> Thank you.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message