tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Propes, Barry L " <>
Subject RE: DB connection error -Tomcat 6 config
Date Mon, 01 Mar 2010 17:43:31 GMT
Yes, I believe that is indeed getting created.

Should that be being done by Tomcat? Or prevented by some configuration on my end?


-----Original Message-----
From: Felix Schumacher [] 
Sent: Friday, February 26, 2010 12:37 AM
To: Tomcat Users List
Subject: RE: DB connection error -Tomcat 6 config


have you checked, that no context file for your webapp exists in conf/Catalina/localhost?
The file would be named like your webapp but ending with .xml.
So if your webapp is called foo. The file would be conf/Catalina/localhost/foo.xml.
Another thing with filenames. You called your context file META-INF/context.xml but your web.xml
webapps/WEB-INF/web.xml. beware that both directories META-INF and WEB-INF are located inside
your webapp. Keeping the foo examples, they would be sitting in webapps/foo.


"Propes, Barry L" <> schrieb:

>Sorry for the delay - supplying both my META-INF/context.xml and webapps/WEB-INF/web.xml
>Should be noted: for the factory type in the params below, I tried both 
>factory="org.apache.commons.dbcp.BasicDataSourceFactory" and 
>factory="org.apache.dbcp.BasicDataSourceFactory", each to no avail.
>I removed the commons ref to test out since there's no commons/lib dir 
>in TC 6.0.24, unlike in TC 4.1.31
>Please apprise if the error is glaring here and I just can't see it. That's certainly
>Thanks, Chuck.
>context.xml in META-INF fldr
>---------<?xml version="1.0" encoding="UTF-8"?>
>  Licensed to the Apache Software Foundation (ASF) under one or more
>  contributor license agreements.  See the NOTICE file distributed with
>  this work for additional information regarding copyright ownership.
>  The ASF licenses this file to You under the Apache License, Version 
>  (the "License"); you may not use this file except in compliance with
>  the License.  You may obtain a copy of the License at
>  Unless required by applicable law or agreed to in writing, software  
> distributed under the License is distributed on an "AS IS" BASIS,  
>  See the License for the specific language governing permissions and  
> limitations under the License.
>  <!-- omitting - factory="oracle.jdbc.pool.OracleDataSourceFactory" 
>below--> <Resource name="jdbc/myoracle"
> maxActive="125" 
> maxIdle="15" 
> maxWait="7000"
> removeAbandoned="true"
> removeAbandonedTimeout="30"
> logAbandoned="true"
>timeBetweenEvictionRunsMillis = "10000"
>in webapps/WEB-INF/web.xml
><description>My Ora datasource</description> 
>-----Original Message-----
>From: Caldarale, Charles R []
>Sent: Tuesday, February 23, 2010 5:53 PM
>To: Tomcat Users List
>Subject: RE: DB connection error -Tomcat 6 config
>If you don't mind, post your <Context> element again.  The error message indicates
something doesn't match between what your JSP/servlet is requesting and what's registered
via the <Resource> element.
> - Chuck
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message