I always put properties files in the /WEB-INF/classes directory... that
should be the first pl;ace that tomcat searches for any resource.
Matt

"G.Nagarajan" wrote:
> 
> Todd,
> I had the same problems with property files. I created a directory
> c:\configuration, put this in the classpath and put all the property files
> in it.
> Now it is working fine. When I used to put the .properties files under the
> tomcat
> directory, the static initializers could not access them. Another funny
> thing was
> that they could access the file if I had run an application earlier that
> accesses
> the same file. I don't know why.
> 
> regards,
> Nagarajan
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 02, 2001 12:41 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Poolman and Tomcat - where does the poolman.props file go
> 
> Nagarajan,
> 
> Thanks for the reply, I have done as you suggested and the application works
> just fine which is really rather confusing since they are both basically
> using the same classpath, except tomcat has included other .jar files found
> in the tomcat_home\lib directory on the path.
> 
> Any ideas what may be going on here?
> 
> Todd
> 
> -----Original Message-----
> From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 02, 2001 5:01 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Poolman and Tomcat - where does the poolman.props file go
> 
> Hi,
> Try using Poolman from an application instead of a servlet. In that way you
> will know whether
> the classpath is ok.
> 
> Regards,
> Nagarajan
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 01, 2001 8:47 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Poolman and Tomcat - where does the poolman.props file go
> 
> Ariel,
> 
> Thanks for the reply, but I have already tried this with no success.  I sent
> the classpath set by tomcat out to a file and the directory containing the
> property file is in there, but I still get the error.  Any other ideas?
> 
> Regards,
> 
> Todd
> 
> -----Original Message-----
> From: Ariel [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 01, 2001 11:56 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Poolman and Tomcat - where does the poolman.props file go
> 
> Add some directory (like c:\tomcat\lib) to your CLASSPATH and copy
> poolman.props to this directory.
> 
> Ariel
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 01, 2001 6:08 PM
> To: [EMAIL PROTECTED]
> Subject: Poolman and Tomcat - where does the poolman.props file go
> 
> Hello all,
> 
> My configuration is as follows:
> 
>         WIN2K
>         Apache 1.3.14
>         Tomcat 3.2.1
>         Poolman 1.4.1
> 
> I have include the poolman.jar file in my CLASSPATH as per the
> documentation.  I have tested the connection with the PoolManSample.java
> program provided and all works fine from outside of tomcat.  I have a
> servlet which now attempts to connect to the database via PoolMan, but I
> keep getting the following error:
> 
>      Could not find 'poolman.props' -- now attempting to read deprecated
> file name 'pool.props'... failed.
> 
> I have tried placing the poolman.props file in my webapps directory,
> TOMCAT_HOME\webapps\myapp and in the classes directory under myapp and in
> about every other directory I can think of but to no avail.  Is there
> something else I need to configure in the web.xml or in tomcat.conf to have
> this work correctly?
> 
> Any help with this is appreciated.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
begin:vcard 
n:Goss;Matt
tel;fax:919-657-1501
tel;work:919-657-1432
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Matt
end:vcard

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

Reply via email to