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.
Summary: | web service maven project 404 not found | ||
---|---|---|---|
Product: | webservices | Reporter: | vanob <vanob> |
Component: | Code | Assignee: | Denis Anisimov <ads> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | Anda77, jskrivanek, mmirilovic |
Priority: | P2 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
messages.log
Working project. |
Description
vanob
2012-06-13 14:44:16 UTC
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. |