<ResourceLink> <Environment> <Transaction> All these tags defined in conf/context.xml and host/context.xml.default are totally ignored. If specified in each applications context.xml it is ok. Tested on windows vista and linux Am i missing something somewhere ?
tested with directory deployment
This works for me in 6.0.x and trunk. Looks like a configuration problem. Please use the users list for assistance.
It does NOT work in ALL versions since 6.0.20 --> 6.0.26 elements in $CATALINA_BASE/conf/context.xml or in $CATALINA_BASE/conf/[enginename]/[hostname]/context.xml.default ARE NO LONGER available for the webapps. According to the documentation and the behavior until 6.0.18, they should be available for all the webapps (or for de webapps of that host) I TESTED it with resourcelinks, transaction and environment elements. Tested on VISTA and REDHAT. Example : <Environment name="test" value="host001" type="java.lang.String" override="true" /> <ResourceLink name="mail" global="mail/Session" type="javax.mail.Session" /> <ResourceLink name="db" global="jdbc/dev1" type="javax.sql.DataSource" /> <Transaction factory="com.atomikos.icatch.jta.UserTransactionFactory" /> Only workaround is to copy these elements to each and every webapp. This is not the intention if you look at the Tomcat documentation.
Parameters with override="false" in Context-Files dont overrule the <context-param> in the corresponding web-app. See: org.apache.catalina.core.StandardContext.mergeParameters() --> set (twice) on the context and override property is honored but will be ignored, because in org.apache.catalina.core.ApplicationContext.setInitParameter(...) the value wont change
The issue in 6.0.32 is known and already fixed in 7.0 since 7.0.9 and 6.0.33 (not yet released) - see bug 50700. Cannot comment about the old WORKSFORME issue that was reported for 6.0.26. *** This bug has been marked as a duplicate of bug 50700 ***