Re: Tomcat session with uncertain problem

2013-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Terrence, On 11/11/13, 4:31 PM, Terence M. Bandoian wrote: > On 11/11/2013 2:29 PM, Jose Irrazabal wrote: >> Thanks for the reply >> >> I generate the session in a servlet in doPost method that would >> be: >> >> protected void doPost ( HttpServle

Re: Tomcat session with uncertain problem

2013-11-11 Thread Terence M. Bandoian
On 11/11/2013 2:29 PM, Jose Irrazabal wrote: > Thanks for the reply > > I generate the session in a servlet in doPost method that would be: > > protected void doPost ( HttpServletRequest request , HttpServletResponse > response) > throws ServletException , IOException { > > */ / create

Re: Tomcat session with uncertain problem

2013-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 11/11/13, 3:29 PM, Jose Irrazabal wrote: > I generate the session in a servlet in doPost method that would > be: > > protected void doPost ( HttpServletRequest request , > HttpServletResponse response) throws ServletException , IOException

Re: Getting Error the the Time of deploying .war file

2013-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 11/11/13, 6:49 AM, André Warnier wrote: > Saurabh Saraswat wrote: >> Dear all, >> >> I am getting the "Connection was reset error" while deploying the >> .war file of my web application on the apache-tomcat server. I am >> deploying the f

Re: Tomcat session with uncertain problem

2013-11-11 Thread Jose Irrazabal
Thanks for the reply I generate the session in a servlet in doPost method that would be: protected void doPost ( HttpServletRequest request , HttpServletResponse response) throws ServletException , IOException { */ / create the session* HttpSession session = request.getSession ( ) ;

Re: Avoiding/Handling SocketTimeoutException(s) when web application serving resources to mobile clients

2013-11-11 Thread Howard W. Smith, Jr.
On Mon, Nov 11, 2013 at 10:23 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Howard, > > > I might recommend using a Filter like this: > > filter() { >try { > chain.doFilter(); >} catch (SocketTimeoutException ste

RE: [OT] RE: Baked-in context paths

2013-11-11 Thread Jeffrey Janner
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Thursday, November 07, 2013 10:07 AM > To: Tomcat Users List > Subject: Re: [OT] RE: Baked-in context paths > > > Jeff, > > On 11/7/13, 10:17 AM, Jeffrey Janner wrote: > >> -Original Messag

Re: Tomcat setting as a service after installing the binaries

2013-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jojy, On 11/11/13, 5:34 AM, Jojy George wrote: > I just checked and found out that it was problem with the wrong > jdk version. it was using 32 bit instead of 64 bit and i installed > the 64 bit and that fixed the issue. Just checking: do you actua

Re: Tomcat setting as a service after installing the binaries

2013-11-11 Thread Konstantin Kolinko
2013/11/11 Jojy George : > HI All, > > I am trying to set and run tomcat as a service after installing it as > binary instead using the windows installer. But i am not able to start it > after setting it as service, it is giving the below exception when i am > trying to start the tomcat service. >

Re: Restrict the use of JDK classes Tomcat 7 or 6

2013-11-11 Thread Aurélien Terrestris
Hello Analia I'm glad that you could play successfully with the Security Manager as I advised first :D About permissions, here you have a doc : http://docs.oracle.com/javase/6/docs/technotes/guides/security/spec/security-spec.doc3.html#20211 best regards 2013/11/11 ANALIA DE PEDRO SANTAMARIA

Re: Http url connection : server returned http response code 400

2013-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vicky, On 11/11/13, 10:02 AM, vicky b wrote: > I am getting server returned http response code 400 when i run > below code from my tomcat however it works fine when i run it in > WAS whch has proxy server settings. > > URL url = new URL(reqUrl

Re: Restrict the use of JDK classes Tomcat 7 or 6

2013-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Analia, On 11/11/13, 10:25 AM, ANALIA DE PEDRO SANTAMARIA wrote: > I have been working with the Security Manager and I think it is a > good aproximation of what I need, thank you very much for the > advice. I have read that it is possible to create

Re: Avoiding/Handling SocketTimeoutException(s) when web application serving resources to mobile clients

2013-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 11/11/13, 5:41 AM, André Warnier wrote: > Howard W. Smith, Jr. wrote: >> On Sun, Nov 10, 2013 at 9:14 AM, Howard W. Smith, Jr. < >> smithh032...@gmail.com> wrote: >> >>> Caused by: java.net.SocketTimeoutException at >>> org.apache.tomca

Re: Restrict the use of JDK classes Tomcat 7 or 6

2013-11-11 Thread ANALIA DE PEDRO SANTAMARIA
Hello, I have been working with the Security Manager and I think it is a good aproximation of what I need, thank you very much for the advice. I have read that it is possible to create your own Permission class, but I haven't found any documentation or example. Could anybody tell me where I can fi

Re: Avoiding/Handling SocketTimeoutException(s) when web application serving resources to mobile clients

2013-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Howard, On 11/10/13, 9:25 AM, Howard W. Smith, Jr. wrote: > On Sun, Nov 10, 2013 at 9:14 AM, Howard W. Smith, Jr. < > smithh032...@gmail.com> wrote: > >> Caused by: java.net.SocketTimeoutException at >> org.apache.tomcat.util.net.NioBlockingSelec

Re: Tomcat session with uncertain problem

2013-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 11/11/13, 8:24 AM, Jose Irrazabal wrote: > Thanks for the answer, then it can be when generating the session? > > I use a servlet to create the session with the code: *HttpSession > session = request.getSession ();* Then I add the attribut

Http url connection : server returned http response code 400

2013-11-11 Thread vicky b
HI All, I am getting server returned http response code 400 when i run below code from my tomcat however it works fine when i run it in WAS whch has proxy server settings. URL url = new URL(reqUrl); HttpURLConnection con = (HttpURLConnection)url.openConnection(); con.setDoOutput(true); con

Re: Avoiding/Handling SocketTimeoutException(s) when web application serving resources to mobile clients

2013-11-11 Thread Howard W. Smith, Jr.
On Mon, Nov 11, 2013 at 5:41 AM, André Warnier wrote: > Howard W. Smith, Jr. wrote: > >> On Sun, Nov 10, 2013 at 9:14 AM, Howard W. Smith, Jr. < >> smithh032...@gmail.com> wrote: >> >> Caused by: java.net.SocketTimeoutException >>> at >>> org.apache.tomcat.util.net.NioBlockingSelector.write( >>>

Re: Tomcat session with uncertain problem

2013-11-11 Thread David kerber
With this code, you're not *creating* a session, you're retrieving the session that the user has connected with (request.getSession()). Usually this king issue occurs when the variable "session" is stored with an inappropriate scope, so that it is accessible from more than one class instance.

Re: Tomcat session with uncertain problem

2013-11-11 Thread Jose Irrazabal
Thanks for the answer, then it can be when generating the session? I use a servlet to create the session with the code: *HttpSession session = request.getSession ();* Then I add the attributes: *session.setAttribute ("idUser" p_iduser);* * session.setAttribut

Re: Reg: Connection pool stats

2013-11-11 Thread Daniel Mikusa
On Nov 11, 2013, at 12:59 AM, Anu Prab wrote: > On Nov 7, 2013, at 11:58 PM, Anu Prab wrote: > I am using Tomcat 7.0.42 and Tomcat jdbc pool. >> >>> Just to be perfectly clear, how are you using this? With a >> tag in your Tomcat >configuration or are you creating the pool in your >> co

Re: Tomcat session with uncertain problem

2013-11-11 Thread Mark Thomas
On 11/11/2013 11:54, Jose Irrazabal wrote: > Hi All, > > I use Apache Tomcat/7.0.29 to deploy my applications, and I'm with a > problem of duplicated user session or something, as uncertain occurs when a > user adquire a session takes of another user and I reported 3 cases of this > type of securi

Tomcat session with uncertain problem

2013-11-11 Thread Jose Irrazabal
Hi All, I use Apache Tomcat/7.0.29 to deploy my applications, and I'm with a problem of duplicated user session or something, as uncertain occurs when a user adquire a session takes of another user and I reported 3 cases of this type of security error. I need your help to know how the JSESSIONID

Re: Getting Error the the Time of deploying .war file

2013-11-11 Thread André Warnier
Saurabh Saraswat wrote: Dear all, I am getting the "Connection was reset error" while deploying the .war file of my web application on the apache-tomcat server. I am deploying the file using Tomcat-Manager and its giving the above mentions error after uploading 50 %. What is the size of that f

Getting Error the the Time of deploying .war file

2013-11-11 Thread Saurabh Saraswat
Dear all, I am getting the "Connection was reset error" while deploying the .war file of my web application on the apache-tomcat server. I am deploying the file using Tomcat-Manager and its giving the above mentions error after uploading 50 %. Can u please tell me the reason of this. This is the

Re: Tomcat setting as a service after installing the binaries

2013-11-11 Thread André Warnier
Jojy George wrote: Hi Toni, Thanks for this info. I was able to download the files , but i am not sure what else needs to be done after that? i need to just copy the files to the bin folder? that's enough? is there anything else i need to do ? recreate the service with this additional options ?

Re: Avoiding/Handling SocketTimeoutException(s) when web application serving resources to mobile clients

2013-11-11 Thread André Warnier
Howard W. Smith, Jr. wrote: On Sun, Nov 10, 2013 at 9:14 AM, Howard W. Smith, Jr. < smithh032...@gmail.com> wrote: Caused by: java.net.SocketTimeoutException at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:127) at org.apache.tomcat.util.net.NioSelectorPool.write

Re: Tomcat setting as a service after installing the binaries

2013-11-11 Thread Jojy George
Hi, I just checked and found out that it was problem with the wrong jdk version. it was using 32 bit instead of 64 bit and i installed the 64 bit and that fixed the issue. Thanks for your help. Regards Jojy R On Mon, Nov 11, 2013 at 3:35 PM, Jojy George wrote: > Hi Toni, > > Thanks for thi

Re: Tomcat setting as a service after installing the binaries

2013-11-11 Thread Jojy George
Hi Toni, Thanks for this info. I was able to download the files , but i am not sure what else needs to be done after that? i need to just copy the files to the bin folder? that's enough? is there anything else i need to do ? recreate the service with this additional options ? when you say "replac

Re: Tomcat setting as a service after installing the binaries

2013-11-11 Thread Antonio Vidal Ferrer
It seems that you are using 32bits binaries in a 64 bits platform. Download 64 bits versions of tomcat6.exe and tomcat6w.exe, and replace them. For doing so, go here: http://commons.apache.org/proper/commons-daemon/download_daemon.cgi Select browse download area, then go to binaries, then sele

Re: Tomcat setting as a service after installing the binaries

2013-11-11 Thread Antonio Vidal Ferrer
It seems that you are using 32bits binaries in a 64 bits platform. Download 64 bits versions of tomcat6.exe and tomcat6w.exe, and replace them. For doing so, go here: http://commons.apache.org/proper/commons-daemon/download_daemon.cgi Select browse download area, then go to binaries, then sele

Tomcat setting as a service after installing the binaries

2013-11-11 Thread Jojy George
HI All, I am trying to set and run tomcat as a service after installing it as binary instead using the windows installer. But i am not able to start it after setting it as service, it is giving the below exception when i am trying to start the tomcat service. Do anybody has got any idea why this

Re: @ServerEndpoint Guice

2013-11-11 Thread Marko Sanković
Nick, Thank you once again. In a servlet injector can be accessed through getServletContext.getAttribute("Injector") As you said, I had to implement static method that returns instance of injector and use it in my EndpointConfiguration to instantiate ServerEndpoint. This is what I have done: //