Hmmm..... and the plot thickens. Have you asked the vendor about this
issue? Can they offer any insights as to how they access the
myapp.properties file?
--David
Robinson, Eric wrote:
David,
I do not know if the 3rd party app has hard-coded paths. I grepped for
tomcat in the app directory and below and I see a couple of places where
it is doing a System.GetProperty("tomcat.home"), but that's about it.
--
Eric Robinson
-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 01, 2006 8:55 AM
To: Tomcat Users List
Subject: Re: Someone Please: Why Is Tomcat Looking In The Wrong
Directory?
Fair enough. Are the JSPs, servlets, etc., ... all being called from
the /home/myaccount/tomcat5/webapps directory?
Here's where I'm going with this:
If resources like this properties file are being opened from the wrong
location, but other webapp resources (images, jsps, servlets, etc., ...)
are being served up from the proper location, it could be the result of
bugs in your third party webapp. Maybe it's reliant on a hard coded
path or a relative path to the current directory at the time tomcat was
started.
--David
Robinson, Eric wrote:
Sorry, I cannot answer that question as I am not the developer.
Although I called it "myapp" for simplicty, it is really a third-party
application.
--
Eric Robinson
-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 01, 2006 8:23 AM
To: Tomcat Users List
Subject: Re: Someone Please: Why Is Tomcat Looking In The Wrong
Directory?
I'm responding to the first message in the thread, but have read all of
it. A thought:
How are you opening this file? Hopefully it's via
ServletContext.getResourceAsStream( "/myapp/conf/myapp.properties" ) ;
--David
Robinson, Eric wrote:
Hello all,
When I start tomcat, I get several messages like these:
java.io.FileNotFoundException:
/usr/local/tomcat5/webapps/myapp/conf/myapp.properties (No such file
or
directory)
This file actually exists in
/home/myaccount/tomcat5/webapps/myapp/conf/myapp.properties
I have $CATALINA_BASE set to /home/myaccount/tomcat5
My instance of tomcat is starting mostly fine. I can connect to it on
my custom port and see my own default page, but for some reason tomcat
is still looking for "myapp" in the directory specified by
$CATALINA_HOME.
Someone please take a moment and give me some tips on why this might
be
happening.
Thanks much,
--
Eric Robinson
Disclaimer - August 1, 2006
This email and any files transmitted with it are confidential and
intended solely for [EMAIL PROTECTED] If you are not the named
addressee you should not disseminate, distribute, copy or alter this
email. Any views or opinions presented in this email are solely those
of the author and might not represent those of Physician Select
Management
(PSM) or Physician's Managed Care (PMC). Warning: Although the message
sender has taken reasonable precautions to ensure no viruses are
present in this email, neither PSM nor PMC can accept responsibility
for any loss or damage arising from the use of this email or
attachments.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]