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 149899 - Context root != project name gives a 404
Summary: Context root != project name gives a 404
Status: RESOLVED DUPLICATE of bug 138532
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 05:13 UTC by silveiraneto
Modified: 2008-10-13 22:23 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 silveiraneto 2008-10-13 05:13:26 UTC
1. Start NetBeans (6.5 Beta).
2. Create a new projetct, choose in categorie "Java Web" and in project "Web Application".
3. Project name "correctlongname".
4. On "Server and Setting" put on "Context Path" a url like "/c". I'm using server Glassfish V3 and Java EE 5.
5. Select none framework and click "Finish".
6. Click on the Run button or F6.

You got a Glassfish 404 page. The browser will open on "http://localhost:8080/correctlongname/" and not in
"http://localhost:8080/c".

The workaround I found was changing the context root in the sun-web.xml to match with the project name. But in my case I
really need to they be different.
Comment 1 David Konecny 2008-10-13 21:57:09 UTC
This works fine for me. The only difference is I'm using GF2. Passing to GF plugin team for the evaluation.
Comment 2 _ pcw 2008-10-13 22:23:55 UTC
This was fixed near the end of August, 2008.

Have you tried the latest bits?



*** This issue has been marked as a duplicate of 138532 ***