Re: Tomcat 5.5, connection pooling with commons-dbcp 1.2.1

2008-08-28 Thread jerrycat
't be two of the same class (package > name and class name) visible from different classloaders. Tomcat > internal code will see the one in common/lib first, your webapps will > see it's own copy first and you'll end up with many a wonderous and > strange error to as

Re: Tomcat 5.5, connection pooling with commons-dbcp 1.2.1

2008-08-28 Thread jerrycat
you. > The code you cite below looks like it's for when you are creating the > pool and managing it yourself, which you aren't doing in this case. > > Also you didn't mention it, but I'm assuming your one and only copy of > the DBCP jar file is in common

Tomcat 5.5, connection pooling with commons-dbcp 1.2.1

2008-08-28 Thread jerrycat
I have configured my web app to use tomcat's connection pooling. and also I have modfied the default value of the factory attribute: factory="org.apache.commons.dbcp.BasicDataSourceFactory" Here is the context.xml Here is how I retrieve the data source so that I later can ask for a

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread jerrycat
ut you can see the contents just by unzipping it. > > --David > > jerrycat wrote: >> [Tried to read the tomcat docs, but it is a bit confusing] >> >> Right, my goal is to deploy war files that get unpacked so that I can see >> the directory structure. >> >&

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread jerrycat
e is running on port 80 and the firewall is turned off. The OS is windows server 2003. Thanks for all help so far. Markus Schönhaber-10 wrote: > > jerrycat wrote: > >> Thanks, >> just a question here. >> >> Set the appBase attributes for all your Host eleme

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread jerrycat
e is running on port 80 and the firewall is turned off. The OS is windows server 2003. Thanks for all help so far. Markus Schönhaber-10 wrote: > > jerrycat wrote: > >> Thanks, >> just a question here. >> >> Set the appBase attributes for all your Host eleme

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread jerrycat
Thanks, just a question here. Set the appBase attributes for all your Host elements to different paths and make sure that not one is contained in another. For example, if you've got two hosts, "localhost" and "www.test.com", you could configure them like that: > j

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread jerrycat
for the specific Host, how should I configure it then? Please help by giving examples! Markus Schönhaber-10 wrote: > > jerrycat wrote: > >> I understand that Tomcat 5.5 prefers that your web application comes with >> a >> context.xml file under the META-INF f

Tomcat 5.5 context.xml, how to configure the Host element

2008-08-25 Thread jerrycat
Dear all, I understand that Tomcat 5.5 prefers that your web application comes with a context.xml file under the META-INF folder. So I added a context.xml file under the META-INF folder of my web application, please have a look below. context.xml [code] [/code] Ok, that is good so far