tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tapestry Wiki] Trivial Update of "Tapestry5WhereToStoreConfigurationResources" by DanielJue
Date Thu, 01 May 2008 20:57:39 GMT
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message