Tomcat 5.5.17 has max 40 KB / sec

2006-09-22 Thread Steffen Heil
Hi I use tomcat 5.5.17 and want to upload files. As this was *very* slow in some cases, I wrote a benchmark servlet. Code is below. I get the following statistics: 1. Running server on debian linux it accepts about 8.5 MB / sec. (Could slowed down by VM overhead.) 2. Running server on windows xp

Re: How to monitor data in a request sent to a Tomcat server?

2006-09-22 Thread Martin Gainty
Instead of InputStream alone Use BufferedReader (with InputStream as a parameter) then use BufferedReader.readLine to read until the newline as in this example URL url = new URL("http://www.yoururl.com/";); URLConnection conn = url.openConnection(); BufferedReader in = new

How to monitor data in a request sent to a Tomcat server?

2006-09-22 Thread lingyan zhu
I have a client application that posts the content of a file using HTTP/1.0 POST, to a web application served on a Tomcat server. The client application generates the appropriate HTTP POST header, and writes the header, followed by the content of the file, out to the server using socket. The

RE: New session PER REQUEST

2006-09-22 Thread Bob Hall
--- Darren Hall <[EMAIL PROTECTED]> wrote: > Peter, > You are correct. When hitting Tomcat directly, the > session remains intact. > When using mod_proxy to forward requests to Apache > the session is lost. > Is this a common issue? How can I go about > correcting this? > > Thanks > - D I don't

Tomcat 5.0 Config with SQL Server 2005

2006-09-22 Thread Paul Wong
Dear all: I hope someone can give me some advices here. Here is some config. info for SQL Server 2000 and I am trying to have the application to talk to SQL 2005. I have downloaded the JDBC driver, but not sure what will be the correct configuration/steps: factory com.

RE: New session PER REQUEST

2006-09-22 Thread Darren Hall
Peter, You are correct. When hitting Tomcat directly, the session remains intact. When using mod_proxy to forward requests to Apache the session is lost. Is this a common issue? How can I go about correcting this? Thanks - D -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED

SocketExceptions under load

2006-09-22 Thread Parham, Clinton
Hello, I'm using JMeter 2.2 to perform load testing against a web application running on Tomcat 5.5.16 on a Windows 2003 server. When I simulate 200 users all is well. When I jump up to about 300, I start seeing SocketExceptions in JMeter as shown below - somewhere between 5% and 10% of the req

RE: New session PER REQUEST

2006-09-22 Thread Peter Crowther
> From: Darren Hall [mailto:[EMAIL PROTECTED] > I'm running a webapp built on Struts 1.2.9 running in Tomcat > 5.5 and using > an Apache 2.2 http server. I've noticed that any value I put into the > session is always removed after one request/response cycle. > In the Tomcat > Manager, I can see

New session PER REQUEST

2006-09-22 Thread Darren Hall
I wasn't sure if my issue was a Tomcat issue or a Struts issue, so I posted it here just in case. I have a serious problem. I'm running a webapp built on Struts 1.2.9 running in Tomcat 5.5 and using an Apache 2.2 http server. I've noticed that any value I put into the session is always removed

RE: Filter Like behaviour within Tomcat Itself?

2006-09-22 Thread Peter Crowther
> From: Mike Wannamaker > What I would like to do is have something registered with > Tomcat so that all > requests that come to all contexts, or configured per > context, will first go > through this class before even getting to the applications > servlets/filtes. You want a Valve. These can

Re: Logging application messages to a file instead of to the console

2006-09-22 Thread Mark Barnes
Shiby - Could you show us the code where your code creates your Logger and set your Formatter and Handler, then give us an example where your code actually uses the Logger to log a message? ---Mark Shiby Maria John wrote: Ok thanks . . . Sorry Shiby, I've got no idea about the java log

Filter Like behaviour within Tomcat Itself?

2006-09-22 Thread Mike Wannamaker
What I would like to do is have something registered with Tomcat so that all requests that come to all contexts, or configured per context, will first go through this class before even getting to the applications servlets/filtes. This itself would act much like a Filter does, but I don't want to

RE: Tomcat and IIS - quick setup

2006-09-22 Thread Peter Crowther
> From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] > http://tomcat.apache.org/connectors-doc/howto/iis.html - is > there any simpler way? No. IIS does not have built-in proxying. > I'm thinking also about running Tomcat standalone on port 80 > listening on another IP address. That's a simpl

IIS and Tomcat

