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 178429

Summary: [saas] drop to EE6 project should generate @WebServlet to servlets
Product: webservices Reporter: Lukas Jungmann <jungi>
Component: ManagerAssignee: Peter Liu <petertliu>
Status: VERIFIED FIXED    
Severity: normal CC: mkuchtiak, sustaining
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Lukas Jungmann 2009-12-10 07:57:59 UTC
-create a javaee6 webapp (w/o deployment descriptor - default behaviour)
-drop some saas service call into a jsp or servlet there
-run jsp or the servlet with the saas service call

=> browser shows HTTP 404

Problem is that because of missing web.xml no url mappings for servlets are defined

solutions:

1) create web.xml before doing a drop of saas service into webapp

2) add @javax.servlet.annotation.WebServlet(name="<servletName>", urlPatterns={"/<servletMapping>"}) to generated servlets
Comment 1 Milan Kuchtiak 2009-12-11 09:21:01 UTC
Fixed.

Details:
http://hg.netbeans.org/main/rev/0a6d64b4084
Comment 2 Quality Engineering 2009-12-11 20:54:32 UTC
Integrated into 'main-golden', will be available in build *200912111937* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0a6d64b4084e
User: mkuchtiak@netbeans.org
Log: #178429: generate @WebServlet annotation for Saas ServiceLogin and ServiceCallback
Comment 3 Lukas Jungmann 2010-01-14 03:37:20 UTC
still reproducible even after a fix - there's no @WebServlet being generated in:

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_18-ea; Java HotSpot(TM) Client VM 16.0-b10
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Userdir: C:\Users\lukas\.netbeans\6.8

Milan, can you re-check this, please?
thx
Comment 4 Lukas Jungmann 2010-01-14 03:45:05 UTC
whoops, that was 6.8 build... rechecking, my fault, sorry
Comment 5 Lukas Jungmann 2010-01-14 03:57:57 UTC
v. in:

Product Version: NetBeans IDE Dev (Build 201001140201)
Java: 1.6.0_18-ea; Java HotSpot(TM) Client VM 16.0-b10
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Userdir: C:\Users\lukas\.netbeans\dev
Comment 6 pgebauer 2010-01-14 13:16:55 UTC
The fix has been ported into the release68_fixes repository.
http://hg.netbeans.org/release68_fixes/rev/d36f4ac222e7