Re: Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-21 Thread Dhaval Jaiswal
yes. the thread is stucked and started increasing load of the server. My configuration is as below. Query is fetching one row only. On Sat, Nov 22, 2014 at 1:29 AM, Ameer Mawia wrote: > Jaiswal, what your exact question is? > > Obviously in your application, you need a DB connec

Re: Problem with base directory in Resource

2014-11-21 Thread Konstantin Kolinko
That IllegalStateException means that (new File("/mnt/mynfsserver_img", "/img")).isDirectory() returned false. In other words, the likely cause is that the path was not readable at the time of the check. Replacing PostResources by PreResources and vise versa will have no effect on this. 2014-

Re: Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-21 Thread Ameer Mawia
Jaiswal, what your exact question is? Obviously in your application, you need a DB connection and if this is thread which is stuck, stack trace tells that tomcat dbcp, is trying to get you a connection, but stuck while reading the result of validate query which it had run before returning you a va

Re: catalina.out rotation in tomcat 7.0.56

2014-11-21 Thread Niranjan Babu Bommu
Hi Chris, Thanks for your reply. Actually I'm running multiple instances in tomcat, log-rotation works fine for all the instances but they are not rotation midnight everyday, '.'-MM-ddRollover at midnight each day. Thanks Niranjan On Fri, Nov 21, 2014 at 12:18 PM, Christopher Schultz < ch..

