Session clustering and session stickiness - Performance issues (was Re: When is Tomcat 5 Release version scheduled to come out?)

2003-11-23 Thread Antonio Fiol BonnĂ­n
Hello Remy, I did not pretend to be whining. Sorry if it souded like that. And thank you very much for your response: I find it really useful. First, thank you for confirming my worries about JMeter not being the best available load testing tool. ** [OT] Do you know of a better (free if

IIS is not supported in Tomcat 4.1.29.

2003-11-23 Thread Roeland Meyer
Results of 3x19-hour daze of trying to get 4.1.29 working with IIS. Uncovered several major errors in both IIS HOW-TO and the Workers HOW-TO. There are three section to this email; 'General Complaints', 'IIS HOW-TO', and 'Workers HOW-TO'. General complaints: (in no particular order) 1) The

httpd 500s without tomcat 500s

2003-11-23 Thread J D
I see quite a few httpd 500s in the httpd access.logs without corresponding entries in the tomcat access.log. I am using Apache 2.0.42, mod_jk2, and Tomcat 4.1.24. Any suggestions on how I can debug these? Thanks _ Groove on the

how to customize HTTPSession

2003-11-23 Thread ppalavilli
Hi, I am new to the java webapp development. I want to store some user data for my app in a client side cookie rather than as a server side object and referencing it with a sessionId. One of the main reasons for that is - we will be running multiple servers load balancing. Since the

Re: how to customize HTTPSession

2003-11-23 Thread Mark R. Diggory
You might look into implementing the javax.servlet.hhtp.HttpSessionBindingListener interface, this will allow you to act when an object is added/removed from the session. Simply put, you could write valueBound/UnBound methods that set Cookies into the HttpResponse. -Mark [EMAIL PROTECTED]

Re: how to customize HTTPSession

2003-11-23 Thread ppalavilli
Thanks Mark - the problem with using HTTPSessionBindingListener is that the unbound event is not triggered unless someone calls the session.removeAttribute() or session.setAttribute(name, null). So there is no way for me to set the cookie from the unbound() event without explicitly calling one

HTTP 404 response for directory listing

2003-11-23 Thread Atreya Basu
Hi, I've been tackling this problem since September, I'm hoping someone can shed some light here. I want a directory listing of my files e.g; http://www.somesite.com/directory/ --outputs a dir listing. I am using mod_jk2 with Apache 2.0.4x. If I comment out the LoadModule mod_jk2 I can get a

HELP_About_tomcat4_mod_jk_apache_clustering

