Re: not able to access URL in 2nd app in 7.0.23

2012-01-26 Thread Mark Thomas
On 26/01/2012 03:59, removeps-c...@yahoo.com wrote: When Tomcat receives an unauthenticated request for a protected resource it intercepts and saves that request, then forwards to the resource defined in the login config. True. Also, I'm not making the request through Firefox. I did that

Re: not able to access URL in 2nd app in 7.0.23

2012-01-25 Thread Pid
On 25/01/2012 02:49, removeps-c...@yahoo.com wrote: In my webapps folder there are two folders: ROOT, myapp. ROOT is the default app. In myapp/WEB-INF/web.xml there is servlet servlet-nameMyServlet/servlet-name servlet-classpackage.MyServlet/servlet-class

Re: not able to access URL in 2nd app in 7.0.23

2012-01-25 Thread removeps-code
Replies in place --- On Wed, 1/25/12, Pid p...@pidster.com wrote: From: Pid p...@pidster.com Subject: Re: not able to access URL in 2nd app in 7.0.23 To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, January 25, 2012, 12:55 AM On 25/01/2012 02:49, removeps-c...@yahoo.com

Re: not able to access URL in 2nd app in 7.0.23

2012-01-25 Thread André Warnier
removeps-c...@yahoo.com wrote: ... url-pattern/folder/action.do/url-pattern /servlet-mapping ... So I will try two things. First, remove the https to see if it works. Second, change the url-mapping from an exact match like /myapps/folder/action.do to *.action.do In any case,

Re: not able to access URL in 2nd app in 7.0.23

2012-01-25 Thread removeps-code
OK here's what I tried: I removed https. A request through Firefox to http://localhost:6144/myapp/folder/action.do still gives 404. I overrode doGet of the servlet class to print whether get/post and the request.getRequestURI and it is get /myapp/folder/action.do This is the same as

Re: not able to access URL in 2nd app in 7.0.23

2012-01-25 Thread removeps-code
Yep that was the reason, as I wrote in another email sent just now before I saw this. The reason is that in 7.0.22 Tomcat made a POST request to the login page and my doPost method handled it, but in 7.0.23 it makes a GET request. --- On Wed, 1/25/12, André Warnier a...@ice-sa.com wrote:

Re: not able to access URL in 2nd app in 7.0.23

2012-01-25 Thread Pid
On 25/01/2012 18:35, removeps-c...@yahoo.com wrote: OK here's what I tried: I removed https. A request through Firefox to http://localhost:6144/myapp/folder/action.do still gives 404. I overrode doGet of the servlet class to print whether get/post and the request.getRequestURI and it is

Re: not able to access URL in 2nd app in 7.0.23

2012-01-25 Thread removeps-code
So, you're saying that the method value 'POST' is not preserved after successful authentication and appears to be converted to a 'GET'? No, what I said is the my original request to https://mydomain/myapp/action.do is a POST request, and the web.xml says to send me the the login-config page

Re: not able to access URL in 2nd app in 7.0.23

2012-01-25 Thread Pid
On 25/01/2012 22:03, removeps-c...@yahoo.com wrote: So, you're saying that the method value 'POST' is not preserved after successful authentication and appears to be converted to a 'GET'? No, what I said is the my original request to https://mydomain/myapp/action.do is a POST request, and

Re: not able to access URL in 2nd app in 7.0.23

2012-01-25 Thread removeps-code
When Tomcat receives an unauthenticated request for a protected resource it intercepts and saves that request, then forwards to the resource defined in the login config. True. Also, I'm not making the request through Firefox. I did that below as part of my debugging only. I have a Java

not able to access URL in 2nd app in 7.0.23

2012-01-24 Thread removeps-code
In my webapps folder there are two folders: ROOT, myapp. ROOT is the default app. In myapp/WEB-INF/web.xml there is servlet servlet-nameMyServlet/servlet-name servlet-classpackage.MyServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping