It should be pretty easy to add get/setConfiguredDocBase to StandardContext 
(and call it from ContextConfig).  Don't have a lot of interest myself (I 
consider /admin hopelessly broken, so I don't care what it does :), but 
knock yourself out.

"Peter Rossbach" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Hmm,

but why we not store the original docBase at Context ? StoreConfig
need it to store the correct path at conf/Catalina/localhost/
MyApps.xml after a change?

Peter


Am 14.04.2006 um 22:23 schrieb Bill Barker:

>
>
>> -----Original Message-----
>> From: Peter Rossbach [mailto:[EMAIL PROTECTED]
>> Sent: Friday, April 14, 2006 12:12 PM
>> To: Tomcat Developers List
>> Subject: Re: svn commit: r394113 - in
>> /tomcat/container/tc5.5.x:
>> modules/storeconfig/src/share/org/apache/catalina/storeconfig/
>> StandardContextSF.java
>> modules/storeconfig/src/share/org/apache/catalina/storeconfig/
>> StoreConfig.java webapps/docs/changelog.xml
>>
>> OK!
>>
>> Can you explain, why we set  Context.docBase to MyApps as conf/
>> Catalina/localhost/MyApps.xml deployed with following contents
>>
>> <Context docBase="${catalina.base}/../../webapps/MyApps.war" />
>>
>
> Because if unpackWARs="true", the war is exploded into the MyApps 
> directory,
> and Tomcat then considers that to be the docBase.
>
>> How I can find at runtime  the real docBase path?
>>
>
> The Deployer knows about it, but it isn't telling :).
>
> Otherwise, you'd have to re-parse MyApps.xml.  It is long gone from  the
> Context.
>
>> Regards
>> Peter
>>
>> Am 14.04.2006 um 19:59 schrieb Remy Maucherat:
>>
>>> Peter Rossbach wrote:
>>>> Hi Yoav,
>>>> the proposed StoreConfig patch is wrong, but I find a fix.  After
>>>> some testing I see a very strange behaviour.
>>>> I test with a referenced war file.
>>>> <Context docBase="${catalina.base}/../../webapps/some.war" />
>>>> and see at jconsole that docBase is set to "some" and not to the
>>>> correct war path.
>>>> After I store the context the docBase is remove. That correct
>>>> behaviour from StoreConfig for local directory deployment $
>>>> {catalina.base}/webapps/some.
>>>> But why we remove orginal docBase? How can find the orginal
>>>> docBase that I configured???
>>>> Need help from Remy....
>>>> Peter
>>>> PS: I check in current stage, better work as before, but the fix
>>>> is not finished.
>>>
>>> Don't CC me, I can read emails just fine. The basic rule is that
>>> the docBase is ignored if inside the hosts's appBase (because in
>>> that case the deployer wants to use the path).
>>>
>>> About tcnative 1.1.3, it's there as usual: http://www.apache.org/
>>> dist/tomcat/tomcat-connectors/native/
>>> The d/l is from the archive, so not synced yet.
>>>
>>> Rémy
>>>
>>>
>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
>
> This message is intended only for the use of the person(s) listed  above 
> as the intended recipient(s), and may contain information  that is 
> PRIVILEGED and CONFIDENTIAL.  If you are not an intended  recipient, you 
> may not read, copy, or distribute this message or  any attachment. If you 
> received this communication in error, please  notify us immediately by 
> e-mail and then delete all copies of this  message and any attachments.
>
> In addition you should be aware that ordinary (unencrypted) e-mail  sent 
> through the Internet is not secure. Do not send confidential  or sensitive 
> information, such as social security numbers, account  numbers, personal 
> identification numbers and passwords, to us via  ordinary (unencrypted) 
> e-mail.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




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

Reply via email to