Re: Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-21 Thread Dhaval Jaiswal
Following thread stuck and increased the load. java.net.SocketInputStream.read(SocketInputStream.java:129) org.postgresql.core.VisibleBufferedInputStream.readMore(VisibleBufferedInputStream.java:145) org.postgresql.core.VisibleBufferedInputStream.ensureBytes(VisibleBufferedInputStream.java:1

Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-21 Thread Dhaval Jaiswal
Below thread stucked and increased the load. java.net.SocketInputStream.read(SocketInputStream.java:129) org.postgresql.core.VisibleBufferedInputStream.readMore(VisibleBufferedInputStream.java:145) org.postgresql.core.VisibleBufferedInputStream.ensureBytes(VisibleBufferedInputStream.java:114

Re: catalina.properties and system properties

2014-11-21 Thread Igal @ getRailo.org
On 11/21/2014 9:36 AM, Konstantin Kolinko wrote: > I think the answer is yes, but you would better try it / read the code. > > Note that common.loader can include references to other properties, > like it does with ${catalina.base} etc. Spasiba Konstantin! Igal --

Re: server-status in text format

2014-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 11/21/14 10:24 AM, Jose Monreal wrote: > Is it possible to get the same information of html manger server > status but in text format? > > Like this curl http://localhost:8080/manager/text/server-status > > From the documentation it only

Re: server-status in text format

2014-11-21 Thread Konstantin Kolinko
2014-11-21 18:24 GMT+03:00 Jose Monreal : > From the documentation it only says From this link, but it doesn't say if > its possible to get the info from the text manager. > Why it hasn't been developed? > > Saludos cordiales, > > José Ignacio Monreal Bailey | Ingeniero Civil en Computación > > >

Re: catalina.properties and system properties

2014-11-21 Thread Konstantin Kolinko
2014-11-19 20:44 GMT+03:00 Igal @ getRailo.org : > hi, > > I don't have use for scanning the jars for tld files etc., so usually, > in catalina.properties, I skip all jars by setting > > tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar > > I just noticed that I can set it via a system pr

Re: Debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process

2014-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 11/20/14 4:09 PM, Mark Eggers wrote: > > Chris, > > On 11/20/2014 12:11 PM, Christopher Schultz wrote: >> Léa, > >> On 11/20/14 1:21 PM, Léa Massiot wrote: >>> Thank you for your answers. > >>> @MarkEggers Thank you very much for sharin

Re: [OT] Debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process

2014-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Glen, On 11/20/14 3:31 PM, Glen Peterson wrote: > I never looked into jsvc. It sounds very interesting! To use a < > 1024 port as a non-root user, I've always used iptables to > redirect traffic to a higher-numbered port. When experimenting > wi

Re: catalina.properties and system properties

2014-11-21 Thread Igal @ getRailo.org
On 11/21/2014 9:19 AM, Christopher Schultz wrote: > Lot of folks are at ApacheCon Europe this week. Give it a bit more time. > > -chris No problem. Thanks Chris! Igal - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.or

Re: catalina.properties and system properties

2014-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Igal, On 11/21/14 11:50 AM, Igal @ getRailo.org wrote: > On 11/19/2014 9:44 AM, Igal @ getRailo.org wrote: >> hi, >> >> I don't have use for scanning the jars for tld files etc., so >> usually, in catalina.properties, I skip all jars by setting >>

Re: catalina.out rotation in tomcat 7.0.56

2014-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Niranjan, On 11/21/14 10:38 AM, Niranjan Babu Bommu wrote: > I’m working on a project migrating apps from jboss to tomcat, I’m > running into an issue that is catalina.out rotation, I’m using > log4.properties. Everything works fine, log rotation ha

Re: catalina.properties and system properties

2014-11-21 Thread Igal @ getRailo.org
On 11/19/2014 9:44 AM, Igal @ getRailo.org wrote: > hi, > > I don't have use for scanning the jars for tld files etc., so usually, > in catalina.properties, I skip all jars by setting > > tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar > > I just noticed that I can set it via a system p

catalina.out rotation in tomcat 7.0.56

2014-11-21 Thread Niranjan Babu Bommu
Hi I’m working on a project migrating apps from jboss to tomcat, I’m running into an issue that is catalina.out rotation, I’m using log4.properties. Everything works fine, log rotation happening but not everyday midnight. I ‘m having difficult time to figure out. could some one help me out on this

Re: server-status in text format

2014-11-21 Thread Jose Monreal
>From the documentation it only says From this link, but it doesn't say if its possible to get the info from the text manager. Why it hasn't been developed? Saludos cordiales, José Ignacio Monreal Bailey | Ingeniero Civil en Computación *Cuidemos del medio ambiente. Por favor no imprimas es

Re: Problem with base directory in Resource

2014-11-21 Thread phiroc
I figured it out. Let say /mnt/mynfsserver_img/ contains an image called myimage.png. If you create the below pre-resource in context.xml, you can access that image by typing http://localhost:8080/img/myimage.png. Philippe - Mail original - De: phi...@free.fr À: "Tomcat Users List" E

Re: Problem with base directory in Resource

2014-11-21 Thread phiroc
I have solved the problem by replacing PostResources by PreResources (cf. http://mikusa.blogspot.fr/2014/07/tips-on-migrating-to-tomat-8-resources.html). Now I need to figure out how to use the webAppMount. Any suggestions? Philippe - Mail original - De: phi...@free.fr À: users@tomc

Problem with base directory in Resource

2014-11-21 Thread phiroc
Hello, in my Apache 8 context.xml file, I have created the following resource: where /mnt/mynfsserver_img is a mounted volume containing thousands of photos in sub-directories. When I start Tomcat 8, I get the following error message: -

server-status in text format

2014-11-21 Thread Jose Monreal
Is it possible to get the same information of html manger server status but in text format? Like this curl http://localhost:8080/manager/text/server-status Best regards, José

Re: How to setup rewrite valve for angularjs

2014-11-21 Thread Daniel Mikusa
On Thu, Nov 20, 2014 at 9:08 PM, Tay Kai Yang wrote: > Hi > I have been reading up tomcat 8's user doc. But I have some problems > understanding the setup of rewrite valve. I think I should add the rewrite > valve class name and XML settings to /conf/server.xml, but I am not sure > what to do nex

Re: Release calendar of Apache Tomcat versions

2014-11-21 Thread Mark Thomas
On 20/11/2014 17:52, jieryn wrote: > I guess it depends on how you view what a "release" is. "Release" has a very specific definition at the ASF. [1] > it's not like the tags are changed after the fact, Tags can change. For example, if I tag 8.0.x/trunk to do a release and discover a problem whi