As an additional comment: Based on earlier comments, it looks like the vendor's application is using the system property tomcat.home to create the file path to open.
As you found out this will prevent using CATALINA_BASE or creating virtual hosts under one Tomcat. The vendor might look at using something like: getServletConfig().getServletContext().getRealPath("virtual") and then getting "virtual" fed in via a context-param in the web.xml file. That should return the real path to the file. It will fail when the application is being served from a .war file, but requiring the war file to be exploded should be OK. Just some random thoughts at the end of the thread. /mde/ --- "Robinson, Eric" <[EMAIL PROTECTED]> wrote: > Okay, so I finally connected with someone at the > vendor. Surprise! It > turns out they do not follow the standard method for > creating multiple > instances of tomcat, i.e., by using $CATALINA_BASE. > Instead, I was > advised to copy the entire tomcat directory > structure for each instance. > I did this and it worked. I also had to create a new > entry in init.d for > the new tomcat service and edit a few other files, > but at least now it > is working. Talk about brute force! At least its > good to know I wasn't > being a complete ninny with the way I was > configuring it. > > Nonetheless, THANKS VERY MUCH TO ALL for the many > responses. I am > completely floored by the amount of help people > offered. This is a very > active list, to say the least. > > -- > Eric Robinson > > > -----Original Message----- > From: David Smith [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 01, 2006 11:34 AM > To: Tomcat Users List > Subject: Re: Someone Please: Why Is Tomcat Looking > In The Wrong > Directory? > > 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 > >>> > >>> > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]