Re: Apache Tomcat context update listeners

2016-02-27 Thread Chiranga Alwis
Thanks Mark, I will go through and try to understand this. If any clarifications are required I will post here. By the way the goal I am pursuing (if it is not clear) is to enable the loading of a set of custom configurations for every Context. These configurations cannot be included within the

Re: Apache Tomcat context update listeners

2016-02-27 Thread Mark Thomas
On 27/02/2016 17:38, Chiranga Alwis wrote: > Well, what I am trying to achieve is as follows: > > I am trying to load certain custom configurations from a file which is > similar to web.xml in Tomcat, for each Context. We can define it globally > and also override the configurations at context

Re: Apache Tomcat context update listeners

2016-02-27 Thread Mark Eggers
Chiranga, On 2/27/2016 9:38 AM, Chiranga Alwis wrote: > Well, what I am trying to achieve is as follows: > > I am trying to load certain custom configurations from a file which > is similar to web.xml in Tomcat, for each Context. We can define it > globally and also override the configurations

Re: Apache Tomcat context update listeners

2016-02-27 Thread Chiranga Alwis
Well, what I am trying to achieve is as follows: I am trying to load certain custom configurations from a file which is similar to web.xml in Tomcat, for each Context. We can define it globally and also override the configurations at context level. For this I have already created a custom

Re: Apache Tomcat context update listeners

2016-02-27 Thread Mark Thomas
On 26 February 2016 19:09:59 GMT+00:00, Chiranga Alwis wrote: >Well, sorry if the question is not clear. > >What I want to know is for what type of event we need to listen in >order to >carry out a task when a Context is modified. It would be great if there >is >a clear

Re: Apache Tomcat context update listeners

2016-02-26 Thread Chiranga Alwis
Well, sorry if the question is not clear. What I want to know is for what type of event we need to listen in order to carry out a task when a Context is modified. It would be great if there is a clear explanation on how this is to be checked. On Fri, Feb 26, 2016 at 5:21 PM, Mark Thomas

Re: Apache Tomcat context update listeners

2016-02-26 Thread Mark Thomas
On 26/02/2016 11:44, Chiranga Alwis wrote: > Hi, > > I have currently created a LifecycleListener which listens to Tomcat's > context deployment event and loads data in a custom configuration file at > that point. > > I have been trying to find out whether LifecycleListeners support context >

Apache Tomcat context update listeners

2016-02-26 Thread Chiranga Alwis
Hi, I have currently created a LifecycleListener which listens to Tomcat's context deployment event and loads data in a custom configuration file at that point. I have been trying to find out whether LifecycleListeners support context update and modification events but yet in my understanding I

Re: tomcat context with /

