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.
Scenario : - create a Maven web application (e.g. mavenprojectWeb) - open project customizer and set up Target server for Tomcat (look that context path value is "/mavenprojectWeb" in project properties) - the META-INF/context.xml is created : <?xml version="1.0" encoding="UTF-8"?> <Context antiJARLocking="true" path=""/> <!-- the path attribute is empty --> The path atribute should be set to "/mavenprojectWeb".
the context.xml file is created by the server plugin, it could be a bug there. what we do is following: WebModuleImplementation.getContextPath() returns the value from deployment descriptor via J2eeModuleProvider.getConfigSupport().getWebContextRoot() if not found, we fallback to the maven final name of the artifact (mavenprojectWeb I guess.) when setting the value in the customizer, we again delegate to the J2eeModuleProvider.getConfigSupport() not sure what is there to do, please advice
*** Issue 154364 has been marked as a duplicate of this issue. ***
reassigning to tomcat integration for evaluation. Please advice what from the project is used for the context path proeprty.
Perhaps context root should be configured after ensureConfigurationReady() is called.
http://hg.netbeans.org/main/rev/6d1de89ec39b
Integrated into 'main-golden', will be available in build *200904091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6d1de89ec39b User: Milos Kleint <mkleint@netbeans.org> Log: #160722 make sure to pass the context path to the app server after ensureConfigurationReady() call.