Re: Getting the Manager to accept users (Tomcat 7)

2013-02-01 Thread Konstantin Kolinko
2013/2/1 André Warnier a...@ice-sa.com: In this section : .. Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.LockOutRealm !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key

Fwd: How do I deploy a war file to a context path not matching the war file name

2013-02-01 Thread Edd Grant
Hi all, I am using Tomcat 6.0.32 and have a deployment question. I have a war file over which I do not have control of the filename, let's call it MYAPP.war . Tomcat's default deployment behaviour would be to deploy this application under a context of /myapp however I want to deploy it instead

Re: How do I deploy a war file to a context path not matching the war file name

2013-02-01 Thread chris derham
The documentation for the docBase (a.k.a context root) attribute states that the docBase attribute should be used to point to the war or exploded war file. My server's appBase is the default of 'webapps' and my WAR and exploded WAR are under webapps so I have specified a relative path of

Tomcat WAR Plugin - target release date for 2.1?

2013-02-01 Thread Timothy Astle
I'm planning a software release that uses a feature added to the 2.1-SNAPSHOT of the Tomcat WAR Plugin. Does anyone know when 2.1 would be released, or if there is going to be a tagged deployment released to the Apache Maven repository (alpha or beta) in the near future? Tim

Tomcat does not start with -Dcom.sun.management.jmxremote.port=9001

2013-02-01 Thread spring
Hi, I want to monitor my tomcat 7 via JMX remotely. The problem is, as soon as I add -Dcom.sun.management.jmxremote.port=9001 to my setenv.sh tomcat does not start anymore. No error message, no log, nothing... The system is a ubuntu which uses start-stop-demon to execute catalina.sh. What could

Re: Tomcat does not start with -Dcom.sun.management.jmxremote.port=9001

2013-02-01 Thread André Warnier
spr...@gmx.eu wrote: Hi, I want to monitor my tomcat 7 via JMX remotely. The problem is, as soon as I add -Dcom.sun.management.jmxremote.port=9001 to my setenv.sh tomcat does not start anymore. No error message, no log, nothing... The system is a ubuntu which uses start-stop-demon to execute

RE: Tomcat does not start with -Dcom.sun.management.jmxremote.port=9001

2013-02-01 Thread spring
there must be a log message somewhere. But I do not find it... The problem is probably that under Ubuntu, the startup script redirects the STDERR log somewhere, where you are not looking (via SYSLOG to /var/log/daemon.log e.g.). There is a syslog file, but it has no error messages.

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Ron Wheeler
From our experience with a Spring app under Tomcat, the JVM memory configuration looks low. You might try doubling it and seeing what it does. The virtual memory of the OS is not as much of an issue since the Tomcat JVM memory limit will stop it from growing to use the Linux address space.

Re: How do I deploy a war file to a context path not matching the war file name

2013-02-01 Thread Edd Grant
Thanks Chris - that works perfectly! On 1 February 2013 11:06, chris derham ch...@derham.me.uk wrote: The documentation for the docBase (a.k.a context root) attribute states that the docBase attribute should be used to point to the war or exploded war file. My server's appBase is the default

Re: Tomcat WAR Plugin - target release date for 2.1?

2013-02-01 Thread Olivier Lamy
Hi, My plan was starting a release process around late next week. 2013/2/1 Timothy Astle timothy.as...@caris.com: I'm planning a software release that uses a feature added to the 2.1-SNAPSHOT of the Tomcat WAR Plugin. Does anyone know when 2.1 would be released, or if there is going to be a

Re: Tomcat WAR Plugin - target release date for 2.1?

2013-02-01 Thread Timothy Astle
Thanks Olivier! I'll stay tuned. :) Tim On 01/02/2013 11:18 AM, Olivier Lamy wrote: Hi, My plan was starting a release process around late next week. 2013/2/1 Timothy Astle timothy.as...@caris.com: I'm planning a software release that uses a feature added to the 2.1-SNAPSHOT of the Tomcat

Re: [OT] Help in diagnosing server unresponsiveness

