tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53356] New: Mapping a servlet to the applicatio​n's context root results in IAE
Date Mon, 04 Jun 2012 19:29:25 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53356

          Priority: P2
            Bug ID: 53356
          Assignee: dev@tomcat.apache.org
           Summary: Mapping a servlet to the applicatio​n's context root
                    results in IAE
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: violetagg@apache.org
          Hardware: All
            Status: NEW
           Version: 7.0.27
         Component: Catalina
           Product: Tomcat 7

Created attachment 28881
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28881&action=edit
test web app

Hi,

I have an application and I want to map my servlet to the application's context
root, but I do not want to override the "/" mapping for the "default" servlet.

It is specified in the Servlet spec that there is a "special" url mapping that
can be used for such purposes and it is an empty string ("").

I tried several approaches to specify this via web.xml and annotation,
unfortunately all of them results in IAE:

Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern>  in
servlet mapping
 at
org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3208)
 at
org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3183)
 at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1302)
 at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1305)
 at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)
 at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:346)


The issue was started as mail thread in the users list -
http://marc.info/?t=133883470600003&r=1&w=2


Can you please provide this feature?
Thanks in advance
Regards
Violeta

PP: test application is attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message