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.
I was testing glassfish v3 and netbeans 6.1 integration. I was using sample web apps that came with netbeans. I tried jsp sample application. Netbeans automatically gave JSPExamples1 to project name. When i tried to run the app, netbeans opened http://localhost:8080/JSPExamples1/ and the server gave 404 error saying The requested resource () is not available. I checked through glassfish admin for web applications. It lists JSPExamples1 as Name and /jsp- examples as Context Root. I tried http://localhost:8080/jsp-examples/ and it was working. Then i created an empty jsp project from scratch. I defined project name as WebApp1 and context root as WebApp2. When netbeans deploys and runs the project it opens the http://localhost:8080/WepApp1 and it works fine. I checked through glassfish admin and noticed that both name and context root was defined as WebApp1 although they were defined different initially.
This is known and will be fixed soon. *** This issue has been marked as a duplicate of 138532 ***