Summary: | [API Request] add setContextRoot() to WebUtilities | ||||||
---|---|---|---|---|---|---|---|
Product: | [WebTools] WTP Java EE Tools | Reporter: | Udo Walker <Udo.Walker> | ||||
Component: | jst.j2ee | Assignee: | Carl Anderson <ccc> | ||||
Status: | RESOLVED FIXED | QA Contact: | Chuck Bridgham <cbridgha> | ||||
Severity: | enhancement | ||||||
Priority: | P1 | CC: | ccc, david_williams | ||||
Version: | 2.0.2 | ||||||
Target Milestone: | 3.2 M6 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Udo Walker
2008-06-03 07:26:47 EDT
Udo, do you just have a standalone Web project, that you want to set the Context Root for? Or is this Web project a member of an EAR? And is it a Servlet 2.5 Web module? Or Servlet 2.4 or earlier? Also, if the project in step 2 is a web project, it should not be passed into EARArtifactEdit's constructor - that is for EAR projects. (So this would appear to be a usage problem.) The project facets are: Dynamic Web Module 2.5 Java 6.0 How can I change the context path of a "not EAR" web project? The appropriate way to set the context root for a Web project is via J2EEProjectUtilities.setServerContextRoot(webProject, contextRoot); While J2EEProjectUtilities is an internal class, it is used extensively by both WTP code and adopters. If requested, an API can be created to access this. I am lowering the severity of this bug for now. Hi Carl, a public API for setting the context root would be great! The proper place to put this would be in WebUtilities. Created attachment 159476 [details]
A public API to set the context root
Committed to HEAD for WTP 3.2 M6 Thanks, I will try in one of our next releases. |