Progmatically retriving files in WEB-INF

2001-06-29 Thread Christopher Kirk
Hopefully somebody could point out where I am going wrong... I am using WAR deployment under Tomcat3.2.1 on a WinNT4 box. I have placed a file (me.txt) in the WEB-INF directory, and have written the following servlet which tries to read the file. public class MercuryServlet extends

RE: Aw: Finding a Memory Leak in a Web Application

2001-06-28 Thread Christopher Kirk
Try using HAT (Heap Analysis Tool), you can download it from Sun. It allows you to take snap shots of the heap at run time and exports it as HTML pages.. letting you see just how many objects, and of what types have been created. - Chris. Brainbench MVP Java2 -Original Message-

RE: TOMCAT notSUCKS/not

2001-06-28 Thread Christopher Kirk
This raises a good point, people who put so much work into an open project such as Tomcat are rarely praised and often have to put up with a lot of unnecessary flak! So lets take time out from the 'This Sucks' theme and say THANK YOU TOMCAT! - Chris. -Original Message- From:

RE: Logging

2001-06-18 Thread Christopher Kirk
Best Approach: In the Servlet 2.3 spec (So Tomcat 4.0) you could use Filters.. a Filter may be run before or after a Servlet.. modifying what it sees, or what it returns. - Chris. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED]] Sent: 18 June 2001 9:45 To:

RE: MultiThreadModel-Problem?

2001-06-14 Thread Christopher Kirk
It isn't just 'static' variables that you have to be careful of, normal instance variables should be avoided too. You see, one instance of a servlet may service many many people (often there is only ever one instance of a particular servlet!). If you are sharing any data structure between

RE: TOMCAT and ORACLE

2001-05-02 Thread Christopher Kirk
From my experience there are 2 things that are worth checking. 1) Make sure that the database has an instance named orcl in the TNA lookup (test the connection using Oracle tools, Net8 assistent will do). 2)If you are using 8i, then make sure that orcl is not a Service Name.. people

RE: TOMCAT and ORACLE

2001-05-02 Thread Christopher Kirk
Your problem is the service name, the string you used was meant to use a SID.. try the following instead, it uses the service name as specified from your TNS. jdbc:oracle:thin:@(description=(address=(host=myhost)(protocol=tcp)(port=1521))(connect_data=(service_name=oracle

RE: Please urgent : Why french accentual characters (like à è) not display

2001-04-25 Thread Christopher Kirk
I don't know enough about your setup to be sure, but I have been hit by a problem similar to this on a Solaris box running IPlanet. The problem was that the file holding the translations was stored using a different encoding to the one that was being used to read in the file. You have to be

RE: Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-17 Thread Christopher Kirk
You said 'pretty transparent' to tomcat. Where is it not transparent? Specifically I am wondering about cookies, do cookies work with SSL at all or is it a possible configuration thing that has to be done correctly? - Chris. Beyond the fact that Apache will give you a wealth of options for

RE: Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-17 Thread Christopher Kirk
at all. sam - Original Message - From: "Christopher Kirk" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 8:33 AM Subject: RE: Asking for an Opionio on Apache Tomcat or Just Apache You said 'pretty transparent' to tomcat. Where is it not t

RE: Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-17 Thread Christopher Kirk
- From: "Christopher Kirk" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 12:01 PM Subject: RE: Asking for an Opionio on Apache Tomcat or Just Apache Is that still the case if you disable cookies within a client? I find that Tomcat doesn't notice that co

RE: HttpSession expires !!!

2001-03-19 Thread Christopher Kirk
There is a solution built into the Servlet standard. Take a look at the javax.servlets.http package. There is an interfacecalled HttpSessionBindingEvent, just implement this interface on the session object.. by doing this the object will be notified when it is put into the session, and when it

RE: JDBC Connections

2001-03-16 Thread Christopher Kirk
Your problem is that your session object (holding the connection) is not being notified when the session is dropped. nb, when a user closes a browser is not when the session will be dropped. You'll have to add i) a time out to the session (say 10 minutes?) and ii) give the user a logout button

RE: How to make tomcat parse a *.HTM File ??

2001-03-14 Thread Christopher Kirk
Have you tried setting *.htm=ajp12, AND in httpd.conf move the mod_jk higher up the list of modules (I believe that they are declared in a 'search' order)? - Chris. -Original Message- From: Matthias Barmeier [mailto:[EMAIL PROTECTED]] Sent: 14 March 2001 17:01 To: [EMAIL

RE: Cache problem with IE

2001-03-13 Thread Christopher Kirk
To verify Duncans point: Cache-Control on the request is for proxies. Cache-Control on the response is for proxies+browser. (as stated by 'Core Servlets and JSPs by Marty Hall, published by Sun). You could try Cache-Control 'no-store', or 'must-revalidate'.. to see if IE handles them

RE: ClassPath question?

2001-02-02 Thread Christopher Kirk
As far as classpaths are concerned, you can think of a jar file as a directory (not a file). That is, unlike files (.class files especially) you must explicitly specify the jar file on the class path. That is, to pick up the servlet jar file, specify the following path. You will have to do a

RE: ClassPath question?

2001-02-02 Thread Christopher Kirk
_Normally_ the core java libraries are inserted onto the classpath for you, hence you may not always have to setup a classpath. javax.* is not part of the core libraries, its name actually stands for 'java extensions'. Over time some of these extensions, such as swing (javax. swing) have made

RE: 46 java threads???

2001-02-01 Thread Christopher Kirk
Where are you getting the figure '10Megs per thread' from? Each thread shares the same memory space, that means the 10Megs is shared between the 46 threads and is not on a per thread basis. - Chris Brainbench MVP Java2. -Original Message- From: James Diggans [mailto:[EMAIL

RE: Session problem with WAP protocol

2001-01-17 Thread Christopher Kirk
I cann't explain the error message with out knowing more about the code; but if you are trying to use cookies then that could be your problem. To my knowledge (and I will point out that I have never tried it; so hopefully somebody will back me up when I say that) WAP does not support cookies.

RE: session tracking

2001-01-15 Thread Christopher Kirk
For session tracking to work, look at the following 2 methods resonse.encodeURL and response.encodeRedirectURL In this way, session tracking will only work when following links because URL re-writting requires a link to modify whereas cookies go by the domain within the HTTP request. So, to

RE: session tracking

2001-01-15 Thread Christopher Kirk
reload button ? Christopher Kirk wrote: For session tracking to work, look at the following 2 methods resonse.encodeURL and response.encodeRedirectURL In this way, session tracking will only work when following links because URL re-writting requires a link to modify whereas