Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Mark Thomas
Michal Botka wrote: >Is there a way how to avoid this leak? >I would like to develop an application which can be safely >deployed/undeployed without restarting the server. >OK, now I know that my application cannot store it's objects into >session, but that is very strong requirement which the mos

Re: What is the best connector configuration for thousands of mostly idle users?

2014-02-06 Thread Mark Thomas
Jesse Barnum wrote: Thanks for such a well written question. All the relevant information is available and presented clearly and logically. >Problem summary: >My nio polling threads are using too much CPU time. Are you sure that is the real problem? It sounds like the occasional slowness is t

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Leon Rosenberg
On Fri, Feb 7, 2014 at 8:38 AM, Michal Botka wrote: > Is there a way how to avoid this leak? > I would like to develop an application which can be safely > deployed/undeployed without restarting the server. > OK, now I know that my application cannot store it's objects into > session, but that is

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Michal Botka
Is there a way how to avoid this leak? I would like to develop an application which can be safely deployed/undeployed without restarting the server. OK, now I know that my application cannot store it's objects into session, but that is very strong requirement which the most of the applications don'

SSL with Form Fallback on Tomcat 7 or 8

2014-02-06 Thread Gary Briggs
Evening, I've been reading this page: http://wiki.apache.org/tomcat/SSLWithFORMFallback I'm currently using Tomcat 7 on Linux. In short, Neither of the bits of code linked on that page work for me but the thing described in the title is what I desire. I have client certificate authentication work

Re: Tomcat JNDI Datasource

2014-02-06 Thread Filip Hanik
Yes, define the connection pool in server.xml, then in context.xml define a That binds the shared connection pool to each context. On Thursday, February 6, 2014, David Newman wrote: > I have defined a JNDI JDBC datasource as a resource in the global > context.xml file. I was under the impre

Tomcat JNDI Datasource

2014-02-06 Thread David Newman
I have defined a JNDI JDBC datasource as a resource in the global context.xml file. I was under the impression that what this does is to create a shared connection pool that is tomcat wide. But in practice what seems to happen is that a new instance of that connection pool is created for each con

Re: retain context.xml across war updates

2014-02-06 Thread Jesse Barnum
Thanks, that explains why it's not working for me (I have 7.0.35). --Jesse Barnum, President, 360Works http://www.360works.com Product updates and news on http://facebook.com/360Works (770) 234-9293 == Don't lose your data! http://360works.com/safetynet/ for FileMaker Server == On Feb 6, 2014, at

What is the best connector configuration for thousands of mostly idle users?

2014-02-06 Thread Jesse Barnum
Problem summary: My nio polling threads are using too much CPU time. Application overview: My application has from 1,300 - 4,000 users connected at any given time. Each user sends about 200 bytes, then waits 30 seconds, then sends about 200 bytes, and this just loops for each user. Each user con

Re: Http Status 404

2014-02-06 Thread Shivam Mishra
I did not make the TestServlet class public . On Fri, Feb 7, 2014 at 12:05 AM, David kerber wrote: > On 2/6/2014 1:05 PM, Shivam Mishra wrote: > >> Its running thank you very much ... >> > > Can you tell us what the trouble was, so other people with the same issue > can learn from it? > > > > >

Re: Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext for tomcat 7.0.50

2014-02-06 Thread Kiran Badi
I had a missing jars in lib for this version of tomcat. Once added java mail api jars, it started to work again. On Thu, Feb 6, 2014 at 4:28 AM, Shivam Mishra wrote: > 2014-02-06 14:50:33 Commons Daemon procrun stderr initialized > 06-Feb-2014 14:50:34.636 INFO [main] > org.apache.catalina.co

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Leon Rosenberg
On Fri, Feb 7, 2014 at 12:45 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > > Subject: Re: Tomcat classloader memory leak when an object is stored > into session > > > > When an application stores an object into the sessio

RE: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > Subject: Re: Tomcat classloader memory leak when an object is stored into > session > > When an application stores an object into the session and then the > > application is reloaded using Tomcat Web Application Manager, the > > classloa

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Leon Rosenberg
On Thu, Feb 6, 2014 at 11:58 PM, David Kerber wrote: > On 2/6/2014 3:13 PM, Michal Botka wrote: > >> When an application stores an object into the session and then the >> application is reloaded using Tomcat Web Application Manager, the >> classloader cannot be garbage collected. As a result, the

RE: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread javier_espana
Oh good. I am glad that I was not alone. Javier España Sr. Technical Analyst Honda North American Services, LLC. Information Services Division ISD Applications 1919 Torrance Blvd., Torrance, CA 90501 (310) 781-4514 Email: javier_esp...@hna.honda.com www.honda.com ***Beginning April 1, 2013 my em

