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 ty

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 lev

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 at

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 Listener

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 explanation on how this is

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 wrote:

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 > upd

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 c

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 depl

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. Than

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 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 w

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 v

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 cat

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 Konstantin Kolinko
2014-03-07 22:16 GMT+04:00 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 >

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 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 con

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

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

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

Re: Tomcat context startup failed

2010-02-17 Thread Bob Hall
Andre, --- On Wed, 2/17/10 at 1:06 AM, André Warnier 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 again rest

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 servic

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, th

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 usin

Re: Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Anurag Kapur
Perfect Thanks! The type I use would be: j avax.sql.DataSource (I was using untokenized reference in my example) Thanks for your help. Regards Anurag -- Anurag K

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: > > > ... > ... > Resource name=*"@tomcat.context.ece.read

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: ... ... Resource name=*"@tomcat.context.ece.read.ds.resource@"* auth=*"Container" type="@tom

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: > I know a DS defined as above is visible across all the contexts defined in > the container. What I want

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: Resource name=*"@tomcat.context.ece.read.ds.resource@"* auth=*"Container" type="@tomcat.context.driver.type@" driverClassName= "@tomcat.

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) alt

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

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 th

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, > to

Re: Question about Tomcat context

2008-10-24 Thread Serge Fonville
gt; Jerome Lepage > AKEROZ > > > - Original Message - > From: "Serge Fonville" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Friday, October 24, 2008 11:37 AM > Subject: Re: Question about Tomcat context > > > First a few questi

Re: Question about Tomcat context

2008-10-24 Thread Jerome Lepage - AKEROZ
rge Fonville" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, October 24, 2008 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 s

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 Sing

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 u

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 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: >> >> > appBas

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: > > appBase="/home/tb323/projects/www/public_html/webapps" > unpackWARs="true" autoDeploy="true" > xmlValidat

Tomcat context issue

2007-05-03 Thread tb323
every webapp I place in the appBase? Like it is now Tomcat is looking for app at "/webapps/appName" while it should be looking for "/appName" .. // Tommy -- View this message in context: http://www.nabble.com/Tomcat-context-issue-tf3686346.html#a10304508 Sent from the Tomcat -

Re: tomcat context

2007-04-19 Thread Orlando Reis
gt; Basically, what you have is: > > > > > -Original Message- > From: José Perdigão [mailto:[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

Re: tomcat context

2007-04-17 Thread José Perdigão
OConchubhair, Andoni wrote: Hi, What do you mean by 'context path'? Basically, what you have is: -Original Message- From: José Perdigão [mailto:[EMAIL PROTECTED] Sent: 17 April 2007 15:37 To: users@tomcat.apache.org Subject: tomcat context Hi, I'm using Apache

RE: tomcat context

2007-04-17 Thread Caldarale, Charles R
> From: OConchubhair, Andoni [mailto:[EMAIL PROTECTED] > Subject: RE: tomcat context > > docBase="" ... > > Several problems with the above: 1) It's , not - this is case sensitive. 2) The path attribute is ignored unless the element is in server.x

RE: tomcat context

2007-04-17 Thread OConchubhair, Andoni
Hi, What do you mean by 'context path'? Basically, what you have is: -Original Message- From: José Perdigão [mailto:[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

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 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, Chr

Re: tomcat context

2007-04-17 Thread Johnny Kewl
: 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 ho

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 - To start a new topic, e-mail: user

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 leav

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

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 h

Tomcat Context

2006-08-15 Thread Bala Paranj
I changed the context to : When I run the client, I get: Marking servlet MySeiServlet as unavailable? in the JBoss console. The client gets the error message: Server returned HTTP response code: 500 for URL: https://localhost:8443/myContextPath/somePath/MyServlet Does anyone

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: and is also configured for ssl: 2. web.xml has MyServlet com.xyz.MyServlet