Re: connection autoReconnect?

2012-11-20 Thread Arnaud
We have been struggling with this MySQL last packet message for some times as well. And we are still not sure if we have solved it yet. However we did discover quite a few things. We minimized our DBCP configuration to only a few parameters Context path= Resource auth=Container

Re: Tomcat ROOT webapp homepage

2012-11-20 Thread Pid
On 15/11/2012 21:33, Leo Donahue - RDSA IT wrote: -Original Message- From: Pid * [mailto:p...@pidster.com] Sent: Thursday, November 15, 2012 2:25 PM Subject: Re: Tomcat ROOT webapp homepage On 15 Nov 2012, at 18:06, Leo Donahue - RDSA IT leodona...@mail.maricopa.gov wrote: Who

Re: multiple tomcat instances for every application

2012-11-20 Thread Ashkan Rahmani
On Tue, Nov 20, 2012 at 12:28 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: multiple tomcat instances for every application Most JVMs use shared memory for some things like core classes, etc.

SimpleTCPCluster

2012-11-20 Thread Stephen Nelson-Smith
Hi, I'm trying to test simple session sharing using SimpleTCPCluster on Tomcat 7.0.32. Following the documentation, I've uncommented the Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/ element, and ensured distributable / is in the web.xml of the examples web app. From the docs:

Context root query

2012-11-20 Thread vicky007aggarwal
Hello Guys, I am trying to define the context root in my application using context.xml. I defined the following in application context.xml under meta-inf directory Context path=/app1 privileged=true/ But still tomcat is referring the application name as my context. The value

Re: Context root query

2012-11-20 Thread Elias Kopsiaftis
did you reload tomcat after changing the file? On Tue, Nov 20, 2012 at 7:51 AM, vicky007aggar...@yahoo.co.in wrote: Hello Guys, I am trying to define the context root in my application using context.xml. I defined the following in application context.xml under meta-inf directory

Re: Context root query

2012-11-20 Thread André Warnier
vicky007aggar...@yahoo.co.in wrote: Hello Guys, I am trying to define the context root in my application using context.xml. I defined the following in application context.xml under meta-inf directory Context path=/app1 privileged=true/ But still tomcat is referring the application name as

Re: Context root query

2012-11-20 Thread André Warnier
André Warnier wrote: vicky007aggar...@yahoo.co.in wrote: Hello Guys, I am trying to define the context root in my application using context.xml. I defined the following in application context.xml under meta-inf directory Context path=/app1 privileged=true/ But still tomcat is referring

Re: TC 6.0.2*: Dynamically-compiled jsps/tags not being loaded

2012-11-20 Thread Jim
Thanks for the question -- I worded that part awkwardly. Our project has a root-level /src directory with the web app's Java files, and a root-level /war directory with the exploded non-Java files (static assets, JSPs, etc.). When developing, Eclipse compiles the /src directory into the

RE: multiple tomcat instances for every application

2012-11-20 Thread Caldarale, Charles R
From: Ashkan Rahmani [mailto:ashkan...@gmail.com] Subject: Re: multiple tomcat instances for every application do you know what is -Xshare:off ? is it related to share classes? http://lmgtfy.com/?q=%22-Xshare%3Aoff%22 King Regards, Didn't realize we were dealing with royalty... -

Re: SimpleTCPCluster

2012-11-20 Thread Daniel Mikusa
On Nov 20, 2012, at 5:53 AM, Stephen Nelson-Smith wrote: Hi, I'm trying to test simple session sharing using SimpleTCPCluster on Tomcat 7.0.32. Following the documentation, I've uncommented the Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/ element, and ensured

Re: SimpleTCPCluster

2012-11-20 Thread Stephen Nelson-Smith
Hi Daniel. On Tue, Nov 20, 2012 at 1:55 PM, Daniel Mikusa dmik...@vmware.com wrote: On Nov 20, 2012, at 5:53 AM, Stephen Nelson-Smith wrote: I've encountered this with Tomcat clustering on CentOS in the past. Tomcat's default configuration for the cluster receiver will automatically look up

Re: SimpleTCPCluster

2012-11-20 Thread Stephen Nelson-Smith
Hi, On Tue, Nov 20, 2012 at 2:03 PM, Stephen Nelson-Smith sanel...@gmail.com wrote: Hi Daniel. On Tue, Nov 20, 2012 at 1:55 PM, Daniel Mikusa dmik...@vmware.com wrote: On Nov 20, 2012, at 5:53 AM, Stephen Nelson-Smith wrote: I've encountered this with Tomcat clustering on CentOS in the past.

Re: I have a question about websocket in tomcat7.0.30