2003-11-23 Thread Ingmars Rubenis
Hello! I have 3 tomcat instances on 1 computer. I use tomcat 4.1.24 with mod_jk2 and apache 2.40 I have used clustering. It did not help. (http://www.apache.org/~fhanik/ , http://www.javagroups.com/javagroupsnew/docs/papers.html). Does anybody knows good clustering mechanism which works on

Re: how to customize HTTPSession

2003-11-23 Thread Tim Funk
With the functionality you desire, stay away from the Session classes as defined in the servlet API. Any developer will be greatly confused if they try to read your code created by your description below since you are mixing well known terminology and assumptions. Instead, look into Filters

Tomcat cannot fine java classes

2003-11-23 Thread Werner Daum
Hi, I have the following problem with tomcat 4.1.27: my java classes cannot be found. When I request a JSP which uses a java class, I get messages like this: File not found: 'http://134.xxx.yyy.zzz:8080/learnweb/servlet/learnweb.module.admin.userinterface.web.AdminGroupServlet' In this case

Apache Tomcat connector FAQ admin?

2003-11-23 Thread Oscar Carrillo
Hi, I have to move my tutorial listed on the Apache Tomcat Connector FAQ page. I'm wondering who I should contact. I couldn't find the contact info on the FAQ. I guess it's not Frequent enough:) I believe I remember Tim Funk starting it, but maybe it's changed now. I don't have a new URL yet,

Re: shared object cache

2003-11-23 Thread Christopher Schultz
Rob, I have written a PersistenceManager class that handles all database access and uses the SQLData interface to map java objects to User Defined Types in the oracle database. Every request now has to create a new instance of the persistencemanager so there is no sharing whatsoever. I would like

Re: Starting Tomcat as nobody...

2003-11-23 Thread Christopher Schultz
Tim, % sudo -u nobody /path/to/startup.sh This seems to work. Pros, Cons? I don't have a ton of experience with sudo, but it seems like a good idea -- you can lock down the operations that a user is capable of doing, etc. I have production machines that startup tomcat on boot, and I have

lame,encoding problem

2003-11-23 Thread bwasko
Hi I have a strange problem. On my jsp pages use utf-8 encoding. Because of problems in my struts application I use the tomcat-example-encoding-filter and set it in web.xml to utf-8 and to processing all requests . It works , tomcat starts normally . When I submit a form i can get the request

Re: connect tomcat5.0.14 and oracle8i server problem

2003-11-23 Thread Christopher Schultz
I have install sucess fully tomcat5.0.14 and oracle8i server. but when I am going to connect those two there was a problem (exception). You have omitted the most important part of this question: the stack trace. Please submit that and we'll take a look. -chris

Re: Tomcat and Servlet Debugging

2003-11-23 Thread Christopher Schultz
Simon, Can you tell me what the following means please:- javax.management.InstanceNotFoundException: MBeanServer cannot find MBean with ObjectName What's the log message immediately before this? The log file usually says something like: ServerLifecycleListener: Creating MBean for [Some

Re: Workers.properties for 4.1.29

2003-11-23 Thread Christopher Schultz
Roeland, does one exist and where can I get a example? The version for 3.x has huge differences and my Tomcat 4.1.29 does not have one (contrary to all the dox). I'm also following the IIS HOW-TO and finding huge descrepencies. The workers.properties file has more to do with the connector that

Re: IIS is not supported in Tomcat 4.1.29.

2003-11-23 Thread Christopher Schultz
Roeland, From an unrelated thread: You don't pretend to win the coveted Whiner Of The Month award with this, I hope. There's a lot of competition, you know. I think this post gets my vote for this coveted award. Everyone: you have only 7 days left to submit your entries! There are three

Re: how to customize HTTPSession

2003-11-23 Thread Christopher Schultz
Tim, With the functionality you desire, stay away from the Session classes as defined in the servlet API. I completely agree. Instead, look into Filters and HttpServletRequestWrapper and HttpServletResponse wrapper. Ideally, you'd create some helper classes which do the gets and sets on the

Re: HTTP 404 response for directory listing

2003-11-23 Thread Christopher Schultz
Atreya, I want a directory listing of my files. I am using mod_jk2 with Apache 2.0.4x. If I comment out the LoadModule mod_jk2 I can get a directory listing. But if not, I get a 404 error in Apache and then I get a 404 error page generated by Tomcat. It looks like Tomcat is handling the

Re: HTTP 404 response for directory listing

2003-11-23 Thread Atreya Basu
That's the weird part. My workers2.properties uri directive is just for .jsps. It is as follows: [uri:www.mysite.com/*.jsp] group=ajp13:/usr/local/apache2/logs/jk2.socket So I'm not sure why directory requests get forwarded to Tomcat. Christopher Schultz wrote: Atreya, I want a directory

Re: lame,encoding problem

2003-11-23 Thread Christopher Schultz
Bartek, But then when I do something with these parameters and my mysql database I get then them wrong encoded and all data read from mysql are wrong encoded . Hmmm... if you use your Java code to insert some text into the DB, does it look okay when you read it back out using the mysql

Re: Tomcat cannot fine java classes

2003-11-23 Thread Christopher Schultz
Werner, I have the following problem with tomcat 4.1.27: my java classes cannot be found. When I request a JSP which uses a java class, I get messages like this: File not found: 'http://134.xxx.yyy.zzz:8080/learnweb/servlet/learnweb.module.admin.userinterface.web.AdminGroupServlet' Can you post

Re: HTTP 404 response for directory listing

2003-11-23 Thread Christopher Schultz
Atreya, That's the weird part. My workers2.properties uri directive is just for .jsps. It is as follows: [uri:www.mysite.com/*.jsp] group=ajp13:/usr/local/apache2/logs/jk2.socket So I'm not sure why directory requests get forwarded to Tomcat. Hmmm.. that *is* odd. And you say that if you

Re: lame,encoding problem

2003-11-23 Thread David OBrien
The sun JDK 1.4.2 release mucks encoding up... I went back to 1.4.1 and all was fine. -Dave At 07:45 PM 11/23/2003, bwasko wrote: Hi I have a strange problem. On my jsp pages use utf-8 encoding. Because of problems in my struts application I use the tomcat-example-encoding-filter and set it in

Re: httpd 500s without tomcat 500s

2003-11-23 Thread Bill Barker
J D [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I see quite a few httpd 500s in the httpd access.logs without corresponding entries in the tomcat access.log. I am using Apache 2.0.42, mod_jk2, and Tomcat 4.1.24. Any suggestions on how I can debug these? A lot of these are

Re: lame,encoding problem

2003-11-23 Thread Christopher Schultz
David, The sun JDK 1.4.2 release mucks encoding up... I went back to 1.4.1 and all was fine. How does JDK 1.4.2 muck up the encoding? I'm using 1.4.2, my file.encoding appears to be UTF-8, and I have no problem with any of the text that I store in my MySQL database. -chris

tomcat start and stopping

2003-11-23 Thread Tom Bartos
Does anyone have any scripts to start and stop tomcat during system boot and shutdown? Environment Solaris 8 sparc Tomcat 4.1.29 Apache 1.3 Thanks -Tom

Re: Severity less - DBCP not closing connection.

2003-11-23 Thread Antony Paul
Thanks a lot for the info. I need more explanation. I thought that Tomcat creates a new thread to serve the new request and continues execution of the current servlet thread after a forward() or redirect(). Now you mean that only after the forward() method is completed the control returns

Re: HTTP 404 response for directory listing

2003-11-23 Thread Atreya Basu
Hi, In terms of URI directives that is the only one. I don't have a specific directive in httpd.conf to include workers2.properties, that file gets loaded automatically when I load the jk2 module. Also I don't have any JkMount directives in my httpd.conf file. I wonder if anyone is able to

ScriptAlias equivalent in tomcat

2003-11-23 Thread Yochi Toledano
Hi, I'm running tomcat version 4.X on HPUX system as a standalone server. I have read the CGI howto for tomcat and I have enabled CGI capability on the server. My question is - How can I define additional directory that contains CGI scripts other than the default one that comes with

Servlet Response Wrapper not able to get JSP data: how to control flush?

2003-11-23 Thread Vincent Chain
I thought I should not be the only one with this issue, but I searched the tomcat-user and tomcat-dev mailing lists and could not find a good answer. There are some changes made between tomcat4.0.4 and tomcat4.1.18 and I can see the exact discussions on the tomcat-dev list (under the thread

Re: Apache 2, Tomcat 5, and JK2.

2003-11-23 Thread John Bell
Hi, Can anyone point me to a how-to please. Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Production Issues

2003-11-23 Thread Arnab Chakravarty
Hi, What do you use to balance the load between the apaches ? -We are using the mod_jk to load balance between apaches. The load is not high during the other week days but only twice in a week. Some things you have to keep in mind: - mod_jk isn't perfect in balancing the load for one Apache