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.
Created attachment 152715 [details] screenshot of project dialog. Context path is different. Product Version: NetBeans IDE Dev (Build 1) Updates: Updates available Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25 Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b26 System: Linux version 3.2.0-4-amd64 running on amd64; ANSI_X3.4-1968; en_US (nb) I have tried the same operation on today and yesterday, on build 201503190001 and 201503180001, and noticed that web application does not set Context Path in project. Please refer the snapshot. This will cause issue that Test Resource Url can not be accessed. NetBeans opens the following url, http://localhost:8080//webresources/test.customer The correct URL is http://localhost:8080/WebApplication2/webresources/test.customer Please refer the screenshot.
Step: 1. start netbeans 2. create a web project (I tried maven web project and got the same result) 3. just run The following url is opened, 201503180001 http://localhost:8080/WebApplication2/ 201503190001 http://localhost:8080/web/ 4. create RESTful web services from database 5. try to open "Test Resource Url" 201503180001 http://localhost:8080/WebApplication2/webresources/test.customer 201503190001 http://localhost:8080//webresources/test.customer (It causes error dialog)
Created attachment 152717 [details] opening test resource url fails
This might be server specific. What server do you use?
Ok, I can reproduce it using GlassFish. Might be related to recent fixes.
This was caused by recent fixes for #233481. I have fixed that in web-main 120f88defdb3. I'm not sure why the change of web DD to resources files. If I understand it properly, resources file serves different purpose. Tomasi please review.
Fix looks good, thank you Peter for taking care of this.
Integrated into 'main-silver', will be available in build *201503250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/120f88defdb3 User: Petr Hejl <phejl@netbeans.org> Log: #251290 - context path is not set in web project since 201503190001 build