RE: Tomcat 3.x failures

2002-06-27 Thread Tom Parker
I have a Tomcat 3.2B6 install on Linux (Debian 2.2), w/ Apache . The server seems to work fine, but the log files constantly report the errors below, about each 4 seconds. after a day or so log files of hundreds of MB are common. Did you install the deb from the main Debian archive? I

RE: Is there ways to minize the memory used by tomcat ?

2002-07-11 Thread Tom Parker
I am developing an application using tomcat. As I put development, testing and production in the same environment. And each environment has 2 instances. So there are now altogather 6 instances in the machine. My machine is getting slower. Actually, my application is only a small one and

RE: tomcat/unix security manager questions

2002-08-19 Thread Tom Parker
On Tue, 2002-08-20 at 03:13, Rossen Raykov wrote: Unix permissions do take precedence over java security policy. With a logical AND. If unix permissions say you do have write access, but the java security policy says you do not, then you do not have write access, and vice versa. This, of

RE: Fumbling around Tomcat and Java and XML

2002-02-21 Thread Tom Parker
I need to add the ability to parse an XML document but have not been successful at getting to the right jar files. What import directive do I need to use in my servlet to get access to the DOM parsers available in the tomcat xerces.jar, or what environment settings do I need to check for

RE: j2sdk1.4 compilation errors, any good online source for info?

2002-03-20 Thread Tom Parker
Thanks for the answer, I'm trying to setup my CLASSPATH to find the jar file that contains the definition for String. My problem is that I can't find it!! It used to be in j2ee.jar in j2skee-1_3_01. You probably shouldn't be using any other definition of java.lang.String than the one in

RE: How can I automatically start a servlet in a specific time?

2002-04-10 Thread Tom Parker
Can anyone answer my question? How can I automatically start a servlet in a specific time? For example: at midnight. I don't want to start it when I start my webserver. Create an intialisation servlet who's init() method is called when the web application comes into scope. In the init()

Original URL from error page

2002-05-13 Thread Tom Parker
Hi, I'm trying to get the original URL of the page that caused and exception from an error page. http://www.jguru.com/faq/view.jsp?EID=227459 Has a solution and an explanation as to why it does not work. Does anyone know of a solution? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

RE: error page is included instead of redirection

2002-05-30 Thread Tom Parker
if there is a CORBA exception or other during my operations it seems that instead of the browser going to error.jsp it is doing an include inside the page (that is copying the code of error.jsp directly inside). I believe that this is due to the way redirection works. You can only redirect a

RE: Detect Cookie Rejection

2002-06-03 Thread Tom Parker
Does anyone know of a way to detect when cookies are not accepted by a browser. My site uses session cookies and I'd like to be able to redirect people somewhere to tell them that the site requires cookies and what to do to activate them... If a request comes in with one of your pages as

RE: ONE More Time! why does Tomcat 4 work this way

2001-12-06 Thread Tom Parker
What about just /images/butterfly.jpg? This assumes that your webapp is rooted at /bbb -- so you don't need to use that as part of your path. This is what I normally use with mod_jk. Don't know if it will work with mod_webapp, though. ./images/butterfly.jpg would work better. if you

RE: Huge apache-log in CATALINA_HOME/logs

2001-11-19 Thread Tom Parker
I´m using Tomcat 4.01 to run .jsp etc. with Apache 1.3.22 as webserver on W2K. I´ve been using this combination for about 2 days. Today I checked the log directory in CATALINA_HOME/logs and found log-file apache_log.2001-11-19.txt with the enormous size of 175 MB. Perhaps you might want to

Re: running tomcat on port 80 instead of port 8080

2003-07-03 Thread Tom Parker
On Fri, 2003-07-04 at 13:16, Neil Zanella wrote: Sorry if this is a FAQ but how can I run Jakarta Tomcat on port 80 rather than on port 8080? I guess all I have to do is change $CATALINA_HOME/conf/server.xml so that instead of: ... Yes, that should work. However if you are running on

Re: Need help with performance issue - Tomcat 4.1.X

2003-07-13 Thread Tom Parker
On Sat, 2003-07-12 at 08:08, [EMAIL PROTECTED] wrote: We are currently starting up with -Xmx256M. Java is currently using about 327MB and has been that way for hours. I haven't really seen any fluxuations at all, which leans me away from the garbage collection issue. Constant memory usage

Re: starting tomcat as non-root

2003-09-03 Thread Tom Parker
On Thu, 2003-09-04 at 13:48, [EMAIL PROTECTED] wrote: Hi all. I'm o TC4.0.4 I know this subject has been discussed many times before. Are we getting any close to starting tomcat with user nobody or tomcat or anything like that on 8080? Sorry for the repetitiveness su tomcat -c

Form Double Submit Detection

2003-10-27 Thread Tom Parker
I've designed my workflows so that they do not need to store anything in the user's session. This allows the user to conduct more than one instance of a particular task at the same time without data getting mixed up. However this presents me with a problem if the user double clicks the submit

RE: Form Double Submit Detection

2003-10-27 Thread Tom Parker
On Tue, 2003-10-28 at 12:26, Bill Lunnon wrote: Don't know if this is complimentary to your workflow, try a javascript confirm (ie a client side pop-up, asking the user to click Ok to continue). This will catch any double clicks on the client side. Unfortunatly I think our users would object

RE: Form Double Submit Detection

2003-10-27 Thread Tom Parker
On Tue, 2003-10-28 at 12:51, Justin Ruthenbeck wrote: Server side, instead of putting a token in the session when the page is *served*, put a token in the session while the submission is being processed (use it like a semaphore). The token has a finite lifecycle (created on form

RE: Form Double Submit Detection

2003-10-27 Thread Tom Parker
On Tue, 2003-10-28 at 14:18, Justin Ruthenbeck wrote: At 04:20 PM 10/27/2003, you wrote: On Tue, 2003-10-28 at 12:51, Justin Ruthenbeck wrote: Server side, instead of putting a token in the session when the page is *served*, put a token in the session while the submission is being

RE: Form Double Submit Detection

2003-10-27 Thread Tom Parker
On Tue, 2003-10-28 at 15:49, Justin Ruthenbeck wrote: Here's the situation (correct me if I'm wrong): + User fills out a form and clicks submit + The browser submits the form and sits in a wait state + The server begins processing a request for a new record + The user clicks

Re: Form Double Submit Detection

2003-10-28 Thread Tom Parker
On Tue, 2003-10-28 at 23:40, Adam Hardy wrote: I don't store the token in the session. When the form submits, I check the session for a hashmap, if the token is not in the hashmap, I allow the transaction and then put the token in the hashmap. Interesting. You store the successful tokens

Re: getRealPath woes

2003-11-04 Thread Tom Parker
On Wed, 2003-11-05 at 12:30, Jim Lynch wrote: On the dev. and prod. systems the getRealPath method returns the expected string. On the testing environment it returns null. I've found that getRealPath returns null when you are running your application from a war file without unpacking it. If

Re: Tomcat Settings and Performance

2003-11-16 Thread Tom Parker
On Sat, 2003-11-15 at 05:30, Christopher Schultz wrote: Steve, Maybe this is common knowledge, but you know never to do this right? String x = a + b; You have to do something like this: StringBuffer b = new StringBuffer(); b.append(a); b.append(b); Using StringBuffer