Good point.
I've done the same, ie setup a <DefaultContext> within the <Host> of
server.xml, and defined my data-source there.
I've still got a context.xml, but it's now down to just a couple of lines
ie to specify docBase, path and a logger.
It looks like this now:

<?xml version='1.0' encoding='utf-8'?>
<Context docBase="/webapps/isurvey" path="/isurvey" reloadable="true"
swallowOutput="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="isurvey_log." suffix=".txt" timestamp="true"/>
</Context>

Just to make it clear what this is all about, you don't need to define a
<Context> in your server.xml.
In my case, my app is called 'isurvey', so I defined a file called
'isurvey.xml' containing the <Context> above.
I placed this file in {tomcat home}/conf/Catalina/localhost/ , and tomcat
was able to automatically detect the app.

Regards,
John

[EMAIL PROTECTED]
Ph (09) 372-5010


|---------+---------------------------->
|         |           Peng Tuck Kwok   |
|         |           <[EMAIL PROTECTED]|
|         |           om>              |
|         |                            |
|         |           21/07/2004 05:09 |
|         |           PM               |
|         |           Please respond to|
|         |           "Struts Users    |
|         |           Mailing List"    |
|         |                            |
|---------+---------------------------->
  
>--------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                          |
  |       To:       Struts Users Mailing List <[EMAIL PROTECTED]>                      
                     |
  |       cc:                                                                          
                          |
  |       Subject:  Re: Datasource problem again..                                     
                          |
  
>--------------------------------------------------------------------------------------------------------------|




Great, that's always good to hear. Also consider providing your own
context xml for each app with the war file, might save you some time
in server restarts. Unless you changed server.xml through the
administrative interface.

On Wed, 21 Jul 2004 10:24:21 +0800, Koon Yue Lam <[EMAIL PROTECTED]>
wrote:
> Tthanks for the help for all of u !
> Finally I get it done, I create a <default-context> element and nest a
> <resource> with details of MySql in server.xml and it just work
> smoothly~~~
>
> Regards
>
>
>
> ---------------------------------------------------------------------
> 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]




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

Reply via email to