RE: Mod_jk/firewall configuration problems

2006-06-20 Thread Serlet Jean-Claude
Please give the configuration of your workers : the workers.properties.file Have you set worker.yourworker.socket_keepalive=1 in it ? Jean-Claude _ De : Greg Allen [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juin 2006 16:42 À : users@tomcat.apache.org Objet : Mod_jk/firewall conf

Re: Http11AprProtocol took 2 hr to init on http-443

2006-06-20 Thread Jeff Chuang
I could reproduce this problem on ALL my dual core AMD Opteron servers running FC5-x86_64. Not sure it is OS porting problem? JVM problem? native jni problem? or combination? Is it possible to configure Tomcat to use APR on port 80, but disable APR on port 443 to use regular java keystore PKCS12

Re: Tomcat's scalability

2006-06-20 Thread Alex Turner
Please see http://java.sun.com/developer/technicalArticles/Programming/linux/ Java on linux has been natively multithreaded since 1.3 Please also note that having a max threads of 750 is pretty much gaurtenteed to cause your system to grind to a halt under high load. (Most linux systems I've see

Re: file upload speed.

2006-06-20 Thread CMSuser
Antonio, I've done other experiments (without tomcat) where the upload speed is better. There are no throughput constraints in the network/server configuration. Unless it's internally imposed by tomcat webserver. Are there any such constraints in tomcat ? is this throughput difference deliberate

How to access server configuration from a servlet

2006-06-20 Thread Smith Ran
I have a Tomcat 5.0 server running on a 1.4 JRE I was wondering if there was any way to access server configuration (in server.xml etc.) from a servlet? Is there a way to determine where the server is installed on the system etc.? I would like to basically determine the server's SSL keystore an

Re: pdf documents

2006-06-20 Thread Mark Thomas
Bob Wyatt wrote: > Mark, > > I appreciate all of your help and energy on my behalf... > > But alas, this does not work for me... Hmmm. Can you post your server.xml (with any passwords etc blanked out). Thanks, Mark - To start

RE: pdf documents

2006-06-20 Thread Bob Wyatt
I'm afraid not... Regards, Bob -Original Message- From: Mladen Adamovic [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 18:15 To: Tomcat Users List Subject: Re: pdf documents Bob Wyatt wrote: > If I move the pdf to the webapps/appname directory, it will display just > fine. > >

RE: pdf documents

2006-06-20 Thread Bob Wyatt
Mark, I appreciate all of your help and energy on my behalf... But alas, this does not work for me... "The requested resource (/myapp/jsp/app/C666119.pdf) is not available..." I removed the $CATALINA_HOME/webapps/myapp/WEB-INF/pdf.xml, and I modified $CATALINA_HOME/webapps/pdf.xml to read: # mo

Calling URL in same web app to get resulting HTML?

2006-06-20 Thread David Wall
Is there a way to call a JSP within my web app so that I can capture the HTML that the JSP produces? I'd like to capture that HTML and store it in a file rather than returning it as part of the response. I have tried java.net.URL, but it has issues when testing over HTTPS (self-signed certs)

Re: UTF-8 headers and JSP included files

2006-06-20 Thread Mark Thomas
Dariusz Wojtas wrote: > Any hints how to get rid of these extra FFFE chars? > My included files need to be UTF-8 encoded. Use a text editor that doesn't insert these characters automatically. Mark - To start a new topic, e-mail:

Re: Need help running tomcat 5.5.9 on Windows Server 2003 64bit

2006-06-20 Thread Mark Thomas
Bauer, Michael E wrote: > The current tomcat binaries are all win32. I need help in getting a binary > (tomcat.exe and tomcatw.exe) that will > run on Windows 2003 - 64bit. > I currently use tomcat 5.5.9 on Windows Server 2003 32bit. I am trying to > migrate to Windows Server 2003 64bit runnin

Re: pdf documents

2006-06-20 Thread Mark Thomas
Bob Wyatt wrote: > Sorry, I should have read you post more carefully. The above works for 5.5.x but for 5.0.x you will need On this version directory listings are enabled so http://host:port/pdf should return a directory listing. > So I then copied pdf.xml to $CATALINA_HOME/webapps/app

Re: How does Tomcat detect whether a browser accepts cookies

2006-06-20 Thread Leon Rosenberg
You could check for your cookie in first request and if not present just set the cookie in the request and redirect to another page which reads the cookie (btw, it can also be done with javascript without user-visible-reload). The difference to your approach that each user will be redirected exa

Re: Tomcat's scalability

2006-06-20 Thread Leon Rosenberg
On 6/21/06, Mladen Adamovic <[EMAIL PROTECTED]> wrote: Leon Rosenberg wrote: >> > Teoreticly, your servers should be faster if you configure 4 Tomcat >> > instances (4 JVMs) to do round robin. >> > You should be able to improve performances almost 4x. >> could you explain why?? >> I wanted to ask

How does Tomcat detect whether a browser accepts cookies

2006-06-20 Thread Garey Mills
Hi - I have an application that does not work correctly when the browser does not accept cookies. I added some code that rewrites the query string the first time the app is entered to include a new parameter and then redirects to the app. I watch for that parameter and if I find it I check

Re: pdf documents

2006-06-20 Thread Mladen Adamovic
Bob Wyatt wrote: If I move the pdf to the webapps/appname directory, it will display just fine. I don't want to move the hundreds of pdf files the appname directory. Do the following work? Create webapps/appname/pdf as a symbolic link directory to /whatever/you/want/path/to/pdf ? -- Ml

Re: Activating a batch file when Tomcat service is started

2006-06-20 Thread Mladen Adamovic
Amir Weiss wrote: How can I make a batch file activated when the Tomcat service is (re)started? You could make it activated before first web access. use static MyClass = new MyClass() in index.jsp In MyClass constructor use something like: Process proces=null; try {

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
Leon Rosenberg wrote: > Teoreticly, your servers should be faster if you configure 4 Tomcat > instances (4 JVMs) to do round robin. > You should be able to improve performances almost 4x. could you explain why?? I wanted to ask the same question.. forget it. it was wrong. I think I wasn't wrong.

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
Biernatowski Bartosz J wrote: I am about 90% sure the bottleneck is Tomcat or what's running on top of Tomcat. Application uses JDBC queries to MS SQL server Chips are Intel Xeon. My monitoring data: Memory utilization under 30%, CPU under 10%. Using hardcore performance tools and systematic app

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
Darryl Miles wrote: LOL. Each HTTP request/response cycle is handed off to a worker thread, the available worker threads are dynamically increased to cope with the number of the simultaneous HTTP requests being processed in the moment. But isn't it Java threads. I'm speaking of operating sy

Re: Tomcat's scalability

2006-06-20 Thread Mladen Adamovic
Leon Rosenberg wrote: Isn't Tomcat and JVM still single threaded? Single thread = single processor usage I don't think it was ever singlethreaded. And if it were, what would the Connector setting in the server.xml mean? Max number of Java thread, IMHO. Java thread is not the same as operating

RE: Tomcat's scalability

2006-06-20 Thread Biernatowski Bartosz J
I wanted to thank everybody who shared their Tomcat scalability stories/tips with me! Thanks a lot! BJ Biernatowski Application Developer -Original Message- From: Sérgio Costa [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 9:39 AM To: Tomcat Users List Subject: Re: Tomcat's scala

Tomcat 5.5.17 and Ant

2006-06-20 Thread Daniel Herbison
I'm trying to install a webapp in a different base directory other than webapps under the tomcat base, using ant. This worked perfectly under 4.1.31 but under 5.5.17 it wants to dump the application in webapps. What have I forgotten or over looked? The ant build file looks like this:

Tomcat Virtual Hosts

2006-06-20 Thread Leonel
Reading the 2.4 Servlet Spec I found this : --- SRV.3.6 Multiple Hosts and Servlet Contexts Web servers may support multiple logical hosts sharing one IP address on a server. This capability is sometimes referred to as "virtual hosting". In this case, each logical host mu

UTF-8 headers and JSP included files

2006-06-20 Thread Dariusz Wojtas
I have an app, written in Struts+JSP. Encoding works perfectly, no rpoblem with the special characters/requests/responses. Except for one annoying thing. My JSP pages use includes: <[EMAIL PROTECTED] file="../someFile.jsp"%> Some pages include 3-5 other pages. They are all (top level + include

RE: How do I pass option to Tomcat on startup only?

2006-06-20 Thread Tim Lucia
I use the following in ${CATALINA_HOME}/conf/setenv.sh: #!/bin/sh if [ "$1" = "start" ] ; then CATALINA_OPTS="$CATALINA_OPTS \ -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9086 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.manage

jsessionid + apache mod_rewrite

2006-06-20 Thread Norman Barker
Hi, I am using Apache and mod_jk as a front end to my tomcat instance. I wish to map a request parameter that is coming from a client which is specified as sessionid (I have no control over this). Using mod_rewrite I have success mapping sessionid to jsessionid as follows when sessionid appears

Re: Tomcat's scalability

2006-06-20 Thread Sérgio Costa
Be aware that Firewalls are known to drop idle TCP conections after a certain amount of time. We experienced a similar problem with a DB2 JDBC conection pool through a Cisco PIX. What was happening was the conections were closed by the firewall. When they were re-used, there was an added overhea

Re: Tomcat creating two threads for one request

2006-06-20 Thread ametsi
Having a similar problem, I would like to know if you have found any solution on this... -- View this message in context: http://www.nabble.com/Tomcat-creating-two-threads-for-one-request-t1743271.html#a4958276 Sent from the Tomcat - User forum at Nabble.com. ---

Re: pdf documents

2006-06-20 Thread Suba Suresh
I will try googling. I have been struggling with it for sometime even playing with context.xml file. thanks, suba suresh. David Smith wrote: I can put something together, but not until tonight -- it'll take too long to do at work. In the meantime, feel free to google. This is such a simple

Re: Tomcat java processes eat processor.

2006-06-20 Thread Leon Rosenberg
look at this: http://moskito.anotheria.net/moskitodemo/mui/mskShowAllProducers RequestURIFilter is probably what you want you can install this monitoring application by simply adding a filter entry to your web.xml. This way you'll see which requests are currently executed and which uris lasting

Mod_jk/firewall configuration problems

2006-06-20 Thread Greg Allen
I am having a problem with mod_jk.so. I have apache set up as my web server, forwarding my jsp traffic to a tomcat server running on the same machine.   This setup works fine when the client is inside of my firewall. However, when I try to access my site from outside the firewall, mod_jk

Re: Tomcat java processes eat processor.

2006-06-20 Thread Rick Cockerham
Not sure what you mean. I can recompile and deploy the code with no problems. So, probably... Leon Rosenberg wrote: On 6/19/06, Rick Cockerham <[EMAIL PROTECTED]> wrote: I wish it would give me a stack trace. That would be wonderful. The part I left out was just a list of all the load

Re: pdf documents

2006-06-20 Thread David Smith
I can put something together, but not until tonight -- it'll take too long to do at work. In the meantime, feel free to google. This is such a simple item I'm sure someone has done it before and posted their experiences. --David Suba Suresh wrote: I am in the same boat as Bob. I already ha

Re: How do I pass option to Tomcat on startup only?

2006-06-20 Thread David Delbecq
Hello, JAVA_OPTS is an environnement variable, you can set / unset it at will. Just only set it up when you want to start, not when you want to shutdown. Example 1 (using only 1 bash session) export JAVA_OPTS="-Xmanagement" bin/startup.sh unset JAVA_OPTS bin/shutdown.sh Example 2 (using 2 dif

RE: Tomcat's scalability

2006-06-20 Thread Hyatt, Gordon
We had an application (with connection pooling and validation query) running on TC5.0.28 (now on TC5.5.17) connecting to MS SQL Server using the Microsoft JDBC drivers. When tomcat and the database were on the same side of the firewall performance was great (averaged < 20ms obtaining connection

RE: Why has Tomcat Undeployed my Applications?

2006-06-20 Thread Peter Stavrinides
Hi Antonio Thanks very much for your help what you have said makes perfect sense. I will try it! Thanks Peter -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: 20 June 2006 16:11 To: Tomcat Users List Subject: Re: Why has Tomcat Undeployed my Applications? Peter

Re: pdf documents

2006-06-20 Thread Suba Suresh
I am in the same boat as Bob. I already have a servlet displaying the filenames to select from. My servlet is mapped to a different name in web.xml file. How should I proceed. Should I have another new servlet? What about for different file formats. Should it also be mapped? thanks, suba sures

How do I pass option to Tomcat on startup only?

2006-06-20 Thread Daniel Serodio
I'm running Tomcat on Linux, and I want to enable the JMX agent (-Xmanagement). If I add "-Xmanagement" to the JAVA_OPTS variable, this option will be passed to the JVM both on Tomcat startup _and_ shutdown. The problem is that when I try to shutdown Tomcat, the -Xmanagement option is passed to the

RE: pdf documents

2006-06-20 Thread Bob Wyatt
David, Thanks for the reply... This is over my head... is there a guide to learn to do this, or do you perhaps have one that you would be willing to share? I'm very, very new to this whole thing, and I know very little (next to nothing) about the innards of all of this... Regards, Bob -Origi

Re: pdf documents

2006-06-20 Thread David Smith
I would recommend a servlet that streams the files from some configured absolute path(s) to the client. It's reasonably simple and allows you some degree of control over what is delivered. Map the servlet to *.pdf in your web.xml to make it respond to all requests for pdfs. --David Bob Wyat

RE: pdf documents

2006-06-20 Thread Bob Wyatt
For the client side, sure. I already know it works if I copy the pdf file under my tomcat application... I just don't want to move hundreds of files there... Regards, Bob -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 07:30 To: Tomcat Users

RE: pdf documents

2006-06-20 Thread Bob Wyatt
Mark, Thank you very much for the reply... To be honest, I am so new to Tomcat configuration that it is not fair to the beginners to say that I am a beginner... I have tried the pdf.xml file in /usr/local/Jakarta-tomcat-5/webapps. Before testing, I did shutdown Tomcat and restart it. The file con

Re: Why has Tomcat Undeployed my Applications?

2006-06-20 Thread Hassan Schroeder
On 6/20/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: Why here? Your context information should be put either in the server.xml file or in /META-INF/context.xml The directory that you used is temporary, AFAIK. Utterly wrong; please read the doc --

Re: Why has Tomcat Undeployed my Applications?

2006-06-20 Thread Antonio Petrelli
Peter Stavrinides ha scritto: I deploy my xml configuration files in: C:\Tomcat\conf\Catalina\localhost Why here? Your context information should be put either in the server.xml file or in /META-INF/context.xml The directory that you used is temporary, AFAIK. HTH Antonio --

Re: file upload speed.

2006-06-20 Thread Antonio Petrelli
CMSuser ha scritto: Hi, I'm using Tomcat 5.5.15 to transfer files. I get a throughput of roughly 20% on 100Mbps LAN whereas the download throughput is 95% approx. How can I make the uploads faster ? Just a thought, though you are in a LAN, is the server in an ADSL? If yes, you know what the

Re: Problem to download a file from 2 browsers at the time

2006-06-20 Thread password password
I think is the version of Tomcat. I have tried with other version (5.5.9) and it is working. My actual version of Tomcat is 5.5.4, I thing it is problem. Or something the configuration in the tomcat: time, number of conexions,... - LLa

Why has Tomcat Undeployed my Applications?

2006-06-20 Thread Peter Stavrinides
Hi I am running Tomcat 5.5 and Tapestry on windows. I store my eclipse workspaces and the application files on another server (Linux). I deploy my xml configuration files in: C:\Tomcat\conf\Catalina\localhost When the Linux server was rebooted, Tomcat subsequently undeployed all my application

Re: Problem to download a file from 2 browsers at the time

2006-06-20 Thread David Delbecq
Just ran it out of curiosity here on a tomcat 5.5.17, works perfectly. Only noticeable thing is that the first file get slowed down when you start second file, but it's quite to be excpected. Measured speed: 6M/s, files are not mixed together One thing worth noticing, is that brtowser do t

Invalidate SSL-session

2006-06-20 Thread Gert-Jan Kreeft
I am using Tomcat 5.5 in combination with a HTTP-connector that is configured with TLS and client-authentication. Users log in to my web application with a client certificate from a smartcard. When users try to log out, the HTTP-session is invalidated but the SSL-session key remains valid for

Re: Tomcat 5.5.17 APR/SSL Client Certificat

2006-06-20 Thread frankpeng
The authorty who issues the certificate has to be authorized(imported) in the browser. Then the certificate has to be imported into the browser. The server's host name must match the host name in its certificate. Then the client's host name must match the host name in its certifcate. Do not

Activating a batch file when Tomcat service is started

2006-06-20 Thread Amir Weiss
Hi, How can I make a batch file activated when the Tomcat service is (re)started? thanks, --Amir.

Re: Problem to download a file from 2 browsers at the time

2006-06-20 Thread password password
Hi, Yes I have tried with small numbers and the result is the same. I see you have tried because you know how many MB have the files. If you has tried, do you have this problem that the files are incompletes? - LLama Gratis a cualquie

Re: File system inaccessible to application running under Tomcat

2006-06-20 Thread Mark Thomas
Stephen Gray wrote: > I'm assuming that there is come configuration option that causes Tomcat > not to be able to see the local file system but I can't think what it > might be - I'm not starting Tomcat with a security manager. When running as a service, tomcat runs under the local system user by

Re: pdf documents

2006-06-20 Thread Martin Gainty
Those files are in a proprietary format..you'll need to go to adobe and get the PDF plugin/viewer for display- M- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received th

file upload speed.

2006-06-20 Thread CMSuser
Hi, I'm using Tomcat 5.5.15 to transfer files. I get a throughput of roughly 20% on 100Mbps LAN whereas the download throughput is 95% approx. How can I make the uploads faster ? Thanks, Aman. -- View this message in context: http://www.nabble.com/file-upload-speed.-t1816944.html#a4953136 Sent f

Re: Problem to download a file from 2 browsers at the time

2006-06-20 Thread Mir Kasim Ali
Better u give the link to file and enter the mime type xls application/vnd.ms-excel In \conf\web.xml and Restart the server Hope this will work On 6/20/06, password password <[EMAIL PROTECTED]> wrote: I have this JSP that download an excel file. It works fine if I use only one browser at th

Re: Problem to download a file from 2 browsers at the time

2006-06-20 Thread Mir Kasim Ali
Better u give the link to file and enter the mime type xls application/vnd.ms-excel In \conf\web.xml and Restart the server Hope this will work On 6/20/06, Rajeev N. Jha <[EMAIL PROTECTED]> wrote: Look at the code, look at the loops, You are trying to download some 105 MB files !!! nombre

Re: Yet Another Clustering Problem

2006-06-20 Thread Pid
Shades of embarrassment. Our server clocks weren't sync'd. It all works, just like it says it ought to. Which was nice. Pid wrote: > > We're running the following: > > Apache2.2 + Tomcat5.5.17 > mod_proxy, mod_proxy_ajp, mod_proxy_balancer > on 2 linux boxes (one of which has a DB) > > Serv

Re: Need help running tomcat 5.5.9 on Windows Server 2003 64bit

2006-06-20 Thread Markus Schönhaber
Leon Rosenberg wrote: > errm, there are tomcat binaries Tomcat is pure java, so tomcat > binaries should be jars fully unaware of your architecture (which is > than covered by the selection of the proper jdk). Read the first sentence of the OP again. Michael is talking about the service wrapp

Re: Need help running tomcat 5.5.9 on Windows Server 2003 64bit

2006-06-20 Thread Leon Rosenberg
errm, there are tomcat binaries Tomcat is pure java, so tomcat binaries should be jars fully unaware of your architecture (which is than covered by the selection of the proper jdk). leon On 6/20/06, Bauer, Michael E <[EMAIL PROTECTED]> wrote: The current tomcat binaries are all win32. I ne

Need help running tomcat 5.5.9 on Windows Server 2003 64bit

2006-06-20 Thread Bauer, Michael E
The current tomcat binaries are all win32. I need help in getting a binary (tomcat.exe and tomcatw.exe) that will run on Windows 2003 - 64bit. I currently use tomcat 5.5.9 on Windows Server 2003 32bit. I am trying to migrate to Windows Server 2003 64bit running on the Intel EM64T processor. A

Re: Problem to download a file from 2 browsers at the time

2006-06-20 Thread Rajeev N. Jha
Look at the code, look at the loops, You are trying to download some 105 MB files !!! nombre is like 15 bytes at least (a) either you wait for a real long time (b) or you set the content-length in advance (c) or better still try with small numbers for (int l=0;l<30;l++){ for (int k=0;k<

Re: Problem to download a file from 2 browsers at the time

2006-06-20 Thread password password
I have tried in others browsers and the result is the same. The files are download but incomplets. And while the JSP continues executing the code, a don't understand. "Rajeev N. Jha" <[EMAIL PROTECTED]> escribió: password password wrote: > I have this JSP that download an excel file. > It

Re: Problem to download a file from 2 browsers at the time

2006-06-20 Thread Rajeev N. Jha
password password wrote: I have this JSP that download an excel file. It works fine if I use only one browser at the same time. The problem is when I try to do this but from 2 browsers at the same time, (for example in a same computer). From each browser I can download a part of the file but

Re: Http11AprProtocol took 2 hr to init on http-443

2006-06-20 Thread Markus Schönhaber
Stephen Souness wrote: > Could it be related to some problems that Java has had on some Linux > distributions with obtaining entropy for its random number generation > for encryption? > > In the past (a few years back admittedly) we encountered a problem when > trying to connect our application to

Re: Http11AprProtocol took 2 hr to init on http-443

2006-06-20 Thread Markus Schönhaber
Jeff Chuang wrote: > Thanks for responses. If I put connector ajp-8009 configuration block > BEFORE connector http-443 in server.xml, the log looks like > > Jun 19, 2006 5:33:11 PM org.apache.coyote.http11.Http11AprProtocol init > INFO: Initializing Coyote HTTP/1.1 on http-80 > Jun 19, 2006 5:33:11

Problem to download a file from 2 browsers at the time

2006-06-20 Thread password password
I have this JSP that download an excel file. It works fine if I use only one browser at the same time. The problem is when I try to do this but from 2 browsers at the same time, (for example in a same computer). From each browser I can download a part of the file but not the complete file.

problem with jkmanager

2006-06-20 Thread Rafal Zawadzki
Hi. We set loadbalancing with jk (1.2.15) and apache (2.0) to six tomcats tomcats (two cluster). We found strage behavior of jkmanager - every refresh of page gives another result of "Acc Number of requests" - actually there is no requests at all. Why? Any idea? web3:~# links -dump http://1