server mapping behaviour when directory structure mirrors mappings

2007-12-10 Thread Matthew Thomas Broadhead

Recently upgraded Tomcat from version 4.1.31 to 6.0.14.

In my webapp I mapped servlets to paths without extensions
e.g.
servlet-mapping
servlet-nameSales/servlet-name
url-pattern/sales/url-pattern
/servlet-mapping
Then in the root of the webapp there is a directory with the same  
name (e.g. sales) in which all the resources for that servlet are  
stored.


This worked fine in 4.1.31 but in 6.0.14 it adds a slash at the end  
of the url and behaves like it is in the root of the directory rather  
than loading the servlet mapping first.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JK - welcome file displays text when mapped to servlet

2007-12-10 Thread Matthew Thomas Broadhead

Recently upgraded Tomcat from version 4.1.31 to 6.0.14.

In my web.xml
- index.htm is set as the welcome file
- index.htm is mapped to a servlet which produces html
and there is a blank index.htm in the root of the webapp.

This worked fine for 4.1.31 on port 8080 and through AJP1.3 connector.
On 6.0.14 it works fine through port 8080, but through AJP1.3 the  
content type seems to change to text/plain instead of text/html, i.e.  
browsers display raw code instead of formatting html.  It renders ok  
for www.example.com/index.htm but www.example.com/ displays the raw  
source.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]