RE: UTF-8 Problem with Tomcat 5.0.27 and POST

2005-05-12 Thread Arup Vidyerthy
Steve, We have a similar requirement in that everything stored in the DB has to UTF-8. Well, to address this we have written an UTF-8 Filter which implements the Filter interface. All you need to do there is set the character encoding to UTF8. The class looks like this... public class UTF8Filter

RE: ClassLoading in webapps

2005-05-12 Thread Arup Vidyerthy
Yes, all you need to do is get the Tomcat System class loader to load it. If you are on Windows put these extra jar files as class path entries inside the setclasspath.bat file. On Linux either setclasspath.sh or catalina.sh Hope this helps... Arup -Original Message- From: Narayan,

RE: .asp and tomcat 5.5.9

2005-05-12 Thread Arup Vidyerthy
Why would anybody want that? You should be writing your application in Java :-D Sorry couldn't help. And no, I do not know if Tomcat can support .asp! Arup -Original Message- From: Trung Nguyen [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 14:36 To: tomcat-user@jakarta.apache.org

RE: Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Arup Vidyerthy
I am not sure if this can be done... I guess you could build framework where the user's session id and ip is logged (unless they logout) and then when the user comes back you could use the old session. I have never tried this but this personally but I don’t see why it should not work. Arup

RE: Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Arup Vidyerthy
... But, if instead you wanted to have a session that wasn't linked to tomcat's notion of a session, you could (maybe) build a separate Session management that was stored in a regular (non-session) cookie -- it would then persist across sessions in the same browser... Tim Arup Vidyerthy wrote: I am

FW: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)

2005-07-20 Thread Arup Vidyerthy
would be ever so greatful if anybody could shed any light or share their experiences with me. Kind regards... Arup Vidyerthy total 4240 -rw-r--r-- 1 root root 478024 Jun 13 20:49 c3p0-0.9.0-pre4.jar -rw-r--r-- 1 root root 1848328 Jun 13 20:49 castor-0.9.7.jar -rw-r--r-- 1 root root 31605 Jun 13

RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)

2005-07-20 Thread Arup Vidyerthy
-Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 20 July 2005 17:14 To: Tomcat Users List Subject: RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544) From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Subject: FW: OutOfMemoryError

RE: Internet Explorer and Content-Type

2005-07-25 Thread Arup Vidyerthy
Strange... I have identical code and it works IE and FireFox. This is how write it out into the response stream // set up the response header with the content type, the file name and // the file size // res.setContentType(application/zip); res.setHeader(Content-disposition, attachment; filename=

RE: setting -Xss option and its impact on servlet threads

2005-07-27 Thread Arup Vidyerthy
' It happened to us in our application when we used the -Xss parameter to override the default stack size to 128K. Regards... Arup Vidyerthy -Original Message- From: Darryl L. Miles [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 12:03 To: Tomcat Users List Subject: Re: setting -Xss option and its

RE: Instantiating an Application Scoped Bean

2005-07-27 Thread Arup Vidyerthy
-nameApplicationStartup/servlet-name url-pattern/startup/url-pattern /servlet-mapping This tells tomcat to run that servlet when Tomcat first intialises the context. You can put all your initialisation stuff there I guess. Regards... Arup Vidyerthy -Original Message- From: [EMAIL

RE: TC Apache integration

2005-07-28 Thread Arup Vidyerthy
Guys, just for completeness, I thought I would stick this in here. This is for Linux. http://cymulacrum.net/writings/tomcat5/c875.html -Original Message- From: Asif Chowdhary [mailto:[EMAIL PROTECTED] Sent: 28 July 2005 17:04 To: Tomcat Users List Subject: RE: TC Apache integration

RE: suppress directory listing

2005-08-04 Thread Arup Vidyerthy
In your TOMCAT_HOME/conf/web.xml there is some stuff that looks like this: servlet servlet-namedefault/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class init-param param-namedebug/param-name param-value0/param-value

RE: Webservice + tomcat or any websphere

2005-08-08 Thread Arup Vidyerthy
Of course. Go have a look at apache axis. Arup -Original Message- From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] Sent: 08 August 2005 15:36 To: tomcat-user@jakarta.apache.org Subject: Webservice + tomcat or any websphere Hi, Is Tomcat support webservices? If yes then how we can

