RE: Scheduled task in tomcat - how?

2005-05-18 Thread Subir Sengupta
Look at the Timer and TimerTask classes, for scheduling tasks. -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 7:16 PM To: Tomcat Users List Subject: Scheduled task in tomcat - how? I need to create an automated task in tomcat that gets launc

RE: How to do "Downtime" with a Apache/Tomcat webapp

2005-05-17 Thread Subir Sengupta
Filters work great for this. Also, if you have a cluster, you probably have a load balancer in front of the cluster. If you do, then you could have the load balancer direct all your traffic to a server that runs Apache and only served up a 'Sorry the site is down' page. When the site is back up y

RE: Tomcat 4.1 and auto-redirect/URL rewrite

2005-03-07 Thread Subir Sengupta
You could write a filter to do this. So if the filter see's the shorter url it can redirect/forward to the longer url. Subir -Original Message- From: David Wall [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 11:26 AM To: Tomcat Users List Subject: Tomcat 4.1 and auto-redirect/UR

RE: Compiling JSP with Remedy Java api

2005-03-07 Thread Subir Sengupta
Hi, I'm supporting a legacy app that uses Remedy. It's Tomcat 4.x and Java 1.4 based, but I imagine the setup should be the same. The arapi51.jar file goes into WEB-INF/lib. This app runs on Linux and there are some .so files that need to be copied to $JAVA_HOME/jre/lib/i386. The .so files can b

RE: Is it possible to use a parameter other than JSESSIONID to maintain session?

2005-03-01 Thread Subir Sengupta
You will have to change it in the connector source too. Subir -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 3:13 PM To: Tomcat Users List Subject: Re: Is it possible to use a parameter other than JSESSIONID to maintain session? 1) Checkout th

RE: Sniffing loaclhost traffic for HHTP headers

2005-02-21 Thread Subir Sengupta
You should be able to telnet to the Tomcat server and send it a request. The response including headers will be visible in your telnet session. Subir -Original Message- From: Marco Mastrocinque [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005 2:09 AM To: tomcat-user@jakarta.apac

RE: compiling and deployment in tomcat

2005-02-02 Thread Subir Sengupta
1 - Yes, you have to compile them 2 - If you don't want to register your servlets in web.xml, you can use the Invoker servlet. However, I believe there are security issues with it, since it will allow any servlet on your site to be run. Subir -Original Message- From: Julio Macedo [mailto

RE: apache2 tomcat5 jk2 questions

2005-01-06 Thread Subir Sengupta
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/news/20041100.html#2 0041115.1 -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 12:49 PM To: Tomcat Users List Subject: RE: apache2 tomcat5 jk2 questions No way! I just got my server co

RE: [OT] Request an app test (free beer!)

2004-12-20 Thread Subir Sengupta
RH Linux v9: Linux -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, December 20, 2004 2:26 PM To: Commons User; Struts User; Tomcat User Subject: [OT] Request an app test (free beer!) I was informed last OT post I made that the subject should always i

RE: Know of a group for JSP development?

2004-09-22 Thread Subir Sengupta
Sun has one: http://forum.java.sun.com/forum.jsp?forum=45 Subir -Original Message- From: Jarl Skogsholm [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 7:16 PM To: Tomcat Users List Subject: Re: Know of a group for JSP development? Join a java group, join a html group, combi

RE: ?how configure tomcat to auto startup in linux?

2004-05-03 Thread Subir Sengupta
There are instructions on how to do this on Oscar Carrillo's site. http://www.linuxjava.net/howto/webapp/#daemons Subir -Original Message- From: Ing. Enrique de la Barrera Perez [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 7:29 PM To: Tomcat Users List Subject: Re: ?how configur

RE: coreservlets

2004-04-12 Thread Subir Sengupta
I have the "More Servlets" book. It's excellent. Highly recommended. Subir -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: Sunday, April 11, 2004 6:04 AM To: 'Tomcat Users List' Subject: RE: coreservlets Importance: High I have the first edition, it is pretty nice and

RE: Can someone help me to fix the soft link problem in Tomcat 4.1.27

2004-04-09 Thread Subir Sengupta
I should not defined a Context for that web component in the server.xml. Please let me know if this is not the case. Thank, Kam On Thu, 8 Apr 2004 16:12:50 -0700, "Subir Sengupta" wrote: > > http://marc.theaimsgroup.com/?l=tomcat-user&m=105159411609623&w=2 >

RE: Can someone help me to fix the soft link problem in Tomcat 4.1.27

2004-04-08 Thread Subir Sengupta
http://marc.theaimsgroup.com/?l=tomcat-user&m=105159411609623&w=2 -Original Message- From: Kam Lung Leung [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: Can someone help me to fix the soft link problem in Tomcat 4.1.27 Hi, I installed T

RE: Configure Apache for running Perl(cgi)

2004-03-18 Thread Subir Sengupta
IK), run PERL scripts under Tomcat, > Tomcat supports just servlets/JSP. :) > > Emerson > > Subir Sengupta wrote: > > He's on the right mailing list. He clearly asked for help running > > Perl scripts on Apache Tomcat. > > > > Subir > > > &

