RE: Do anyone know how to set PermGen space ? [was RE: Latest stable version of Tomcat]

2006-01-18 Thread Tim Lucia
-XX:MaxPermSize=... [128m, for example] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 1:02 PM To: Tomcat Users List Subject: Re: Latest stable version of Tomcat Thank you for the reply. Do anyone know how to set PermGen space

RE: How to diagnose a TomCat hang?

2006-01-18 Thread Tim Lucia
kill -QUIT will cause a stack dump... including any Java deadlocks. -Original Message- From: Dave Pullin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 1:33 PM To: users@tomcat.apache.org Subject: How to diagnose a TomCat hang? Briefly: Is there anyway to figure out what

RE: Do anyone know how to set PermGen space ? [was RE: Latest stable version of Tomcat]

2006-01-18 Thread Tim Lucia
manger's Java tab like this : -Dcatalina.opts=-XX:MaxPermSize=256m I ran a jsp which shows the Memery usage. Its showing correct values for Xmx, Xms but for PermGen it still showing the default 64mb. Do you have any idea ? Is PermGen setting working for you Thank you, Aparna. Tim Lucia [EMAIL

RE: How do I hide a web application's actual context from the client?

2006-01-18 Thread Tim Lucia
Hope that helps... w: www.anorakgirl.co.uk -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: 18 January 2006 16:38 To: users@tomcat.apache.org Subject: How do I hide a web application's actual context from the client? What is the recommended, or best-practice, method

RE: Oracle 8i JDBC Driver for jdk1.5?

2006-01-20 Thread Tim Lucia
I'm using Tomcat 5.5, JDK 1.5, JDBC 8.1.7.0.0 on 8i on W2K SP4 + RHEL V.4 with zero problems (using classes12.jar) Tim -Original Message- From: gupta vidhi [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 6:52 AM To: Tomcat Users List Subject: Re: Oracle 8i JDBC Driver for

RE: Setting up connection pools on the fly...

2006-01-20 Thread Tim Lucia
In a previous life, I worked on a portal-type enterprise application in which a single deployment supported multiple customers. For each deployment, there was a master database, and n customer databases, one per customer. The general mechanism we used there was to put the connection pool

RE: Sending a lot of info the a jsp page