RE: Win32: tomcat is there, how to make it a service?

2005-08-08 Thread Arup Vidyerthy
In the bin directory you will find a service.bat file. That should allow you to install it as a service. Or you alternatively you can have a look at the Java Service Wrapper project on sourceforge (http://sourceforge.net/projects/wrapper/). That's also pretty good. -Original Message-

RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)

2005-08-09 Thread Arup Vidyerthy
: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544) From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Subject: RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544) Any pointers in terms of how I should approach this problem...? I'd raise

RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)

2005-08-09 Thread Arup Vidyerthy
: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544) From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Subject: RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544) Any pointers in terms of how I should approach this problem...? I'd raise

RE: Session lifecycle (UNCLASSIFIED)

2005-08-09 Thread Arup Vidyerthy
Samara, If your logout is a 'post' then when the user hits the back button he/she should see a session expired message. Arup -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: 09 August 2005 15:03 To: 'Tomcat Users List' Subject: Session lifecycle

RE: R: JSTL Question

2005-08-09 Thread Arup Vidyerthy
If he doesn't listen - just tell him he is a buffoon! -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 09 August 2005 16:54 To: Tomcat Users List Subject: RE: R: JSTL Question From: Tom Spence [mailto:[EMAIL PROTECTED] Subject: Re: R: JSTL Question I

RE: tomcat 4.1.31