2006-09-22 Thread Timo Erbach . netbixx
Hi, I´ve just connected IIS 5 to Tomcat 5.5.17. The delivery of the webpage (a simple jsp) is very slow. Calling he same jsp to Tomcat directly (Port 8080) the site is displayed very fast. What configuration do I have to change to speed up the delivery through IIS? Regards Timo ---

Re: Tomcat Training Recommendations?

2006-09-22 Thread Emre Ersoz
what kind of training? just documentation i have checked so far.. On 9/6/06, Jeanna Geier <[EMAIL PROTECTED]> wrote: Hi- I'm looking for some recommendations for training on Tomcat. Has anyone out there attended any training and have any recommendations (good or bad)? Thanks, -Jeanna

Tomcat and IIS - quick setup

2006-09-22 Thread Mikolaj Rydzewski
Hi, In the near future I'll face the problem of integrating Tomcat with IIS server. I'm a unix guy for a years, so it frightens me a little ;-) I have read http://tomcat.apache.org/connectors-doc/howto/iis.html - is there any simpler way? Something similiar to in Apache? How do you integrat

RE: Looking for someone to review a Tomcat setup.

2006-09-22 Thread Charles P. Killmer
Thanks for the thought. I am the DB admin as well it happens at random times through the days and weeks. Also SQL Server creates backups online. I am more interested in someone coming and looking through the system for configuration issues. Charles Killmer 720 St Germain. Suite 200 Saint

Re: Looking for someone to review a Tomcat setup.

2006-09-22 Thread Tim Funk
My first guess would be your database server is taken down for cold backups once a week and the JDBC driver is barfing on that. [Assuming its pooling driver of some kind] Good luck -Tim Charles P. Killmer wrote: Is anyone in the Central Minnesota area interested in reviewing a Tomcat 5.5 set

Looking for someone to review a Tomcat setup.

2006-09-22 Thread Charles P. Killmer
Is anyone in the Central Minnesota area interested in reviewing a Tomcat 5.5 setup and providing suggestions for proper setup? I have a number of production sites running on it and everything was working fine on it. Now about once a week, one of the sites will stop responding. I need to log in an

Re: HttpSession loose attributes.

2006-09-22 Thread Christopher Schultz
Dzmitry, > When i do the same with jsp or html files everything is OK. > Where is my mistake? How to make this "fast deployment" without loosing > session. If the objects you put into the session do not implement Serializable, then your session will fail to re-load along with the webapp. When y

2nd try: directory permissions question

