tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robinson, Eric" <eric.robin...@pmcipa.com>
Subject RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?
Date Tue, 01 Aug 2006 19:24:49 GMT
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:dns4@cornell.edu] 
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:dns4@cornell.edu]
>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:dns4@cornell.edu]
>>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 users@tomcat.apache.org. 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: users-unsubscribe@tomcat.apache.org
>>For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
>>e-mail: users-unsubscribe@tomcat.apache.org
>>For additional commands, e-mail: users-help@tomcat.apache.org
>>
>> 
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
>e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
>e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>  
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message