RE: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread Hyde, Howard
Javier, Thank you for being my guinea pig today. I've been having all the same problems as you, on the same day, with the same resolution. Following this thread finally seems to have provided the breakthrough. -Howard -Original Message- From: javier_esp...@hna.honda.com [mailto:javier_e

Re: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread javier_espana
That did it. It works fine now. Thank you very much Thomas Javier España Sr. Technical Analyst Honda North American Services, LLC. Information Services Division ISD Applications 1919 Torrance Blvd., Torrance, CA 90501 (310) 781-4514 Email: javier_esp...@hna.honda.com www.honda.com ***Beginning

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread David Kerber
On 2/6/2014 3:13 PM, Michal Botka wrote: When an application stores an object into the session and then the application is reloaded using Tomcat Web Application Manager, the classloader cannot be garbage collected. As a result, the "OutOfMemoryError: PermGen space" error occurs after several relo

Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Michal Botka
When an application stores an object into the session and then the application is reloaded using Tomcat Web Application Manager, the classloader cannot be garbage collected. As a result, the "OutOfMemoryError: PermGen space" error occurs after several reloads. To illustrate the issue, you can find

Re: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread Mark Eggers
Replies inline. On 2/6/2014 11:51 AM, javier_esp...@hna.honda.com wrote: I remember installing an older version of Tomcat some years ago and it had a Setup.exe or Install.exe program in its library which invoked the Windows installer and installed it as a service. Some of the documentation for

Re: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread Mark Thomas
On 06/02/2014 19:51, javier_esp...@hna.honda.com wrote: > In some other part of the documentation it says to > download the binary version and expand it in its own directory, which I > did, but I can not find a Windows program that will install it and set it > up as a service. Try the download pag

Re: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread javier_espana
I remember installing an older version of Tomcat some years ago and it had a Setup.exe or Install.exe program in its library which invoked the Windows installer and installed it as a service. Some of the documentation for version 7 mentions the Windows installer but does not provide a link or give

Re: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread André Warnier
javier_esp...@hna.honda.com wrote: Andre: I used the batch file "SERVICE.BAT INSTALL" without any additional parameters. Was I missing some parameter? Possibly. Depending on your particulat case, you may have needed to specifiy some option, and because you did not, it may have placed a wro

Re: retain context.xml across war updates

2014-02-06 Thread Mark Thomas
On 06/02/2014 18:22, Jesse Barnum wrote: > Mark, which version of Tomcat 7 implemented the behavior described in that > document? Strictly, 7.0.48 but that wasn't released. 7.0.50 is the first release with that behaviour. The 8.0.x releases behave that way as well (some of the early RCs may not).

Re: Http Status 404

2014-02-06 Thread David kerber
On 2/6/2014 1:05 PM, Shivam Mishra wrote: Its running thank you very much ... Can you tell us what the trouble was, so other people with the same issue can learn from it? On Thu, Feb 6, 2014 at 11:24 PM, Tim Watts wrote: On Thu, 2014-02-06 at 23:07 +0530, Shivam Mishra wrote: Now m

Re: Http Status 404

2014-02-06 Thread Neven Cvetkovic
On Thu, Feb 6, 2014 at 11:02 AM, Shivam Mishra wrote: > My directory structure is C:\Program Files\Apache Software > Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of > Servlet > That should probably be lowercase "classes", e.g. C:\Program Files\Apache Software Foundation\Tom

RE: retain context.xml across war updates

2014-02-06 Thread Steve Lopez
Sorry - I forgot to include the version I'm using. It is 7.0.34 Soon to be 7.0.50 (on Ubuntu 12.0.4 LTS, 64-bit) -Original Message- From: Jesse Barnum [mailto:jsb_tom...@360works.com] Sent: Thursday, February 06, 2014 1:22 PM To: Tomcat Users List Subject: Re: retain context.xml acro

Re: retain context.xml across war updates

2014-02-06 Thread Jesse Barnum
Mark, which version of Tomcat 7 implemented the behavior described in that document? --Jesse Barnum, President, 360Works http://www.360works.com Product updates and news on http://facebook.com/360Works (770) 234-9293 == Don't lose your data! http://360works.com/safetynet/ for FileMaker Server ==

RE: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread javier_espana
Andre: I used the batch file "SERVICE.BAT INSTALL" without any additional parameters. Was I missing some parameter? Or is there a better way of installing Tomcat? Thank you Javier España Sr. Technical Analyst Honda North American Services, LLC. Information Services Division ISD Applications 191

Re: Http Status 404

