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.
[ BUILD # : 201206110001 ] [ JDK VERSION : 1.7.4 ] I followed JavaEE Sanity http://wiki.netbeans.org/TS_72_JavaEE_Sanity Test suite: Create Java EE 6 Application Creating Web Service project Maven Project On the step: Configure, Build and deploy the Web Service Endpoint When I run the project, it's built successfully, but when the URL is opened in the browser it shows HTTP Status 404 - Not Found type Status report messageNot Found descriptionThe requested resource (Not Found) is not available.
Created attachment 120790 [details] messages.log
1) Project doesn't work at runtime. So messages.log doesn't contain information about error. Check the server.log. 2) Did you set all strings as required : - Path for DukesAgeResource class ( @Path annotation value ) is "dukesAge". - Set the context path to: /DukesAgeService ( for Project ) - Set "Relative URL" to /webresources/dukesAge ( for Project ) 3) Check ApplicationConfig class @ApplicationPath annotation. It's value should be "webresources". This class is autogenerated for JEE6 REST services. The example will work only if all above requirement are satisfied. The last thing : please check ApplicationConfig class . There was a bug fixed some time ago. It should extend Application: public class ApplicationConfig extends Application . REST service will not work if ApplicationConfig is not configured properly. I'm not able to reproduce the issue following the exact steps of example.
Created attachment 120814 [details] Working project. Attached project works for me on Windows. Product Version: NetBeans IDE Dev (Build 201206140001) Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03 System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
I've verified this with the build 201206140001 and JDK 1.7.0_05 and it seems to work fine.
Reproducible in 201206291011 (7.2 fcs) Solaris 11, jdk 1.7.0_05 glassfish-3.1.2.2
Sorry, wrong build was used. It works with FCS.