Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by DanielJue: http://wiki.apache.org/tapestry/Tapestry5WhereToStoreConfigurationResources The comment on the change is: Added info about external context.xml files ------------------------------------------------------------------------------ * Things that can go in src/main/webapp/META-INF - 1. context.xml, as used for Tomcat. In here you can put your JNDI resource settings as referenced in your web.xml. These will get appended to the server.xml file in the Tomcat/conf directory. + 1. context.xml, as used for Tomcat. In here you can put your JNDI resource settings as referenced in your web.xml. These will get appended to the server.xml file in the %Tomcat_Home%/conf directory. If you want a different context.xml for different servers you deploy to, keep reading. * Things that can go in @@ -23, +23 @@ 1. web.xml, as used by web application containers (Tomcat/Jetty, etc) In here you can put your context parameters, filters and filter mappings, and JNDI resource references. 2. app.properties, the application wide message catalog. Use this for defining the labels for buttons, field labels and more. + + * Different Context.xmls for different servers + For Tomcat 5+ it is not recommended to put contextual information in the %Tomcat_Home%/conf/server.xml + Instead, you should create a separate context.xml and place it in %Tomcat_Home%/conf/context.xml + In some cases (Such as Eclipse Ganymede), the "%Tomcat_Home%/conf/context.xml" will get overwritten on deployment, if you are deploying straight to the Tomcat installation. So it is actually preferable to put the contents of context.xml into a file + "%Tomcat_Home%\conf\Catalina\localhost\context.xml.default" + Note that this means the contents will be shared for all web apps served by Tomcat, which may be good for things like JNDI references. + + + + + + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
