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 27830 - Servlets naming not used at runtime
Summary: Servlets naming not used at runtime
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-04 17:24 UTC by nucunucu
Modified: 2004-09-24 17:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nucunucu 2002-10-04 17:24:43 UTC
I'm trying to run servlets under netbeans ide 3.4 on 
tomcat404. 
I cannot get to execute a servlet so it will use the 
servlet mapping I have manually specified in web.xml. 
It is using the /servlet/<servlet-class> formula by 
default, instead of the mapping I have in web.xml (this is 
a problem if I forward the request to another servlet-it 
won't be found) 
I know there is the URI property for the servlet which I 
could use to set the servlet mapping, but I think it would 
be much better if the environment would be able to "read" 
the web.xml when I execute the servlet and use the mapping 
in it. 
Is there anything I can do to have the web.xml loaded 
Thank you
Comment 1 _ rkubacki 2002-10-07 08:49:23 UTC
The URI property offers available mappings read from web.xml (if it
doesn't work it is a bug). OTOH it is difficult to assign any of these
values because of possible ambiguity and URI patterns in
servlet-mapping may contain wild chars too.

You are right that relying on this built-in mapping is not the best
and will break with 4.1.12 (invoker servlet is disabled here by default).
Comment 2 zikmund 2004-09-24 17:31:04 UTC
Running as /servlet/<servlet-class> was removed from Tomcat 5.
Netbeans 4.0 uses web.xml mappings as servlet URI (which can be modified).
Marking as Fixed.