This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 7.0 (Build 201104080000) Operating System = Mac OS X version 10.6.7 running on x86_64 Java; VM; Vendor = 1.6.0_24 Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02-334 Firstly I believe it is a bug that the path attribute is getting updated at all. If I supply a context.xml in META-INF, DO NOT MODIFY IT. Secondly, If I am using a profile variable to set the finalName of the war, the path attribute is getting set to the unfiltered variable name. from the pom.xml <build> . . . <finalName>${war.finalname}</finalName> </build> from my profiles.xml <properties> <war.finalname>dss-local</war.finalname> </properties> context.xml <Context cookies="true" override="true" path="${war.finalname}"> </Context>
I think it is even worse: Setting the path attribute at all is a bug. The "Tomcat7 Configuration Reference" states: "The value of this field must not be set except when statically defining a Context in server.xml, as it will be inferred from the filenames used for either the .xml context file or the docBase." see: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes or http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Common_Attributes or http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Common_Attributes
*** This bug has been marked as a duplicate of bug 186624 ***