RE: Simple question about JSP page

2003-09-06 Thread Shawn Zernik
you should post you tag code of the code for that page. It can either be a problem with your tag, or the connection pooling. Try stopping and restarting the app in the manager and see if that makes the updates take affect. If so, the issues is with re-use of objects and possible connection

RE: Simple question about JSP page

2003-09-06 Thread Craig Berry
Hard to tell with the information given, but my guess is that you're getting a browser-cached copy of the list all page. Add the header voodoo to suppress caching and see if that helps. -Original Message- From: engp0510 [mailto:[EMAIL PROTECTED] Sent: Fri

Re: [OT] Realizing a search functionality

2003-09-06 Thread Marco Tedone
Thank you. I think I'll go for Lucene. Marco - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 05, 2003 1:20 PM Subject: Re: [OT] Realizing a search functionality AFAIK, Lucene indexes files. How then, do you

Re: Simple question about JSP page

2003-09-06 Thread Christopher Williams
Have you verified that the record IS getting added correctly to the DB? Have you hit the refresh button to check that your browser isn't displaying a stale page? If an old page is getting displayed you can turn off page cacheing by calling: response.setHeader(Pragma, no-cache); -

OT: Annoying autresponses to posts

2003-09-06 Thread Christopher Williams
Does anybody else have this problem: Whenever I make a post to this mailing list, I quickly get a reply from a mail server called [EMAIL PROTECTED], with the subject The email you authored contained a violation (either a virus or inappropriate content). The message body reckons that The internet

Re: Character Encoding problem (umlauts, etc).

2003-09-06 Thread Anton Tagunov
Hello Robert! Robert Priest [EMAIL PROTECTED] wrote: RP I am requesting file : RP /38CF278C0186B466222FC48571080B83/51/dms00051/äää.txt RP but what is coming across in the request is: RP /38CF278C0186B466222FC48571080B83/51/dms00051/???.txt Probably your browser is sending it that way? I guess

Re: Charset encoding issue

2003-09-06 Thread Anton Tagunov
Hello Lima! lccb I have a jsp page with some form fields. I don't know how is the right way lccb to set the charset (because we're using portuguese characters). This is lccb the only configuration that have worked for me : lccb %@ page contentType=html/text; charset=UTF-8% To the best of my

Re[2]: Tomcat as an in-process Servlet container?

2003-09-06 Thread Anton Tagunov
Hello Carlos! CCH My confusion comes from the fact that when using channelSocket to connect Apache and Tomcat I can type the URL of any WebApp without specifying Tomcat's listening port because the CCH mapping/forwarding is handled in the config files, but after configuring ChannelJni to

Re: Mac/zip stream problem

2003-09-06 Thread Anton Tagunov
Hello Jan! To me looks a Mac IE trouble? Does it not handle the ZIP stream at all? BTW, isn't IE Mac being put off service replaced by Safari? WBR, Anton JA ... setting the response content type to application/zip and wrapping the JA response stream to a zipoutputstream and then writing

[OT] Can't find Commons-Pool jarfile

2003-09-06 Thread john-paul delaney
Hello List... I'm trying to setup a jndi datasource connection (following the tc docs) but I can't find the commons-pool 1.0.1 jarfile on the jakarta download site. Anyone point me to a download link for Pool please? Thanks /j-p.

Re: [OT] Can't find Commons-Pool jarfile

2003-09-06 Thread Tim Funk
http://jakarta.apache.org/commons/pool/downloads.html john-paul delaney wrote: Hello List... I'm trying to setup a jndi datasource connection (following the tc docs) but I can't find the commons-pool 1.0.1 jarfile on the jakarta download site. Anyone point me to a download link for Pool please?

Re: Servlet/JSP Lifecycle and Performance

2003-09-06 Thread Tim Funk
AFAIK, no such benchmarks have been made. Once tomcat loads a servlet, it is loaded. Tomcat currently does not unload servlets due to lack of use. -Tim Lukas Bradley wrote: All, Where can I get a description of how Tomcat handles a Servlet lifecycle from init() to removal from memory? I'm

Re: [OT] Can't find Commons-Pool jarfile

2003-09-06 Thread john-paul delaney
Thanks but... http://jakarta.apache.org/commons/pool/downloads.html ... links to the jakarta binary download page but there's no reference to Pool there. /j-p. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Multiple Tomcat instances for virtual hosts