2015-10-06 Thread Mark Thomas
On 06/10/2015 22:56, Harish Kulkarni wrote: > Hi > > We are migrating a WebSphere app to tomcat. > In Websphere the context is defined as /secure/admin and we have hardcode > redirects with /secure/admin/* Whoops. Applications are meant to be independent of the context path at which they are

Re: tomcat context with /

2015-10-06 Thread Harish Kulkarni
Hi We are migrating a WebSphere app to tomcat. In Websphere the context is defined as /secure/admin and we have hardcode redirects with /secure/admin/* Our war is admin.war. Tomcat is not allowing /secure/admin as context. Is there a way using tomcat rewrite or apache config to achieve this.

Re: We have a problem involving weird error messages in our Tomcat context, and catalina.out growing to enormous size.

2015-06-22 Thread André Warnier
James H. H. Lampert wrote: We have two weird things going on at the same customer installation. First, we have a situation in which catalina.out is inexplicibly growing to enormous size (4558505886 bytes) in a very short time (under a week), and growing by 4k in under a minute. And yet the

Re: We have a problem involving weird error messages in our Tomcat context, and catalina.out growing to enormous size.

2015-06-22 Thread James H. H. Lampert
On 6/22/15 12:11 PM, Christopher Schultz wrote: Well... what's in the catalina.out file? Is it huge numbers of exceptions of the type described above? Still haven't been able to see what's in it (the terminal-based tools won't handle stream files that big), but when this happened before, it

Re: We have a problem involving weird error messages in our Tomcat context, and catalina.out growing to enormous size.

2015-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 6/22/15 4:58 PM, James H. H. Lampert wrote: On 6/22/15 12:11 PM, Christopher Schultz wrote: Well... what's in the catalina.out file? Is it huge numbers of exceptions of the type described above? Still haven't been able to see

Re: We have a problem involving weird error messages in our Tomcat context, and catalina.out growing to enormous size.

2015-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 6/22/15 2:54 PM, James H. H. Lampert wrote: We have two weird things going on at the same customer installation. First, we have a situation in which catalina.out is inexplicibly growing to enormous size (4558505886 bytes) in a very

We have a problem involving weird error messages in our Tomcat context, and catalina.out growing to enormous size.

2015-06-22 Thread James H. H. Lampert
We have two weird things going on at the same customer installation. First, we have a situation in which catalina.out is inexplicibly growing to enormous size (4558505886 bytes) in a very short time (under a week), and growing by 4k in under a minute. And yet the catalina.[date] files are all

Re: Checking to see if a Tomcat context is alive or hung

2014-03-08 Thread Hassan Schroeder
On Fri, Mar 7, 2014 at 10:16 AM, James H. H. Lampert jam...@touchtonecorp.com wrote: I've been asked to come up with a command-line (or batch job) utility (running on an AS/400) to check, programmatically, whether a Tomcat context that's part of one of our products is alive and accepting

Re: Checking to see if a Tomcat context is alive or hung

2014-03-08 Thread Konstantin Kolinko
2014-03-07 22:16 GMT+04:00 James H. H. Lampert jam...@touchtonecorp.com: I've been asked to come up with a command-line (or batch job) utility (running on an AS/400) to check, programmatically, whether a Tomcat context that's part of one of our products is alive and accepting connections

Checking to see if a Tomcat context is alive or hung

2014-03-07 Thread James H. H. Lampert
I've been asked to come up with a command-line (or batch job) utility (running on an AS/400) to check, programmatically, whether a Tomcat context that's part of one of our products is alive and accepting connections, or hung. I'm already attempting to pick the brains of our people who

Re: Checking to see if a Tomcat context is alive or hung

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 3/7/14, 1:16 PM, James H. H. Lampert wrote: I've been asked to come up with a command-line (or batch job) utility (running on an AS/400) to check, programmatically, whether a Tomcat context that's part of one of our products is alive

Re: Tomcat context startup failed

2010-02-17 Thread André Warnier
Hadole, Nishant IN BOM SISL wrote: Dear Simone, The obvious error displayed from log is java.lang.NoClassDefFoundError: org/apache/xerces/util/EncodingMap. First check whether the xerces jar containing mentioned class is in place. Try downloading new jar and again restart the tomcat

Re: Tomcat context startup failed

2010-02-17 Thread Bob Hall
Andre, --- On Wed, 2/17/10 at 1:06 AM, André Warnier a...@ice-sa.com wrote: The obvious error displayed from log is java.lang.NoClassDefFoundError: org/apache/xerces/util/EncodingMap. First check whether the xerces jar containing mentioned class is in place. Try downloading new jar and

RE: Tomcat context startup failed

2010-02-17 Thread Caldarale, Charles R
From: Bob Hall [mailto:rfha...@yahoo.com] Subject: Re: Tomcat context startup failed The offending .jar files were not loaded and can't contribute to any problems. Don't bet on it: if the app has its own ClassLoader, it may well ignore the finer points of the servlet spec. Regardless

Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Anurag Kapur
Tomcat version: 5.5.27 Java version: 1.5.0_14-b03 I have a datasource configured in global context (via present in [tomcat_home]/conf/context.xml) as follows: Context Resource name=*@tomcat.context.ece.read.ds.resource@* auth=*Container type=@tomcat.context.driver.type@ driverClassName=

Re: Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Mark Thomas
Anurag Kapur wrote: Tomcat version: 5.5.27 Java version: 1.5.0_14-b03 I have a datasource configured in global context (via present in [tomcat_home]/conf/context.xml) as follows: snip/ I know a DS defined as above is visible across all the contexts defined in the container. What I want

Re: Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Anurag Kapur
Thanks Mark. Can you confirm that I can have one data source shared across all contexts with the following configurations: In CATALINA_BASE/conf/server.xml, I define a GlobalNamingResource as follows: GlobalNamingResources ... ... Resource name=*@tomcat.context.ece.read.ds.resource@*

Re: Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Mark Thomas
Anurag Kapur wrote: Thanks Mark. Can you confirm that I can have one data source shared across all contexts with the following configurations: In CATALINA_BASE/conf/server.xml, I define a GlobalNamingResource as follows: GlobalNamingResources ... ... Resource

Re: Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Anurag Kapur
Perfect Thanks! The type I use would be: jhttp://tomcat.apache.org/tomcat-5.5-doc/config/globalresources.html avax.sql.DataSource (I was using untokenized reference in my example) Thanks for your help. Regards Anurag -- Anurag

Re: Can Tomcat context path be multilevel

2009-12-09 Thread Prashantha H
Hi All, I have an application which needs to be deployed and accessed with multilevel context path in the url. So I have updated the TOMCAT_HOME/Conf/Server.xml with an appropriate entry for this. For Example: If my application name is Doc.war and I want it to be accessed

Re: Can Tomcat context path be multilevel

2009-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prashantha, On 12/9/2009 2:05 PM, Prashantha H wrote: If my application name is Doc.war and I want it to be accessed using multilevel context path dco/smartfolder. ( http://localhost:8080/dco/smartfolder/) Heh. So, you're on Windows,

webapp in tomcat context cannot access a python proxy residing in apache

2009-01-14 Thread g f
Hello all, not sure if this should be asked here or in the apache list so I will try here first. I have an application running completely inside of tomcat 6...lets call it webappTomcat which runs on port 8084. A coworker developed an application that runs mainly on apache(html and javascript)

RE: Question about Tomcat context

2008-10-24 Thread Peter Crowther
From: Jerome Lepage - AKEROZ [mailto:[EMAIL PROTECTED] I have developped a web application on Tomcat (5.0.28). My webapp use Hibernate 3 and i have a Singleton pattern too. I want have my webapp deployed N time in same Tomcat Server. But i don't want to share context, hibernate and Singleton

Re: Question about Tomcat context

2008-10-24 Thread Serge Fonville
they don't share context ? Thanks again for your time and answers.. Jerome Lepage AKEROZ - Original Message - From: Serge Fonville [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, October 24, 2008 11:37 AM Subject: Re: Question about Tomcat context

Re: Question about Tomcat context

2008-10-24 Thread Jerome Lepage - AKEROZ
Hi, Thanks to you too for your answers. Have you tried just deploying it N times, making sure all the jars are in WEB-INF/lib? Each webapp should get its own classloader, and hence will have its own copies of Hibernate and your singleton. I *think* they'll have different contexts, too,

RE: Question about Tomcat context

2008-10-24 Thread Peter Crowther
From: Jerome Lepage - AKEROZ [mailto:[EMAIL PROTECTED] But when i launch tomcat with this env vars : JAVA_OPTS=-XX:MaxPermSize=512m -Xms24m -Xmx512m Well, yes :-). That should give you enough perm space. Tomcat looks like not really care about the memory i grant to JVM. It's seems that

Re: Question about Tomcat context

2008-10-24 Thread Serge Fonville
First a few questions; What does the app do Do the deployed applications differ What is the reason you want them separate Do they share anything, reaml,db,files, Do you need to be able to update them easily (all in one go) How do you intend to deploy them, war, copy, remote Is it an option to

Question about Tomcat context

2008-10-24 Thread Jerome Lepage - AKEROZ
Hi @ll, I have developped a web application on Tomcat (5.0.28). My webapp use Hibernate 3 and i have a Singleton pattern too. I want have my webapp deployed N time in same Tomcat Server. But i don't want to share context, hibernate and Singleton from one webapp to other. (Like database access

Re: Question about Tomcat context

2008-10-24 Thread Jerome Lepage - AKEROZ
11:37 AM Subject: Re: Question about Tomcat context First a few questions; What does the app do Do the deployed applications differ What is the reason you want them separate Do they share anything, reaml,db,files, Do you need to be able to update them easily (all in one go) How do you intend

RE: Question about Tomcat context

2008-10-24 Thread Caldarale, Charles R
From: Peter Crowther [mailto:[EMAIL PROTECTED] Subject: RE: Question about Tomcat context From: Jerome Lepage - AKEROZ [mailto:[EMAIL PROTECTED] JAVA_OPTS=-XX:MaxPermSize=512m -Xms24m -Xmx512m For server environments, you usually want to set Xms to the same value as Xmx to avoid heap

Tomcat context issue

2007-05-03 Thread tb323
.. // Tommy -- View this message in context: http://www.nabble.com/Tomcat-context-issue-tf3686346.html#a10304508 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org

RE: Tomcat context issue

2007-05-03 Thread Caldarale, Charles R
From: tb323 [mailto:[EMAIL PROTECTED] Subject: Tomcat context issue In server.xml I have this: Host name=localhost appBase=/home/tb323/projects/www/public_html/webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false This way I

RE: Tomcat context issue

2007-05-03 Thread tb323
Thanks for the extremely quick reply. :) I'll check this out after work. /Tommy Caldarale, Charles R wrote: From: tb323 [mailto:[EMAIL PROTECTED] Subject: Tomcat context issue In server.xml I have this: Host name=localhost appBase=/home/tb323/projects/www/public_html/webapps

Re: tomcat context

2007-04-19 Thread Orlando Reis
:[EMAIL PROTECTED] Sent: 17 April 2007 15:37 To: users@tomcat.apache.org Subject: tomcat context Hi, I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to use a context path different to the name of the war file? Thanks I want to deploy war files where the context name

Re: tomcat context

2007-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 José, José Perdigão wrote: I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to use a context path different to the name of the war file? Most people will suggest that you use the proper WAR file name for your context and leave

tomcat context

2007-04-17 Thread José Perdigão
Hi, I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to use a context path different to the name of the war file? Thanks -- José Miguel Perdigão homepage: zeperdi.pt.vu zeperdi.pt.vu - To start a new

RE: tomcat context

2007-04-17 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: tomcat context An alternative is to specify a Context element in your server.xml file and specify the name of the context as well as the location of the WAR file. Gotta get you out of the 4.1 mindset, Chris :-) Do NOT put

RE: tomcat context

2007-04-17 Thread OConchubhair, Andoni
@tomcat.apache.org Subject: tomcat context Hi, I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to use a context path different to the name of the war file? Thanks -- José Miguel Perdigão homepage: zeperdi.pt.vu zeperdi.pt.vu

RE: tomcat context

2007-04-17 Thread Caldarale, Charles R
From: OConchubhair, Andoni [mailto:[EMAIL PROTECTED] Subject: RE: tomcat context context path=last_bit_of_URL docBase=name_of_war_or_folder ... !-- Other stuff if necessary! -- /context Several problems with the above: 1) It's Context, not context - this is case sensitive. 2

Re: tomcat context

2007-04-17 Thread José Perdigão
April 2007 15:37 To: users@tomcat.apache.org Subject: tomcat context Hi, I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to use a context path different to the name of the war file? Thanks I want to deploy war files where the context name is not the same

Re: tomcat context

2007-04-17 Thread Johnny Kewl
@tomcat.apache.org Sent: Tuesday, April 17, 2007 4:36 PM Subject: tomcat context Hi, I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to use a context path different to the name of the war file? Thanks -- José Miguel Perdigão homepage: zeperdi.pt.vu zeperdi.pt.vu

RE: Tomcat Context

2006-08-18 Thread Bala Paranj
10:33 PM To: Tomcat Users List Subject: Re: Tomcat Context Hi , How is the url mapping for the servlet in the web.xml? it should not include /myContext in the url mapping. The servlet url mapping in the web.xml should only be for /somePath/MyServlet What do you get when you just

Tomcat Context Problem

2006-08-15 Thread Bala Paranj
I am posting this question here because JBoss is using Tomcat internally. 1. server.xml has the context path defined: Host name=localhost autoDeploy=false deployOnStartup=false deployXML=false Context path=/myContextPath/ /Host and is

Tomcat Context

2006-08-15 Thread Bala Paranj
I changed the context to : Context path=/myContextPath appBase= docBase=C:\Program Files\jboss-4.0.4.GA\server\default\deploy debug=99 reloadable=false /Context When I run the client, I get: Marking servlet MySeiServlet as unavailable? in the JBoss console. The client gets the

Re: Tomcat Context

2006-08-15 Thread Dhiraj Ramakrishnan
Hi , How is the url mapping for the servlet in the web.xml? it should not include /myContext in the url mapping. The servlet url mapping in the web.xml should only be for /somePath/MyServlet What do you get when you just type in https://localhost:8443/myContextPath ? Hope that