Re: request.getParameter and special characters - Apache Tomcat/7.0.57 on win 7

2016-05-18 Thread Kiran Badi
Thanks Mark. Those links were very helpful and saved a lot of my time. I had good learning :) For few of the character which I was aware, I think I can go via C URL tag. But I have see as what other special characters I might have. Its coming from third party and I do not control it and I am using

javax.naming.NameNotFoundException Tomcat 8.0.32

2016-05-18 Thread Al
Environment:Tomcat 8.0.32 Windows 10 Eclipse Mars 2 Release 4.5.2 MySQL-connector-java-5.1.39-bin.jar I'm try to set up a jndi for a MySQL database connection in eclipse using Tomcat 8.0.32 . I keep receiving the following message when I try to run code example. javax.naming.NameNo

RE: BASIC authentication problem in tomcat8.0.33

2016-05-18 Thread Venkata Reddy P
Hi, It looks like below comparison(principal instanceof GenericPrincipal) is failing as I am returning the CustomizedPrincipal which implements the java.security.Principal. Is it something introduced in tomcat7.x/tomcat8.x? RealBase.hasRole() { // Should be overridden in JAASRealm - to

RE: BASIC authentication problem in tomcat8.0.33

2016-05-18 Thread Venkata Reddy P
This was typo in while writing mail. When I debug my customized code until it is returning the principal everything seems to be good from customization point of view. Removing the default files'tomcat-users.txt' and 'tomcat-users.xsd' from \config, will it make any difference? Thanks in adva

Re: BASIC authentication problem in tomcat8.0.33

2016-05-18 Thread Mark Thomas
On 18/05/2016 12:47, Mark Thomas wrote: > On 18/05/2016 11:07, Venkata Reddy P wrote: >> Hi, >> >> I have been using the "BASIC authentication" from the tomcat3.x onwards, >> unfortunately after migrating to tomcat8.0.33 it is broken. > > BASIC auth works for me with a clean 8.0.33 install. There

Re: BASIC authentication problem in tomcat8.0.33

2016-05-18 Thread Mark Thomas
On 18/05/2016 11:07, Venkata Reddy P wrote: > Hi, > > I have been using the "BASIC authentication" from the tomcat3.x onwards, > unfortunately after migrating to tomcat8.0.33 it is broken. BASIC auth works for me with a clean 8.0.33 install. Therefore this looks like a problem with your custom c

Linux Logging Rotate

2016-05-18 Thread Yuval Schwartz
Hello, I am currently running a web application: Tomcat: 8.0.22 JDK: 1.8.0_05 Server: Amazon Linux AMI At the moment, I am simply using the default logging. catalina.out catalina.[date].log localhost.[date].log host-manager.[date].log localhost_access_log.[date].log manager.[date].log These log

Re: Tomcat DS question

2016-05-18 Thread Woonsan Ko
Could you give an answer on my question first? Maybe you can create a jsp page printing out the sys prop like this. <% out.println("javax.sql.DataSource.Factory: " + System.getProperty("javax.sql.DataSource.Factory")); %> Let me know what you get there. Regards, Woonsan > On May 17, 2016, at

BASIC authentication problem in tomcat8.0.33

2016-05-18 Thread Venkata Reddy P
Hi, I have been using the "BASIC authentication" from the tomcat3.x onwards, unfortunately after migrating to tomcat8.0.33 it is broken. Could you please help on this what is going wrong? Step1)---Realm customization The customized classes are:- a) C

Re: How to acess HttpServletRequest in Jaas login module in Tomcat

2016-05-18 Thread Mark Thomas
On 18/05/2016 03:56, saurabh.su...@rbs.com.INVALID wrote: > Hello experts > > How to acess HttpServletRequest in Jaas login module in Tomcat? In Jboss we > can get it through > > > HttpServletRequest request = > (HttpServletRequest)PolicyContext.getContext("javax.servlet.http.HttpServletReques

Re: request.getParameter and special characters - Apache Tomcat/7.0.57 on win 7

2016-05-18 Thread Mark Thomas
On 18/05/2016 04:25, Kiran Badi wrote: > Hi , > > I have this link in jsp which has below tags, > > <%@page contentType="text/html" pageEncoding="UTF-8"%> > > Testing > > and then my servlet looks like below, > > /* > * To change this license header, choose License Headers in Project > Prope