2006-01-21 Thread Tim Lucia
POST / GET from applet ?action=load (servlet side) try { out= new ObjectOutputStream(response.getOutputStream()); logger.debug(Sending object to applet.); out.writeObject((Object)object); out.flush(); return; } catch (IOException e){

RE: Setting up connection pools on the fly...

2006-01-22 Thread Tim Lucia
The point of connection pooling is to eliminate the overhead of setting up and tearing down a (TCP, database, AAA) connection for every database transaction (typically, the web request in a web app.) This can add 100s or 1000s of milliseconds to every request, and is quite expensive. If you can

RE: Setting up connection pools on the fly...

2006-01-22 Thread Tim Lucia
and creates the pools. Any help much appreciated. Rob -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: 22 January 2006 14:21 To: 'Tomcat Users List' Subject: RE: Setting up connection pools on the fly... The point of connection pooling is to eliminate the overhead

RE: Setting up connection pools on the fly...

2006-01-23 Thread Tim Lucia
restarts. Tim -Original Message- From: Warrick Wilson [mailto:[EMAIL PROTECTED] Sent: Sunday, January 22, 2006 9:24 PM To: 'Tomcat Users List' Subject: RE: Setting up connection pools on the fly... -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Sunday

RE: Setting up connection pools on the fly...

2006-01-23 Thread Tim Lucia
-Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: 22 January 2006 23:42 To: 'Tomcat Users List' Subject: RE: Setting up connection pools on the fly... How often do you change servers? What you describe below can be handled by editing the appropriate context / resource

RE: problem with tomcat 5.5.9

2006-01-24 Thread Tim Lucia
I seem to recall that on RH, all files are mmap'd and that can occupy seemingly huge amounts of memory, when in fact it is all buffer cache and will be collected by the OS if actually needed for something else. Could it be logging in your app (or Tomcat) is writing a lot of data to files? Tim

RE: Log4J output to SYSLOG

2006-01-24 Thread Tim Lucia
http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SyslogAppender .html -Original Message- From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:04 AM To: 'Tomcat Users List' Subject: Log4J output to SYSLOG Hello, I am using Apache

RE: send a csv file from tomcat?

2006-01-26 Thread Tim Lucia
Here's how I've done it from a .jsp: % response.reset();response.setContentType(text/comma-separated-values; charset=UTF-8);response.setHeader(Content-disposition,attachment;filenam e=csvoutput.csv);% Skip the response.reset() if running from inside a servlet... Tim -Original

RE: From Java to C#, ASP.NET [Off Topic]

2006-01-29 Thread Tim Lucia
All available class libraries were bolted on after the core language was established. You could say anything not in java.lang.* was bolted on. The beauty of all those bolt ons is that you have so much stuff already there, you can concentrate on your business logic. Even early in the C++ world,

RE: non US-ASCII query parameters

2006-01-30 Thread Tim Lucia
Are you using the request dumper valve? This will cause decoding problems, as describe here: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html The Request Dumper Valve is a useful tool in debugging interactions with a client application (or browser) that is sending HTTP requests to

RE: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Tim Lucia
Hibernate is not J2EE based. It just so happens it provides a EJB-free solution to a servlet container environment. Hibernate does not require J2EE. Tim -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 8:04 AM To: Tomcat Users List

RE: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Tim Lucia
:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 12:18 PM To: Tomcat Users List Subject: Re: From Java to C#, ASP.NET [Off Topic] On 1/30/06, Tim Lucia [EMAIL PROTECTED] wrote: Hibernate is not J2EE based. It just so happens it provides a EJB-free solution to a servlet container environment

RE: is there any way to monitor application server when it is working ?

2006-01-30 Thread Tim Lucia
I have successfully used Jmeter, and MRTG with some Perl scripts and the manager web application to do most of this. Not everything that is available in html mode is available in ?XML=true mode, unfortunately, but it will get you going. Tim -Original Message- From: Legolas Woodland

RE: rotating tomcat logs

2006-01-31 Thread Tim Lucia
I use log4j as the logging implementation, and then chose the RollingFileAppender (Daily or Size--your choice) Tim -Original Message- From: Patrick Ward [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 7:39 PM To: users@tomcat.apache.org Subject: rotating tomcat logs Does

RE: tomcat + postgres

2006-02-01 Thread Tim Lucia
Without knowing what book you refer to, and what class or interface ConnectionPoolDataSource represents, it is difficult to know for sure. DataSource (javax.sql.DataSource) is an Interface, not a class. Objects returned from tomcat are sure to implement this interface, and are pooled behind

RE: tomcat + postgres

2006-02-02 Thread Tim Lucia
()*; } conn.close() I am actually just releasing the connection and not really closing it? Thanks, Matt Tim Lucia wrote: Without knowing what book you refer to, and what class or interface ConnectionPoolDataSource represents, it is difficult to know for sure. DataSource (javax.sql.DataSource

RE: Catalina.out gets to big- Server crashes

2006-02-02 Thread Tim Lucia
Which are you using? Log4j already has a RollingFileAppender (size or date based, your choice) which rolls logs automatically. Or, you can use logrotate on linux. http://logging.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFileAp pender.html

RE: logfile sharing

2006-02-03 Thread Tim Lucia
Yes. A FileAppender (log4j) which points to the same file. I even log all clustered application messages to the same file, but I do include a constant string in the layout which mentions which cluster member logged it. See

RE: Would like to know what might be causing this exception in servlet

2006-02-05 Thread Tim Lucia
I think Chuck is right. One thing that most J2EE / web applications do not do is to catch the IOError the container is supposed to throw when the browser / client disconnects and closes the socket. That way the answering thread can immediately stop its work, clean up, and go home. Tim

RE: newbie:access tomcat virtual host via apache

2006-02-05 Thread Tim Lucia
A few weeks ago, I asked a similar question which went unanswered. Basically, I want to have the user request www.somewhere.com but have Apache forward that to tomcatserver:8009/someNonRootContext/ so I can have different versions, w/o exposing the context to the user. Rewriting works, except

RE: Virtual Directory

2006-02-06 Thread Tim Lucia
Add a file, Tutorial.xml, to your C:\Program Files\Apache Group\Tomcat 4.1\webapps\ directory. It should contain at least the following: context docBase=E:\Tutorial... Please read here: http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html -Original Message- From: sumesh

RE: Help with clustering

2006-02-06 Thread Tim Lucia
Yes. Use their IP address in the replication listener, i.e., Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener compress=false sendAck=true tcpListenAddress=10.0.1.58 === Make this IP be the interface you wish.

RE: wrapping manager undeploy Ant task

2006-02-06 Thread Tim Lucia
Add: failOnError=false -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: Monday, February 06, 2006 8:25 AM To: users@tomcat.apache.org Subject: wrapping manager undeploy Ant task Hello, I'm using the manager tasks for Ant to undeploy and deploy my WAR file in

RE: turning off sessions

2006-02-07 Thread Tim Lucia
PM To: Tomcat Users List Subject: Re: turning off sessions Tim Lucia wrote: Tomcat doesn't create sessions. Web applications create sessions. I.e., code says: HttpSession session = ((HttpServletRequest)request).getSession({true|false}); // true for create if not exist, false for don't

RE: turning off sessions

2006-02-07 Thread Tim Lucia
, it creates one as expected: Session: [EMAIL PROTECTED] So, the JSP must be the source of the session. I learned something new today. I don't know why (yet). Tim -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 4:49 PM To: 'Tomcat

RE: turning off sessions

2006-02-07 Thread Tim Lucia
Thanks! Now I do remember seeing this. Been a long time since I have created a stateless application, I guess ;-) -Original Message- From: Ed [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 6:15 PM To: users@tomcat.apache.org Subject: RE: turning off sessions Yep, JSPs

RE: newbie:access tomcat virtual host via apache

2006-02-07 Thread Tim Lucia
tomcat virtual host via apache Tim Lucia [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: A few weeks ago, I asked a similar question which went unanswered. Basically, I want to have the user request www.somewhere.com but have Apache forward that to tomcatserver:8009/someNonRootContext

RE: Virtual Directory

2006-02-08 Thread Tim Lucia
: Wednesday, February 08, 2006 10:40 AM To: Tomcat Users List Subject: Re: Virtual Directory Tim Lucia wrote: Add a file, Tutorial.xml, to your C:\Program Files\Apache Group\Tomcat 4.1\webapps\ directory. It should contain at least the following: context docBase=E:\Tutorial... Please read here: http

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
Below is a filter which keeps track of how many sessions are attached to a web app. The key part is the HttpSessionBindingListener interface. Tim /** * J2EE Filter to count page hits. What it counts depends on the url-mapping * in web.xml. * * @author tim.lucia */ public class

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
for that? I looked through the web.xml files (both the server one, and the one for the app), but couldn't find anything about url-mapping or filters that seemed to apply to this. It may be there, but I don't know enough about it to recognize it. Thanks! Dave Tim Lucia wrote: Below is a filter which

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
: Is there any way of telling if the session was actively invalidated, or if it timed out? Looking at the docs for HttpSessionBindingEvent, I don't see any differentiation between them. That's not a big deal, but would be nice to have. Dave Tim Lucia wrote: Add the following fragment to your web.xml

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
The filter, implementing HttpSessionListener, and binding itself to the session, will be called by Tomcat when the session is invalidated (all bound values which implement HttpSessionListener will have their valueUnbound method called.) So, the filter is effective in that it won't miss any

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
ID and session? Dave Tim Lucia wrote: The filter, implementing HttpSessionListener, and binding itself to the session, will be called by Tomcat when the session is invalidated (all bound values which implement HttpSessionListener will have their valueUnbound method called.) So, the filter

RE: FAQ? Taglibs not rendering in Tomcat 5

2006-02-10 Thread Tim Lucia
Chuck would ask you to tell us what version of Tomcat 5 (5.0, 5.5) and the release number (.28, .12), and he would ask for the O/S, and probably ask if there were any exceptions in the log... Remember, the more information you give us, the easier it is for us to help you and the likelier you are

RE: Robots cannot read JSP?

2006-02-11 Thread Tim Lucia
It's not html or JSP nature of things. You are returning text/html for the mime type, and a real HTML document. The problem is the content you return does not provide the robots any place to go. Perhaps responding with a redirect (302) will provide them somewhere to go. You can use

RE: Tomcat5.15 basic setup question

2006-02-13 Thread Tim Lucia
You might consider the necessity of using port 8080 as well - client-side firewalls might block it, it is non-standard, and probably hard-coded everywhere along side the IP address. You can run Tomcat on port 80 (see the archives of this list--it has been discussed recently), or front with httpd

RE: Suggestion for documentation update about jvmRoute

2006-02-13 Thread Tim Lucia
While you're at it, you could add and must not contain the . character (and any other illegal ones... I had a bear of a time figuring that out a few years ago when I chose the FQDN of the machine for the jvmRoute!) Tim -Original Message- From: Fred K [mailto:[EMAIL PROTECTED] Sent:

RE: ask a comparison between J2EE and JAVA, please help

2006-02-13 Thread Tim Lucia
http://www.google.com/search?hl=enq=j2ee+versus+php http://www.google.com/search?hl=enlr=q=%22j2ee+or+php . . . -Original Message- From: Iosev Perez Rivero [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 10:43 PM To: Tomcat Users List Subject: ask a comparison between J2EE and

RE: Setting up a parallel test environment on the same machine as main server

2006-02-14 Thread Tim Lucia
1. Moving the JkMount directive inside a VirtualHost... will make it accesible from only that virtual host. So, you must repeat common ones, such as /jkmanager. I put the mappings (JkMount(s)) right in the virtual host definition(s) with no trouble at all. 2. The virtual host is determined by

RE: Setting up a parallel test environment on the same machine as main server

2006-02-15 Thread Tim Lucia
I believe you need to have a virtual host in Tomcat for each one on Apache. I also believe that the name of the workers is irrelevant, as is the IP address over which they communicate -- as long as the servers are bound to the right address(es). All differentiation takes place on the host header

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 load-on-startup1/load-on-startup The

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

webapp references, classloaders and GC (oh my)

2006-02-15 Thread Tim Lucia
I have a question about references held to my webapp from Tomcat. I have observed the behavior below on both Red Had EL V.4, and on WinXP, using Tomcat 5.5, and JDK 1.5. I used JProfiler to trace the allocations. Some background: The environment here is such that we have a shared sandbox for

RE: Where to place JNDI sections for customer deployment

2006-02-17 Thread Tim Lucia
You should have the *customer* add these to the global data sources, using the admin tool, or by adding the xml fragments (you can ship) to server.xml themselves. Tim -Original Message- From: Darren [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 11:00 AM To:

RE: Where to place JNDI sections for customer deployment

2006-02-17 Thread Tim Lucia
there is a way around this, but I'd quite like customers to be able to deploy/undeploy without trouble so I can send them updated war files as necessary. On 17 Feb 2006, at 17:18, Tim Lucia wrote: You should have the *customer* add these to the global data sources, using the admin tool

RE: Unsubscribing to this list

2006-02-19 Thread Tim Lucia
Just like it says at the bottom of every message. -Original Message- From: François Hétu [mailto:[EMAIL PROTECTED] Sent: Sunday, February 19, 2006 2:08 AM To: 'Tomcat Users List' Subject: RE: Unsubscribing to this list Hi, Just send an email through your account: [EMAIL

RE: time/date stamp differences

2006-02-20 Thread Tim Lucia
If you use the manager application to undeploy and redeploy (for rolling back, or for upgrading) then the old files will be removed undeploy, and the dates and times will not matter. Tim -Original Message- From: Hall, Scott [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006

RE: remote debug on tomcat using eclipse

2006-02-20 Thread Tim Lucia
figured it has to work like that since all it is expected to do is connect to the remote VM. Any help is appreciated Asaf Lahav VP RD, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 _ From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent

RE: Strange servlet exception

2006-02-21 Thread Tim Lucia
You cannot ship servlet-api.jar as part of your war. If you do, you will have two different instances of the HttpSession.class object -- one loaded via Tomcat (from common/lib/servlet-api.jar) and the other loaded from the one in your .war. So, put it on your compile-time classpath, but do not

RE: Need advice on Java Servlet IIS/Win 2003

2006-02-23 Thread Tim Lucia
This works fine. Two companies I've worked at recently used W2K3 + IIS6 + JK 1.2.15 + Tomcat 5.5.12. Basically, you need to install the JK isapi_redirector in IIS, so that it will redirect the appropriate URLs to Tomcat for service, and then install the servlet(s)/JSP(s) on that Tomcat to

RE: mod_rewrite losing session

2006-02-23 Thread Tim Lucia
Yes. I posted a similar question not long ago. I wanted to know how to preserve the session under exactly this case (my specific need was to have a version in the Tomcat path, but hide that context / version from the user.) I can tell you why it's NOT preserving it. Tomcat sets the cookie

RE: Need help with click streams

2006-02-24 Thread Tim Lucia
Tomcat has an access log mechanism, aka access valve. This will log what URLs are requested, which may or may not be what the user clicked, of course. http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html -Original Message- From: S, Ashwath [mailto:[EMAIL PROTECTED] Sent:

RE: Tomcat servlet load handling

2006-02-24 Thread Tim Lucia
It is the Connector element which you need to adjust, i.e., up the maxThreads value. Connector port=8080 redirectPort=8443 minSpareThreads=25 connectionTimeout=2 maxSpareThreads=75 maxThreads=150 maxHttpHeaderSize=8192 /Connector

RE: Tomcat IP and Session ID's

2006-02-24 Thread Tim Lucia
By encrypting the entire conversation, including the cookies. Remember that SSL is wrapped around http, otherwise we could support multiple named virtual hosts using SSL. -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 9:23 AM To:

RE: mod_rewrite losing session

2006-02-24 Thread Tim Lucia
mechanism in httpd.conf that we could use to control how the cookie gets set... I find it hard to believe that alot of people have not run into this issue yet. Maybe everyone's still using mod_jk and have not migrated to mod_proxy_ajp yet... pete Tim Lucia wrote: Yes. I posted a similar

RE: mod_rewrite losing session

2006-02-24 Thread Tim Lucia
Users List Subject: Re: mod_rewrite losing session Tim Lucia wrote: And how would one do that? The cookie JSESSIONID is automagically maintained for you. -Original Message- From: Pete Lamborne [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 4:50 PM To: Tomcat

RE: Sad: Tomcat 5.5.x crashes almost every single day.

2006-02-28 Thread Tim Lucia
improvements! Tim -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Nowak Sent: Tuesday, February 28, 2006 4:36 PM To: users@tomcat.apache.org Subject: Re: Sad: Tomcat 5.5.x crashes almost every single day. Tim Lucia [EMAIL PROTECTED] wrote: Send Tomcat a QUIT

RE: Sad: Tomcat 5.5.x crashes almost every single day.

2006-02-28 Thread Tim Lucia
I have found that running Jconsole against the VM (JMX) and watching the various memory pools can be quite informative. I have not evaluated the performance impact in a production environment (don't run Jconsole on the same production box, as per the instructions.) I have had good luck with

RE: Sad: Tomcat 5.5.x crashes almost every single day.

2006-02-28 Thread Tim Lucia
similary to tomcat 4.1, I mean logs from different vhost go to different files - configure Tomcat not to log anything that belongs to vhost to catalina.out - turn of these useless jk infos PS. Tim Lucia: I don't care about access logs, HTTPd logis it for me. Right, you want an integrated

RE: Cannot create JDBC driver of class '' for connect URL 'null'

2006-03-01 Thread Tim Lucia
Backwards. See http://www.mysql.com/products/connector/j/ Tim -Original Message- From: Mike Sabroff [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 10:43 PM To: Tomcat Users List Subject: Re: Cannot create JDBC driver of class '' for connect URL 'null' Isn't that the old

RE: Tomcat - Hibernate

2006-03-02 Thread Tim Lucia
You want ENGINE_NAME in there too, i.e.: ${CATALINA_HOME}/conf/${ENGINE_NAME}/${HOSTNAME}/${CONTEXT_NAME}.xml or, for example (spaces delineate variables above, don't really use them), /usr/local/tomcat /conf /Catalina /localhost /ROOT.xml == http://localhost:8080/ /usr/local/tomcat /conf

RE: DataSourceRealm Configuration Question (5.5.15)

2006-03-02 Thread Tim Lucia
It can be either. The recommended way, 5.0 and later, is in the war's context.xml. If you have a global resource, that is defined in server.xml, and referenced from each context wishing to make use of it. Tim -Original Message- From: Alex Jalali [mailto:[EMAIL PROTECTED] Sent:

RE: jsp:forward log and output ?

2006-03-04 Thread Tim Lucia
A forward simply passes the same request from f0.jsp along to f1.jsp. Nobody actually requests f1.jsp, so you will not see such a request in the access log. Had f0 redirected to f1 (response.sendRedirect(...f1.jsp)) then you would see a second request. You should see both printlns in

RE: JSP on Tomcat: application scope variable

2006-03-05 Thread Tim Lucia
Since they are in application scope, you can make them part of a Singleton pattern, i.e., make them static values of a class, loaded by the contextInitialized() method. They could be properties of the listener itself, or to be more properly factored, you can place them in their own class. Tim

RE: JSP on Tomcat: application scope variable

2006-03-06 Thread Tim Lucia
though.) I have: //properties file in classes myProps.load(new FileInputStream(test.properties)); or //properties file in classes/com/example/test myProps.load(new FileInputStream(com/example/test/test.properties)); Is this not the correct way to specify the path? Thanks, Rahul. --- Tim

RE: Please Give The Definition of lbfactor

2006-03-06 Thread Tim Lucia
Don't set it (defaults to 1 for all.) That will treat all workers equally, regardless of the resources available on each worker's machine. See http://tomcat.apache.org/connectors-doc/config/workers.html for complete details. lbfactor (1) Integer number used when the worker will be used

RE: How can I set tomcat NOT Case Sensitive

2006-03-07 Thread Tim Lucia
I am sure I have seen this before on this list, and the answer I remember is that the case sensitivity part is only for file names. Servlet mappings are case-sensitive regardless because the spec says so. Read this as well, although it says all case sensitivity checks will be disabled it doesn't

RE: How can I set tomcat NOT Case Sensitive

2006-03-07 Thread Tim Lucia
this is a security risk other than reducing the number of guesses you have to make to find static resources in a brute-force hacking attempt... Tim Lucia wrote: I am sure I have seen this before on this list, and the answer I remember is that the case sensitivity part is only for file names. Servlet

RE: Tomcat 5.0.28 memory leak

2006-03-07 Thread Tim Lucia
The error below is because the class aaa.pm.server.beans.MemberData does not implement java.io.Serializable. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 1:09 PM To: Tomcat Users List Subject: Re: Tomcat 5.0.28 memory leak Yes I

RE: Tomcat 5.0.28 memory leak

2006-03-07 Thread Tim Lucia
Also, I should mention that the commons-logging / log4j leak is because the shutdown process is not correctly followed. You should have an application context listener which 'shuts down' the logger when the application's context is destroyed, i.e., public class ApplicationLifecycleListener

RE: Tomcat 5.0.28 memory leak

2006-03-07 Thread Tim Lucia
??? |-+ | | Tim Lucia | | | [EMAIL PROTECTED]| | | om | | || | | 03/07/2006 12:26 | | | PM | | | Please respond to| | | Tomcat Users

RE: JNDI datasource question

2006-03-08 Thread Tim Lucia
The number of connections is affected by three parameters: initialSize=10 maxIdle=20 maxActive=50 also: maxWait=5000 initialSize=10 says make 10 connections at startup. SHOW PROCESSLIST will reveal 10 processes in this case. maxIdle=20 says close any idle connections in excess

RE: JNDI datasource question

2006-03-08 Thread Tim Lucia
. In tomcat 5.0.28 I cannot find initialSize parameter. Is it something that was added later? And by idle connection, do we mean the connection that was closed in a finally block (returned to the pool)? John Tim Lucia wrote: The number of connections is affected by three parameters: initialSize

RE: Your opinion on some logs - Apache/mod_jk/Tomcat

2006-03-08 Thread Tim Lucia
The last one (4) results from not deregistering the object mentioned from the JMX server. Typically this is a register during contextInitialized (ApplicationLifecycleListener) and a de-register during contextDestroyed. The effect would be that a reloaded application would not be JMX-enabled and

RE: Tomcat just died on our Production Server

2006-03-09 Thread Tim Lucia
Can't this exception be the result of the user hitting the STOP button, or simply closing the browser? I.e., this can happen all the time. Are you certain this is the exact cause of death? From the stack trace (unless you've filtered it) it appears your code is complete, and the response is

RE: Tomcat jdbc settings

2006-03-10 Thread Tim Lucia
In my experience, using 8i and the thin driver, bouncing tomcat always clears all connections to the DB. Reloading the app will not necessarily clear connections, as the old app is still in PermGen, waiting for garbage collection. Once collected, however, the connections will get cleaned up.

RE: Tomcat jdbc settings

2006-03-10 Thread Tim Lucia
No, I am not saying that. I am saying that the connections, being returned to the pool on connection.close(), remain open as long as they are not garbage. When a context is reloaded, the previous context hangs around for a while. That context holds reference(s) to the pool, which in turn holds

RE: Fairwell to JB, but having Jasper problems

2006-03-13 Thread Tim Lucia
FWIW, I switched from JBuilder to Eclipse several years ago, and could not be happier. I recall a few hours of frustration at the start, but I don't recall exactly what. Eclipse has a decent Emacs keystroke mode which is a requirement for me... Tim -Original Message- From: Dola Woolfe

RE: manager-remove/undeploy without losing sessions

2006-03-15 Thread Tim Lucia
-remove/undeploy without losing sessions Your filter show only that the class implements java.io.Serializable and not that the object is really serializable ;-( A good live session analyze shows the probe tomcat manager. http://tomcatprobe.org regards Peter Am 15.03.2006 um 14:59 schrieb Tim Lucia

RE: Tomcat clustering

2006-03-17 Thread Tim Lucia
So, wouldn't the answer really be Yes it will work (technically it is feasible), with several caveats, namely, multicast is typically not enabled on WANs, and the transmission protocol for replication is not secure. It boils down to a network problem - and if you had a secure VPN over WAN which

RE: apache(v2.0) front-end to jboss(v4.0.3)/tomcat5.5 webapp: context path prepend ?

2006-03-22 Thread Tim Lucia
You will probably want to set emptySessionPath to true http://tomcat.apache.org/tomcat-5.5-doc/config/http.html http://marc.theaimsgroup.com/?l=tomcat-userm=114082698006999w=2 Otherwise, the browser will send the cookie for /mywebapp as that is the context which Tomcat will set JSESSIONID under.

RE: Run Tomcat in W2k3 as service

2006-03-22 Thread Tim Lucia
You can specify parameters on the various tabs under the servicew app (the tray monitor). You probably want Startup in this case, so it would go alongside the start option. Tim -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 4:26 PM To:

RE: Would like to track googlebots, or spiders from site

2006-03-22 Thread Tim Lucia
Try here: http://www.robotstxt.org/wc/robots.html -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 8:00 PM To: Tomcat Users List Subject: Would like to track googlebots, or spiders from site Not necessarily a tomcat problem, but I have

RE: how to get selected value from drop down box which get from database

2006-03-26 Thread Tim Lucia
This is not a tomcat question. It is an HTML question. The answer is that the form will post a variable with the name of the input control = value of the input control, or, anyname=x where x is the selected value of anyname. i.e. form action=# select name=anyname option1/option option2/option

RE: unable to deploy a servlet while disabling the invoker

2006-03-26 Thread Tim Lucia
How did you invoke it with the invoker servlet disabled? According to your web.xml, it would be available at: http://localhost:8080/myapp/Hello Tim -Original Message- From: Bassel Mannaa [mailto:[EMAIL PROTECTED] Sent: Sunday, March 26, 2006 6:59 PM To: users@tomcat.apache.org

RE: Daily log rotation?

2006-03-29 Thread Tim Lucia
Use Log4J, or another logger implementation of your choosing, with a RollingDailyFileAppender (Log4J) or equivalent (your choosing) as the target. -Original Message- From: Sheets, Jerald [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 29, 2006 5:04 PM To: Tomcat Users List Subject: Re:

RE: Daily log rotation?

2006-03-30 Thread Tim Lucia
seems like it would be a reasonable function to have built into tomcat's native logging... Tim Lucia wrote: Use Log4J, or another logger implementation of your choosing, with a RollingDailyFileAppender (Log4J) or equivalent (your choosing) as the target. -Original Message- From

RE: Daily log rotation?

2006-03-30 Thread Tim Lucia
my applications? I want to rotate the stdout_, jakarta_service_, etc logs. I've already got the logging working fine for my application's own logs. Dave Tim Lucia wrote: Is there some reason you cannot plug in log4j? 1. It's already written 2. It already works 3. It has log rotation (either

RE: Startup batch files in 5.5

2006-03-30 Thread Tim Lucia
You installed the .exe version. The .zip version (I believe) contains all the batch files. Not that you need them. You can manipulate the VM startup options via the service control (tomcat5w aka system tray monitor.) On the Java tab, simply add (each on it's own line) -Xdebug

RE: Tomcat Connector - Remote acessing

2006-03-31 Thread Tim Lucia
What is listening to port 80 on 192.9.200.62? What error(s) do you get when you make such a request? Are you using Apache + Tomcat? What connector? More information is required to answer your question. Tim -Original Message- From: Indraveni [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: tomcat 5.0.28 on RH 4.0

2006-03-31 Thread Tim Lucia
We are planning to deploy (in 2 weeks actually) on RHEL 4 with Apache + 3 tomcat servers (4 x Dell 2850s w/ dual-core CPUs). Load testing (JMeter, HttpUnit playback of actual recorded requests) on this environment has revealed a marked improvement in throughput (65K request/hour with 100 clients)

RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-31 Thread Tim Lucia
Switch places with them for a minute -- They are providing free support and pretty good support at that. Note that there are many, many basic questions that could easily be answered by reading the documentation (RTFM) or by Googling (STFW), but instead posters demand immediate help as their

FarmWarDeployer ROOT.war - / - How to?

2006-03-31 Thread Tim Lucia
Hi All, (This one is probably a Filip question...) I have a 3-node cluster on Red Hat (2.6.9+ kernel) and I wish to use the FarmWarDeployer. I have (of course!) RTFM and STFW and both have been extremely helpful. I did note an old (2004-ish) post to this list from Filip saying that the

  1   2   3   >