Re: Urgent. pls help me out

2003-02-17 Thread David Kavanagh
Now, is this really urgent? I'll see if I can help. I'd point you to the tomcat/webapps/examples directory. These are some examples that come with tomcat. You'll find a WEB-INF directory there with a web.xml file within. This is what maps URLs to actual servlet classes. You can create your own

Re: newbie installation problem

2003-02-12 Thread David Kavanagh
R=Redhat, correct on the other letters... Steve Burrus wrote: Excuse my ignorance please, but what does RPM stand for exactly?? I guess that the PM is package management. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Tomcat Out of memory

2003-01-22 Thread David Kavanagh
I set CATALINA_OPTS (whcn using the catalina.sh script) Nate wrote: Thanks for the info, but I think our problem is more related to allocating the amount of memory we need than the -server option. Also, I'm not even sure that I am setting these in the right place. - Original Message -

Re: About Tomcat-3.2.4 installation problem

2003-01-21 Thread David Kavanagh
If you could give more details about the errors you are getting, that would help. I've run the setup you seem to have without problems. The current tomcat is either 4.0.6, or 4.1.18. It might be nice to start with the newer version also. David farhan ahmed wrote: Dear All, I am

Re: request caching?

2003-01-20 Thread David Kavanagh
Thanks, I do set some values to prevent caching. response.setHeader(Pragma, no-cache); response.setHeader(Expires, 0); response.setHeader(Cache-control, no-cache, must-revalidate); I'll didn't really implement caching in the way you think. I just cache the Template object

request caching?

2003-01-19 Thread David Kavanagh
I've been using tomcat since 3.2.1 and use XSLT to take my servlet output and turn it into HTML. I wrote code to check the XSLT file modification date and auto-reload it if the file had been modified. So, in the browser, I could just hit reload and get updated XSLT. This is great for debugging

Re: IPv6 Support in Tomcat

2003-01-08 Thread David Kavanagh
IPv6 is a jdk1.4 feature, that is not availble on Windows (due to problems with the IPv6 support in the OS). I'd guess tomcat will work with IPv6 if you get JDK1.4 on Solaris or Linux. See this web page for details. http://java.sun.com/j2se/1.4/docs/guide/net/ipv6_guide/ David Surendra Kumar

Re: IPv6 Support in Tomcat