2014-02-06 Thread Shivam Mishra
Its running thank you very much ... On Thu, Feb 6, 2014 at 11:24 PM, Tim Watts wrote: > On Thu, 2014-02-06 at 23:07 +0530, Shivam Mishra wrote: > > Now my browser is showing this error as below: > > > > Exception report > > > > *message* *Error instantiating servlet class TestServlet* > > > >

Re: retain context.xml across war updates

2014-02-06 Thread Mark Thomas
On 06/02/2014 17:55, Steve Lopez wrote: > Is there a way to ensure an applications context.xml isn't deleted across > reloads of the war file?We have server-specific settings in each > context.xml and are looking for a way to deploy the same WAR file across each > Tomcat instance. > > My fi

retain context.xml across war updates

2014-02-06 Thread Steve Lopez
Is there a way to ensure an applications context.xml isn't deleted across reloads of the war file?We have server-specific settings in each context.xml and are looking for a way to deploy the same WAR file across each Tomcat instance. My first attempt at this was to put the context.xml into

Re: Http Status 404

2014-02-06 Thread Tim Watts
On Thu, 2014-02-06 at 23:07 +0530, Shivam Mishra wrote: > Now my browser is showing this error as below: > > Exception report > > *message* *Error instantiating servlet class TestServlet* > > *description* *The server encountered an internal error that prevented it > from fulfilling this request

Installation issues of Tomcat on IBM i Series server OS - V7R1; Java 1.7

2014-02-06 Thread Jakati, Shekar
Hi Tomcat/IBM experts, We are trying to install Tomcat 7.0.50 on our iSeries server and getting the below error. If any of you experts can point me to what the error means and how I can resolve it or any pointers at all, It will be much appreciated. I have attached the partial log file below

Re: Http Status 404

2014-02-06 Thread Shivam Mishra
Now my browser is showing this error as below: Exception report *message* *Error instantiating servlet class TestServlet* *description* *The server encountered an internal error that prevented it from fulfilling this request.* *exception* javax.servlet.ServletException: Error instantiating ser

Re: Http Status 404

2014-02-06 Thread Shivam Mishra
My url is http://localhost:8080/name/TestServlet On Thu, Feb 6, 2014 at 10:55 PM, Tim Watts wrote: > On Thu, 2014-02-06 at 21:32 +0530, Shivam Mishra wrote: > > My directory structure is C:\Program Files\Apache Software > > Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of >

Re: Http Status 404

2014-02-06 Thread Tim Watts
On Thu, 2014-02-06 at 21:32 +0530, Shivam Mishra wrote: > My directory structure is C:\Program Files\Apache Software > Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of > Servlet That last part should be ...\WEB-INF\classes (lower case 'c'). If that doesn't fix it then, again

Re: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread javier_espana
The entry in the Event Viewer just before the Error entry says "The tomcat7 service entered the stopped state." Javier España Sr. Technical Analyst Honda North American Services, LLC. Information Services Division ISD Applications 1919 Torrance Blvd., Torrance, CA 90501 (310) 781-4514 Email: javie

Re: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread André Warnier
André Warnier wrote: Hi. javier_esp...@hna.honda.com wrote: OK, this is what I see in the Event Viewer under General tab "The tomcat7 service terminated with service-specific error Incorrect function.." Let's start from the beginning. If you don't get logfiles in the Tomcat/logs directory,

Re: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread Howard W. Smith, Jr.
On Thu, Feb 6, 2014 at 11:42 AM, Jeffrey Janner wrote: > > -Original Message- > > From: André Warnier [mailto:a...@ice-sa.com] > > Sent: Thursday, February 06, 2014 10:33 AM > > To: Tomcat Users List > > Subject: Re: unable to start Tomcat through the Windows Services panel > > > > Hi. >

RE: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread Jeffrey Janner
> -Original Message- > From: André Warnier [mailto:a...@ice-sa.com] > Sent: Thursday, February 06, 2014 10:33 AM > To: Tomcat Users List > Subject: Re: unable to start Tomcat through the Windows Services panel > > Hi. > > javier_esp...@hna.honda.com wrote: > > OK, this is what I see in th

Re: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread André Warnier
Hi. javier_esp...@hna.honda.com wrote: OK, this is what I see in the Event Viewer under General tab "The tomcat7 service terminated with service-specific error Incorrect function.." Let's start from the beginning. If you don't get logfiles in the Tomcat/logs directory, then chances are that

Re: unable to start Tomcat through the Windows Services panel

2014-02-06 Thread Howard W. Smith, Jr.
On Wed, Feb 5, 2014 at 2:09 PM, wrote: > OK, this is what I see in the Event Viewer under General tab > "The tomcat7 service terminated with service-specific error Incorrect > function.." > > Under Details tab, I see the following in XML view > - http://schemas.microsoft.com/win/2004/08/events/ev