2003-09-06 Thread Thomas Eichberger
Hi, I have Apache 1.3 and Tomcat 4.1.8 on a Red Hat 9 machine. Apache serves several virutal hosts. We have one Tomcat instance running with several web contexts, one context for each virtual host. Now I would like to change this to have one Tomcat instance for each virtual host (this is

RE: Simple question about JSP page

2003-09-06 Thread Murray
Has your SQL code issued a commit after adding the extra rows? Some DBMSs require that before the application can see new rows in the database - a repeated query simply gets the original result until the rollback buffer is committed. Murray -Original Message- From: engp0510

Re: When does tomcat notice a newly deployed war file?

2003-09-06 Thread Roy Smith
This is getting even stranger. I deleted my war file from my webapps directory and tried uploading a new war file via the manager GUI. At this point, my app is working, but I don't see any evidence of it having been installed in webapps! My first thought was somehow I've got multiple copies

RE: SSL/Verisign Confusion

2003-09-06 Thread Dave Wood
FINALLY! I still don't know what I did wrong in the first place, but after starting over with VeriSign, all is well now. I thought I'd share the (simple!) steps I took to get SSL running using keytool/tomcat in case anyone else might find this useful: # keytool -genkey -alias tomcat -keyalg RSA

a snooping servlet

2003-09-06 Thread Pike
Hi I'm trying to write a servlet extension that logs the complete request and response _body_ of any transaction. these bodies are streaming, so to log them I need to open the stream, read and log it, and reset it before I let the servlet continue. I can do this in a Filter object (i think?).

Re: Simple question about JSP page

2003-09-06 Thread Ben Souther
1st, you shouldn't cross post to more than one list at a time. 2nd, without seeing your code, we can't help you. Have you checked the DB with another tool to verify that the record was actually added to the database? Are you catching SQL errors and doing something useful with them so you can

Re: Simple question about JSP page

2003-09-06 Thread Christopher Marsh-Bourdon
Did you commit the Add transaction prior to loading the list again? More details would be helpful prior to making any more guesses. Cheers Christopher Marsh-Bourdon Pyplia Limited On 6/9/03 3:30, engp0510 [EMAIL PROTECTED] wrote: Hi, Maybe it's a stupid question. Built jsps for

Debugging mode?

2003-09-06 Thread Thomas Hehl
OK, I had tomcat up and working just fine. I moved some directories around and changed my web.xml for my web app and now I get 404 for EVERYTHING I'm not asking anyone to solve this problem for me, but I've tried to check all of the logs and can't figure out where to go next. Is there some

How come Tomcat doesn't load the second time?

2003-09-06 Thread Anson Zeall
Hi people, I've installed Tomcat 4.1.27. Put for some reason, when I restart my computeror like..shutting down and restarting tomcat a few times..I'm not able to access tomcat again? Not even http://localhost:8080/index.jsp. What is the reason for this? Regards, Anson

RE: How come Tomcat doesn't load the second time?

2003-09-06 Thread Anson Zeall
Hey people, I've found out the reason.its 'cause of my firewall...haha..sorry for all the trouble -Original Message- From: Anson Zeall [mailto:[EMAIL PROTECTED] Sent: Saturday, September 06, 2003 11:54 PM To: Tomcat Users List Subject: How come Tomcat doesn't load the second time?

Newbie- Https and Jakarta-tomcat

2003-09-06 Thread Luong Phan
Hi all, Please tell me where could I find document about creating secure website (https) using jakarta-tomcat 3.2.4 as server, JSP as programming language, and Mysql as database storage? Thank you very much. LuongPhan - Do you Yahoo!? Yahoo! SiteBuilder -

Re: [OT] Can't find Commons-Pool jarfile

2003-09-06 Thread Tim Funk
That page is (i guess outdated or wrong), anyhow, just go to any download to get to directory listings, then you'll eventually find ... http://apache.webmeta.com/jakarta/commons/pool/binaries/ -Tim john-paul delaney wrote: Thanks but... http://jakarta.apache.org/commons/pool/downloads.html

Re: Debugging mode?

2003-09-06 Thread Tim Funk
In server.xml almost every declaration has a debug option. Change it to debug='99'. Do the same for you context declaration too. Other things use commons-logging. In that case, add log4j.jar to your common/lib dir and add a file called log4j.properties in your common/classes dir which looks

Re: setting classpath in setclasspath.bat

2003-09-06 Thread Tim Funk
Make every attempt to not override the system classpath. Try placing your classes in common/lib or better WEB-INF/lib. Your error logs will provide more insight if something wrong is happening. -Tim Pradeep Gummi wrote: Hi all, I am tring to include external classes that are needed for my

Re: a snooping servlet

2003-09-06 Thread Tim Funk
Yeah, I think your screwed :( But your course of action of having upwards of 6 or more classes sounds like your on the right track to meeting your requirements. Hopefully you are using the HttpServletRequestWrapper and (ResponseWrapper) classes (and realted classes) to make life easier. -Tim

JSP Document

2003-09-06 Thread Sam Hough
Tomcat 4.1.27 on Win32 given ?xml version=1.0? jsp:root xmlns=http://java.sun.com/JSP/Page version=1.2 h1Cat amp; Dog/h1 /jsp:root Generates h1Cat Dog/h1 Can anybody confirm that this is correct behaviour? I can sort of see that it makes sense (JSP is for generating any character

Re: Newbie- Https and Jakarta-tomcat

2003-09-06 Thread Yann Cébron
Please tell me where could I find document about creating secure website (https) using jakarta-tomcat 3.2.4 as server, JSP as programming language, and Mysql as database storage? from the TC docs regarding use of SSL http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-ssl-howto.html HTH,

Re: JSP Document

2003-09-06 Thread Eugene Lee
On Sat, Sep 06, 2003 at 06:10:26PM +0100, Sam Hough wrote: : : Tomcat 4.1.27 on Win32 given : : ?xml version=1.0? : jsp:root xmlns=http://java.sun.com/JSP/Page version=1.2 : h1Cat amp; Dog/h1 : /jsp:root : : Generates : : h1Cat Dog/h1 : : Can anybody confirm that this is correct

Re: JSP Document

2003-09-06 Thread Marco Tedone
Actually I think it is, at least according to the HTML 4.01 Transitional. These are character entities and must be entered with the 'escape' character. These can assume a number or a character after the escape character. The only character which in some browsers is not rendered properly is the TM

Re: JSP Document

2003-09-06 Thread Sam Hough
Can still produce valid XHTML by doing Cat amp;amp; Dog But double escaping is not very friendly. I like the fact that JSP lets you generate any format HTML, XHTML, plain text and being able to write templates in XML but this is a bit ugly. Just want to check that it is meant to be this way

Re: Charset encoding issue

2003-09-06 Thread lima
But why when i modify or remove the enctype from form tag, the browser seems to forget the correct charset of these form fields ? Thanks. Hello Lima! lccb I have a jsp page with some form fields. I don't know how is the right way lccb to set the charset (because we're using portuguese

RE: JSP Document

2003-09-06 Thread Sjoerd van Leent
Other solution: ... Cat ![CDATA[amp;]] Dog /... Especially handy when using large portions of Normal text -Original Message- From: Sam Hough [mailto:[EMAIL PROTECTED] Sent: zaterdag 6 september 2003 19:40 To: Tomcat Users List Can still produce valid XHTML by doing Cat amp;amp; Dog

shutdown error

2003-09-06 Thread tizo
Hi, I have a problem when I try to shutdown tomcat. I have tried with version 4.1.24 and 4.1.27, but the problem happens with both versions. When I start the server (with startup.sh), and browse http://localhost:8080/index.jsp, and then shutdown it (with shutdown.sh), it works fine. The problem

class files being cached?

2003-09-06 Thread Mike Millson
other than .jar. For example, can I rename app.jar to app.jar.20030906 and leave it in WEB-INF/lib along with the new app.jar file, or could this cause servlet caching issues? Mike - To unsubscribe, e-mail: [EMAIL PROTECTED

Re[2]: Charset encoding issue

2003-09-06 Thread Anton Tagunov
Hello, Lima! AT if you want the form data to be encoded with charset XXX AT you need your page to have content type with charset XXX. LIMA form (...) enctype=multipart/form-data AT As far as I know enctype here is not required. LIMA But why when i modify or remove the enctype from form tag,

Re: Multiple Tomcat instances for virtual hosts

2003-09-06 Thread Dhruva B. Reddy
This doesn't really answer your question, but we've found Tomcat to be quite robust. You may also want to find out (if you don't already know) what's bringing the server down. -d --- Thomas Eichberger [EMAIL PROTECTED] wrote: Hi, I have Apache 1.3 and Tomcat 4.1.8 on a Red Hat 9 machine.

Advice wanted about mapping URIs to pages

2003-09-06 Thread Bob Langford
I'm trying to decide how to lay out my application. The major question is how to make Tomcat run it, but ideas for better organization would be welcome also. I'd better describe the setup, even though it's a bit lengthy. I'm running a separate instance of Tomcat, dedicated to this project. It's

Servlet front page without redirect - Tomcat 4.1 with mod_rewrite and mod_jk2

2003-09-06 Thread A. Zazula
Okay, I'm trying to solve my problem by using mod_rewrite with mod_jk2 now. I've spent several days on this problem to date and I'm more than a little frustrated. When the user types http://mysight.org; I want the page they get to be generated by a servlet but without a redirect. So they won't be

Re: Multiple Tomcat instances for virtual hosts

2003-09-06 Thread Bob Langford
Your plan should work pretty well. I do something similar myself. The major difference is that I use one installation of Tomcat for all the sites. I have a script to start tomcat for each site, that points CATALINA_HOME to the shared Tomcat binaries, and CATALINA_BASE to the conf/, logs/,

Re: PROBLEMS: memory / cpu usage - Tomcat 3.2.1 - SOLVED!

2003-09-06 Thread Sai Sivanesan
ok. i have found my elusive problem. our client has a site with fairly moderate usage. and over the years we have changes the site a fair bit. it seems that the problem stems from requesting a jsp file that is no longer on the server - once the 404 is logged, the apache - tomcat connection

RE: Memory leaks?

2003-09-06 Thread Sai Sivanesan
may be a little off topic, but - check to see if you are logging any 404 messages on the tomcat side - i have found that memory and cpu idle time seem to dissappear with every 404 request passed over to tomcat from apache Sai. On Fri, 5 Sep 2003 12:09:52 -0500, Mike Curwen wrote After about

Setting up Tomcat in Windows 2000 Advanced Server

2003-09-06 Thread Anson Zeall
Dear Tomcat users, I've recently installed JDK 1.4.2 and Tomcat 4.1.27 on Windows 2000 Advanced Server. But it doesn't seem to work. This is what happened: 1. I set up three accounts in the computer (the default acct 'administrator', 'aa', 'bb'), all with Administrator permissions 2. I set

Re: Multiple Tomcat instances for virtual hosts

2003-09-06 Thread Sai Sivanesan
I really like the idea of setting up multiple instances of Tomcat per virtual site - i have 2 questions: 1) How does it affect memory usage, i.e. if we are on a server with X ammount of ram and there are 20 sites, does each site end up needing a minimum of ~21 MB RAM for tomcat so we have a

RE: Setting up Tomcat in Windows 2000 Advanced Server

2003-09-06 Thread Anson Zeall
Hahahha!! I've solved my own problem again!! ..sorry about that guys -Original Message- From: Anson Zeall [mailto:[EMAIL PROTECTED] Sent: Sunday, September 07, 2003 11:25 AM To: Tomcat Users List Subject: Setting up Tomcat in Windows 2000 Advanced Server Dear Tomcat users, I've

Missing ManagerServlet

2003-09-06 Thread achana
Hi All. I'm on TC404 Its seems someone has walked off with my org.apache.catalina.servlets.ManagerServlet. Where can I find a copy that I can javac in the hope that finally, the manager would work. Cheers :-) - To unsubscribe,

Re: JSP Document

2003-09-06 Thread Bill Barker
My reading of the JSP spec says that Tomcat is correct here. If you need to preserve the escape, then follow Sjoerd's suggestion. Sam Hough [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 4.1.27 on Win32 given ?xml version=1.0? jsp:root xmlns=http://java.sun.com/JSP/Page

Re: class files being cached?

2003-09-06 Thread Bill Barker
that they want. 2) Storing old jar files in the WEB-INF/lib with extensions other than .jar. For example, can I rename app.jar to app.jar.20030906 and leave it in WEB-INF/lib along with the new app.jar file, or could this cause servlet caching issues? Any file in WEB-INF/lib that doesn't end

Re: shutdown error

2003-09-06 Thread Bill Barker
You are attempting the shutdown too soon (before Tomcat has finished coming up). Wait 30sec or so and try again. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have a problem when I try to shutdown tomcat. I have tried with version 4.1.24 and 4.1.27, but the problem happens

Re: Servlet front page without redirect - Tomcat 4.1 with mod_rewrite and mod_jk2

2003-09-06 Thread Bill Barker
This can be done for: 1) TC 3.3.2-dev with a non-default setting. 2) TC 5.0.9+ with default settings. You can't currently do this on any 4.x version. A. Zazula [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Okay, I'm trying to solve my problem by using mod_rewrite with mod_jk2 now.

Re: Debugging mode?

2003-09-06 Thread Bill Barker
Tim's comments are very good, and should be followed. However, this error is usually because you've b*rked up your web.xml file, and the context isn't loading at all. Your log files should be a help in determining which element is out-of-order. Thomas Hehl [EMAIL PROTECTED] wrote in message

Bit confused: Admin Tool vs Manager Application

2003-09-06 Thread achana
Hi All. I'm on TC404, looking at manager configuration. Is Administration Tool only available in TC3.x? Is the Manager Applicatio only available in TC4.1+? Seems like TC404 is somewhere in between. - To unsubscribe, e-mail:

Re: Bit confused: Admin Tool vs Manager Application

2003-09-06 Thread Bill Barker
The 'admin' Context in 3.3.x is similar tothe 'manager' Context in 4.1.x. There are big difference when you get down to the specifics (e.g. 3.3 doesn't include Ant tasks), but in Big Picture terms, they do much the same thing from the HTML interface. [EMAIL PROTECTED] wrote in message news:[EMAIL