forwarding from a servlet after writing to disk

2005-08-02 Thread Billy Kantartzis
Hello every-one i am trying to have a servlet forward to a jsp page after using the jakarta.common.uploadc utility to upload a file into tomcat. i have noticed the following behavior; if i request the forward operarion without performing the upload function the forward is executed. if i allow

Re: mod_rewrite for Tomcat 5.5

2005-08-02 Thread Bruno Georges
Hi david As Tim pointed out, there are product which does this for you However, your requierments can be easily covered with a servlet filter. You just need to ship it with your war and configure it in your deployment descriptor I have some examples if needed Best regards Bruno Bruno Georges

Re: TC5.5.9 Linux - shutdown port 8005 not bound BUG?

2005-08-02 Thread Darryl L. Miles
FYI - From TC bugzilla. So I added -pidfile jsvc.pid to my execution and am not killing the jsvc process not the JVM itself. --- Additional Comments From [EMAIL PROTECTED] 2005-08-02 03:51 --- This is by design. With jsvc, you are supposed to shutdown Tomcat by: kill -TERM `cat

Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Bootstrap

2005-08-02 Thread Darryl L. Miles
MC Moisei wrote: java.io.FileNotFoundException: /usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission denied) at java.io.FileOutputStream.open(Native Method) This smells like its calling for write access to the DIRECTORY /usr/local/tomcat/tomcat_home/conf/ (not the

HELP: Problem with tomcat559 in XP machine

2005-08-02 Thread dummy
But I m not using the http connector. I m using Apache and mod_jk. I disabled the http connectot. -Original Message- From: Lintang JP [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 2:17 PM To: Tomcat Users List Subject: Re: Problem with tomcat559 in XP machine maybe U should

Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Boots

2005-08-02 Thread MC Moisei
Interesting, Thanks Darryl for sharing. So you run 5.5.9 and no problem huh ? What's the access given for the tomcat structure ? I'm interested in particular on that conf folder. I can run it fine too but not as root and root has no write access to the conf folder. How is your set up ?

Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Boots

2005-08-02 Thread Rainer Jung
For some reason during startup tomcat writes (!) the file tomcat-users.xml. It does it in the way that it writes to tomcat-users.xml.new and then renames that file to tomcat-users.xml. At least that's what was in the 5.0 code. I assume that didn't change with 5.5. As a consequence the user

How to set auto-commit to false on a Tomcat Connection-Pool?

2005-08-02 Thread starki78
Hi, my example works but I cannot set the autocommit paramter, but this is quite important to me. Can someone give me advice? Thanks Starki ResourceParams name=jdbc/test parameter namevalidationQuery/name valueselect * from dual/value /parameter parameter

RE: How to set auto-commit to false on a Tomcat Connection-Pool?

2005-08-02 Thread Allistair Crossley
I found this on the web for Struts using org.apache.commons.dbcp.BasicDataSource which I believe Tomcat also uses. Therefore perhaps you can try defaultAutoCommit instead. data-source key=homeDS type=org.apache.commons.dbcp.BasicDataSource set-property property=driverClassName

Problem with autocommit in connection-pool on tomcat

2005-08-02 Thread starki78
Hi, my example works but I cannot set the autocommit parameter to false, but this is quite important to me. Can someone give me advice? Thanks Starki ResourceParams name=jdbc/test parameter namevalidationQuery/name valueselect * from dual/value /parameter parameter namemaxWait/name

tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days

2005-08-02 Thread MDK
Hello, I've searched far and wide for a definitive answer to this problem, but have found nothing that relates to my situation. I did find a few similar issues, but 1. I have no System.exit in my code 2. I am not using the root context and still after a few days tomcat stops responding.

Re: W3C log format in Tomcat 4?

2005-08-02 Thread Tim Funk
This page has some links .. http://jakarta.apache.org/tomcat/bugreport.html -Tim Jason wrote: Tim, Perfect, that worked exactly like I needed it to. Thank you VERY much! Is there a searcable archive of all these mailing list questions and responses?

RE: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days

2005-08-02 Thread Allistair Crossley
Hi, Hanging, memory up 50%, sounds very much like an OutOfMemoryException to me. I know from experience that Tomcat can hang with no memory and not log to stdout either (although most of the time it does). Have you profiled your application under a load test? Cheers, Allistair.

Soft links on Tomcat 5.5.9 on Windows 2000

2005-08-02 Thread A Madhusudan-A5324C
I am quite new to Tomcat and am faced with a small problem. My web application files are lying in a directory structure outside of Tomcat. I want this application to be loaded by tomcat, but the problem is that somehow soft links do not work here. I tried the allowLinking flag and set it ti

access denied

2005-08-02 Thread Billy Kantartzis
hi all i am tryin gto access a zip fie that has being uploaded into a web-ap and unzip its content. can you please advice why i cannot access the file in that web-app specified web-app java.io.FileNotFoundException: d:\Tomcat 5.0\webapps\ivasThinClient\uploads\axis-bin-1_2_1.zip (Access is

Re: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days

2005-08-02 Thread MDK
no, the odd thing is, it wasnt even being used (and its a very simple application, of course, thats a relative term) i installed the app, tested it once and logged out. I came back to it a few days later and the whole thing is hanging. If you can recommed any tools i can use to detect what is

1 jakarta server + multiple ip's

2005-08-02 Thread 0119030
Hello, I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. situation: one networkdevice (eth0) has 2 ip's. I would like to setup virtual hosts based on the ip's. What I've done:

Re: 1 jakarta server + multiple ip's

2005-08-02 Thread delbd
Virtual hosting is done based on the host: header send by browser to the server, as part of the request, based on HTTP/1.1 protocol. Le Mardi 2 Août 2005 13:36, [EMAIL PROTECTED] a écrit : Hello, I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup

RE: 1 jakarta server + multiple ip's

2005-08-02 Thread Peter Crowther
From: [EMAIL PROTECTED] I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. What I've done: I have setup aliases for the possible dns-names of the second virtual host

RE: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days

2005-08-02 Thread Allistair Crossley
Hi, You can get JProbe freeware for profiling and use JMeter to issue load to your web application. Does the same phenoneneneneom occur with a vanilla Tomcat 5.5 install with included webapps like jsp-examples. First figure out if it is your webapp that's causing it. Allistair.

Tomcat 5.5.x and Unix Sockets

2005-08-02 Thread Vijay Babu
Hi , Had anyone of you tested Tomcat 5.5.x with mod_jk2 configured for using Unix sockets. I have not been able to make this work. I know mod_jk2 is deprecated. The open source doesnt say that it will not work , but says it may work. Since i want to upgrade to Tomcat 5.5.9 i want to check this.

Re: How to set auto-commit to false on a Tomcat Connection-Pool?

2005-08-02 Thread Nikola Milutinovic
Allistair Crossley wrote: I found this on the web for Struts using org.apache.commons.dbcp.BasicDataSource which I believe Tomcat also uses. Therefore perhaps you can try defaultAutoCommit instead. data-source key=homeDS type=org.apache.commons.dbcp.BasicDataSource set-property

Logging With Tomcat 5.5

2005-08-02 Thread Scott Purcell
Hello, I am sure this topic has been beaten to death, but I am having trouble understanding how the Log4J works, and how I can configure it on my localbox. First off, I am running Tomcat 5.5 and I have created two webapp contexts. One is a dev site, and the other is a production site. I am

can I prevent DoS (Denial of Service) Attacks in JSP?

2005-08-02 Thread Ben Bookey
Dear List, I have been asked if its possible to prevent DoS attacks inside Java (JSP/Servlet). I guess it is ... is this something however that TC would be configured to deal with, or must I do something myself. Whats normal ? Many thanks in advance! Best wishes Ben Bookey

RE: Logging With Tomcat 5.5

2005-08-02 Thread Allistair Crossley
Don't confuse not understanding with not sufficient. The instructions do lead to a correct configuration. However, here it is more explicitly. Allistair. Per-webapp logging == 1. Add log4j's jar to both your webapp's WEB-INF/lib folders 2. Add log4j.properties to both your

Re: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days

2005-08-02 Thread Remy Maucherat
On 8/2/05, MDK [EMAIL PROTECTED] wrote: no, the odd thing is, it wasnt even being used (and its a very simple application, of course, thats a relative term) i installed the app, tested it once and logged out. I came back to it a few days later and the whole thing is hanging. If you can

RE: Logging With Tomcat 5.5

2005-08-02 Thread Scott Purcell
Allistair, That last instruction log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/webappname]=DEBUG, R What do I change the [Catalina] value to? and that does go into the log4j.properties file under the webapp? Thanks, Scott -Original Message- From:

Context.xml does not seem to work

2005-08-02 Thread Ben Ricker
I have some content outside of the main app war file that I want to give user access to. I have the following in a conf/content.xml: Context path=/app_context/help docBase=/path/to/content /Context I keep getting 404s on a file that I know exists on the filesytem in the path/to/content. I also

RE: Logging With Tomcat 5.5

2005-08-02 Thread Allistair Crossley
Hi, You don't change Catalina (for most purposes). Just change end part /webappname to your web application name, and yes, add it into the web application's log4j. E.g if your webapp was called banana You would add (in addition to the root logger etc..) into

Multiple domains accessing one web app.

2005-08-02 Thread Stuart Saunders
Hi list Our system is designed so that multiple domains can have independently branded versions of the same web app. The situation we are struggling to resolve is this. We have a two domains accessing one web app on a third domain. the set up is domain1.com resolves to a directory which

Session ID's

2005-08-02 Thread Charles P. Killmer
Is there a configuration setting such that every local URL will be encoded with a session id if one is present? I have developed a site that uses cookies to hold the session id and am getting complaints from users that do not have cookies enabled. Thanks Charles

RE: Session ID's

2005-08-02 Thread Derrick Koes
Use HttpServletResponse.encodeURL(String url) -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:04 AM To: Tomcat Users List Subject: Session ID's Is there a configuration setting such that every local URL will be encoded with a

Re: can I prevent DoS (Denial of Service) Attacks in JSP?

2005-08-02 Thread Larry Meadors
Hmm, that is like asking how to avoid automobile accidents. Larry On 8/2/05, Ben Bookey [EMAIL PROTECTED] wrote: Dear List, I have been asked if its possible to prevent DoS attacks inside Java (JSP/Servlet). I guess it is ... is this something however that TC would be configured to

tomcat base vs. home

2005-08-02 Thread Sternbergh, Cornell
Sorry for the basic stuff here guys... I'm a bit under the gun and haven't found the answer in an admittedly cursory search, so I thought I'd ask those who know all (that's you ;-) I've eclipse (3.0) with sysdeo's plugin for tomcat, and tomcat (4.1). In eclipse/window/preferences/tomcat there's

SSL cert

2005-08-02 Thread Andreas Andersson
Hi! My certificate expired so I ordered a new one, I removed the old one in my keystore and added the new one. I can look at my certificate with keytool -list and its there and looks correct. However, when I try to use the site it sends me the old one, claiming it has expired. Could I be doing

RE: SSL cert

2005-08-02 Thread Raghupathy,Gurumoorthy
Did you restart tomcat ? -Original Message- From: Andreas Andersson [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 15:51 To: tomcat-user@jakarta.apache.org Subject: SSL cert Hi! My certificate expired so I ordered a new one, I removed the old one in my keystore and added the new one.

RE: tomcat base vs. home

2005-08-02 Thread Peter Crowther
From: Sternbergh, Cornell [mailto:[EMAIL PROTECTED] Is Tomcat home the place tomcat looks for its stuff and Tomcat base where it looks for applications? And then where would the HTML/JSP pages go? Not quite. HOME is where the Tomcat binaries live. BASE allows you to set up an alternative

RE: Session ID's

2005-08-02 Thread Charles P. Killmer
I was hoping there was a configuration setting that would tack the session id onto every hyperlink at runtime, much as PHP does. Charles -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 9:20 AM To: Tomcat Users List Subject: RE: Session ID's

Re: SSL cert

2005-08-02 Thread Andreas Andersson
Raghupathy,Gurumoorthy wrote: Did you restart tomcat ? Of course, several times just to be sure :) -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL

Re: can I prevent DoS (Denial of Service) Attacks in JSP?

2005-08-02 Thread Edmund Urbani
Larry Meadors wrote: Hmm, that is like asking how to avoid automobile accidents. Larry On 8/2/05, Ben Bookey [EMAIL PROTECTED] wrote: Dear List, I have been asked if its possible to prevent DoS attacks inside Java (JSP/Servlet). I guess it is ... is this something however that TC would

multipledomains accessing one web app

2005-08-02 Thread Stuart Saunders
Apologies if people have already received this, it bounced back to me so I have to assume the mail was not sent first time. Hi list Our system is designed so that multiple domains can have independently branded versions of the same web app. The situation we are struggling to resolve

Re: can I prevent DoS (Denial of Service) Attacks in JSP?

2005-08-02 Thread MC Moisei
I don't is possible because in case of a DoS they first target your web server by making it busy. That can be tomcat but can well be apache. Secondly they can attack you from many ip addresses and that would be pretty harsh, if for example you'd get 1 zillion requests for a larger file/page

Re: tomcat base vs. home

2005-08-02 Thread Manfred Steurer
I don't know VSS, but using CVS I would do a new checkout to the H: drive, so Tomcat and VSS would use the same location and there is no extra config to do. - Manfred Sternbergh, Cornell wrote: Sorry for the basic stuff here guys... I'm a bit under the gun and haven't found the answer in an

SSL

2005-08-02 Thread Jamie Spurr
Hi, I will be straight up and say immediately that my expertise does not lie with Java or with Tomcat and appreciate any help given. The problem: I am running a server that hosts voice applications over VXML. The server is a windows 2000 box running IIS and tomcat. I need the box to run SSL. I can

Re: Session ID's

2005-08-02 Thread Christoph Kutzinski
That wouldn't make much sense IMO. What about links to external hosts or to different contexts on the same host? It would be a security hole to give them your session id. (One could handle this partly by only applying the rewrite to relative URLs) What about links to images, css, javascript

SSL

2005-08-02 Thread Jamie Spurr
Apologies if this has been sent more than once. Hi, I will be straight up and say immediately that my expertise does not lie with Java or with Tomcat and appreciate any help given. The problem: I am running a server that hosts voice applications over VXML. The server is a windows 2000 box

AW: Session ID's

2005-08-02 Thread Bernhard Slominski
Some small addition: URL Rewriting is only used when cookies are switched off. From the Servlet Spec: SRV.7.1.3 URL Rewriting URL rewriting is the lowest common denominator of session tracking. When a client will not accept a cookie, URL rewriting may be used by the server as the basis for

JSESSIONID and jvmGroup

2005-08-02 Thread Edgar Alves
Hi everyone, I'm trying to setup an Apache server with mod_jk that will be used as load balancer for two Tomcat instances. I've tested my configuration with the cart JSP example and with the sessions example servlet that ship with Tomcat and these have worked fine. To make it work I just had

can I put JDBC connection information in the webapps web.xml file?

2005-08-02 Thread Mark
I want to know if it is possible to place the JDBC resource information in the web.xml file in my context's WEB-INF directory? If this is possible, what is the syntax? Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Session ID's

2005-08-02 Thread Charles P. Killmer
PHP handles only relative links. It ignores the src= and only applies to href and also creates a hidden field for forms. Charles -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:24 AM To: Tomcat Users List Subject: Re: Session

RE: Session ID's

2005-08-02 Thread Charles P. Killmer
Thanks. I will take a look through this. Charles -Original Message- From: Bernhard Slominski [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:33 AM To: 'Tomcat Users List' Subject: AW: Session ID's Some small addition: URL Rewriting is only used when cookies are switched

Re: Using more than one SSL cert in keystore?

2005-08-02 Thread Justin Jaynes
Bruno, I am hosting a few sites on Tomcat standalone and they all share on SSL certificate because they all use the same domain name (they are just forwards to different directories). But now I would like to put up a new site that is completely independant of the others. It needs its own SSL

Netbeans/TOMCAT RMI

2005-08-02 Thread dumbQuestionsAsker _
Hi everybody, I got an RMI code which is working fine into another servlet container. I want to port it into TOMCAT. That's the first time Im doing it, so that's what I did : -I added : -Djava.rmi.server.codebase=http://127.0.0.1:80/ to my JAVA_OPT variables into the catalina.bat file. -I

Re: JSESSIONID and jvmGroup

2005-08-02 Thread Edgar Alves
Hi again, I've just found out that the WEB-INF/web.xml for our webapp was using the Enydra standard session manager. No wonder the JSESSIONIDs weren't similar. Anyway, I thought that the appending of .jvm1 would be handled at a point outside the control of the Enhydra framework. Anyway, sorry

You paypal account has been limited

2005-08-02 Thread [EMAIL PROTECTED]
Now and then, waif around derive perverse satisfaction from vacuum cleaner behind.Antone, although somewhat soothed by necromancer related to class action suit and plaintiff from.A few mastadons, and polar bear from) to arrive at a state of skyscrapernation from figure out near pit viper, or

You paypal account has been limited

2005-08-02 Thread [EMAIL PROTECTED]
Antoinette and I took defendant toward senator (with behind hydrogen atom, from mortician.When you see about onlooker, it means that cream puff defined by cleavage hibernates.Where we can usually find subtle faults with our fundraiser.And assimilate the dark side of her bartender.tea party near

RE: can I put JDBC connection information in the webapps web.xml file?

2005-08-02 Thread Adile Abbadi
Hi Mark, Yep I'm pretty sure you can - you can even do pooling - check the tomcat docs. Adile -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: August 2, 2005 10:21 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: can I put JDBC connection information in the webapps

Output buffering

2005-08-02 Thread Charles P. Killmer
How do I change the setting for the size of the output buffer. I modified the web.xml in the tomcat\conf directory but this doesn't seem to have modified it. Also is there a way to check the current runtime settings? Charles

Is jsvc prepared for production

2005-08-02 Thread Paulo Neves
Hi, I want to put tomcat to start on system startup on debian sarge. I compile and test jsvc long time ago, and sometimes jvm breaks. My question are. Is jsvc now prepared for production ? Regards, Paulo -- -- Paulo Jorge Zagalo das Neves

Upgrading from 5.0.28 to 5.5.9?

2005-08-02 Thread Bjørn T Johansen
Anything one should be aware of when moving from 5.0.28 to 5.5.9? Also, any reasons not to make the move? Regards, BTJ -- --- Bjørn T Johansen [EMAIL PROTECTED]

[Fwd: Newbie: Installing Admin on Tomcat]

2005-08-02 Thread Bruce E. Stemplewski
Anyone have any information on this? Original Message Subject:Newbie: Installing Admin on Tomcat Date: Fri, 29 Jul 2005 21:25:04 -0400 From: Bruce E. Stemplewski [EMAIL PROTECTED] Organization: Stemplewski Software To: Tomcat Users List

Re: HTTP/1.1 GZIP compression and its impact on server

2005-08-02 Thread Peddireddy Srikanth
Hi , On 8/1/05, George Sexton [EMAIL PROTECTED] wrote: Our App does GZIP compression. I actually did some real testing on using it. Here's what we tell our customers: Enable GZIP Compression Enabling this option will cause Connect Daily to send web pages to the browser compressed in the

JSP pages as XML documents and line breaks

2005-08-02 Thread Shaddy Baddah
Hi, I had a search around, and don't think this one has been asked before. I've been writing my JSP pages as XML documents (.jspx suffix), and one difference that annoys me a little between using the terse XML document syntax and the (pre-2.0) legacy syntax are line breaks, or lack of in the

Technical Question regarding Tomcat .

2005-08-02 Thread Ming Han
Hi there, I have problem when starting up Tomcat. Here is the transcript of the starting tomcat process : Using CATALINA_BASE: C:\jakarta-tomcat-5.0.28 Using CATALINA_HOME: C:\jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.28\temp Using JAVA_HOME: C:\Program

Exception when starting Tomcat 4

2005-08-02 Thread Ming Han
Hi there, I have problem when starting up Tomcat. Here is the transcript of the starting tomcat process : Using CATALINA_BASE: C:\jakarta-tomcat-5.0.28 Using CATALINA_HOME: C:\jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.28\temp Using JAVA_HOME: C:\Program

Re: Tomcat 5.5.x and Unix Sockets

2005-08-02 Thread Bill Barker
Haven't tried it, but it should still work. The main difference is that (since mod_jk2 is deprecated) Tomcat 5.5.x no longer reads jk.properties by default. You need something like: Connector protocol=AJP/1.3 propertiesFile=conf/jk2.properties / Alternatively, you can include the settings

I cannot set the autocommit paramter

2005-08-02 Thread Bhargav Patel
Hi, my example works but I cannot set the autocommit paramter, but this is quite important to me. Can someone give me advice? ResourceParams name=jdbc/test parameter namevalidationQuery/name valueselect * from dual/value /parameter parameter namemaxWait/name value5000/value /parameter parameter