question regarding tomcat source code and dependencies

2014-02-06 Thread Leo Donahue
This question was spawned by two things: I'm reading a book on Dependency Injection The latest security announcement - reading the source for FileUploadBase.java Some reading material suggests that one use a simple factory pattern to move object creation dependencies to a different class. I see

Re: Http Status 404

2014-02-06 Thread Shivam Mishra
My directory structure is C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of Servlet Description of my logs is below 06-Feb-2014 14:50:22.684 INFO [Thread-9] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"] 06-Feb

Re: Http Status 404

2014-02-06 Thread Tim Watts
On Thu, 2014-02-06 at 10:32 -0500, Neven Cvetkovic wrote: > On Feb 6, 2014 4:21 PM, "Shivam Mishra" wrote: > > > > My tomcat and its example application is running but I got an error with > my > > own application .My port number is 8080 .I compile my servlet programme in > > jdk 7 .and my web.xml

Re: Http Status 404

2014-02-06 Thread Neven Cvetkovic
On Feb 6, 2014 4:21 PM, "Shivam Mishra" wrote: > > My tomcat and its example application is running but I got an error with my > own application .My port number is 8080 .I compile my servlet programme in > jdk 7 .and my web.xml file is below > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web App

Re: Http Status 404

2014-02-06 Thread Shivam Mishra
My tomcat and its example application is running but I got an error with my own application .My port number is 8080 .I compile my servlet programme in jdk 7 .and my web.xml file is below http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";> MyServlet TestServlet MyServlet /TestServlet

Re: UserDatabase resource into META-INF/context.xml

2014-02-06 Thread Konstantin Kolinko
2014-02-06 Jose María Zaragoza : > Hello: > > I'm using Tomcat 6.0.24 > > I want to set a realm per only one application, so I define in its > META-INF/context.xml > > > > description="User database that can be updated and saved" > factory="org.apache.catalina.users.MemoryUserDatabaseFactory"

UserDatabase resource into META-INF/context.xml

2014-02-06 Thread Jose María Zaragoza
Hello: I'm using Tomcat 6.0.24 I want to set a realm per only one application, so I define in its META-INF/context.xml my-users.xml is stored in $CATALINA_BASE/conf/ But it doesn't work; a javax.naming.NameNotFoundException exception is thrown when Tomcat restarts If I put under Glob

[SECURITY] CVE-2014-0050 Apache Commons FileUpload and Apache Tomcat DoS

2014-02-06 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2014-0050 Apache Commons FileUpload and Apache Tomcat DoS Severity: Important Vendor: The Apache Software Foundation Versions Affected: - - Commons FileUpload 1.0 to 1.3 - - Apache Tomcat 8.0.0-RC1 to 8.0.1 - - Apache Tomcat 7.0.0 to 7.0.50 - -

Re: Http Status 404

2014-02-06 Thread Neven Cvetkovic
On Feb 6, 2014 9:58 AM, "Shivam Mishra" wrote: > > Hye I am using Tomcat 8.0.1 ,my operating system is Windows 8.1 and it is > 64- bit configuration .I made a folder in webapps for my servlet but I am > unable to access it Please help Shivam, Is your tomcat running? What port number? How did you

Re: Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext for tomcat 7.0.50

2014-02-06 Thread Shivam Mishra
2014-02-06 14:50:33 Commons Daemon procrun stderr initialized 06-Feb-2014 14:50:34.636 INFO [main] org.apache.catalina.core.AprLifecycleListener.init The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Pro

Re: Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext for tomcat 7.0.50

2014-02-06 Thread Mark Thomas
On 06/02/2014 03:32, Kiran Badi wrote: > Hi All, > > I have 3 tomcats installed in my machine, one is 7.0.27, 7.0.35 and 7.0.50 > > Now when I deploy my war file to 7.0.27/7.0.35 it works perfectly fine and > deployment goes through. > > But on 7.0.50 it fails with below message, > > FAIL - App

Re: Http Status 404

2014-02-06 Thread Mark Thomas
On 06/02/2014 08:57, Shivam Mishra wrote: > Hye I am using Tomcat 8.0.1 ,my operating system is Windows 8.1 and it is > 64- bit configuration .I made a folder in webapps for my servlet but I am > unable to access it Please help Read this: http://www.catb.org/~esr/faqs/smart-questions.html then po

Http Status 404

2014-02-06 Thread Shivam Mishra
Hye I am using Tomcat 8.0.1 ,my operating system is Windows 8.1 and it is 64- bit configuration .I made a folder in webapps for my servlet but I am unable to access it Please help