2005-08-18 Thread Arup Vidyerthy
Looks like your server.xml syntax is not correct. You will need to look through it figure it out... -Original Message- From: Kuruganti, Lakshmi, ALABS [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 14:03 To: tomcat-user@jakarta.apache.org Subject: tomcat 4.1.31 Hi, I am new to

RE: Session Tracking

2005-08-19 Thread Arup Vidyerthy
Does it not increment at all or does the increment counter gets reset and starts all over again from 0. Basically if you want to keep the counter incrementing everytime you access that page (or hit that that servlet) you need to make it a static variable in your servlet/jsp. -Original

RE: passing additional java parameters to tomcat

2005-08-19 Thread Arup Vidyerthy
Have look at these two links: http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=tcservc fgpage=overview http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=jsmpag e=overview Thanks... Arup -Original Message- From: Ashish Kulkarni [mailto:[EMAIL

RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

2005-09-02 Thread Arup Vidyerthy
Hey dude, stop moaning and read the bottom of the email!! Come on - little bit of proactive intuitiveness is all that required here!! -Original Message- From: Hildegard Bronkhorst XH (ZA/ESA) [mailto:[EMAIL PROTECTED] Sent: 02 September 2005 07:50 To: Tomcat Users List Subject: RE:

RE: tomcat war expansion fails on .cvsignore file

2005-09-06 Thread Arup Vidyerthy
I think you can't have that file there as the war files have to follow a certain structure. -Original Message- From: Ben Wong [mailto:[EMAIL PROTECTED] Sent: 06 September 2005 15:56 To: tomcat-user@jakarta.apache.org Subject: tomcat war expansion fails on .cvsignore file Hi, I have a

RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-06 Thread Arup Vidyerthy
regards... Arup Vidyerthy. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 06 September 2005 15:54 To: Tomcat Users List Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get() From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: RE

RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-08 Thread Arup Vidyerthy
Guys, I use a synchronised HashMap like Chuck is suggesting here and I have to say it's absolutely fine. We have an application here with hundreds of users logging in and doing stuff concurrently and I have seen no negative impact on performance. So basically you either do that or use something

RE: Resizing JPEG Images

2005-09-20 Thread Arup Vidyerthy
Hi, You have quite a few options. There are lots third party libs out there that can do this for you. Last couple of projects I have used JAI and ImageMagick/JMagick to do this. Look them up. Hope this helps. Arup -Original Message- From: Justin Jaynes [mailto:[EMAIL PROTECTED]

RE: Starting options

2005-09-20 Thread Arup Vidyerthy
Sorry for being nosy but can I ask you exactly why do you want these directories in different palces so that I can understand your problem a little more? -Original Message- From: Krzysztof Graczyk [mailto:[EMAIL PROTECTED] Sent: 20 September 2005 15:44 To: Tomcat Users List Subject:

RE: Starting options

2005-09-21 Thread Arup Vidyerthy
it tomcat sources ? -Tim Krzysztof Graczyk wrote: Arup Vidyerthy wrote: Sorry for being nosy but can I ask you exactly why do you want these directories in different palces so that I can understand your problem a little more? Yea, I have to change configuration scripts (server.xml

RE: Tomcat would not start...

2005-09-21 Thread Arup Vidyerthy
Actually that's how it works. You have to send encrypted messages to it over an encrypted network using 2.6987Ghz frequency. Only then does it run. Surprised its not in the manual. -Original Message- From: Lenandlar Singh [mailto:[EMAIL PROTECTED] Sent: 21 September 2005 16:19 To: Tomcat

RE: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Arup Vidyerthy
Haven't really thought it through as I just woke up :-) However, I don't see why couldn't write a filter that filters all request. It checks the DB connection and if it isn't there it just simply forwards the user to an appropriate page. As to making the whole web app unavailable - I am not

RE: pointing to a folder outside tomcat webapps

2005-09-28 Thread Arup Vidyerthy
Look up allowLinking = true in google. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:42 To: tomcat-user Subject: pointing to a folder outside tomcat webapps I'd like pointing a foder outside webapps tomcat folder. I know that with

RE: pointing to a folder outside tomcat webapps

2005-09-28 Thread Arup Vidyerthy
outside tomcat webapps I kwnow that. I want to use the file META-INF/context.xml inside the application for pointing to another resource. I do not want use server.xml! -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user

RE: pointing to a folder outside tomcat webapps

2005-09-28 Thread Arup Vidyerthy
PROTECTED] Sent: 28 September 2005 11:22 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps could u be more explicit please? I cannot understanding u -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user

RE: pointing to a folder outside tomcat webapps

2005-09-28 Thread Arup Vidyerthy
need more than one context. Hot to do it? -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 11:27:25 +0100 Subject : RE: pointing to a folder outside tomcat

RE: Multiple tomcat services?

2005-09-28 Thread Arup Vidyerthy
Install it under a different name -Original Message- From: Jens Nordberg [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 15:13 To: tomcat-user@jakarta.apache.org Subject: Multiple tomcat services? Hi, I'm trying to install multiple tomcats on my machine, which works quite well except

RE: Multiple tomcat services?

2005-09-28 Thread Arup Vidyerthy
Subject: RE: Multiple tomcat services? How do you mean? The install program for Tomcat 5.5.9 doesn't allow me to change the name, or does it? As far as I can tell, I can only specify install directory, HTTP port, user name, password and jre. /Jens -Original Message- From: Arup Vidyerthy

RE: Production Settings

2005-10-06 Thread Arup Vidyerthy
This is vague!! Recommended production settings for what exactly...? I would think it varies from application to application. -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 14:21 To: tomcat-user@jakarta.apache.org Subject: Production Settings

RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Arup Vidyerthy
Why don't you use your eyes and read the bottom of the email. Or is that too difficult? -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: 07 October 2005 15:39 To: Tomcat Users List Subject: RTE - Meridian Club [EMAIL PROTECTED] can someone please remove this

RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Arup Vidyerthy
all here trying to help each other, not to attack each other. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 07, 2005 7:51 AM To: Tomcat Users List Subject: Re: RTE - Meridian Club [EMAIL PROTECTED] On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED

RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Arup Vidyerthy
Somehow my apologetic message hasn't been delivered by the mail server as yet. -Original Message- From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Sent: 07 October 2005 16:11 To: 'Tomcat Users List' Subject: RE: RTE - Meridian Club [EMAIL PROTECTED] Guys, My sincere apologies!! You see

RE: serving content from outside the context

2005-10-12 Thread Arup Vidyerthy
Or if you don't want to do what Darryl is suggesting you can configure your tomcat to use unix symlinks by setting the allowLinking attribute to true. Then you can simply create a softlink inside your webapp directory that points to your data directory. That will work as well. Arup