2003-01-08 Thread David Kavanagh
. Is there anything specially needs to be done from tomcat side ? So If the jdk supports then tomcat also supports Ipv6. Is this correct ? Thanks Surendra - Original Message - From: David Kavanagh [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 10:33 AM

Re: app roll out.

2002-12-16 Thread David Kavanagh
Well, if you were just running tomcat, I'd say put your app in webapps/ROOT, but I'm not sure how to configure mod_jk to redirect all stuff from the server root to tomcat. If you are directing everything to tomcat, just bag apache altogether! David On 12/16/2002 4:28 PM, Alexander Wallace

Re: RE: I donĀ“t understand the objective of this open list !

2002-12-09 Thread David Kavanagh
Hmm, let me help... The note you were responding to was meant in good humor. Notice the smiley face at the end. That means that the comment was meant as a joke. I'm sorry if you aren't in that kind of mood right now. Why don't you try stating the problem(s) you are having, including

Re: hashtable

2002-11-20 Thread David Kavanagh
Paul, I assume you are asking if you can store something in a session to share between pages. Yes, you can store an object (such as a Hashtable) in the session object. You can use session.setAttribute(key, value) or session.getAttribute() to retrieve it. David On 11/20/2002 10:31 PM, [EMAIL

Re: hashtable

2002-11-20 Thread David Kavanagh
I think another lister posted this answer. You should do this; int styles[] = (int [])session.getAttribute(styles); I'll also recommend testing the session before using it. I think if you get null from request.getSession(false), that means it timed out, or was marked invalid. David On

Re: hashtable

2002-11-20 Thread David Kavanagh
Just to set the record straight, an array is treated like an object, so the int[] is OK. casting the result using (int []) works just fine. David On 11/20/2002 11:11 PM, [EMAIL PROTECTED] wrote: My two cents: 1. int is a java primitive type and your assigning an object to it, that's illegal.

Re: hashtable

2002-11-20 Thread David Kavanagh
The session lifetime (timeout) is defined in the web.xml for the application. Look after the servlet mappings. David On 11/20/2002 11:59 PM, [EMAIL PROTECTED] wrote: Thanks Gents, that's great. One last thing. Where is session in the API? I can't see httpSession anywhere. I am looking for

Re: session startup

2002-11-20 Thread David Kavanagh
Hmm, I think you might be missing the point of a session. It is something that is associated with a client. If you want something initialized when the app starts up, you need to put something in a servlet.init() method. In there, check to see if that thing is initialized, if not, initialize

Re: hashtable

2002-11-20 Thread David Kavanagh
In my web.xml, I have (as a child of web-app), these lines. session-config session-timeout 30 /session-timeout /session-config This is in minutes. David On 11/21/2002 12:32 AM, [EMAIL PROTECTED] wrote: Regarding timout and web.xml..my web.xml looks like this:

Re: [4.1.14] New test milestone released

2002-11-08 Thread David Kavanagh
you're kidding me! I was just looking for tomcat 4.1.14 after seeing something that changed in cvs and was tagged as being in 4.1.14. I'm downloading the source via anoncvs as I write this. Where is the binary available? Thanks, David On 11/8/2002 1:31 PM, Mauro Daniel Ardolino wrote: Remy:

Re: 4.1.12 rpms

2002-11-03 Thread David Kavanagh
The LE-1.4 version also excludes several jars with additional features. I think JMS was one of them. I use the LE-1.4 version with 1.3.1, but add the jaxp, crimson and xalan jars. David Niaz Habib wrote: I believe the LE version is for jdk1.4. As jdk1.4 includes some of the XML parsers

Re: java -server

2002-10-08 Thread David Kavanagh
You can certainly use it if you like. Each app reacts differently to it. Our app was faster where it counted. We did find that running xalan with jdom was faster in client mode (can't say why, or what part was affected most). David Frank Liu wrote: isn't tomcat a server? why we don't use

Re: java -server

2002-10-08 Thread David Kavanagh
wrote: any good docs on good/bad side of -server and -client option? or maybe the only way is to try it? frank On Wed, 9 Oct 2002, David Kavanagh wrote: You can certainly use it if you like. Each app reacts differently to it. Our app was faster where it counted. We did find that running xalan

Re: What Java Profile tool do you use?

2002-09-27 Thread David Kavanagh
I've used OptimizeIt and JProbe. For each, I've configured tomcat like a normal app. They both are able to use Tomcat as a web app container to debug your web app, but I'm not sure why I should have done that. I like OptimizeIt a little better, but they both get the job done. David Hauck,

Re: Checking Tomcat's Memory

2002-08-16 Thread David Kavanagh
Kris is right. These parameters ought to be tweaked for servers with decent amounts of memory installed. On another project our company is working on, we had a machine with 8G (a Sun 4-way server). We were able to set up to 3G on JDK1.3.1. To documentation I found indicated using ISM, about

Re: Accessing Mapped Drives

2002-08-09 Thread David Kavanagh
I saw this problem with a java2 applet running with the plugin The file dialog could not see mapped drives. I only saw it on Win 98. Windows 2000 worked fine. What OS are you running? David Jacob Hookom wrote: What permissions do I need to setup for Tomcat to be able to access shared network

Re: Command line jspc throws NPE for page using JSTL

2002-08-09 Thread David Kavanagh
Kris, Did you find the code that refers to that path? Is it assuming that is runs inside a webapp container? If so, sound like it might be a bug (unless it was never intended to run standalone). I'd bet you could make it work by messing with your classpath. David Kris Schneider wrote: I

Re: Java Profilers, OptimizeIt or JProbe

2002-07-29 Thread David Kavanagh
I'll give my 2 cents... Ive used OptimizeIt to profile our app on tomcat. I know they provide a way to specify the servlet container for debugging web apps, but I never figured out why I needed to do that. I simply treated tomcat as any other app and profiled it that way. I had to take some of

Re: Windows Explorer Hangs when Tomcat is running

2002-07-11 Thread David Kavanagh
I haven't seen this. I start tomcat (4.0.4) manually, but I can run IE and WE just fine. David [EMAIL PROTECTED] wrote: Hi Folks, I am running Tomcat 4.0.1 version on my Windows NT box. I am experiencing a bizzare problem when i run Tomcat and try to open Explorer. I have tomcat in my

Re: Issue on Tomcat 4.0.4 configuration

2002-07-11 Thread David Kavanagh
So, we should be able to get to th 192.168 non-routable address? Telesis Support - Bangalore wrote: Dear all, After Installing tomcat, i got the index page(Welcome) = but,couldn't get the example pages. I have pasted the error messages of this process.. I dont know what might be the

Re: Tomcat and static content

2002-07-07 Thread David Kavanagh
Kapil, You could look at the apache access log. It will tell when an image has been served. There is now way (that I know of) to configure apache to trap all image requests that would be handled by a tomcat context. Is that what you are trying to do? If so, your web app needs to use paths

Re: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread David Kavanagh
I just used my mod_jk configuration from tomcat 3.2.x on my 4.0.4 install. If you look in the server.xml for tomcat 4, you should find something about an AJP13 connector. That is what links with mod_jk. Just make sure the port numbers match (mine did). David Jamal Najmi wrote: Hi, I am new

Re: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread David Kavanagh
oops, I should have mentioned, I'm using apache 1.3.x. Not 2.0.x. Might be a different story there... Jamal Najmi wrote: Hi, I am new to Apache and Tomcat. I I have recently installed Apache HTTP Server 2.0.39 and Tomcat 4.0.3 on my Win 2000. I need to connect them so that Apache HTTP

Re: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread David Kavanagh
with the hyperlink to access any info on using the numerous directives with Apache 2 OR tell me about all of the more important directives that I should know about to get going with it!! *** --- David Kavanagh [EMAIL

Re: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread David Kavanagh
. Thanks Jamal David Kavanagh [EMAIL PROTECTED] wrote: I just used my mod_jk configuration from tomcat 3.2.x on my 4.0.4 install. If you look in the server.xml for tomcat 4, you should find something about an AJP13 connector. That is what links with mod_jk. Just make sure the port numbers match (mine

Re: -Xmx/-Xms Parameters, Where do they go???

2002-06-24 Thread David Kavanagh
I've added a line in my tomcat.sh that sets the TOMCAT_OPTS variable. You should really set -server since I've seen noticeable improvements over the -client option (which is the default). -server must be the first option. Then, use -Xms and -Xmx to increase your memory allocation. If you are

Re: BARCODE

2002-06-12 Thread David Kavanagh
I've done it using a barcode font. Simply load the fonts and render the string you wish to encode. You can generate a BufferedImage in the servlet, and stream a jpeg to the browser. Here is where I got the font I've used. http://www.zebex.com/free.asp Good luck! David Lee Chin Khiong

Re: ideas invited

2002-05-02 Thread David Kavanagh
What I've done is to insert some commands at the top of tomcat.sh, then link it from /etc/rc2.d/S99tomcat to tomcathome/bin/tomcat.sh (if on solaris). on Linux, I put it in /etc/rc5.d David # Lalit Nagpal # wrote: hi, i want tomcat 4 to startup up auto whenever the machine is rebooted so i

Re: ideas invited

2002-05-02 Thread David Kavanagh
doing this myself... David # Lalit Nagpal # wrote: so sorry, i did not understand what u meant ... where did rc5.d come from David Kavanagh [EMAIL PROTECTED] wrote: What I've done is to insert some commands at the top of tomcat.sh, then link it from /etc/rc2.d/S99tomcat to /bin/tomcat.sh

Re: Monitoring Tomcat

2002-04-11 Thread David Kavanagh
I know it is not what you had in mind, but I wrote this servlet to allow me to ping it to see if tomcat was still up. With 3.2.x (which we still run on our production server), it would crash once every month or two and I needed to be able to check for that (my script pages me if it is down).

Re: On timeout

2002-04-10 Thread David Kavanagh
In my web app, I check the session variable in each servlet and redirect to my login servlet if the sesssion is null. I use a helper method in my servlet baseclass. If you want to see it in action, try http:www.epixography.com/light/Start The session timeout is 30 minutes, so be prepared to

file access (security?)

2002-04-02 Thread David Kavanagh
I'm having a problem with TC4.0.3 (Win2K, JDK1.3.1) I have some code that reads a property file and tries to load fonts listed within. ClassLoader.getResource() is used to locate the prop file and font files I'm attaching the servlet test code. This code works fine under TC3.2.2 and TC3.3a