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.
Plugins have no access to the web module folder (document base) at the time of creation of server specific DD. Tomcat needs to specify docBase attribute in context.xml file and it cannot do it until the module is being deployed (and then it does not work 100% and it is a workaround). This is a strange time for changing the context.xml file! It needs to be done during creation of context.xml. At the time of deployment plugin does get the doc base when using incremental deployment or the DeploymentManager.distribute with java.io.File parameters but not when using the DM.distribute with InputStream parameters.
I think this has to be filled in at deployment time - isn't the docbase attribute different if its deployed as a war, or if a build process copies it? Providing this information at development time doesn't seem like its the right approach.
this is fixed