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.

Bug 201579

Summary: Can't deploy maven based webapp under the default context root
Product: serverplugins Reporter: Martin Matula <mmatula>
Component: GlassFishAssignee: Vince Kraemer <vkraemer>
Status: VERIFIED FIXED    
Severity: normal CC: dkonecny, jskrivanek, mmirilovic, pjiricka
Priority: P1    
Version: 7.0.1   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

Description Martin Matula 2011-09-02 16:50:00 UTC
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.
Comment 1 Quality Engineering 2011-09-08 14:30:50 UTC
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
Comment 2 Vince Kraemer 2011-09-08 15:48:49 UTC
in the trunk
Comment 3 Petr Jiricka 2011-09-13 14:34:38 UTC
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?
Comment 4 Jiri Skrivanek 2011-09-14 14:59:15 UTC
Verified in build 201109132156.