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 198299 - NB 7.0 adds underscore to web app context root
Summary: NB 7.0 adds underscore to web app context root
Status: RESOLVED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 03:49 UTC by wbehymer
Modified: 2012-11-27 15:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wbehymer 2011-05-04 03:49:10 UTC
Currently using NB 7.0 and GF 3.1 under WinXP-SP3. After upgrading from NB 6.9.1 to 7.0, used 7.0 to clean/rebuild and redeploy several existing web projects. Afterwards, experienced "resource not found" errors when attempting to access these web apps in IE. Errors were observed on both the local development instance of GF 3.1 (in-place deployment) as well as a remote development instance of GF 3.1 (war auto-deployment) to which these apps were redeployed. After investigating, discovered that NB had added an underscore character to the beginning of the context root name of each of the web projects that had simply been rebuilt and redeployed. Further, noticed that NB 7.0 also adds an underscore at the beginning of the default context root name when creating a new web project. Did not observe either of these behaviors in previous versions of NB.
Comment 1 Vince Kraemer 2011-05-04 14:09:11 UTC
Do you have a sample project that demonstrates this behavior?

Can you provide step-by-step instructions on how to reproduce this issue?
Comment 2 Vince Kraemer 2011-05-04 20:25:43 UTC
also... Java web -> Web Application or Maven -> Mave web Application???
Comment 3 Vince Kraemer 2011-05-04 20:45:31 UTC
I haven't been able to replicate this so far.  Here is what I did...

1. started NB 6.9
2. used the update center to upgrade that IDE to 6.9.1
3. created a 'Java Web -> Web Application' that targeted the 3.0 server that is bundled with 6.9.
4. ran the project created in step 3.
   it ran successfully
5. Stopped the IDE
6. Started NB 7.0
7. opened the project created in step 3.
8. ran the project
   The app built and was then deployed onto GF 3.1 (which is bundled with 7.0)
   The app ran successfully.  I did not see any underscores in the context-root of the app.
Comment 4 Vince Kraemer 2011-05-05 05:22:10 UTC
Notes from a direct email from the filer...

A couple of additional details...

Prior to installing NB 7.0, I was using NB 6.9.1 with GF 3.1, not 3.0.
(Yes, I had seen the warnings about using GF 3.1 with NB 6.9.1 but did
anyway.)  Since I updated GF to 3.1 relatively recently using the GF Update
Center (I download/install GF separately rather than using the version
bundled with NB), I can't recall whether I'd actually used 6.9.1 to deploy
any apps to GF 3.1 before installing NB 7.0.  In any event, I then installed
NB 7.0 and, to test my setup, did clean/rebuilds and redeployed each web app
to GF 3.1.  It was then that I received all of the "resource not found"
errors and subsequently discovered that NB had added the underscore to the
context name of each app.  Once I discovered this, I simply had to edit the
properties of each web project to remove the underscore from the context
name, rebuild and redeploy and everything worked fine again.

Perhaps it had something to do with my using NB 6.9.1 with GF 3.1
(identifying GF as a GF 3.0 server since NB 6.9.1 didn't yet support GF
3.1.)  In any event, I have tried creating a couple new web projects and
haven't yet been able to reproduce the problem.  If I do, I'll get back in
touch and provide the details.
Comment 5 Vince Kraemer 2011-05-05 05:22:24 UTC
Notes from a direct email from the filer...

A couple of additional details...

Prior to installing NB 7.0, I was using NB 6.9.1 with GF 3.1, not 3.0.
(Yes, I had seen the warnings about using GF 3.1 with NB 6.9.1 but did
anyway.)  Since I updated GF to 3.1 relatively recently using the GF Update
Center (I download/install GF separately rather than using the version
bundled with NB), I can't recall whether I'd actually used 6.9.1 to deploy
any apps to GF 3.1 before installing NB 7.0.  In any event, I then installed
NB 7.0 and, to test my setup, did clean/rebuilds and redeployed each web app
to GF 3.1.  It was then that I received all of the "resource not found"
errors and subsequently discovered that NB had added the underscore to the
context name of each app.  Once I discovered this, I simply had to edit the
properties of each web project to remove the underscore from the context
name, rebuild and redeploy and everything worked fine again.

Perhaps it had something to do with my using NB 6.9.1 with GF 3.1
(identifying GF as a GF 3.0 server since NB 6.9.1 didn't yet support GF
3.1.)  In any event, I have tried creating a couple new web projects and
haven't yet been able to reproduce the problem.  If I do, I'll get back in
touch and provide the details.
Comment 6 Vince Kraemer 2011-05-05 05:25:26 UTC
it looks like the filer has not been able to reproduce this and the evolution of the environment is a bit ambiguous.

Lowering to p4. Will raise if others report this or I get more details from the filer that clarify the evolution.
Comment 7 TomasKraus 2012-11-27 15:39:51 UTC
Looks like vince was unable to get more details. I'm closing this issue now. Feel free to reopen it if you still see this issue in NetBeans 7.3 (current beta) or later.