Bug 146705 - [servlets] WebDeployableArtifactUtil doesn't handle servlets without URL mapping
Summary: [servlets] WebDeployableArtifactUtil doesn't handle servlets without URL mapping
Status: NEW
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: jst.j2ee CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-06-12 16:45 EDT by Tim deBoer CLA
Modified: 2008-09-04 10:39 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim deBoer CLA 2006-06-12 16:45:46 EDT
WebDeployableArtifactUtil returns the correct path for servlets that have URL mappings, i.e. are included in web.xml and have proper mappings. However, it doesn't support servers that use a "ServletServer" to support classname reference, e.g. /servlet/com.test.MyServlet. Although this should never be used in production, some people use it during testing and it would be nice to support it.

[Not sure if you'd want to make this smart and only be enabled when the server supports it. If so, we might need to add a flag to WebResource or create a new type]
Comment 1 Chuck Bridgham CLA 2007-11-29 12:31:02 EST
Adding  helpwanted
Comment 2 Kaloyan Raev CLA 2008-09-01 12:01:07 EDT
Assigning to Kaloyan for evaluation
Comment 3 Kaloyan Raev CLA 2008-09-04 10:19:41 EDT
It is a good idea, but I doubt we could plan resources to realize it for WTP 3.1.

Tim, could give some examples of application servers that have this "ServerServlet" support? 
Comment 4 Tim deBoer CLA 2008-09-04 10:39:20 EDT
For reference, Tomcat's InvokerServlet is an example. In Tomcat v3.2, it is defined in server.xml:

<RequestInterceptor className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/servlet/"/>