Re: Mapping a servlet to the application's context root results in IAE

2012-06-05 Thread Terence M. Bandoian

 On 1:59 PM, Violeta Georgieva wrote:

Here it is: https://issues.apache.org/bugzilla/show_bug.cgi?id=53356

Thanks
Violeta

2012/6/4 Mark Thomasma...@apache.org


On 04/06/2012 19:25, Violeta Georgieva wrote:

Hi,

I'm using Tomcat 7.0.27.

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 ().

That feature is not implemented in Tomcat. I don't see it in the spec's
change log which is why I suspect it is so little used that no-one else
has noticed it doesn't work until now.

Please file a BZ issue and this should get fixed for the next release.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Hi, Violeta-

A work-around might be to use a welcome file list in web.xml like:

welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list

-Terence Bandoian


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Mapping a servlet to the application's context root results in IAE

2012-06-04 Thread Mark Thomas
On 04/06/2012 19:25, Violeta Georgieva wrote:
 Hi,
 
 I'm using Tomcat 7.0.27.
 
 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 ().

That feature is not implemented in Tomcat. I don't see it in the spec's
change log which is why I suspect it is so little used that no-one else
has noticed it doesn't work until now.

Please file a BZ issue and this should get fixed for the next release.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Mapping a servlet to the application's context root results in IAE

2012-06-04 Thread Violeta Georgieva
Here it is: https://issues.apache.org/bugzilla/show_bug.cgi?id=53356

Thanks
Violeta

2012/6/4 Mark Thomas ma...@apache.org

 On 04/06/2012 19:25, Violeta Georgieva wrote:
  Hi,
 
  I'm using Tomcat 7.0.27.
 
  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 ().

 That feature is not implemented in Tomcat. I don't see it in the spec's
 change log which is why I suspect it is so little used that no-one else
 has noticed it doesn't work until now.

 Please file a BZ issue and this should get fixed for the next release.

 Mark

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org