[fedora-java] tomcat not expanding macros

Andrew Haley aph at redhat.com
Wed Oct 19 13:36:55 UTC 2005


Charles Curley writes:
 > On Wed, Oct 19, 2005 at 09:49:38AM +0100, Gary Benson wrote:
 > > Charles Curley wrote:
 > > > I have tomcat5-5.0.30-5jpp_6fc on FC4 as updated. My client has sent
 > > > me a war package, foo.war, to install & document. I can deploy it
 > > > via tomcat's manager.
 > > > 
 > > > One problem I hit is that the web.xml file contains a macro, used
 > > > several places, e.g:
 > > > 
 > > > --------------------------------------------------
 > > > 	    <param-value>${catalina.home}/webapps/foo</param-value>
 > > > --------------------------------------------------
 > > [snip]
 > > > 
 > > > I don't see anything in the tomcat docs that suggests that macro
 > > > expansion can be turned on or off.
 > > 
 > > Does Tomcat have macro expansion?  That looks like an Ant macro to me...
 > 
 > Yes, it does look like an Ant macro. Maybe they share the same macro
 > expansion code.
 > 
 > I installed a Sun JVM and Tomcat from Apache's web site on another
 > machine, and have had no problems with this. I moved the Tomcat tree
 > to another location, and it continued to work.

Where is the macro ${catalina.home} defined?  How does this macro
propagate to the context in which Tomcat reads web.xml?

Is there any way to prepare a test case for this stuff?

Andrew.




More information about the fedora-devel-java-list mailing list