2006-09-22 Thread jason
hey tomcat-heads, I have apache-tomcat-5.5.17 installed on a solaris 10 box. When my users create their applications, they end up in /var/local/user/apache-tomcat-5.5.17/webapps with drwxr-r-x permissions on the directory under webapps. what I want, it for it to show up as drwxrwr-x (group wri

RE : Context file and path

2006-09-22 Thread LASSIEGE Hugo
Thanks for this quick answer. Hugo -Message d'origine- De : Markus Schönhaber [mailto:[EMAIL PROTECTED] Envoyé : vendredi 22 septembre 2006 15:30 À : Tomcat Users List Objet : Re: Context file and path LASSIEGE Hugo wrote: > I just migrate from tomcat 5.0.27 to tomcat 5.5.17. But I hav

Re: Context file and path

2006-09-22 Thread David Smith
I remember an old thread suggesting you name your context xml file myapp#mymodule.xml -- try it and let us know. --David LASSIEGE Hugo wrote: Hi, I just migrate from tomcat 5.0.27 to tomcat 5.5.17. But I have some problems in context.xml file. Previous to migration, I had a in a console.xml f

Re: download a custom setup file

2006-09-22 Thread Christopher Schultz
Balaraju, > I need good help from all of you. My problem is i need to give a user a URL > link which will download a application to usersystem. I will append a id to > that URL, so that when ever a user clicks and downloading application that > application will need to read or recognizes that valu

Re: Context file and path

2006-09-22 Thread Markus Schönhaber
LASSIEGE Hugo wrote: > I just migrate from tomcat 5.0.27 to tomcat 5.5.17. But I have some > problems in context.xml file. > Previous to migration, I had a in > a console.xml file (in Catalina/localhost). I reach my page through > http://localhost:8080/myapp/mymodule. > > > In 5.5.17, path is not

Context file and path

2006-09-22 Thread LASSIEGE Hugo
Hi, I just migrate from tomcat 5.0.27 to tomcat 5.5.17. But I have some problems in context.xml file. Previous to migration, I had a in a console.xml file (in Catalina/localhost). I reach my page through http://localhost:8080/myapp/mymodule. In 5.5.17, path is not read anymore and I reach my pag

Re: Custom Principal casting problem

2006-09-22 Thread Darren Clarke
Sorry all - my bad. Suggestion 3 in the WIKI (http://wiki.apache.org/tomcat/HowTo#head- cb66e750a22dea34b56f508dd675ed3c2e2e221a) works perfectly as advertised. For the archive, my problem was due to an old JAR lurking in server/ lib that I thought had gone, so my custom principal interface

Re: tomcat + axis service:

2006-09-22 Thread Kristian Rink
Mark, list; ...at first, thanks a lot for your hint. :) Am Fri, 22 Sep 2006 07:23:29 -0400 schrieb Mark Thomas <[EMAIL PROTECTED]>: > > attachments. So far, recieving and decoding messages (small sizes, > > or locally) works well, but external tests using the remote sender > > client and bigge

Re: tomcat + axis service:

2006-09-22 Thread Mark Thomas
Kristian Rink wrote: > > Folks; > > I am running an (axis-based) SOAP web service inside a tomcat 5.5 > environment to link two subsidiaries of our company. This service is > supposed to recieve messages including very large (> 100 MB) MIME > attachments. So far, recieving and decoding messages (

Re: Upload Exception - Time out error

2006-09-22 Thread Mark Thomas
Sandeep Darvekar wrote: > Hello, > > Is there any limit configuration on tomcat that restricts uploading the > files above 2MB size? See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html You want maxPostSize Mark - To

Re: URL Redirection

2006-09-22 Thread Ashirvad Uniyal
Hello, The images that are referenced using the '.' current directory operator are visible when the folder is renamed ROOT but not the other images for example please look for the src="/jpivot/toolbar/cube-up.png" in the page source. I want to reference these images aswell with the '.' opera

download a custom setup file

2006-09-22 Thread balaraju mandala
Hi All, I need good help from all of you. My problem is i need to give a user a URL link which will download a application to usersystem. I will append a id to that URL, so that when ever a user clicks and downloading application that application will need to read or recognizes that value which w

Webapps outside webapps directory cannot access shared/classes

2006-09-22 Thread _Seb_
Hi, I have several webapps that need to access a shared properties configuration file. To do so I put this file in shared/classes. I works well, I don't know if this the right way to do, if you have better ways to do so you can tell them to me. Now I have to conditionnaly launch my webapps at to

Re: Java path

2006-09-22 Thread Li
Tomcat has knowledge of what version java is if it can find where java home dir is. take a look at the startup file (.bat for windows and .sh for linux/unix), you will have a brief idea on how tomcat starts On 9/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: So Tamcat has no information a

AW: Java path

2006-09-22 Thread news
So Tamcat has no information about the Java version to use by itself? This is hard to believe, because the System where Tomcat is running on never had a JAVA_HOME path defiend and Tomcat run great on it until the Java update. Also during the Tomcat installation process the wizard asks for an Java i

Re: Java path

2006-09-22 Thread Li
in windows: echo %JAVA_HOME% see if there is anything in linux/unix echo $JAVA_HOME see if there is anything normally if you export JAVA_HOME, and add to path, you should be able to use tools in /bin directly so make sure your JAVA_HOME is exported On 9/22/06, [EMAIL PROTECTED] <[EMAIL PROTE

Java path

2006-09-22 Thread news
Hello List, I ve Tomcat5 running and updated Java. Since then Tomcat refuses to start up because it can not find Java anymore. Where can I define the Java path for Tomcat to work with? I tried to set JAVA_HOME, but Tomcat still would not work :( Thanks! --

tomcat + axis service:

2006-09-22 Thread Kristian Rink
Folks; I am running an (axis-based) SOAP web service inside a tomcat 5.5 environment to link two subsidiaries of our company. This service is supposed to recieve messages including very large (> 100 MB) MIME attachments. So far, recieving and decoding messages (small sizes, or locally) works wel

Handling Tomcat Errors in Apache

2006-09-22 Thread Edward Quick
Hi, I have an Apache 2 -> mod_jk -> Tomcat 5.5.16 set up and I'm trying to get Tomcat errors handled by Apache. In Apache I have: ErrorDocument 404 /cgi-bin/error.cgi And in Tomcat's web.xml I have 404 /cgi-bin/error.cgi I guess the location tag is wrong here as it doesn't work, bu