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.
I have a web app maven-based project named "preliminaryapp". When I go to project properties->run, I see context root is set to "/preliminaryapp", however neither glassfish-web.xml nor sun-web.xml contain context root element. If I deploy as is, it deploys under the following context root: "/com.sun.jersey.test.functional_preliminaryapp_war_1.9-SNAPSHOT" If I add the context root entry to glassfish-web.xml manually, it gets removed by NetBeans as soon as I do "Clean" on the project. If I set the context root to something else, it works - the correct element gets added to the glassfish-web.xml, but as soon as I set it back to "/preliminaryapp", it gets removed - I found no way how I could get it to deploy under the desired context root of "/preliminaryapp". This is super-annoying and can't find a workaround.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/ed91f7d032fb User: vince kraemer <vkraemer@netbeans.org> Log: #201579 : name applied as context-root with GF... even though it shouldn't be
in the trunk
Would it make sense to roll this fix into the next patch for 7.0.1? Martin or Jirka, could you please verify in the latest NB 7.1 builds?
Verified in build 201109132156.