2013-02-01 Thread André Warnier
Ron Wheeler wrote: .. I am not sure how 6Gb of virtual OS RAM help when the Tomcat app is restricted to 1Gb. Really ? what a poor repressed little app. Just think of it : it only has one thousand million bytes of RAM to play with. A real scandal, that is.

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Edson Richter
Removing the hardware issues (faulty memory or disk), that you obviously already tested, I'll try to give some directions for testing: a) Main cause of memory leaks are hard references in main class loader. This happens when you put all your libraries into $TOMCAT_HOME/lib. Try to move your

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Edson Richter
Em 01/02/2013 15:03, Edson Richter escreveu: Removing the hardware issues (faulty memory or disk), that you obviously already tested, I'll try to give some directions for testing: a) Main cause of memory leaks are hard references in main class loader. This happens when you put all your

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Howard W. Smith, Jr.
On Fri, Feb 1, 2013 at 12:09 PM, Edson Richter edsonrich...@hotmail.com wrote: Em 01/02/2013 15:03, Edson Richter escreveu: When I say (we see..) I want to mean: I see lots of junior programmers doing the same mistake over and over... I don't know if this is your case, but I feel that worth

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zoran, On 1/31/13 8:36 PM, Zoran Avtarovski wrote: We have a application running on the latest Tomcat7 and we are getting a server crash or becoming unresponsive. This occur every few days at no fixed intervals or time of day and they certainly

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ron, On 2/1/13 8:14 AM, Ron Wheeler wrote: From our experience with a Spring app under Tomcat, the JVM memory configuration looks low. You might try doubling it and seeing what it does. That's a big jump for not knowing anything about the OP's

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Howard, On 2/1/13 12:41 PM, Howard W. Smith, Jr. wrote: my app is running fine, but i'm always striving for perfection and performance, and that is why I made my way from mojarra to myfaces, glassfish to tomee/tomcat, and jsf-managed-beans to

Re: Tomcat does not start with -Dcom.sun.management.jmxremote.port=9001

2013-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 To whom it may concern, On 2/1/13 8:08 AM, spr...@gmx.eu wrote: there must be a log message somewhere. But I do not find it... Where did you look? The problem is probably that under Ubuntu, the startup script redirects the STDERR log

Re: Tomcat 64-bit for Solaris 64-bit OS

2013-02-01 Thread Niranjan
Jeff Sturm jeff.sturm at eprize.com writes: -Original Message- From: Caldarale, Charles R [mailto:Chuck.Caldarale at unisys.com] Sent: Thursday, January 31, 2013 3:21 PM From: Niranjan [mailto:nthota at atmi.com] Subject: Re: Tomcat 64-bit for Solaris 64-bit OS As I

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Edson Richter
Em 01/02/2013 17:20, Christopher Schultz escreveu: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Howard, On 2/1/13 12:41 PM, Howard W. Smith, Jr. wrote: my app is running fine, but i'm always striving for perfection and performance, and that is why I made my way from mojarra to myfaces,

Re: Getting the Manager to accept users (Tomcat 7)

2013-02-01 Thread L Alex Pranger
This seems to have done the trick for me (removing the extra comment lines). I had a comment line !-- This is my comment -- and was unaware that ending comment marks had to be on their own line. Thank you.

Re: Getting the Manager to accept users (Tomcat 7)

2013-02-01 Thread David kerber
On 2/1/2013 2:38 PM, L Alex Pranger wrote: This seems to have done the trick for me (removing the extra comment lines). I had a comment line !-- This is my comment -- and was unaware that ending comment marks had to be on their own line. They don't; they can be either on the same line, or on

RE: Tomcat 64-bit for Solaris 64-bit OS

2013-02-01 Thread Jeff Sturm
-Original Message- From: Niranjan [mailto:nth...@atmi.com] Sent: Friday, February 01, 2013 2:31 PM To: users@tomcat.apache.org Subject: Re: Tomcat 64-bit for Solaris 64-bit OS Jeff Sturm jeff.sturm at eprize.com writes: On Linux at least you'd add the -d64 argument to the java

[OT] Java 6u39, 7u13 are available

2013-02-01 Thread Konstantin Kolinko
Hi! Oracle released Java 6u39 and 7u13 [1], containing security fixes. A Critical Patch Update Advisory [2], notes that the release was originally planned on February 19, but it was pushed forward due to existing active exploits of one of vulnerabilities. [1]

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Howard W. Smith, Jr.
If you want to improve performance even more, ditch EJB altogether. Moving from APR to NIO may be a good move, but it really depends upon your requirements. For instance, APR provides superior SSL performance but if you don't need it, NIO will probably give you better results. Understood,

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Edson Richter
Em 01/02/2013 21:27, Howard W. Smith, Jr. escreveu: If you want to improve performance even more, ditch EJB altogether. Moving from APR to NIO may be a good move, but it really depends upon your requirements. For instance, APR provides superior SSL performance but if you don't need it, NIO will

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Edson Richter
Em 01/02/2013 21:57, Howard W. Smith, Jr. escreveu: Okay, well, I'm using JPA to access JTA managed datasource (Apache Derby), and I really don't think I have any JDBC resource management issues. Have you look into your JPA graph and check if you are not loading millions of objects in memory?

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Howard W. Smith, Jr.
What is the best way to look into the JPA? via JMX? In development, I do use NetBeans with Profiler (memory or cpu profile are good start point). In test environment I do use JRockit Mission Control remote monitoring. I do not use any of these in production. Probably would be possible to

Re: Help in diagnosing server unresponsiveness

2013-02-01 Thread Howard W. Smith, Jr.
Chris, On Fri, Feb 1, 2013 at 2:20 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Howard, On 2/1/13 12:41 PM, Howard W. Smith, Jr. wrote: my app is running fine, but i'm always striving for perfection and performance, and that