RE: Tomcat Monitoring

2007-07-01 Thread Tim Lucia
> -Original Message- > From: Angelov, Rossen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 27, 2007 12:56 PM > To: Tomcat Users List > Subject: Tomcat Monitoring > > What is recommended for monitoring Tomcat? Or is there anything built in > that can help monitoring the performance and

RE: Trouble with java.util.Timer in Tomcat 5.5

2007-06-30 Thread Tim Lucia
You could as a simple test write a trivial web app, where the contextInitialized() creates a trivial Timer, where the run() method simply logs the event, perhaps with an integer count. Run that alongside your failing webapp and see if there is any correlation. Tim > -Original Message- >

RE: order of web app initialization.

2007-06-30 Thread Tim Lucia
> -Original Message- > From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 30, 2007 7:57 AM > To: Tomcat Users List > Subject: Re: order of web app initialization. > > > These TC designers seem to have though of everything > See > 1 > > The sub-element indicates the ord

RE: I would like a new session each time I start my application

2007-06-04 Thread Tim Lucia
I do not have any idea *why* you want to do this, but you can use session.invalidate() to guarantee the next request will have a new session ID. http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html#in validate() Tim > -Original Message- > From: Bachler, Elisabeth (El

RE: tomcat temp directory

2007-06-04 Thread Tim Lucia
I'm not sure what the impact of Tomcat is on this, but I've used syntax similar to this: try { File tf = File.createTempFile("pattern", ".suffix"); tf.deleteOnExit(); BufferedWriter out = new BufferedWriter(new FileWriter(tf)); out.write("This temporary file is deleted on close");

RE: tomcat 6, clustering, FarmDeployer

2007-05-31 Thread Tim Lucia
I've used ant to write a deploy task which is parameterized. Then I can wrap an iteration task around it and undeploy + deploy on all n Tomcats. It does depend on http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html

RE: Monitoring connection pools created by tomcat

2007-05-31 Thread Tim Lucia
http://www.lambdaprobe.org/ > -Original Message- > From: Sorin Juco [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 31, 2007 6:49 AM > To: users@tomcat.apache.org > Subject: Monitoring connection pools created by tomcat > > > Hello, > > I use tomcat 6.0.13 with jdk 6 on windows. > > I

RE: Tomcat Netbeans Project... WildCat

2007-05-30 Thread Tim Lucia
> -Original Message- > From: Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 29, 2007 1:31 AM > To: Tomcat Users List > Subject: Re: Tomcat Netbeans Project... WildCat > > Johnny Kewl wrote: > > + One can dump the src into a Netbeans project, click compile and you > have a wor

RE: Log4j runtime reconfigure in Tomcat

2007-05-30 Thread Tim Lucia
I wrote a webapp which displays and allows for modifying the runtime configuration of log4j. I can send you the .war, if you'd like. Tim > -Original Message- > From: Goran [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 30, 2007 7:22 AM > To: users@tomcat.apache.org > Subject: Log4j run

RE: Can't seem to get logging to work in Tomcat 5.5.9

2007-05-25 Thread Tim Lucia
n't look like if you use one you can't use the other. -- Rob Tim Lucia said the following on 05/25/2007 03:59 PM: Your configuration file is valid. Does the user Tomcat runs as have write permission along the output path? You could try using /tmp as a test. If it is not permissions

RE: Can't seem to get logging to work in Tomcat 5.5.9

2007-05-25 Thread Tim Lucia
Your configuration file is valid. Does the user Tomcat runs as have write permission along the output path? You could try using /tmp as a test. If it is not permissions, then it could be a classpath issue, but your notes lead me to believe that not to be the case (i.e., you put them where they s

RE: tomcat webapp startup order

2007-05-25 Thread Tim Lucia
> -Original Message- > From: Nencho Lupanov [mailto:[EMAIL PROTECTED] > Sent: Friday, May 25, 2007 7:22 AM > To: Tomcat Users List > Subject: tomcat webapp startup order > > Hi all, > > I have vanilla tomcat 5.5 installed. > I also have axis2 web application deploying on every startup.

RE: why is apache serving source for .jsp files?

2007-05-24 Thread Tim Lucia
ource. The only way it works is > using port 8080 on localhost. > > jessica > > On 5/24/07, Tim Lucia <[EMAIL PROTECTED]> wrote: > > What happens if you make the request of localhost? > > > > > -Original Message- > > > From: [EMAIL PROTEC

RE: why is apache serving source for .jsp files?

2007-05-24 Thread Tim Lucia
What happens if you make the request of localhost? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Jessica Johnson > Sent: Thursday, May 24, 2007 12:31 PM > To: users@tomcat.apache.org > Subject: why is apache serving source for .jsp files? > > Hi a

RE: displaying customized error page in tomcat 5.5.12

2007-05-18 Thread Tim Lucia
virtual hosting be used here ?? I don't know. I use ErrorDocument 503 /maintenance.html ErrorDocument 404 /404.html in my httpd.conf and httpd sends the custom error page for me. Maybe someone else can offer you a different solution. Tim > > Thanks and Regards: > Quayum Sagri > &g

RE: displaying customized error page in tomcat 5.5.12

2007-05-17 Thread Tim Lucia
ROOT directory. > > Thanks for your support. > > On 5/17/07, Tim Lucia <[EMAIL PROTECTED]> wrote: > > > > > > > > > -Original Message- > > > From: Abdul Qayyum [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, May 17, 2007 2:01

RE: displaying customized error page in tomcat 5.5.12

2007-05-17 Thread Tim Lucia
> -Original Message- > From: Abdul Qayyum [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 17, 2007 2:01 AM > To: Tomcat Users List > Subject: Re: displaying customized error page in tomcat 5.5.12 > > Hi Tim Lucia, > > >>I'm guessing you can ad

RE: Tomcat as a deoman

2007-05-17 Thread Tim Lucia
Here is /etc/init.d/tomcat from a RHEL4 system: #!/bin/bash # # tomcat # # description: Start up the Tomcat servlet engine. # # Source function library. . /etc/init.d/functions RETVAL=$? export JAVA_HOME="/usr/java" CATALINA_HOME="/usr/local/tomcat" case "$1" in start) if [ -f $CATALIN

RE: Urgent: PermGen memory leak in a NetBeans developed tomcat application

2007-05-16 Thread Tim Lucia
> -Original Message- > From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 16, 2007 11:34 AM > To: Tomcat Users List > Subject: RE: Urgent: PermGen memory leak in a NetBeans developed tomcat > application > > > From: Paulo Alvim [mailto:[EMAIL PROTECTED] > > Subjec

RE: displaying customized error page in tomcat 5.5.12

2007-05-16 Thread Tim Lucia
In order for the custom error page to be used, the application must be deployed. I.e., Tomcat can give a custom 404 for /mycontext/badpagerequested.jsp but if there is no context "/mycontext" because the app is not (yet) deployed, Tomcat cannot know about your custom error page. I'm guessing you

RE: How to avoid infinite loop during filter processing?

2007-05-07 Thread Tim Lucia
Sounds like this is a logic problem in your filter; hard to know exactly what w/o seeing your code & filter definition. You could change your logic, possibly by adding a trail of breadcrumbs so the next time through you don't redirect. Or, you could consider changing the filter url match pattern

RE: Measurement and monitoring

2007-04-26 Thread Tim Lucia
error, please > notify > the sender immediately by telephone or email and destroy the original > message without making a copy. Thank you. > > - Original Message - > From: "Tim Lucia" <[EMAIL PROTECTED]> > To: "'Tomcat Users List'"

RE: Measurement and monitoring

2007-04-26 Thread Tim Lucia
I have a pile of MRTG/Perl scripts which scrape together stats from the JMX proxy in the Tomcat manager, from home-grown webapp filters, and from one or two other sources. If you (or anyone) would like a copy, I'll send them to you. Send me private e-mail. Tim > -Original Message- > Fr

RE: Seamless transition between application updates

2007-04-26 Thread Tim Lucia
> -Original Message- > From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 26, 2007 8:54 AM > To: Tomcat Users List > Subject: Re: Seamless transition between application updates > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Lightbulb, > > lightbulb432 w

RE: Seamless transition between application updates

2007-04-26 Thread Tim Lucia
At my company, we have a weekly application update. Sometimes it is more frequent than that. We have Apache/httpd + mod_jk and three clustered Tomcats. Updating the Tomcats one at a time causes no loss of service as the other two pick up. Of course we do this during the periods of lowest usage,

RE: Tomcat does not stop if the deployment fails

2007-04-24 Thread Tim Lucia
You can't, and generally don't want to stop Tomcat (the server) when an application is mis-configured. Instead, you can stop (mark unavailable) your application. One way to do this is to throw an exception inside a ServletContextListener, if it detects wrong values inside the configuration file:

RE: Sticky sessions not changing servers

2007-04-23 Thread Tim Lucia
> -Original Message- > From: Rainer Jung [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 22, 2007 12:54 PM > To: Tomcat Users List > Subject: Re: Sticky sessions not changing servers > > Please give details: > > - software (apache, tomcat, mod_jk) and platform versions > - relevant part

RE: Sticky sessions not changing servers

2007-04-22 Thread Tim Lucia
Sticky sessions means exactly that. Stick the session to a particular tomcat. If you shut down that tomcat, it should fail over to the other tomcat(s) if you have properly set up your cluster. If you use synchronous replication you don't need sticky sessions as all tomcats should have the sess

RE: getResourceAsStream returning blank (NOT NULL)

2007-04-14 Thread Tim Lucia
> -Original Message- > From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 14, 2007 2:51 PM > To: Tomcat Users List > Subject: Re: getResourceAsStream returning blank (NOT NULL) > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 >

RE: getResourceAsStream returning blank (NOT NULL)

2007-04-13 Thread Tim Lucia
> -Original Message- > From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Sent: Friday, April 13, 2007 2:36 AM > To: Tomcat Users List > Subject: Re: getResourceAsStream returning blank (NOT NULL) > > > InputStream in = getClass().getResourceAsStream(sPackageNameWithSlashes); > > If the class

RE: unecessary JAR files

2007-04-13 Thread Tim Lucia
mv + java should do the trick. If you get a ClassNotFoundException, then the jar file is utilized. Tim > -Original Message- > From: Pierre Goupil [mailto:[EMAIL PROTECTED] > Sent: Friday, April 13, 2007 11:28 AM > To: Tomcat Users List > Subject: Re: unecessary JAR files > > Hello, Worl

RE: Demonstration of Chroot when tomcat running in jail

2007-04-11 Thread Tim Lucia
You could create a file, write to it, and observe where it appears. > -Original Message- > From: Jasbinder Singh Bali [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 11, 2007 6:50 PM > To: users@tomcat.apache.org > Subject: Demonstration of Chroot when tomcat running in jail > > Hi, >

RE: session replication

2007-04-03 Thread Tim Lucia
java.io.NotSerializableException I wrote a session listener / filter combination that logs all session objects which do not implement the interface. If interested, let me know... It was step 1 in going cluster. Tim > -Original Message- > From: Yerramsetti, Naga [mailto:[EMAIL PROTECTED

RE: switching to 6.0 - considerable things?

2007-04-03 Thread Tim Lucia
If it helps at all, I just moved my company's apps from 5.5 to 6.0. The only stumbling block was they rely on the invoker servlet. I changed the build process to find all classes which implement HttpServlet and add an explicit mapping to /servlet/com.mycompany.package.Servlet in web.xml. The onl

RE: iis nd tomcat in one machine

2007-04-03 Thread Tim Lucia
Look in the IIS log files for a clue: C:\WINDOWS\system32\LogFiles\W3CSVC (or something close to that -- I tossed IIS a long time ago and use httpd.) >From the posts it does not appear to be a port conflict as the OP says "localhost:80" which Tomcat does not configure by default. If it was a con

RE: Tomcat Administration

2007-03-31 Thread Tim Lucia
> -Original Message- > From: dimitryous r. [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 31, 2007 8:04 AM > To: Apache Tomcat > Subject: Tomcat Administration > > Hello, > I just finished my upgrade to Apache Tomcat/5.5.20. > > I know that for security reasons, using the administrati

RE: Which Tomcat 5.5.23 file do I download for Windows?

2007-03-28 Thread Tim Lucia
les\Apache Software Foundation\Tomcat5.5\bin" I > was hoping that someone had across this issue before. > > Jayson > > -Original Message- > From: Tim Lucia [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 28, 2007 9:59 AM > To: 'Tomcat Users List' >

RE: Which Tomcat 5.5.23 file do I download for Windows?

2007-03-28 Thread Tim Lucia
If you run Tomcat as a service on Windows, then you have what you need -- no reason to have Catalina.bat. Tim > -Original Message- > From: Jayson Enriquez [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 28, 2007 10:18 AM > To: users@tomcat.apache.org > Subject: Which Tomcat 5.5.23 file

RE: How to run a .exe file from a web application in tomcat

2007-03-22 Thread Tim Lucia
Tomcat is running on a server, say tomcat.mycompany.com. The user is sitting on their computer, say mypc.othercompany.com. The two speak http to each other. Thus, if you want the client (mypc.othercompany.com) to edit a file, you must send it from the server (tomcat.mycompany.com) to the client,

RE: mod_jk load balancing with SSL?

2007-03-20 Thread Tim Lucia
I do -- here are some snippets from the configuration files: conf.d/ssl.conf: LoadModule ssl_module modules/mod_ssl.so Listen 443 ServerName www.mycompanyname.com:443 SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key DocumentRoot /usr/local/esped/www.mycompanyname.com ServerA

RE: connection pool

2007-03-19 Thread Tim Lucia
007 12:44 PM > To: Tomcat Users List > Subject: RE: connection pool > > is testOnBorrow an attribute in the xml config? I haven't seen that in my > version, coincidentally. > > -----Original Message- > From: Tim Lucia [mailto:[EMAIL PROTECTED] > Sent: Monday, Ma

RE: connection pool

2007-03-19 Thread Tim Lucia
Do you have a validation query? Is testOnBorrow set to true? Doing both of these things will force the pool to really close and really re-open any connection which fails the validation query. Tim > -Original Message- > From: Piwoni, Andre [mailto:[EMAIL PROTECTED] > Sent: Monday, March

RE: Servlet Caching

2007-03-16 Thread Tim Lucia
> -Original Message- > From: Natasha N Wright [mailto:[EMAIL PROTECTED] > Sent: Friday, March 16, 2007 6:08 AM > To: Tomcat Users List > Subject: Servlet Caching > > Hi, > > I have a servlet which connects to a database; once the connection is > made I pass a connection object into anot

RE: list of session objects associated w/ a context

2007-03-14 Thread Tim Lucia
> -Original Message- > From: John Cartwright [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 14, 2007 11:47 AM > To: users@tomcat.apache.org > Subject: list of session objects associated w/ a context > > Hello All, > > Is there a simple way to get a list of the HttpSession objects > as

RE: Rationale for makeing Invoker harder to user

2007-03-14 Thread Tim Lucia
> -Original Message- > From: Tim Funk [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 14, 2007 8:39 PM > To: Tomcat Users List > Subject: Re: Rationale for makeing Invoker harder to user > > http://tomcat.apache.org/faq/misc.html#evil Keep in mind this opens with "This is opinions of

RE: Console Logging

2007-03-07 Thread Tim Lucia
I wrote an application which allows you to modify the running log4j configuration on the fly. It's a Struts app, and relies on the fact that tomcat and all the apps are running out of common/lib/log4j*.jar and common/classes/log4j.properties. However, you could add the servlet, jars, and mappings

RE: log4j exception only when stopping and starting a web application

2007-02-28 Thread Tim Lucia
It's not necessarily bad to use Singletons. You have to be certain that they do not hold references to themselves or their class or they cannot be unloaded. Google for: permgen log4j. One thing about log4j -- you should have an ServletContextListener that shuts down log4j properly: public class

RE: Tomcat monitoring

2007-02-27 Thread Tim Lucia
> -Original Message- > From: H H [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 27, 2007 1:12 AM > To: users@tomcat.apache.org > Subject: Tomcat monitoring > > Does anyone know whats the best way to monitor a tomcat application > remotely - I have seen the mailing lists and there ar

RE: connection pool - DBCP error

2007-02-27 Thread Tim Lucia
> -Original Message- > From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] > Sent: Monday, February 26, 2007 4:48 PM > To: Tomcat Users List > Subject: connection pool - DBCP error > > AbandonedObjectPool is used > ( [EMAIL PROTECTED]) > >LogAbandoned: true >RemoveAbandoned:

RE: strange log4j behaviour

2007-02-22 Thread Tim Lucia
> -Original Message- > From: Andre Prasetya [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 22, 2007 12:39 AM > To: Tomcat Users List; jug-indonesia@yahoogroups.com > Subject: strange log4j behaviour > > Hi, > > I m using tomcat 5.5 and we're hosting 5 application. The problem is tha

RE: Mysql timouts...

2007-02-22 Thread Tim Lucia
> -Original Message- > From: Jacob Rhoden [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 22, 2007 8:44 AM > To: Tomcat Users List > Subject: Re: Mysql timouts... > > I will have to read the documents to find out why having the connection > automatically reconnected if there was a pr

RE: Connection Pooling Question

2007-02-21 Thread Tim Lucia
> -Original Message- > From: Marc Farrow [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 2007 3:56 PM > To: tomcat-users > Subject: Connection Pooling Question > > Slightly off topic, but the core of what I want is being done in the > source > code of Tomcat. I am trying to use the

RE: help configuring tomcat to debug my application

2007-02-15 Thread Tim Lucia
On the Java tab, I have: -Xdebug -Xrunjdwp:transport=dt_socket,address=9876,server=y,suspend=n I then set eclipse to launch a remote application attach. It works flawlessly. Be sure to put one option per line as that is what delineates the arguments. WinXP, Eclipse 3.0/3.1. HTH, Tim > -

RE: What is the best production grade connection pooling for Tomcat 5.5

2007-02-14 Thread Tim Lucia
> -Original Message- > From: APliszka-Public [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 14, 2007 11:36 AM > To: Tomcat Users List > Subject: What is the best production grade connection pooling for Tomcat > 5.5 > > Hi, > > What is the best production grade connection pooling fo

RE: IllegalStateException in Tomcat 5.5.X

2007-02-08 Thread Tim Lucia
> -Original Message- > From: Tom Davis [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 08, 2007 10:35 AM > To: users@tomcat.apache.org > Subject: IllegalStateException in Tomcat 5.5.X > > Hi All. > > I'm getting some intermittent exceptions from Tomcat with which I would > apprecia

RE: Session Affinity and Session Replication

2007-02-06 Thread Tim Lucia
> -Original Message- > From: Rob Bugh [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 06, 2007 3:22 PM > To: Tomcat Users List > Subject: Re: Session Affinity and Session Replication > > > Thanks, for the information. My confusion in part stems from this comment > in the The Apache To

RE: Differences between tomcat 5.5.9 and tomcat 5.5.20

2007-02-05 Thread Tim Lucia
> -Original Message- > From: Claudio Chiossi [mailto:[EMAIL PROTECTED] > Sent: Monday, February 05, 2007 5:11 AM > To: users@tomcat.apache.org > Subject: Differences between tomcat 5.5.9 and tomcat 5.5.20 > > Hi, > I'm new of this mailing list. > I want to know the differences between tomc

RE: Configuring JSF in the TOMCAT/conf/web.xml for all webapps

2007-02-02 Thread Tim Lucia
> -Original Message- > From: Bryan Basham [mailto:[EMAIL PROTECTED] > Sent: Friday, February 02, 2007 3:52 PM > To: Tomcat Users List > Subject: Re: Configuring JSF in the TOMCAT/conf/web.xml for all webapps > > Hello Tim, > > OK, but if the JSF jar files are *only* in TOMCAT/common/lib

RE: Configuring JSF in the TOMCAT/conf/web.xml for all webapps

2007-02-02 Thread Tim Lucia
This is almost certainly caused by the involvement of two different classloaders. For example, if you place a driver jar such as Oracle's classes12.jar in both places, then you'll find you cannot cast from a com.oracle...BlobXXX to a com.oracle...BlobXXX, as the class you can see comes from the we

RE: DB2/Tomcat Connection pooling problem

2007-02-02 Thread Tim Lucia
> Also in V6, it seems to be using a version of dbcp associated with tomcat > as opposed to commons. (org.apache.tomcat.dbcp.*) Has some underlying > behavior changed as well here? This is the standard behavior with 5.5.x -- DBCP is repackaged under the Tomcat package (presumably) to avoid conflic

RE: problem when using log4j within a Tomcat web app

2007-01-31 Thread Tim Lucia
I seem to remember I had to upgrade to 1.3 of log4j in order to have the locator information appear, at least in Chainsaw. I'm not 100% certain of this. But, if you have a newer log4j*.jar in Eclipse, then that might explain things. Tim > -Original Message- > From: Eqbal [mailto:[EMAIL

RE: Undeploying problem with Tomcat 5.5 and Log4J

2007-01-03 Thread Tim Lucia
The following works fine for me, and has for years: public class ApplicationLifecycleListener implements ServletContextListener { private final static Log logger = LogFactory.getLog(ApplicationLifecycleListener.class); public void contextInitialized(ServletContextEvent sce) {

RE: Tomcat 5.5.20 - jvmRoute not appended at jsessionid (session affinity lost)

2006-12-29 Thread Tim Lucia
FYI -- I *JUST* (as in I read the original post and wondered if I should but did so anyway) completed an upgrade from RHEL V.4, 1.5.8(i586) --> 1.5.10 (amd64) And Tomcat 5.5.12 --> 5.5.20 All my requests send along the jvmRoute properly in the JSESSIONID cookie. Tim > -Original Message

RE: session#getId changes during doGet invocation under heavy load

2006-12-29 Thread Tim Lucia
> -Original Message- > From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 28, 2006 8:25 PM > To: Tomcat Users List > Subject: RE: session#getId changes during doGet invocation under heavy > load > > > From: Peter Coppens [mailto:[EMAIL PROTECTED] > > Subject:

RE: How to create global resources on the fly?

2006-12-05 Thread Tim Lucia
My project's ant build.xml takes a 'master context' file and customizes by build type -- dev, production, qa, etc., by taking a list of datasources (properties) and applying it to the master context using the task. Creating META-INF/context.xml from 'datasources-${build.type}.propert

RE: Can we create different log files using the logging module?

2006-11-22 Thread Tim Lucia
I have added a filter to my application, which pushed the NDC (Nested Debug Context) which includes the username, remote IP, and other information about the user. Then %x will display this in the log file. Of course you become explicitly dependent on log4j if you do this. I'm not aware of a comp

RE: session replication/tomcat 5.5

2006-11-14 Thread Tim Lucia
find out about the available monitoring info. Once you find the beans you are interested in, you can make the query *:* more precise. Tim Lucia schrieb: > Let me now ask my own question about this -- Lambda Probe is a great tool > for inspecting your app's current state (and Tomcat'

RE: session replication/tomcat 5.5

2006-11-14 Thread Tim Lucia
achine-readable form (XML, one per line, CSV, etc.)? One that could easily be parsed with perl for consumption by MRTG? Lambda Probe's generated HTML isn't too easily parsed, at least for my novice perl skills. Tim -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] S

RE: session replication/tomcat 5.5

2006-11-14 Thread Tim Lucia
ant to try this out in my environment with 8 instances of tomcat each with around 2,500 sessions per instance. Does this sound feasible? Also how do you monitor the cluster status? Tim Lucia wrote: > As a case study, I have, in production, 4 Dell 2850 servers (running Red Hat > Enterprise V4.)

RE: session replication/tomcat 5.5

2006-11-14 Thread Tim Lucia
As a case study, I have, in production, 4 Dell 2850 servers (running Red Hat Enterprise V4.) Apache httpd on one, using JK for load balancing. The other three are running Tomcat in a 3-way multicast cluster, multicasting with replication on a private VLAN (192.168.x) The application accesses sev

RE: Why can java.io.NotSerializableException occur?

2006-11-08 Thread Tim Lucia
If all your session objects (beans) implement java.io.Serializable, then Tomcat can persist sessions across shutdowns and restarts. If they do not, then session cannot survive a shutdown/restart. The message is otherwise harmless. If you want to cluster Tomcats to serve your app, you really shou

RE: How do I set the default response encoding

2006-11-07 Thread Tim Lucia
You can use a filter: /* * Copyright (C) 2005 Tim Lucia. * * This software is distributed under the GNU General Public License (GPL). */ package tim.lucia; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import

RE: Writing a text file back to browser from a servlet

2006-10-18 Thread Tim Lucia
ers the file content in the browser as well. Thanks! Dave David Kerber wrote: > Thanks, Tim - I'll give that a try later today. > > Dave > > > Tim Lucia wrote: > >> You could stream it directly to the user, if practical (why write to >> a temp >> file

RE: Writing a text file back to browser from a servlet

2006-10-14 Thread Tim Lucia
You could stream it directly to the user, if practical (why write to a temp file only to stream that back to the user?) In order to be recognized by the browser as text and an attachment, you should: response.setContentType("text/plain; charset=UTF-8"); response.setHeader("Content-disposition", "

RE: Best practices for deploying applications to the root context...

2006-09-28 Thread Tim Lucia
Here is my deployment rule, which deposits the project war file onto the given tomcat server, under the root context (path=/). HTH, Tim Undefined: tomcat.username Undefined: tomcat.password Undefined: tomcatURL Deploying ${basedir}/${project.war} to ${

RE: ASP.NET HttpHandler in Tomcat?!

2006-09-24 Thread Tim Lucia
[mailto:[EMAIL PROTECTED] Sent: Sunday, September 24, 2006 10:18 PM To: Tomcat Users List Subject: Re: ASP.NET HttpHandler in Tomcat?! You are Right tim much easier, but how do you know from which url that the request have been send? which object give you this kinda information? On 9/24/06, Tim Lucia

RE: ASP.NET HttpHandler in Tomcat?!

2006-09-24 Thread Tim Lucia
Or you can simply map all the file extension URLs to the servlet of your choice. A framework is *not* required. Google for "servlet-mapping". Tim -Original Message- From: Lung Chan [mailto:[EMAIL PROTECTED] Sent: Sunday, September 24, 2006 10:09 AM To: Tomcat Users List Subject: Re: A

RE: Tool for monitoring Tomcat from the client side

2006-08-25 Thread Tim Lucia
y via > the workbench, there is another tool for recording lower level traffic: > ProxySniffer > It may help in this case. > > Bruno Georges > > Glencore International AG > Tel. +41 41 709 3204 > Fax +41 41 709 3000 > > > - Original Message - > From:

RE: Tool for monitoring Tomcat from the client side

2006-08-24 Thread Tim Lucia
I would second the use of JMeter. I have used it pretty extensively and it is reasonably good. I wish I could record using it as a proxy and play back the recording. Anyone know if this is possible? How about with another tool? Tim > -Original Message- > From: Andrés González [mailto:

RE: JSP declarations persisting over page loads

2006-08-14 Thread Tim Lucia
> -Original Message- > From: Matt Jibson [mailto:[EMAIL PROTECTED] > Sent: Monday, August 14, 2006 12:15 PM > To: users@tomcat.apache.org > Subject: JSP declarations persisting over page loads > > Using Tomcat 5.5.17 and a HTML of: > > <%! boolean processed = false; %> > <%=processed%> >

RE: Writing files accessible from a browser

2006-08-07 Thread Tim Lucia
One solution which is often mentioned to this question is to return a URL to a servlet which knows how to generate the .jpg image as its response. Set the context type appropriately, and write the JPEG bytes to the output stream. Tim > -Original Message- > From: Mohsen Saboorian [mailto:

RE: Query regarding tomcat cluster

2006-08-03 Thread Tim Lucia
> -Original Message- > From: Vinod Devarajan [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 03, 2006 9:46 AM > To: Tomcat Users List > Subject: Re: Query regarding tomcat cluster > > Yes. I changed all the post numbers. I used the next different for the > second instance. > So should

RE: Tomcat Cluster

2006-08-02 Thread Tim Lucia
It means only one of the two tomcats has a context named /edac. You need to either deploy the edac.war on the 2nd tomcat, or use the farm deployer feature of the cluster. Tim > -Original Message- > From: Ralf Schneider [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 01, 2006 6:29 PM

RE: Tomcat fails to refresh connections when mySQL server on linux is shutdown and restarted

2006-07-20 Thread Tim Lucia
Are you getting the connection anew after restarting the server? It looks like you have this case: T0 Connection x = Datasource.getConnection() T1 Do some stuff T2 Shutdown / restart MySQL T3 x.prepareStatement() or other stuff ... FAIL The connection pool will only renew the

RE: Tomcat 5.5/Axis 1.4 java.lang.reflect.InvocationTargetException

2006-07-18 Thread Tim Lucia
July 17, 2006 10:03 PM > To: Tomcat Users List > Cc: Tim Lucia > Subject: Re: Tomcat 5.5/Axis 1.4 > java.lang.reflect.InvocationTargetException > >Thanks for the reply Tim, > > Here is the stack trace, it does not look to me like it gives enough > information. Of

RE: Tomcat 5.5/Axis 1.4 java.lang.reflect.InvocationTargetException

2006-07-17 Thread Tim Lucia
Please post a full stack trace. TargetInvocationException should have an underlying cause associated with it, like NullPointerException or ClassNotFoundException. Tim > -Original Message- > From: Luis Rivera [mailto:[EMAIL PROTECTED] > Sent: Monday, July 17, 2006 8:57 PM > To: users@tom

RE: Tomcat on a server

2006-07-17 Thread Tim Lucia
> -Original Message- > From: David Smith [mailto:[EMAIL PROTECTED] > Sent: Monday, July 17, 2006 10:36 AM > To: Tomcat Users List > Subject: Re: Tomcat on a server > > Yes, but Tomcat also pools threads and keeps them around between > requests, recycling as necessary. The servlet's

RE: Tomcat 5.5 load balancing URL redirefction not transparent to client

2006-07-14 Thread Tim Lucia
I didn't see anyone else point this out (maybe they did and I missed it) but you want to use JK now, not JK2 (it's deprecated, unsupported, ...) Tim > -Original Message- > From: Madhur K Tanwani [mailto:[EMAIL PROTECTED] > Sent: Friday, July 14, 2006 1:15 AM > To: Tomcat Users List > Subj

RE: Getting the date/time from the client

2006-07-11 Thread Tim Lucia
Tomcat Users List > Subject: Re: Getting the date/time from the client > > A good devil's advocate question, or was it rhetorical? > > Either way it's got exactly the answer you'd expect, you'll set the date > to whatever Locale the Request returns. Obviously. &g

RE: Getting the date/time from the client

2006-07-11 Thread Tim Lucia
Is that really appropriate?? What if I have my Locale set to France, and my clock set to Pacific Standard Time? Then what? (assume I am on the east coast of the USA...) Tim > -Original Message- > From: Vinu Varghese [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 11, 2006 8:05 AM > To:

RE: Interrupted system call and Tomcat dies

2006-07-10 Thread Tim Lucia
> -Original Message- > From: Seetha Rao [mailto:[EMAIL PROTECTED] > Sent: Monday, July 10, 2006 7:09 AM > To: users@tomcat.apache.org > Subject: Interrupted system call and Tomcat dies > > Hi, > > I have 2 webapps, one of them is file upload/download application. Both > apps > use singl

RE: cluster manual

2006-07-05 Thread Tim Lucia
I just used the online docs (marginally) and the comments in server.xml -- no problems at all (well, except for a few bugs which have now been fixed, and are waiting for 5.5.18) Tim -Original Message- From: Sean O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 9:17 AM T

RE: "Busy" in jkmanager

2006-07-05 Thread Tim Lucia
While it is useful and important to understand the theoretical differences, you should try all three methods and pick the one which performs the best for your application under the expected load. I used JMeter to test our application and settled on T[raffic] as that gets the most requests done in

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
est, > HttpServletResponse response) throws ServletException, > IOException { > this.doPost(request, response); > } > > } > > -END OF FILE--- > > Am I doing something wrong? Thanks for your help! > > Andrea > > 2006/6/26,

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
One way is to send back a reference to a servlet that knows how to retrieve the image. I.e., in your .jsp, say: Where 1234 is the primary key (ID) field of the avatar in the DB. Have the servlet set the response type to image/jpeg or image/png or whatever is appropriate, and then stream the by

RE: How do I pass option to Tomcat on startup only?

2006-06-20 Thread Tim Lucia
I use the following in ${CATALINA_HOME}/conf/setenv.sh: #!/bin/sh if [ "$1" = "start" ] ; then CATALINA_OPTS="$CATALINA_OPTS \ -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9086 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.manage

RE: Newbie - question about tld or dtd files

2006-06-15 Thread Tim Lucia
xyzzy.jsp: <%@ taglib uri="/tags/struts-bean" prefix="bean" %> web.xml: /tags/struts-bean /WEB-INF/struts-bean.tld Then place the actual tld file where the element says it should be. Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thurs

RE: replace tomcat Status report

2006-06-14 Thread Tim Lucia
This works: 8<8<8<8<8<8<8< web.xml 8<8<8<8<8< http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4"> 404 /404.jsp

RE: where is the best place to secure a working tutorial for a web application with struts and tomcat? I am a newbie

2006-06-13 Thread Tim Lucia
Struts comes with one. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 13, 2006 5:17 PM To: users@tomcat.apache.org; [EMAIL PROTECTED] Subject: where is the best place to secure a working tutorial for a web application with struts and tomcat? I am

RE: HttpSession.invalidate() not working as expected

2006-06-13 Thread Tim Lucia
Without seeing actual code, we can only guess. Have you made two consecutive calls to invalidate() [on the same thread] and not received the documented exception? Are you getting a different session id from getId()? I am guessing you are making a second request, which creates a brand new sessio

  1   2   3   4   >