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 26452 - Servlet with security constraints can't be executed
Summary: Servlet with security constraints can't be executed
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: -S1S-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-12 16:53 UTC by Alexei Mokeev
Modified: 2003-07-25 02:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexei Mokeev 2002-08-12 16:53:50 UTC
Security protected Servlet can't be executed.

Steps to reproduce:
1)Mount some web module with well working servlet
2)View properties of web.xml of this web module
3)Swith properties to security tab and:
 3.1) Set  "Login configuration" to "BASIC"
 3.2) Add new security role "tomcat" 
 3.3)Click on "..." near "Security Constraints", add new resource with valid URI to your servlet,
Check "Apply Authorization Constraint" checkbox for this resource.
4)Try to execute your servlet and notice, that error page in browser shown, servlet not 
executed.

Output window:
2002-08-12 19:28:49 ContextConfig[]: No Realm has been configured to authenticate against
2002-08-12 19:28:49 ContextConfig[]: Marking this application unavailable due to previous 
error(s)
2002-08-12 19:28:49 StandardContext[]: Error initializing naming context for context 
2002-08-12 19:28:49 StandardContext[]: Context startup failed due to previous errors
2002-08-12 19:28:49 StandardContext[]: Error initializing naming context for context 


Well reproduced with S1S4 update 1 EE build 020808_1 under Win2K


Looks like the reason of this bug is the same as for #23951 and in this case
declaration of realm is missed for Tomcat-Netbeans service.
Comment 1 Milan Kuchtiak 2002-09-02 12:42:39 UTC
Thanks Alexei, you have identified the source of the bug 
well indeed. 
The bug was already fixed for Netbeans 3.4.
Comment 2 Alexei Mokeev 2002-09-02 13:06:45 UTC
Very well. Hovewer it is serious defect in S1S. Will be it fixed in
fututre S1S releases ?
Comment 3 Alexei Mokeev 2002-09-10 08:41:18 UTC
Well reproduced with 020905 build 
Comment 4 Petr Pisl 2003-01-14 13:55:57 UTC
Integrated into sierrafixes branch (path 2).
Comment 5 Alexei Mokeev 2003-02-20 10:48:38 UTC
Verified with S1S 5 build 030217_1.
Comment 6 Mikhail Romanov 2003-07-25 02:02:30 UTC
Verified in Sierra patch 2.