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: 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: 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: 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: "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: 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: 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: 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: 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: 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: 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/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 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 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 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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

2006-01-18 Thread Tim Lucia
inside Apache, and it can't be too slow (i.e., running a script). Maybe Apache::Cookie (http://httpd.apache.org/apreq/Apache-Cookie.html) does what I want? (I am not a Perl programmer). I appreciate any pointers or advice

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: Do anyone know how to set PermGen space ? [was RE: Latest stable version of Tomcat]

2006-01-18 Thread Tim Lucia
ed the service. Now, how to make sure if JVM is taking these values ? Any help would be greatly appericiated. Thank you, Aparna "Tim Lucia" <[EMAIL PROTECTED]> 01/18/2006 10:09 AM Please respond to "Tomcat Users List" To "'Tomcat Users List'&quo

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 To

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. &q

RE: How to diagnose a TomCat hang?

2006-01-18 Thread Tim Lucia
ocess didn't die and it didn't write anything to catalina.out. May be that indicates what is hung, if it's not catching the QUIT signal? -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 1:37 PM To: 'Tomcat Users List'

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

2006-01-18 Thread Tim Lucia
u can do this using the special ROOT context. In tomcat 5.5.12 I have the file: conf/Catalina/localhost/ROOT.xml which contains: etc I think in previous versions you would put the same node directly in server.xml Hope that helps... w: www.anorakgirl.co.uk -Original Message- From: Tim

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 jdk1.5

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 connecti

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){ lo

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 a

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

2006-01-22 Thread Tim Lucia
e context.xml file and read these from the database before tomcat starts 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 &q

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

2006-01-23 Thread Tim Lucia
nightly DB 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 [mai

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

2006-01-23 Thread Tim Lucia
tions). Thanks again for your help. Rob -----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

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 Me

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 yo

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 Sub

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

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 [ma

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 Tomc

RE: RE: context.xml

2006-02-01 Thread Tim Lucia
On a recent project, we did exactly this. I.e., had an install shield wrapper that managed the context (and embedded data sources), the server.xml (for global data source definitions) and the war to be deployed. The installer managed an off-line (separate) copy of the application, and knew how to

RE: Tomcat Manager behaviour difference between 5.0 and 5.5

2006-02-01 Thread Tim Lucia
You could have the back end deploy a .war file, and force the students to build the .war (give them a template build.xml for ant and it should not be too difficult). Or, how about if you make the back end deploy just the .xml context file, setting docBase to point back at the user's home? I.e.,

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 the

RE: tomcat + postgres

2006-02-02 Thread Tim Lucia
ltSet rs = stmt.executeQuery(); *conn.close()*; } 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 dif

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 http://logging.apache.org/log4j/docs/api/org

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 http://logging.apache.org/log4j/docs/api/org/apache/log4j/FileAppender.ht

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

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 that

RE: file servlet

2006-02-05 Thread Tim Lucia
They are just files, like .html or .txt, or any other static content. If you need to set the mime type, supply a mime-mapping like this: zip application/zip See $CATALINA_HOME/conf/web.xml for the complete set of pre-installed mime types. Tim -Original Message

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: Please read here: http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html -Original Message- From: sumesh [mailto:[EMAIL PROTECTED] Sent: S

RE: Help with clustering

2006-02-06 Thread Tim Lucia
Yes. Use their IP address in the replication listener, i.e., (you probably have it set to "auto"...) -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, February 06, 2006 12:57 PM To: users@tomcat.apache.org Subject: Help with clustering hello Pr

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 To

RE: Application specific tomcat recycle?

2006-02-07 Thread Tim Lucia
Depending on what you mean by "recycle", it is likely that "stop" followed by "start" or "reload" of the /manager/html application will do what you want. Tim -Original Message- From: Biernesser, Beth [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 7:36 AM To: Tomcat Users List

RE: Application specific tomcat recycle?

2006-02-07 Thread Tim Lucia
, 2006 2:51 PM To: Tomcat Users List Subject: RE: Application specific tomcat recycle? Yes, I'm stopping and restarting tomcat, but I did not use the management tool to deploy the applications - will they be able to be independently stopped and restarted? -Original Message- From

RE: turning off sessions

2006-02-07 Thread Tim Lucia
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 create); FWIW, Struts will create one for you, even if you don't need one. This caus

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

RE: turning off sessions

2006-02-07 Thread Tim Lucia
} Shows: Session: "null" But if I tack on ?session, 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: Ti

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 autom

RE: newbie:access tomcat virtual host via apache

2006-02-07 Thread Tim Lucia
t send it on requests 2-n, and therefore you really don't have sesion tracking. Kind of useless ;-) Tim -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of matador Sent: Tuesday, February 07, 2006 9:00 PM To: users@tomcat.apache.org Subject: RE: newbie:access to

RE: Virtual Directory

2006-02-08 Thread Tim Lucia
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: > > > >Please read here: > >http://tomcat.apache.org/tomcat-5.5-do

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 SessionC

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
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 keeps track of how many sessions are attached >to a web app. The key part is the HttpSessionBind

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
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 fragme

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 session

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
with their own 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

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 t

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 meta-refresh,

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

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

2006-02-13 Thread Tim Lucia
http://www.google.com/search?hl=en&q=j2ee+versus+php http://www.google.com/search?hl=en&lr=&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 a

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 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 the http host he

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

2006-02-14 Thread Tim Lucia
:36, Tim Lucia wrote: > > > You can always install Apache httpd + Tomcat on a second machine (or > on the same machine on a separate set of ports), if you are reluctant > to try it on you production host. Of course in an ideal world I would - but this is my home, and I don't

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

2006-02-14 Thread Tim Lucia
ache.org Subject: Re: Setting up a parallel test environment on the same machine as main server On Tuesday 14 February 2006 12:36, Tim Lucia wrote: > 1. Moving the JkMount directive inside a will make it > accesible from only that virtual host. So, you must repeat common > ones, such as

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 o

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

RE: Change Max Post Size

2006-02-17 Thread Tim Lucia
The context work dir has to be the same as the temp dir, at least for Struts using commons upload, for upload to work correctly on files bigger then 256K: ---struts-config.xml--- ---xxx.xml--- > -Original Message- > From: news [mailto:[E

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: users@tomcat.apa

RE: Where to place JNDI sections for customer deployment

2006-02-17 Thread Tim Lucia
If you restart tomcat, the war > file is expanded correctly so 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: >

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

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
ct I opened in Eclipse. I 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 R&D, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 _ From: Tim Lucia [m

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 in

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 answer

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 JSESS

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

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. > -Original Message- > From: foo shyn [mailto:[EMAIL PROTECTED] > Sent: Friday, February 24, 2006 6:05 AM > To: users@tomcat.apache.org > Subject: Tomcat servlet load handling > > > Hi, > >

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: users@t

RE: mod_rewrite losing session

2006-02-24 Thread Tim Lucia
e is some other 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: >Y

RE: mod_rewrite losing session

2006-02-24 Thread Tim Lucia
way to do this? pete Filip Hanik - Dev Lists wrote: > The easiest thing would be to tell Tomcat to always use "/" as a path > for the JSESSIONID cookie. > that should take care of it. > Filip > > Tim Lucia wrote: > >> Happens with mod_jk -- I am using tha

RE: mod_rewrite losing session

2006-02-24 Thread Tim Lucia
; To: Tomcat 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:[EMA

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

2006-02-28 Thread Tim Lucia
Send Tomcat a QUIT (11) signal on Unix, or control/break (run it interactively) on Windows. This will cause the VM to dump all thread stacks. If you don't like Tomcat, you can always shell out some big bugs for a commercial application server. For some even bigger bucks you can get commercial su

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

2006-02-28 Thread Tim Lucia
You can always feel free to contribute documentation 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.

  1   2   3   4   >