Garbage Collection configuration and Memory Leakage

2004-10-20 Thread kenny . xu
Hi, all We have deployed a third party web application in tomcat which translates HTTP requests from web clients into CORBA commands. We are seeing large increases in memory which never seems to be released. The memory sizes are checked every day with the ps -o

Latency on loading images

2004-10-20 Thread mario rossi
Hi, we are running tomcat 4.0.6 behind IIS4 and we are experiencing a wired behaviour: all requests coming from the internet seem to be quite slow due to the latency time between the images/javascript loading. Looking at the localhost_access log files we could see the following: once a given

how to send \u characters to tomcat

2004-10-20 Thread Xavier Frisaye
Hi all, I've got a question : how to send \u character to tomcat? (i mean unicode character (2 bytes)) With tomcat 4.x, there is an exception in isHexDigit. With tomcat 5.x, there are no more exception but the parameter send to the servlet is always null... Thanks in advance Regards Xavier

Re: how to send \u characters to tomcat

2004-10-20 Thread David Williams
All, How does apache run multiple process insted of just Multiple threaded? Where is: Jnjni.dll? Cheers David - Original Message - From: Xavier Frisaye [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 2:19 AM Subject: how to send \u characters to tomcat Hi

Including Zip functionality in a filter...

2004-10-20 Thread Ben Bookey
Dear list, I have seen an example of using a filter, to Zip/compress the outgoing request. This for me is an exciting way of speeding up the load time for my webApp. ( For those who dont know, most internet browsers have an integrated unzip function, so a server can send the client a zipped

encoding problems with UTF-8

2004-10-20 Thread mario rossi
Hello, upgrading from tomcat 4.0.6 to 5.0.19 we exerienced a problem concerning characters encoding. On our back-end we have an XSL transformation which processes some XML and produces the HTML that a servlet send to the client. It looks like everything works fine if the XSL output is set to

RE: encoding problems with UTF-8

2004-10-20 Thread Pawson, David
It looks like everything works fine if the XSL output is set to ISO-8859 but it doesn't with UTF-8. It does not seem to depend on the client browser either. Any idea? xsl:output method=html indent=yes encoding=utf-8/ xsl:template match=/ html head

Stability problems using Apache / Tomcat / jk2

2004-10-20 Thread Trond G. Ziarkowski
System: Debian testing i386 jdk1.5.0 Tomcat 5.0.28 - CATALINA_OPTS -ms64m -mx128m Apache 2.0.52-1 libapache-mod-jk2 2.0.4-3 MySQL 4.0.21-7 mysql-connector-java-3.0.15-ga Tomcat is running a service called Tomcat-Apache, an engine called Apache with a host called localhost. localhost has the

RE: Garbage Collection configuration and Memory Leakage

2004-10-20 Thread Dale, Matt
1. No there is no Garbage Collection configuration in tomcat. This is controlled by the JVM. 2. This is not possible. Garbage collection is kicked off when a pool in the JVM fills up and clears up all expired objects. For there to be a memory leak then there must be something keeping a handle

Re: Access to j_security_check directly

2004-10-20 Thread Andoni
Hi, This is an age-old problem, if you ever find a complete answer let me know. As for 95% complete answers here goes: 1. Your biggest problem is bookmarks. You need to always load you login page inside a frame. A single HTML page with a single frame can work fine, that way they'll bookmark

Re: Including Zip functionality in a filter...

2004-10-20 Thread Tim Funk
If your traffic is going across the internet (or a corporate WAN) - then you probably want to zip your output. If your traffic is all LAN based - compression will probably not make much of a difference. Don't worry about writing a compression filter - tomcat comes with one on its HTTP

RE: encoding problems with UTF-8

2004-10-20 Thread mario rossi
The http-equiv is correctly set... _ Blocca le pop-up pubblicitarie con MSN Toolbar! http://toolbar.msn.it/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: encoding problems with UTF-8

2004-10-20 Thread Benson Margulies
Who is processing the style sheet, tomcat or the browser? If you are calling TRaX in the browser, there is a problem with the interaction of Jasper and Xalan, such that you can't get TRaX to write directly to the JspWriter and get UTF-8 to come out.

RE: how to send \u characters to tomcat

2004-10-20 Thread Benson Margulies
See HttpServletRequest.setCharacterEncoding. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: filter config cause startup crash on Tomcat 5

2004-10-20 Thread Didier McGillis
the filter Tomcat no likie :) not sure what it is, any other suggestions. From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: filter config cause startup crash on Tomcat 5 Date: Tue, 19 Oct 2004 16:48:09 -0400 Try

problem for connecting HRACCESS

2004-10-20 Thread Laurent Duclos
Hi, We have a problem to connect on HRACCESS base with tomcat : when connecting on server http://servername:port/hraccess/framset.html?TREE=AA0FR http://servername:port/hraccess/framset.html?TREE=AA0FRLANG=FVOC=FRP LANG=FVOC=FRP we have the message : ID(ID113) : can not open session :

RE: encoding problems with UTF-8

2004-10-20 Thread mario rossi
The transformation takes place on the server (Xalan-java processor) and a servlet sends it back to the client. _ Ricerche online più semplici e veloci con MSN Toolbar! http://toolbar.msn.it/

Sticky session?

2004-10-20 Thread Srinivas Rao Ch
I want to deploy a web application in clustering environment. The request may be processed by any of the clustered members, but the response has to go from Load Balancer (LB) only. In case the client book marks the page he should be taken to the same server(LB) irrespective of the cluster member

RE: Sticky session?

2004-10-20 Thread Dale, Matt
For what you want to do the balancer application is not suitable as a load balancer as it merely redirects the request to another server and does not act as a proxy like some other kinds of load balancers. The session ID is stored in a cookie, referenced using the hostname. If you are

RE: Latency on loading images

2004-10-20 Thread Steve Kirk
as a shot in the dark, your servers might be making reverse lookups of IP to DNS name for logging purposes (or if you call request.getRemoteHost()), and if your DNS setup is performing slowly this might explain it. You don't mention whether the HTML page itself is returned quickly or not. if

Apache 2.0 - mod_proxy, mod_cache - and Tomcat 4.1.29

2004-10-20 Thread Neise, Volker
Hi, I am running Apache 2.0 with tomcat 4.1.29. The problem is performance: at the moment requests are going to Apache A. If the request is a JSP, than the request is handled by Tomcat via mod_jk. Tomcat runs and collects content out of a database and returns this to Apache A. The time for

Re: Apache 2.0 - mod_proxy, mod_cache - and Tomcat 4.1.29

2004-10-20 Thread David Smith
Have you thought of using something designed for this like Squid? Apache httpd is a little heavy duty to just be a caching proxy. --David Neise, Volker wrote: Hi, I am running Apache 2.0 with tomcat 4.1.29. The problem is performance: at the moment requests are going to Apache A. If the

RE: filter config cause startup crash on Tomcat 5

2004-10-20 Thread Phillip Qin
Have you changed it to url-pattern/sillyApe/*/url-pattern? BTW, post the error log. -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: October 20, 2004 8:17 AM To: [EMAIL PROTECTED] Subject: RE: filter config cause startup crash on Tomcat 5 the filter Tomcat no

Service and Multiple Instances

2004-10-20 Thread Kyle Adams
BACKGROUND: We're investigating migration from WebLogic 7 to Tomcat 5. As of WebLogic 7, BEA separates out configuration info, their equivalent of webapps, and other data into a separate directory, much like setting CATALINA_BASE to a different directory does for Tomcat. BEA did this to isolate

RE: Deployment with tomcat 5

2004-10-20 Thread Phillip Qin
1. build your war file using ant war directive. Below is my build target: war destfile=${dist}/${war.file} webxml=${basedir}/etc/web.xml !-- copy *.jsp to WEB-INF -- fileset dir=${basedir}/web/ !-- copy

adding HTTP headers for all responses in web application

2004-10-20 Thread Mark
Hi, It there any easy way to add few HTTP headers to ALL responses within one web application? What I'm looking is to prevent caching of error pages. I thought it will be greate to add those header: CacheControl = no-cache Pragma, no-cache Expires = -1 to all my servlet/JSP responces. But

RE: adding HTTP headers for all responses in web application

2004-10-20 Thread Phillip Qin
Have you thought of filter? -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: October 20, 2004 10:40 AM To: [EMAIL PROTECTED] Subject: adding HTTP headers for all responses in web application Hi, It there any easy way to add few HTTP headers to ALL responses within one web

RE: adding HTTP headers for all responses in web application

2004-10-20 Thread Mark
Sound like a good idea! Can you please point to a good filters-HOWTO? --- Phillip Qin [EMAIL PROTECTED] wrote: Have you thought of filter? -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: October 20, 2004 10:40 AM To: [EMAIL PROTECTED] Subject: adding HTTP headers

AW: Apache 2.0 - mod_proxy, mod_cache - and Tomcat 4.1.29

2004-10-20 Thread Neise, Volker
http://www.squid-cache.org/ might help. Any experiences with regard to Apache + mod_jk + Tomcat? Your cooperation is welcome. Mit freundlichen Grüßen, Volker Neise Süd-Chemie AG, Munich Corporate Information Management - Internet / Intranet Tel. ++49-89-5110-428 Fax ++49-89-5110-71428

RE: adding HTTP headers for all responses in web application

2004-10-20 Thread Phillip Qin
Both servlet spec 2.3 and book more servlets and javaserver pages are good references. Or search mail archive. It's easy to implement. -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: October 20, 2004 10:57 AM To: 'Tomcat Users List' Subject: RE: adding HTTP headers for all

RE: filter config cause startup crash on Tomcat 5

2004-10-20 Thread Didier McGillis
Got it! Stupid error. thanks From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: filter config cause startup crash on Tomcat 5 Date: Wed, 20 Oct 2004 09:57:48 -0400 Have you changed it to

R: Access to j_security_check directly

2004-10-20 Thread Renato Romano
... or try http://securityfilter.sourceforge.net in my case it works fine. You don't need those tricks, may put login box on your home page, or any other page, no need to request a protected page before logging in ... ___ Renato Romano Sistemi e Telematica

RE: adding HTTP headers for all responses in web application

2004-10-20 Thread Ben Souther
Search the archives, I believe Tim Funk has actually written and published one Not sure though. On Wed, 2004-10-20 at 10:57, Mark wrote: Sound like a good idea! Can you please point to a good filters-HOWTO? --- Phillip Qin [EMAIL PROTECTED] wrote: Have you thought of filter?

Tomcat 5.0.28 not starting

2004-10-20 Thread Andrea Mennini
Hi, I've tried to add SSL support to Tomcat 5.0.28 under Win 2000. In server.xml I've added: Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=9443 minProcessors=5 maxProcessors=75 maxThreads=150 minSpareThreads=25 maxSpareThreads=75

How to get a notfication if the user closes its browser?

2004-10-20 Thread Stephan Coboos
Hi, I need to send a very very big set of data within a servlet to the users browser. But if the users canceles the transmission or closes its browser I need to cancel writting the data to save resources. But if the user canceles the response during transmission I don't get a

Tomcat Manager Status

2004-10-20 Thread Phillip Qin
Could any insider confirm StatusServlet doesn't render /manager/status page using xform.xsl? There are xform.xml and status.xsd but I couldn't find any reference to them in the servlet. It still uses PrintWriter. Regards, PQ Going to war for peace is like having sex for virginity

RE: Tomcat Manager Status

2004-10-20 Thread Phillip Qin
Don't bother. It's in Constants. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: October 20, 2004 11:57 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Manager Status Could any insider confirm StatusServlet doesn't render /manager/status page using xform.xsl? There

AW: Apache 2.0 - mod_proxy, mod_cache - and Tomcat 4.1.29

2004-10-20 Thread Steffen Heil
Hi For your problem, remove apache completely, use tomcat standalone and use squid as frontend cache. As static content will also be cached by squid, you can completely remove the overhead of apache and mod_jk. Regrads, Steffen smime.p7s Description: S/MIME cryptographic signature

RE: How to get a notfication if the user closes its browser?

2004-10-20 Thread Steve Kirk
Not sure about using SocketWriteException. A less elegant approach might be to put a javascript function in the page that is called when the window is closed. That JS function could call a servlet that you can write. (This is a bit OT though because it's really to do with HTML rather than

Re: Stability problems using Apache / Tomcat / jk2

2004-10-20 Thread David Williams
All, I really need some percise help. I've been dinking with this for days and I have 8 copies of Instructions of how to do this and none of it works for me. I have Apaches 2.0.47 in c:\apache2 I have Tomcatp 5.0.xx in c:\tomcat I have Windows 2000k Pro I have php and mysql running as mod's in

Tomcat classloading...a theory question..

2004-10-20 Thread Ben Bookey
Dear List, Which packages would normally be used by an app. running on Tomcat 4 and Tomcat 5, if identical packages are placed in the paths, i) common\lib ii) mywebapp\WEB-INF\lib iii) jre\lib\ext (Java-Run-Time) It would be logical to me that the version in the app WEB-INF\lib directory

Fw: Windows 2000 Pro

2004-10-20 Thread David Williams
Windows 2000 ProAll, This procedure was the closest I got to working.. and seems most accurate but.. It's still jacked up for my Directory.. I've recieve Socket erros.. and just all kinds of Fun! Cheer David - Original Message - From: David Williams To: David Williams Sent:

Fw: Windows 2000 Pro

2004-10-20 Thread Dave Been
Return Receipt Your Fw: Windows 2000 Pro document :

Re: Tomcat classloading...a theory question..

2004-10-20 Thread Matthew Stone
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html Ben Bookey wrote: Dear List, Which packages would normally be used by an app. running on Tomcat 4 and Tomcat 5, if identical packages are placed in the paths, i) common\lib ii) mywebapp\WEB-INF\lib iii) jre\lib\ext

Re: How to get a notfication if the user closes its browser?

2004-10-20 Thread Tim Funk
An IOException should be thrown by write sometime after the socket is disconnected. (It may vary due to buffering) Tomcat doesn't log that IOException since it is so common but it can be caught if your decide to do so. -Tim Stephan Coboos wrote: Hi, I need to send a very very big set of data

jakarta-tomcat-4.1.31 fails to render the example JSPs

2004-10-20 Thread Rob Tanner
I've upgraded my development station to match our production server which runs jakarta-tomcat-4.1.31. When I go to http://localhost:8080, it fails to render index.jsp. I've included the full error response below. The JAVA_HOME environment variable is set to /usr/java/j2sdk1.4.2_02, and when I

JK2 sending directory listings to tomcat, it should not

2004-10-20 Thread Dan Carwin
There's a known bug in the jk connector: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25104 Which forwards directory requests to tomcat even when -ForwardDirectories is turned off. Testing jk2 I'm seeing the same behavior. Is there a known way to prevent directory listings from being

Waiting for 1 instance(s) to be deallocated ????

2004-10-20 Thread John MccLain
These errors are coming out of the standard output of Tomcat after shutting down due to code hanging. INFO: Waiting for 1 instance(s) to be deallocated Oct 19, 2004 9:17:10 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Oct 19, 2004 9:17:11 AM

Re: Access to j_security_check directly

2004-10-20 Thread Ben
I created a filter that rejects the get request method to the j_security_check (in my login page I use post method). So if the users access to j_security_check, my filter responses with a resource not found code. It seems to be working find. Cheers On Wed, 20 Oct 2004 11:29:22 +0100, Andoni

Manually starting webapps

2004-10-20 Thread Jeffrey Steele
Hello, I've spent enough time hunting, that I felt this question was only going to get answered by sending it here... How can you configure Tomcat to not start any webapps when launched... I have a need to start a Tomcat server that has multiple webapps deployed, but I do not want those all

Mysterious session behavior across browsers

2004-10-20 Thread Michael McGrady
While testing my application, when I open a new browser, I am getting session data in the new browser that was in another browser. Am I nutso? Isn't this definitely supposed to be impossbile. Tomcat 5.0 Struts 1.2 JDK 1.4 Thanks for any assistance. Michael McGrady

BadInputFilterValve to stop XSS

2004-10-20 Thread richardfinegan
Has anyone successfully installed com.oreilly.tomcat.valves.BadInputFilterValve to help stop XSS attacks? from: http://safari.oreilly.com/?x=1mode=sectionsortKey=titlesortOrder=ascview=g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0xmlid=0-59600-318-8/tomcat-APP-D We are using tomcat 5.0.28, we've

Re: Mysterious session behavior across browsers

2004-10-20 Thread Tim Funk
If its the same PC under the same id during the same session with the same browser- yeah thats normal. Now if you saw this behavior when you were using IE. Then opened Firefox- and saw the IE session - then there might be a problem. -Tim Michael McGrady wrote: While testing my application,

Re: Mysterious session behavior across browsers

2004-10-20 Thread Michael McGrady
Okay, Tim, thanks a million. I have another question. Live and learn. I did not know that. This means, then, that my session data will be available to someone who comes along and uses the same browser? I am trying to get used to this idea. Michael McGrady Tim Funk wrote: If its the same PC

Re: Tomcat classloading...a theory question..

2004-10-20 Thread QM
On Wed, Oct 20, 2004 at 06:42:40PM +0200, Ben Bookey wrote: : I have been responsible for the dev of an wepapp. which often runs alongside : other apps. To avoid the : bugs that the customers often have, I would like to put ALL the trouble jar : files (in my case the xml parser api jar files),

Re: Manually starting webapps

2004-10-20 Thread QM
On Wed, Oct 20, 2004 at 04:37:12PM -0700, Jeffrey Steele wrote: : How can you configure Tomcat to not start any webapps when launched... Set autoDeploy and deployOnStartup to false in server.xml's Host element. More detail is available in the Tomcat docs, and the archives of this list. (Your

Re: Mysterious session behavior across browsers

2004-10-20 Thread QM
On Wed, Oct 20, 2004 at 05:14:05PM -0700, Michael McGrady wrote: : Live and learn. I did not know that. This means, then, that my session : data will be available to someone who comes along and uses the same : browser? I am trying to get used to this idea. That is correct, unless you close

Re: BadInputFilterValve to stop XSS

2004-10-20 Thread Tim Funk
It looks like its updating a map while iterating through the keys to the map. -Tim [EMAIL PROTECTED] wrote: Has anyone successfully installed com.oreilly.tomcat.valves.BadInputFilterValve to help stop XSS attacks? from:

Wheres the index.jsp coming from??

2004-10-20 Thread tomcat
Hello, Strange problem, im sure you've all seen with tomcat5 as ive seen it before too. in tomcat/webapps/ROOT/ the index.jsp has been changed and the index that comes with tomcat 5 has been DELETED. No matter what, domain.com/index.jsp brings up that original tomcat index file. (even after

Re: Wheres the index.jsp coming from??

2004-10-20 Thread QM
On Wed, Oct 20, 2004 at 06:12:45PM -0700, [EMAIL PROTECTED] wrote: : Strange problem, im sure you've all seen with tomcat5 as ive seen it : before too. Yes, which is why it's addressed in the mailing list archives. ;) Once more for good measure: : No matter what, domain.com/index.jsp brings up

Re: adding HTTP headers for all responses in web application

2004-10-20 Thread Steven J. Owens
On Wed, Oct 20, 2004 at 11:07:58AM -0400, Ben Souther wrote: Search the archives, I believe Tim Funk has actually written and published one Not sure though. It's pretty straight-forward. This is the first filter I ever coded, it was a snap. I make no guarantees that the particular

Re: Wheres the index.jsp coming from??

2004-10-20 Thread tomcat
QM, Sorry to beat a dead horse. Thanks for sharing that info with me! On Wed, Oct 20, 2004 at 06:12:45PM -0700, [EMAIL PROTECTED] wrote: : Strange problem, im sure you've all seen with tomcat5 as ive seen it : before too. Yes, which is why it's addressed in the mailing list archives. ;)

jsp java compile error on v5

2004-10-20 Thread Vic Cekvenich
I hava JAVA_HOME, tools.jar in common and permisions. I am running on a JDK1.5 64 bit for Redhat3. I installed jRoller but it says it can't copile the jsp. Hints? Here is the error. .V description The server encountered an internal error () that prevented it from fulfilling this request.