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 154786 - context root keeps being reset in web project properties
Summary: context root keeps being reset in web project properties
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebSphere (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 16:11 UTC by ats37
Modified: 2009-08-10 15:21 UTC (History)
2 users (show)

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 ats37 2008-12-05 16:11:52 UTC
I'm using Netbeans 6.5 under Sun's JDK 1.6.0_02 on Windows XP.

For one of my apps, I have three Netbeans project directories (all subdirectories of a single location).  There's
$root/static_files, containing various static resources (javascript, css, images, etc.) ultimately destined for serving
on our web server.  There's $root/web_module, a containing the dynamic web app code (servlets, jsp, and other files used
by them).  These two are both Web type projects.  Then there's $root/application, containing a J2EE Application type
project that includes the other two projects as Jave EE Modules.

I set all three to use Websphere 6.0 as their target server.  I set the context paths in the web projects to /common
(for the static files) and /site (for the main web app), and used the same in the application's deployment descriptor. 
However, I keep finding when I go into the project properties dialog for the two web projects that their context paths
have changed themselves to the names of the folders that contain them i.e. /static_files and /web_module (which are, of
course, the default values that I was offered when I first created the projects).  I think it's restarting Netbeans that
triggers this; if it's doing it during a coding session I've not noticed it, though I wouldn't swear to that.

Running the app doesn't seem to be affected so long as I Run the whole lot via the application project, but it's a bit
annoying if I want to run just the /site web app on its own (ultimately I'll be deploying the .war file from that one on
its own anyway, the rest is just to let me run things nicely on my local machine while developing, without the page
styling etc. being all messed up).

When I changed the two web projects' target server setting (to Tomcat 6) it stopped doing this, so I figure it must be
the Websphere server plugin that's making it do this?
Comment 1 Martin Fousek 2009-01-12 09:31:50 UTC
Hi, I'm sorry but I'm a little confused from your description. I tried to reproduce it, but without success. Please, can
you take me exact (dotted) steps how to reproduce? Thank you very much ats37.
Comment 2 Petr Hejl 2009-04-02 16:25:27 UTC
Can you provide the requeste steps please?
Comment 3 Petr Hejl 2009-08-10 15:21:38 UTC
No response from reporter. closing as WORKSFORME.