2012-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zane, On 11/19/12 10:56 PM, zane_zh...@wistronits.com wrote: I am trying to build a chat-room in the internet by websocket based on tomcat7.0.30. the link between server and browser is not reliable. when I try to send a message to server from

RE: Get active session list

2012-11-20 Thread Cosio, Raul
As far as I know there is no way to get the list of active sessions for security reasons, some time ago I wanted to display in my application a list of active sessions, what I did is to implement some listeners, it is tricky but fun once you understand how it works. The first listener I

Re: Context root query

2012-11-20 Thread vicky007aggarwal
Helo, Yes , i restarted tomcat after that but that doesn't help. But if i define the following in server.xml , i am able to override the default context root of an application successfully Context path=/tests docBase=/var/www/test_application1/ debug=0 reloadable=true crossContext=false

RE: Context root query

2012-11-20 Thread Caldarale, Charles R
From: vicky007aggar...@yahoo.co.in [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query Please suggest how i can override the context root of an application using META-INF/context.xml You cannot. Please actually read the documentation everyone has been pointing you to.

Re: Get active session list

2012-11-20 Thread Jose María Zaragoza
Sorry, I'm not following this thread but Don't you want to use http://localhost:8080/manager/html/sessions?path=/contextpath ? You only have to parse this plain HTML webpage I know that it's not very elegant but Regards 2012/11/20 Cosio, Raul jose_raul_co...@merck.com: As far as I

Re: Context root query

2012-11-20 Thread vicky
Pardon me if i am annoying , but from the below mail link, i located the snippet(mentioned below) in which its written that we can define application context in context.xml. ** Individual Context elements may be

RE: Context root query

2012-11-20 Thread Caldarale, Charles R
From: vicky [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query i located the snippet(mentioned below) in which its written that we can define application context in context.xml. ** Individual

Re: Context root query

2012-11-20 Thread vicky
Thanks a ton charles for passionatly explaining me the intrinsic things , it means a lot to me...   1  What sense does it make to statically defining a Context in server.xml ?? 2  Just to confirm , so using we cannot override  the default  application context  using /META-INF/context.xml 

Re: Context root query

2012-11-20 Thread Mark Thomas
On 20/11/2012 17:47, vicky wrote: 3 As i have a user requirement that they want to have a application context as different from application archive file name That sounds like an x-y problem to me. What is the real user requirement? Mark

RE: Context root query

2012-11-20 Thread Caldarale, Charles R
From: vicky [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query What sense does it make to statically defining a Context in server.xml ?? Pretty much none, these days. Don't do it. we cannot override  the default  application context  using /META-INF/context.xml  ??

Re: Context root query

2012-11-20 Thread vicky
MARK -  My client has application archives files which all have version string in it as stated below :- eg:- mom-1.2.0.war, mom-1.3.0.war,  mom-1.4.0.war,  mom-1.5.0.war So they doest want the version string mentioned in the application archive to become part of application context. The

Re: tomcat-native 1.1.24

2012-11-20 Thread Isaac López Marín
Hi again, I don't know what to do about this problem, so I decided to uninstall tomcat-native and I'll try to work without it. Thanks a lot for your help :) 2012/11/16 André Warnier a...@ice-sa.com Hi. Isaac López Marín wrote: We kind of guessed as much, considering the sender and the

RE: Context root query

2012-11-20 Thread Caldarale, Charles R
From: vicky [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query My client has application archives files which all have version string in it as stated below :- eg:- mom-1.2.0.war, mom-1.3.0.war,  mom-1.4.0.war,  mom-1.5.0.war So they doest want the version string

Re: Context root query

2012-11-20 Thread Mark Eggers
On 11/20/2012 10:32 AM, vicky wrote: MARK - My client has application archives files which all have version string in it as stated below :- eg:- mom-1.2.0.war, mom-1.3.0.war, mom-1.4.0.war, mom-1.5.0.war So they doest want the version string mentioned in the application archive to become

Re: multiple tomcat instances for every application

2012-11-20 Thread Ashkan Rahmani
On Tue, Nov 20, 2012 at 5:13 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Ashkan Rahmani [mailto:ashkan...@gmail.com] Subject: Re: multiple tomcat instances for every application do you know what is -Xshare:off ? is it related to share classes?

Re: Context root query

2012-11-20 Thread Mark Thomas
On 20/11/2012 18:45, Caldarale, Charles R wrote: From: vicky [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query My client has application archives files which all have version string in it as stated below :- eg:- mom-1.2.0.war, mom-1.3.0.war, mom-1.4.0.war,

Re: TC 6.0.2*: Dynamically-compiled jsps/tags not being loaded

2012-11-20 Thread Pid *
On 20 Nov 2012, at 13:42, Jim open...@gmail.com wrote: Thanks for the question -- I worded that part awkwardly. Our project has a root-level /src directory with the web app's Java files, and a root-level /war directory with the exploded non-Java files (static assets, JSPs, etc.). When

Re: TC 6.0.2*: Dynamically-compiled jsps/tags not being loaded

2012-11-20 Thread Jim
No -- the /war/WEB-INF/classes directory is .gitignored, and empty until we deploy, at which point we copy in the compiled .java files, etc. I suppose my core question is: if $CATALINA_HOME/work/Catalina/localhost/_/org/apache/jsp/tag/web/about_tag.class exists, what situations could cause

Re: TC 6.0.2*: Dynamically-compiled jsps/tags not being loaded

2012-11-20 Thread Pid *
On 20 Nov 2012, at 19:44, Jim open...@gmail.com wrote: No -- the /war/WEB-INF/classes directory is .gitignored, and empty until we deploy, at which point we copy in the compiled .java files, etc. I suppose my core question is: if

Re: TC 6.0.2*: Dynamically-compiled jsps/tags not being loaded

2012-11-20 Thread Jim
What I'm getting at is this: your release process should produce a .war (or exploded directory) that is copied to Tomcat and that Tomcat should not be reading any part of the app from the /war directory - a source controlled directory. Right: we produce an exploded directory which is then copied

Re: connection autoReconnect?

2012-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arnaud, On 11/20/12 4:23 AM, Arnaud wrote: We have been struggling with this MySQL last packet message for some times as well. And we are still not sure if we have solved it yet. You can get the last packet message for a number of reasons.

Re: Get active session list

2012-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raul, On 11/20/12 11:02 AM, Cosio, Raul wrote: As far as I know there is no way to get the list of active sessions for security reasons You can also use JMX to get a list of sessions. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2

Re: tomcat-native 1.1.24

2012-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/16/12 3:31 AM, André Warnier wrote: considering this ... - Native 1.1.24 Source Release tar.gz http://ftp.udc.es/apache//tomcat/tomcat-connectors/native/1.1.24/source/tomcat-native-1.1.24-src.tar.gz(e.g. Unix, Linux, Mac OS)

Re: tomcat-native 1.1.24

2012-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Isaac, On 11/15/12 6:47 PM, Isaac López Marín wrote: Well, I installed it using the install.sh file and creating a symbolic link to /usr/lib/java I mean, I didn't get errors during the process and the server found the correct path for

Re: TC 6.0.2*: Dynamically-compiled jsps/tags not being loaded

2012-11-20 Thread Pid *
On 20 Nov 2012, at 21:44, Jim open...@gmail.com wrote: What I'm getting at is this: your release process should produce a .war (or exploded directory) that is copied to Tomcat and that Tomcat should not be reading any part of the app from the /war directory - a source controlled directory.

Re: TC 6.0.2*: Dynamically-compiled jsps/tags not being loaded

2012-11-20 Thread Jim
On 11/20/12 5:02 PM, Pid * wrote: On 20 Nov 2012, at 21:44, Jim open...@gmail.com wrote: What I'm getting at is this: your release process should produce a .war (or exploded directory) that is copied to Tomcat and that Tomcat should not be reading any part of the app from the /war directory -

Re: TC 6.0.2*: Dynamically-compiled jsps/tags not being loaded

2012-11-20 Thread Mark Thomas
On 20/11/2012 22:19, Jim wrote: Sorry about that; thanks for the note -- it looked like other recent messages to the list were top-posted, or inline, so I assumed that was desired. Top-posting bad. Bottom-posting fine. In-line better. Appropriate quoting even better. One of my colleagues

Re: tomcat-native 1.1.24

2012-11-20 Thread Isaac López Marín
So you downloaded the source and then ran a program that downloads the source? I can't find these strings anywhere in the tcnative-1.1.24 package: --- Extracting tomcat-native --- Configuring tomcat-native --- Building tomcat-native --- Staging tomcat-native into destroot ---

Re: connection autoReconnect?

2012-11-20 Thread Arnaud
So, yes indeed. The problem would then be solved by making sure that all connections are rotated at least once within the MySQL wait-timeout right? How do we do this? Measure the average concurrent number of connections and then set the initialSize the same? -- View this message in context:

RE: Running two different version of tomcat on the same server

2012-11-20 Thread Caldarale, Charles R
From: Kent Cole [mailto:kc...@reservationsoftwareonline.com] Subject: Running two different version of tomcat on the same server I am looking for instructions on how to run two different versions of tomcat on the same Linux server. Can anyone point me to instructions on doing this? Look