RE: Configure Apache for running Perl(cgi)

2004-03-18 Thread Subir Sengupta
He's on the right mailing list. He clearly asked for help running Perl scripts on Apache Tomcat. Subir -Original Message- From: Cindy Ballreich [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 10:44 AM To: Tomcat Users List Subject: Re: Configure Apache for running Perl(cgi) T

RE: Configure Apache for running Perl(cgi)

2004-03-18 Thread Subir Sengupta
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html -Original Message- From: Vivek Sivagiri [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 10:02 AM To: Tomcat Users List Subject: Re: Configure Apache for running Perl(cgi) How would this be incorrect for this message

RE: Java Hosting

2004-03-10 Thread Subir Sengupta
Myjavaserver isn't accepting new users. Subir -Original Message- From: Rick Umali [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 10:25 AM To: Tomcat Users List Subject: Re: Java Hosting Hello: > Does anyone know of a good hosting company that hosts Java? If your needs are

RE: Tomcat ports

2004-03-05 Thread Subir Sengupta
You will also have to run Tomcat as root if you use port 80. -Original Message- From: Reynir Þór Hübner [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 2:30 PM To: Tomcat Users List Subject: Re: Tomcat ports Hi, Try opening up /tomcat-home/conf/server.xml there you can set the co

RE: mod_deflate with mod_jk2

2004-03-04 Thread Subir Sengupta
Here's what I have in my httpd.conf file and it works fine with Tomcat. #Compress everything except images # Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems... BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have som

RE: JK2 config problem [RESOLVED]

2004-02-26 Thread Subir Sengupta
Did you forget the attachment? -Original Message- From: Kent Boogaart [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 7:30 PM To: '[EMAIL PROTECTED]' Subject: JK2 config problem [RESOLVED] Typical - as soon as I post I figure it out. All I had to do was alter the second IIS

RE: Weird Problems

2004-02-10 Thread Subir Sengupta
Netscape uses the favicon.ico too -Original Message- From: Vernon Wu [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 2:02 PM To: Tomcat Users List Subject: RE: Weird Problems Hi, Mike, >There aren't any 'subtypes' of 404, and there is no way for a request >to be 404 at on

RE: preloading JSPs

2004-02-05 Thread Subir Sengupta
Use the jspc precompile script to precompile your jsp's. The script is in Tomcats bin directory. -Original Message- From: Alex Korneyev [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 8:12 AM Cc: Tomcat Users List Subject: preloading JSPs Hello, all of my .jsp files are l

RE: Problem with redirecting .jsp file requests with .htaccess

2004-01-30 Thread Subir Sengupta
mber is invalid".... Francois Subir Sengupta wrote: >Could it be this bug: >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3D25055=20 ><http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3D25055=20> > >-Original Message- > >From: Francois Masson [mai

RE: Problem with redirecting .jsp file requests with .htaccess

2004-01-29 Thread Subir Sengupta
Could it be this bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3D25055=20 -Original Message- From: Francois Masson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 5:27 AM To:

RE: Problem with redirecting .jsp file requests with .htaccess

2004-01-29 Thread Subir Sengupta
Could it be this bug? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3D25055=20 -Original Message- From: Francois Masson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 5:27 AM To: [EMAIL PROTECTED] Subject: Problem with redirecting .jsp file requests with .htaccess Hi, I

RE: how can I change a variable on the fly with shutting down tomcat

2004-01-29 Thread Subir Sengupta
Yes you can do this with the java.nio classes. Check out this article http://sys-con.com/story/?storyid=3D37288 Subir -Original Message- From: Mike Kenny - CPX Mngd Services [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 10:39 PM To: Tomcat Users List Subject: RE: how can I

RE: disable taglib pooling jspc

2004-01-23 Thread Subir Sengupta
You cannot. JSPC enables tag pooling by default and there is no switch to disable it. -Original Message- From: Faine, Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 10:02 AM To: '[EMAIL PROTECTED]' Subject: disable taglib pooling jspc I have successfully configured tom

RE: How to find the differences between versions?

2004-01-15 Thread Subir Sengupta
Look in the Release notes. There is a list of new features and bug fixes, with the version number it was added/fixed in. So look for any version number higher than 4.1.12 to see what changed. Subir -Original Message- From: Glanville, Jay [mailto:[EMAIL PROTECTED] Sent: Wednesday, Janua

RE: JNI & loadLibrary

2004-01-13 Thread Subir Sengupta
Put the class in common/lib -Original Message- From: Maxime Colas des Francs [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 9:38 AM To: Tomcat Users List Subject: JNI & loadLibrary Hi Tomcat 5.0.16 release-note says : "... the application must also ensure that the library is

RE: GZIP-encoding/mod_gzip and Tomcat??

2003-12-01 Thread Subir Sengupta
If you're using Apache 2.x then you need mod_deflate http://httpd.apache.org/docs-2.0/mod/mod_deflate.html Subir -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 8:12 AM To: Tomcat Users List Subject: Re: GZIP-encoding/mod_gzip and Tomcat?? m

RE: Problems following symlinks

2003-11-24 Thread Subir Sengupta
Put this line in your context, in server.xml. Subir -Original Message- From: John Prout [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 12:24 PM To: Tomcat Users List (E-mail) Subject: Problems following symlinks Using Tomcat, I am not able to open a JSP page, when the page

RE: Connecting Apache 2.0.47 to Tomcat 4.0.6

2003-10-31 Thread Subir Sengupta
Apache 2.0.47 will work with either mod_jk or mod_jk2. Subir -Original Message- From: Asif Chowdhary [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 8:04 AM To: Tomcat Users List Subject: RE: Connecting Apache 2.0.47 to Tomcat 4.0.6 Yes, that's what I have read in the Tomca

RE: can tomcat give me page loadtime stats?

2003-10-09 Thread Subir Sengupta
You could also write a filter to measure performance. http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html Subir -Original Message- From: Jay Glanville [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 9:12 AM To: 'Tomcat Users List' Subject: RE: can tomcat give m

RE: When does tomcat call the garbage collector?

2003-09-27 Thread Subir Sengupta
You could set up a context or lifecycle listener. Then, when you shut down Tomcat you could close your connections in the respective contextDestroyed method or stop method. Subir -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 12:15 PM To:

RE: Jasper2's JspC

2003-08-14 Thread Subir Sengupta
to compile. It's much much faster than javac. Subir -Original Message- From: Dmitry Beransky [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:50 AM To: Tomcat Users List Subject: RE: Jasper2's JspC At 10:42 AM 8/13/2003, Subir Sengupta wrote: >Use the -compi

RE: Jasper2's JspC

2003-08-14 Thread Subir Sengupta
Use the -compile argument. -Original Message- From: Dmitry Beransky [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 9:55 AM To: [EMAIL PROTECTED] Subject: Jasper2's JspC Hi, I'm having partial luck manually invoking JspC and compiling JSP pages on demand. I get as far as p

RE: Tomcat 4 and native threads

2003-05-31 Thread Subir Sengupta
Yes, rh9 uses a new threading library - http://people.redhat.com/drepper/nptl-design.pdf . To force RH to not use the new library try setting LD_ASSUME_KERNEL=2.2.5 in your shell before staring your app. That may fix your problem. Subir -Original Message- From: Michenaud Laurent [mailto

RE: mod_jk.so / apache 1.3.27 / tomcat 4.1.18

2003-02-10 Thread Subir Sengupta
I get that too and it doesn't cause any problems. I didn't build Apache so I don't know what's causing it. However you can probably safely ignore it. Subir -Original Message- From: [de internetman] Rene Kooyman [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 12:33 PM To: Tomc

RE: how to block

2003-02-06 Thread Subir Sengupta
Here's how to do what Tim is talking about http://developer.java.sun.com/developer/EJTechTips/2003/tt0114.html#2 Subir -Original Message- From: Tim Moore [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 10:22 AM To: Tomcat Users List Subject: RE: how to block Check out the

RE: DB Connection Pooling with Tomcat

2003-02-04 Thread Subir Sengupta
I believe that the commons DBCP is bundled with TC 4.1 http://jakarta.apache.org/commons/dbcp.html -Original Message- From: Noncubicle Corp [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 3:06 AM To: [EMAIL PROTECTED] Subject: DB Connection Pooling with Tomcat Hi, I am wonde

RE: Tomcat running behind another web server

2003-01-31 Thread Subir Sengupta
Check out John Turner's howto's http://www.johnturner.com/howto/apache-tomcat-howto.html -Original Message- From: Álisson" Nunes [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 9:41 AM To: [EMAIL PROTECTED] Subject: Tomcat running behind another web server Hello, I would like

RE: Tool for HTTP Request Stress Test

2003-01-17 Thread Subir Sengupta
I don't think Micorsoft's WAS is available on their website anymore. http://webtool.rte.microsoft.com/ Subir -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 6:46 AM To: Tomcat Users List Subject: RE: Tool for HTTP Request Stress Test Jme

RE: Opinions of available Tomcat books

2003-01-10 Thread Subir Sengupta
I found the James Goodwill book much too basic. You could learn as much from the Tomcat docs. -Original Message- From: Bill [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 7:41 AM To: tomcat user Subject: Opinions of available Tomcat books I've been thinking about picking a

RE: Tomcat oddities

2003-01-08 Thread Subir Sengupta
Issue One: If Tomcat used up all your memory, you would see OutOfMemory exceptions being thrown, not a freeze. Do you see these? Everything will stop *while* GC is occurring (not until GC occurs). Have you tried increasing the amount of memory allocated to Java? Use the -Xms and -Xmx flags to

RE: enterprises that use Tomcat as Web Server.

2003-01-07 Thread Subir Sengupta
What makes you think that it is falsified :-) -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 4:15 AM To: Tomcat Users List Subject: Re: enterprises that use Tomcat as Web Server. Netcraft is one way to find out what web server a company is ru

RE: learning filters

2002-12-11 Thread Subir Sengupta
Filters are covered in the "More Servlets" book, which is the next edition of the "Core Servlets" book. -Original Message- From: Price, Erik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 9:06 AM To: [EMAIL PROTECTED] Subject: learning filters I have been learning about se

RE: slight OT: RequestInterceptor

2002-12-10 Thread Subir Sengupta
What version of TC are you using? 4.x does not use interceptors, 3.x does. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 3:34 AM To: Tomcat Users List Subject: slight OT: RequestInterceptor Hi, This probably is slightly off-topic,

RE: Broken pipe msg from Ajp13Processor

2002-11-27 Thread Subir Sengupta
The number of ajp13 threads in the pool are configurable in the server.xml. A broken pipe is usually caused by someone clicking on a link and then when nothing happens clicking on a different link. So the first click is probably to a slow page (maybe due to a long db query etc). Tomcat will comp

RE: Classloader/Classpath problem

2002-11-27 Thread Subir Sengupta
If I copy the jars to $CATALINA_HOME/lib, the app starts up fine, with no exceptions thrown. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 1:34 PM To: [EMAIL PROTECTED] Subject: RE: Classloader/Classpath problem I do not know. Hav

RE: Classloader/Classpath problem

2002-11-27 Thread Subir Sengupta
I'm very familiar with that doc. The question is - If the class loader loaded the jar, then why would my init app throw a NoClassDefFoundError exception. And not throw it when the jar is in the classpath. Subir -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: We

Classloader/Classpath problem

2002-11-27 Thread Subir Sengupta
Hi, When I start Tomcat I get a NoClassDefFoundError exception. I'm including a snippet from the logs. As you can see, the Classloader loads wmsyslog.jar which contains Syslog.class, but then fails with a NoClassDefFoundError . I have a ServeletContextListener that initializes the system on Cont

RE: Hi all .. licence issue ..

2002-11-26 Thread Subir Sengupta
Have you looked here http://www.apache.org/foundation/licence-FAQ.html -Original Message- From: Eriam Schaffter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 5:54 PM To: [EMAIL PROTECTED] Subject: Hi all .. licence issue .. I would like to hack a little with tomcat .. I thi

RE: precompilation of jsp pages

2002-11-19 Thread Subir Sengupta
There seem to be a number of differences between the runtime compiler and the command line compiler (i.e. jspc which is called by ANT). One of them being with file naming (the problem you describe). Also you will find that if you have an underscore in the jsp file name both compilers will name th

RE: Bug in catalina.sh? Problem using jpda

2002-10-08 Thread Subir Sengupta
Where in the bootstrap class do you add this code? Thanks, Subir -Original Message- From: Jean-Francois Arcand [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 1:32 PM To: Tomcat Users List Subject: Re: Bug in catalina.sh? Problem using jpda I'm using Netbean 3.4 on Linux and

RE: build.xml for Ant/JspC

2002-10-03 Thread Subir Sengupta
Here's a snippet of my build.xml (but I don't have a refid). It seems to work though.

RE: build.xml for Ant/JspC

2002-10-03 Thread Subir Sengupta
any action in reliance on the contents of this information is strictly prohibited. - Original Message ----- From: "Subir Sengupta" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 03, 2002 9:41 AM Subject: build.xml for Ant/JspC > Hi, > > Has

build.xml for Ant/JspC

2002-10-02 Thread Subir Sengupta
Hi, Has anyone got Jspc running with Ant? If so could you send me your build.xml or send me any suggestions on how to get it working. I followed the docs at http://jakarta.apache.org/ant/manual/OptionalTasks/jspc.html but couldn't get it working. I'm running TC 404 on Red Hat 7.3 and JDK 1.4

RE: Illegal target of jump or branch

2002-08-16 Thread Subir Sengupta
This means that your jsp is too large. When you take your code out it reduces the size of the jsp and so it works fine. In Java the max size of a method is 64k (I believe). Subir -Original Message- From: Mark Goking [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 2:16 AM To: T

RE: automatically serve index.jsp

2002-08-12 Thread Subir Sengupta
Put this in your web.xml index.jsp Subir -Original Message- From: Michael Remijan [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 11:02 AM To: Tomcat Users List Subject: RE: automatically serve index.jsp ... having this snippet workers2.properties also works - wor

RE: Book recommendation

2002-06-21 Thread Subir Sengupta
I would highly recommend 'More Servlets and Java Server Pages' by Marty Hall, it covers Tomcat 4 and the new Servlet 2.3/JSP 1.2 specs. The Professional Java Server Programming is good too. The James Goodwill book is much too basic, you could learn as much by reading the Tomcat docs on the Tomca

RE: Tomcat performance issues

2002-06-13 Thread Subir Sengupta
Use a tool like Optimizeit from Borland or wrap your methods in System.currentTimeMillis(). That will at least help you narrow down your search. Good luck, Subir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 4:35 PM To: [EMAIL PROTEC

RE: web.xml how-to

2002-06-13 Thread Subir Sengupta
Check out Chapter 5 - Controlling Web Application behavior with web.xml from Marty Halls book 'More Servlets and Javaserver Pages'. It's online at http://www.moreservlets.com/ Hope this helps, Subir -Original Message- From: Eric Armstrong [mailto:[EMAIL PROTECTED]] Sent: Thursday, June

Update: Exception Handling

2002-06-13 Thread Subir Sengupta
seemed to work since now when I throw an exception I see WMErrorReportVavle in the stacktrace and not ErrorReportValve. Can anyone confirm that this is the correct way to handle exceptions, since this valve isn't documented anywhere. Thanks, Subir -Original Message- From: Subir Sen

Exception Handling

2002-06-12 Thread Subir Sengupta
Hi, I'd like to be able to trap all exceptions and show users a friendly error page. I know I can specify which exception to trap in the web.xml file and what error pages to display. But it seems that will only trap exceptions that I specify and let any other exceptions through! So that doesn't

RE: Tomcat 4.0.3 and Mod JK problem

2002-06-09 Thread Subir Sengupta
Update. I added an Alias element - 172.28.101.132 inside my Host element, and the error went away. So, the question now is, why do I need to alias the servers IP address? Thanks, Subir -Original Message- From: Subir Sengupta To: ''[EMAIL PROTECTED]' ' Sent: 6/9/02

RE: Tomcat 4.0.3 and Mod JK problem

2002-06-09 Thread Subir Sengupta
network problem or is it a server.xml configuration problem? Thanks, Subir -Original Message- From: Subir Sengupta To: '[EMAIL PROTECTED]' Sent: 6/8/02 9:06 PM Subject: Tomcat 4.0.3 and Mod JK problem Hi, I have Tomcat running on my dev box, with no problems. I moved tomcat over

Tomcat 4.0.3 and Mod JK problem

2002-06-08 Thread Subir Sengupta
l serve pages but it keeps repeating the above message. Any ideas about what would cause this are appreciated. Thanks, Subir <> Subir Sengupta (E-mail).vcf Description: Binary data -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

RE: web.xml DTD

2002-06-07 Thread Subir Sengupta
Yes, the order of the elements do matter. The chapter from Marty Hall's book 'More Servlets and Java Server Pages' that deals with web.xml elements is online at www.moreservlets.com and is very informative - highly recommended. The site seems to be down right now otherwise I would have provided

RE: How to load properties into tomcat 4.0.3?

2002-06-05 Thread Subir Sengupta
, the location of the properties file. Here i my guess at what I would do TopNav PictureBrowserBean propFile /opt/jakarta-tomcat-4.0.3/webapps/trips-dev Is this correct? I am going to try this, but I am a bit short on time right now. Thanks again for your help. Adam --- Subir Sen

How to set domain for default JSESSIONID cookie

2002-06-05 Thread Subir Sengupta
Hi, If there a way to configure domain and Max Age for the Default JSESSIONID cookie that Tomcat 4.03 sets. I was wondering if I could do this in the web.xml or server.xml files or do I need to do this programatically? Thanks, Subir -- To unsubscribe, e-mail: For a

RE: How to load properties into tomcat 4.0.3?

2002-06-04 Thread Subir Sengupta
You can do something like this in your web.xml somename someclass param1 somevalue You can then call getServletConfig().getInitParameter("param1") from the init method of the somename servlet. Hope this helps, Subir -Original Message- From: Adam Pfeiffer [mailto:[EMAI

RE: AW: How to use setRequestedSessionId

2002-06-04 Thread Subir Sengupta
I'm still unclear about how to do this. Once a request has been associated with a session, how do we associate it with a different session. I'm probably wrong but it seems the only way is to use setRequestedSessionId(). Once I call getSession(), the session gets associated with the request, and

FW: AW: How to use setRequestedSessionId

2002-06-04 Thread Subir Sengupta
I'm still unclear about how to do this. Once a request has been associated with a session, how do we associate it with a different session. I'm probably wrong but it seems the only way is to use setRequestedSessionId(). Once I call getSession(), the session gets associated with the request, an

RE: Any way to tell how many sessions exist?

2002-06-03 Thread Subir Sengupta
Standard Manager has a findSessions() method, which will return an array of all session in the Hashtable. -Original Message- From: Rick Mann [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 4:20 AM To: tomcat user jakarta.apache.org Subject: Any way to tell how many sessions exist?

RE: RequestWrappers

2002-06-03 Thread Subir Sengupta
Hi, Craig answered one of my questions and posted an example of a RequestWrapper. Here it is http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg55350.html Subir -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 4:48 AM To: 'Tomca

RE: AW: How to use setRequestedSessionId

2002-06-03 Thread Subir Sengupta
Craig, Thanks for this example. It's very very useful. I did search for request wrappers but didn't find anything. There were some postings yesterday from people looking for RequestWrapper examples. I'll point them to this posting. I'll take a look at the tutorial and do the homework. Thank

RE: How to use setRequestedSessionId

2002-06-03 Thread Subir Sengupta
lto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 9:10 AM To: Tomcat Users List Subject: Re: How to use setRequestedSessionId On Mon, 3 Jun 2002, Subir Sengupta wrote: > Date: Mon, 3 Jun 2002 00:24:33 -0700 > From: Subir Sengupta <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List

How to use setRequestedSessionId

2002-06-03 Thread Subir Sengupta
Hi, I'm not sure how to do this and was hoping for some pointers. I have a filter that intercepts the session in the request. I then compare the Session Id to another value and based on some calculations either accept or reject the Session Id. Here's the question. How do I invalidate the sess

RE: strange shut down problem - solution?

2002-05-22 Thread Subir Sengupta
that has a System.exit(0) statement as the last line in the stop method. Subir -Original Message- From: Cindy Ballreich [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:01 AM To: Tomcat Users List Subject: RE: strange shut down problem - solution? At 05:45 PM 5/21/02 -0700, Subir S

RE: strange shut down problem

2002-05-21 Thread Subir Sengupta
This is a documented bug. Apparently if there is a non Daemon thread running Tomcat won't shut down cleanly. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8700 Subir -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 5:16 PM To: Tomcat

RE: PLZ HELP Administration TC 4.0.3

2002-05-19 Thread Subir Sengupta
ALSO READ THE Tomcat docs before posting questions like this here!!! -Original Message- From: Felipe R. Lorenzo VI [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 1:54 AM To: Tomcat Users List Subject: Re: PLZ HELP Administration TC 4.0.3 Please read $CATALINA_HOME/bin/catalin

RE: I'm sure someone has tried this!! RE: Problem changing the defau lt cookie name JSESSIONID

2002-05-16 Thread Subir Sengupta
rect ones. Recompile *all* of Tomcat, following the procedures described in the BUILDING.txt document in the source repository. Craig On Thu, 16 May 2002, Subir Sengupta wrote: > Date: Thu, 16 May 2002 09:38:38 -0700 > From: Subir Sengupta <[EMAIL PROTECTED]> > Reply-To: Tomcat

I'm sure someone has tried this!! RE: Problem changing the default cookie name JSESSIONID

2002-05-16 Thread Subir Sengupta
-Original Message- From: Subir Sengupta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 8:42 PM To: '[EMAIL PROTECTED]' Subject: Problem changing the default cookie name JSESSIONID Hi All, I need to change the cookie name form JSESSIONID to something else. I c

Problem changing the default cookie name JSESSIONID

2002-05-15 Thread Subir Sengupta
okies? I'm using Tomcat 4.0.3, Apache 1.3 and running on a Linux server. Thanks in advance, Subir <> Subir Sengupta (E-mail).vcf Description: Binary data -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Getting a reference to a Manager from a filter

2002-05-09 Thread Subir Sengupta
advance, Subir <> Subir Sengupta (E-mail).vcf Description: Binary data -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

RE: Log the amount of time taken to complete a request...

2002-05-03 Thread Subir Sengupta
That is the size of the request in bytes. To clock a request in Tomcat 4 you would have to write a filter. There is an example filter called, appropriately enough, ExampleFilter.java that comes with T4. It does exactly what you want. Subir -Original Message- From: peter lin [mailto:[E

RE: SystemErrLogger and SystemOutLogger

2002-04-26 Thread Subir Sengupta
;s great to have the ability to adjust the location of the temp directory. I just think we could also use such functionality for the logs as well (and not have it dependent on CATALINA_BASE). My 2 cents, Mark Diggory Subir Sengupta wrote: >By default SystemErrLogger and SystemOutLogger go to

RE: SystemErrLogger and SystemOutLogger

2002-04-26 Thread Subir Sengupta
By default SystemErrLogger and SystemOutLogger go to logs/catalina.out, unless you changed the name of the output target in the bin/catalina.sh script from catalina.out to something else. This is explained in the docs http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/logger.html Hope this h

RE: Request Interceptor

2002-04-25 Thread Subir Sengupta
working. I was using request.getFacade() to get an instance of httpServletRequest Thanks, Venky - Original Message - From: Subir Sengupta To: 'Tomcat Users List' Sent: Thursday, April 25, 2002 11:02 AM Subject: RE: Request Interceptor Here's an example of

RE: Request Interceptor

2002-04-25 Thread Subir Sengupta
sponse response) { if (request.getServletPath().equalsIgnoreCase("/examples/servlet/Read")) noOfRequests--; return 0; } } I used to increment noOfRequests in preService and decrement it in postService. But, How do I do the same in Tomc

RE: Request Interceptor

2002-04-24 Thread Subir Sengupta
T4 doesn't have interceptors. It sounds like you can do what you need to do with a filter. Hope that helps, Subir -Original Message- From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 5:03 PM To: [EMAIL PROTECTED] Subject: Request Interceptor Hi, can any

RE: Newbie question

2002-04-24 Thread Subir Sengupta
er:8005. (that's where my server.xml is configured). I started tomcat through /etc/rc.d/init.d/tomcat4 start. Browsing the examples I couldn't see any of them working! Do I need Apache 2.X? Thanks again. - Original Message - From: "Subir Sengupta" <[EMAIL PROTECTED]

RE: Newbie question

2002-04-24 Thread Subir Sengupta
Which version of Tomcat? You should be able to test Tomcat, in standalone mode by typing in localhost:8080 in your browser. The Tomcat page should come up. Are you not seeing this? Look at RUNNING.txt in your Tomcat directory, it explains how to setup and test Tomcat. Hope this helps. Subir

RE: Application init

2002-04-24 Thread Subir Sengupta
Or you could add a life cycle listener that ran all your initialization stuff when your app started. The servlet initialization method will execute for every context that you have defined. That may or may not be the behavior you want. Subir -Original Message- From: juraj Lenharcik [mai

RE: scaling Tomcat

2002-04-16 Thread Subir Sengupta
You didn't mention what versions of Apache/Tomat or what platform you're running on. Here's a couple of links that may help (I haven't seen anything on Tomcat yet). http://dcb.sun.com/practices/howtos/tuning_apache.jsp http://dcb.sun.com/practices/howtos/optimizingserver.jsp Most tuning usual

How to use embedded tomcat

2002-04-16 Thread Subir Sengupta
Check out this link at OReilly http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html Subir -- To unsubscribe: For additional commands: Troubles with the list:

RE: Initialization in Tomcat 4.0.3

2002-04-16 Thread Subir Sengupta
dded to the Host container. It adds user home directories as contexts when the Lifecyle.START_EVENT occurs. See the org.apache.catalina.startup.UserConfig source for implementation details. Hopefully, this will get you started. Cheers, Larry > -Original Message- > From: Subir S

Initialization in Tomcat 4.0.3

2002-04-15 Thread Subir Sengupta
(); etc How do I the same thing in Tomcat 4.0.3 ? Thanks from a Tomcat newbie, Subir <> Subir Sengupta (E-mail).vcf Description: Binary data -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>