Re: Why so much virtual memory?

2005-03-15 Thread David Causse
Montz, James C. (James Tower) wrote: On a related note, It would appear to me that java is not adhering to the -Xmx option; I have several instances that report using 3-4X RSS Memory what -Xmx is set to. For example, Instance1: CATALINA_OPTS=-sqerver -Xms64m -Xmx128m PS Ouput: USER %CPU

RE: Over 1000 threads running in production

2005-03-15 Thread Guillaume Lahitette
Chuck, Many thanks for your feeback. From: Guillaume Lahitette [mailto:[EMAIL PROTECTED] Subject: Over 1000 threads running in production Our operations team discovered over 1000 java threads running on each production server. It appears that about 20 threads are added to this count

Re: Over 1000 threads running in production

2005-03-15 Thread Tim Funk
Take periodic thread dumps and read them. perl, grep, and wc are your friends to parse the data without going insane. The thread dumps should give you a general idea of who created them. -Tim Guillaume Lahitette wrote: Hello Tomcat'oids, This is Tomcat 4.1.26 on Linux with JDK 1.4.1_03, load

Problem with BASIC authentication

2005-03-15 Thread Karanjkar, Sanjay V \(IT\)
Hi, I have the following setup: 1. A copied version of Tomcat 4.1.24 on Unix (i.e. I have merely *copied* the entire tomcat folder from another installed location instead of installing it) 2. My application WAR file referenced by the following Context in Server.xml: Context

RE: Over 1000 threads running in production

2005-03-15 Thread Guillaume Lahitette
Tim, Thank you. This is very helpful. I've tried kill -3 pid (following a google hit: http://www.findarticles.com/p/articles/mi_m0MLW/is_3_3/ai_114495281/print) but can't see the thread dump in catalina.out nor localhost_logtxt files. What did I miss (this is Linux)? If you could share your

Re: Over 1000 threads running in production

2005-03-15 Thread Tim Funk
Sorry - I run such tests in adhoc manner. -Tim Guillaume Lahitette wrote: Tim, Thank you. This is very helpful. I've tried kill -3 pid (following a google hit: http://www.findarticles.com/p/articles/mi_m0MLW/is_3_3/ai_114495281/print) but can't see the thread dump in catalina.out nor

Re: Session listener

2005-03-15 Thread Giuseppe Briotti
== Date: Mon, 14 Mar 2005 17:09:35 -0600 (CST) From: Christian Rebollar [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org, [EMAIL PROTECTED] Subject: Re: Session listener == I don't know, but when I closed the browser

Trouble w/ remote debugging w/ Tomcat 5.5 and JDK 5.0

2005-03-15 Thread Fenderbosch, Eric
I found the FAQ (http://jakarta.apache.org/tomcat/faq/development.html) and followed the instructions there, including: added env variable JPDA_ADDRESS=8000 added env variable JPDA_TRANSPORT=dt_socket added -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n to java command

new to tomcat 5.0.28-how i can add context in the server.xml

2005-03-15 Thread Ashutosh Sharma
Hi, I m new to tomcat 5.0.28. Previously i worked with tomcat 4.1.x-where i will create a context with a docBase and this way i will work with my webApp. Now the world has changed a lot-everyone just deploying a WAR file under webapps. But i still want to work in the old manner-i want my

Re: Trouble w/ remote debugging w/ Tomcat 5.5 and JDK 5.0

2005-03-15 Thread Giuseppe Briotti
== Date: Tue, 15 Mar 2005 08:12:07 -0500 From: Fenderbosch, Eric [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: Trouble w/ remote debugging w/ Tomcat 5.5 and JDK 5.0 == Firewall of SP2 enabled? G.

RE: Trouble w/ remote debugging w/ Tomcat 5.5 and JDK 5.0

2005-03-15 Thread Fenderbosch, Eric
Yes, but I can connect to http on port 8080 just fine. Is there some setting that might be allowing 8080, but blocking 8000? I'll have to check this when I get home. I'm posting from work where my configuration is different. -Original Message- From: Giuseppe Briotti [mailto:[EMAIL

Re: new to tomcat 5.0.28-how i can add context in the server.xml

2005-03-15 Thread David Causse
Ashutosh Sharma wrote: Hi, I m new to tomcat 5.0.28. Previously i worked with tomcat 4.1.x-where i will create a context with a docBase and this way i will work with my webApp. Now the world has changed a lot-everyone just deploying a WAR file under webapps. But i still want to work in the old

Servlet / Jini lookup

2005-03-15 Thread Olivier Dusacq
Hello, I'm trying to contact a Jini lookup service (reggie) from a simple servlet. I'm using Tomcat 5.5.7, Java 1.5.0_01, Jini 1.2.1 and Solaris8. The problem is that, after the call to LookupDiscoveryManager() (see source code below), the discovered() method is never called back. Here is what

Re: new to tomcat 5.0.28-how i can add context in the server.xml

2005-03-15 Thread Ashutosh Sharma
Hi David, Thanks for the reply. But if i see the manager.xml under this location it's contents are like this: Context path=/manager docBase=${catalina.home}/server/webapps/manager debug=0 privileged=true !-- Link to the user database we will get roles from -- ResourceLink name=users

Re: new to tomcat 5.0.28-how i can add context in the server.xml

2005-03-15 Thread David Causse
Ashutosh Sharma wrote: Hi David, Thanks for the reply. But if i see the manager.xml under this location it's contents are like this: Context path=/manager docBase=${catalina.home}/server/webapps/manager debug=0 privileged=true !-- Link to the user database we will get roles from --

running a thread in Tomcat

2005-03-15 Thread Mark
Hi, I'm starting a new thread in my init servlet(I know it has been discussed few time, that it's not the best idea, but anyway) and everyhing is fine untill I need to restart tomcat. When I shutdown (shutdown.sh) Tomcat the java process remain active. The question is it expected? or I need to

RE: running a thread in Tomcat

2005-03-15 Thread Allistair Crossley
Hi, Tomcat won't know anything about your Thread just because you created it in init(). Tomcat does not monitor your threads, you need to manage them yourself if you insist on creating them which many will tell you is naughty. Maybe you can kill your Thread in the destroy() method of the same

Re: running a thread in Tomcat

2005-03-15 Thread Viorel Dragomir
Set the thread to act like a daemon. It's a Thread [class] thing. There are ten better ways to resolve the same problem without threads. Viorel Dragomir . .. --- - Original Message - From: Mark To:

Re: running a thread in Tomcat

2005-03-15 Thread Ben Souther
set isDaemon(true) for all your threads. On Tue, 2005-03-15 at 10:31, Mark wrote: Hi, I'm starting a new thread in my init servlet(I know it has been discussed few time, that it's not the best idea, but anyway) and everyhing is fine untill I need to restart tomcat. When I shutdown

Re: running a thread in Tomcat

2005-03-15 Thread Viorel Dragomir
I apologize for the previous post. The Read Receipt was enabled [because of my boss's will] and I forgot about it. Thank you for your understanding, Viorel Dragomir . .. --- - Original Message - From: Mark To:

tomcat servlet engine

2005-03-15 Thread brian dell
Is there a windows version of tomcat (servlet container) on a apache (windows version) web server ? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

RE: tomcat servlet engine

2005-03-15 Thread Peter Crowther
From: brian dell [mailto:[EMAIL PROTECTED] Is there a windows version of tomcat (servlet container) on a apache (windows version) web server ? 'On' no, behind yes. Run the Windows version of Apache, mod_jk, and Tomcat on a Windows JVM. - Peter

Help with SSL Cert

2005-03-15 Thread joelsherriff
Hope someone can help. I've searched through the archives and this seems to be a common problem, but even detailed instructions have left me stumped. I'm trying to get client certificates to be required by tomcat by setting clientAuth=true but I can't seem to figure out how to get the client

Help getting started

2005-03-15 Thread brian
To get a servelet engine one needs the following apache web server and tomcat servlet engine ?? What about J2EE ? Does one need that as well ? Or the servlet engine above (like tomcat) would contain the J2EE as well. __ Do You Yahoo!? Tired of

Jumping in and out of JSP

2005-03-15 Thread Charles P. Killmer
Is it possible to do something like the following? I have as much code as I want in Java classes. This is just to make modifying the UI easier. %! public String test() { % test2 %! } % %=test()% Charles Killmer

RE: Help getting started

2005-03-15 Thread Peter Crowther
From: brian [mailto:[EMAIL PROTECTED] To get a servelet engine one needs the following apache web server No. Tomcat will work standalone. and tomcat servlet engine ?? Or another engine such as Jetty. But that's heresy on this list ;-). What about J2EE ? Does one need that as well ? Or

RE: Help getting started

2005-03-15 Thread Allistair Crossley
Hi, Yes, and some would say you don't need the Apache web server, since Tomcat can act as a web server too. Tomcat provides an implementation of the Servlet and JSP aspects of the J2EE suite, so if you only need those you're ok. Allistair. -Original Message- From: brian

RE: Help getting started

2005-03-15 Thread Pete Stevens
How to install tomcat for linux, http://www.mythic-beasts.com/support/topic_vds_java.html How to make it act like a normal webserver with jsp virtual hosting support, rather than worrying about packaging .war files etc. http://www.ex-parrot.com/~pete/tomcat-vhost.html Hope this helps.

Re: running a thread in Tomcat

2005-03-15 Thread Darek Czarkowski
you have to terminate that thread explicitly. You can do that by defining ApplicationServletContextListener and have it stopped on contextDestroyed event DarekC On Tue, 2005-03-15 at 07:31, Mark wrote: Hi, I'm starting a new thread in my init servlet(I know it has been discussed few time,

Installing tomcat (help)

2005-03-15 Thread brian
Below is the tomcat installation files for download and have pasted the contents of README packaging information. One binary is an exe, one is tar.gz, one is a zip, another is Deployer. Which one is the installation file for windows ? The .exe is the Tomcat Setup wizard. Is this the windows

Re: Installing tomcat (help)

2005-03-15 Thread Ben Souther
the exe On Tue, 2005-03-15 at 11:56, brian wrote: Below is the tomcat installation files for download and have pasted the contents of README packaging information. One binary is an exe, one is tar.gz, one is a zip, another is Deployer. Which one is the installation file for windows ? The

RE: Installing tomcat (help)

2005-03-15 Thread Caldarale, Charles R
From: Ben Souther [mailto:[EMAIL PROTECTED] Subject: Re: Installing tomcat (help) the exe On Tue, 2005-03-15 at 11:56, brian wrote: One binary is an exe, one is tar.gz, one is a zip, another is Deployer. Which one is the installation file for windows ? Although the .exe is a true

image upload

2005-03-15 Thread Shannon Scott
I have been preparing to write a servlet to handle image uploads. It looks like most people are using the latest cos[date].jar file from http://www.servlets.com/cos/index.html Is this still the recommended method? Are there any security concerns that I should address? Thank you for any help.

RE: Over 1000 threads running in production

2005-03-15 Thread Guillaume Lahitette
Found the solution: to know which PID to kill -3 for, use ps -ef --forest to detect the parent thread which has the *most* child threads. Then the thread dump shows in catalina.out. This is where I found the answer: http://groups-beta.google.com/group/weblogic.developer.interest.performance/

RE: image upload

2005-03-15 Thread George Sexton
I think most people are moving to the Jakarta Commons File Upload jar. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Shannon Scott [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 10:07 AM To:

RE: image upload

2005-03-15 Thread Allistair Crossley
Yes I would say so, we use JCFU for loads of image and document uploads as it fronts the CMS. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: 15 March 2005 17:11 To: 'Tomcat Users List' Subject: RE: image upload I think most people are moving to the

Access denied with Apache + Tomcat config

2005-03-15 Thread Tony Stocker
Hello All, I have searched the archives but have been unable to find a solution to my problem. I am integrating Apache 2.0.52 with Tomcat 5.0.28 using mod_jk 1.2.8 (compiled from source). My client wants to continue using Apache as the web server due to security and ease of configuration

{OT] Re: Jumping in and out of JSP

2005-03-15 Thread Jason Bainbridge
On Tue, 15 Mar 2005 10:27:21 -0600, Charles P. Killmer [EMAIL PROTECTED] wrote: Is it possible to do something like the following? I have as much code as I want in Java classes. This is just to make modifying the UI easier. %! public String test() { % test2 %! } % %=test()% Yes it

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Charles P. Killmer
Maybe I wasn't clear. The code that I pasted below is throwing all sorts of errors. Assuming that something like this can be done. Why does my code throw errors? Thanks Charles -Original Message- From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 11:51 AM

Re: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Jason Bainbridge
On Tue, 15 Mar 2005 12:13:53 -0600, Charles P. Killmer [EMAIL PROTECTED] wrote: Maybe I wasn't clear. The code that I pasted below is throwing all sorts of errors. Assuming that something like this can be done. Why does my code throw errors? Obvious question... but what errors? On closer

Re: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Tim Funk
You can't mix: %! stuff with open brace { % JSP CODE %! } closeing brace here % Anything in %!% are class level declarations which live outside the jspService() method. See the generated java to see what i mean. -Tim Charles P. Killmer wrote: Maybe I wasn't clear. The code that I pasted below

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Charles P. Killmer
My goal in this is to have a function that returns a string. But instead of doing something like this: %! Public String test() { return table border=\0\ cellspacing=\0\ cellpadding=\0\; } % I want to be able to jump out of JSP and just have the function echo it to the screen without

Re: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Tim Funk
You can't do that. The jsp spec forbids it. -Tim Charles P. Killmer wrote: My goal in this is to have a function that returns a string. But instead of doing something like this: %! Public String test() { return table border=\0\ cellspacing=\0\ cellpadding=\0\; } % I want to be able to jump out

Re: Failing a JK Worker thread

2005-03-15 Thread Dan Thiffault
I didn't hear back from any one so I looked through the code. I couldn't find any sign of code that would provide this functionality, so I added the following before line 605 of jk_ajp_common.c. I recompiled and it seems to be working as intended so far. if (d-status=500) { jk_log(l,

where serialized session objects stored?

2005-03-15 Thread Mark
Hi, How can I find out where session serialized objects get stored and how can I force _not_ to load session serialized objects ( I need it when a new version of web application get deployed) __ Do you Yahoo!? Yahoo! Small Business - Try our

issue with redeploying war file

2005-03-15 Thread Mark
Hi there, I find out really strange that when I copied over a new .war file I cannot see my changes. Here what I've done: $./shutdown.sh $cp ~/my.war webapps $./startup.sh If I remove 'my' directory from 'webapps' everything works properly and new web app get deployed. Is there any way to

Re: Configuration Problem in Tomcat for HTTPS

2005-03-15 Thread suryadevara dushyanth
Sanjeev, How can i set the path for the keystore in server.xml? --- Sanjeev Srivastava [EMAIL PROTECTED] wrote: Hi Dushyanth, Have you created server.keystore, also are you specifing the right path in server.xml for the server.keystore. Check this, your problem will be solved. In

Re: Access denied with Apache + Tomcat config

2005-03-15 Thread Tony Stocker
All, I believe that I found my problem, and for the sake of posterity I'm posting it for the next poor fool who is forced to chase around the web and through books looking for decent documentation. When I set up Tomcat I copied the sample workers.properties file from the JK source. However it

Re: Failing a JK Worker thread

2005-03-15 Thread Mladen Turk
Dan Thiffault wrote: if (d-status=500) { jk_log(l, JK_LOG_ERROR, Tomcat server returned status=%d,d-status); JK_TRACE_EXIT(l); return JK_FALSE; } I may end up using a case statement and preventing apache from trying the next worker on bad request or something like that. Hope

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Charles P. Killmer
Does anyone know of a creative solution to this? Or some way to achieve what I am after? Thanks Charles -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 12:33 PM To: Tomcat Users List Subject: Re: {OT] Re: Jumping in and out of JSP You can't

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Ramu, Vinod
This sound very much similar to error handling. However,If you could explain exactly about what you are trying to do then probably we could suggest an alternative to get it done. Vinod -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Charles P. Killmer
I am using a template.jsp file that calls a function defined in another file. Then every file, ie index.jsp, in the site defines that function and includes the template which calls the function. That way I only have one file defining what the site looks like. Is there a better way to template

Re: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread QM
On Tue, Mar 15, 2005 at 01:31:38PM -0600, Charles P. Killmer wrote: : Is there a better way to template a site. I don't like the method of : including sections into each jsp file. This makes adding new sections : to every page difficult. You could look into Tiles. That may require Struts, but

Re: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Hassan Schroeder
Charles P. Killmer wrote: Does anyone know of a creative solution to this? Or some way to achieve what I am after? Not to rain on your parade :-) but one of the main reasons for using JSP (IMHO) is to *separate* markup and code. Something like this wouldn't even be considered best practice in

RE: Failing a JK Worker thread

2005-03-15 Thread Guernsey, Byron \(GE Consumer Industrial\)
What is the situation where you find this useful? Byron -Original Message- From: Dan Thiffault [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 1:41 PM To: Tomcat Users List Subject: Re: Failing a JK Worker thread I didn't hear back from any one so I looked through the code.

Re: Configuration Problem in Tomcat for HTTPS

2005-03-15 Thread Sanjeev Srivastava
Dushyanth! Have you created server.keystore using keytool..? In server.xml check the code below and provide the path to KeystoreFile and put the password. keystoreFile=/cm/de/cfg/server.keystore keystorePass=changeit Make sure the 443 or 8443 should be same in port 80 and port

Jk1 jkstatus?

2005-03-15 Thread Guernsey, Byron \(GE Consumer Industrial\)
So with JK 1.2.8, is there any equivilent method of finding the data in the jkstatus scoreboard from mod_jk2?? I understand jk2 is no longer the choice module for Apache 2.0.x. Funny, when we first upgraded to Apache 2, the official line was that mod_jk1 should not be used with Apache 2, and we

RE: where serialized session objects stored?

2005-03-15 Thread Fenderbosch, Eric
You can find that info here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/manager.html The easy way to disable saving of sessions is to add this to you webapp xml under conf/Catalina/localhost Manager className=org.apache.catalina.session.StandardManager pathname=/ For example,

RE: Tomcat 5.5.7+JRockit = windows service won't start

2005-03-15 Thread BB Commish
From: Caldarale, Charles R [EMAIL PROTECTED] By definition _all_ -X parameters are non-standard, but there are quite a few you simply can't avoid using (-Xmx being the obvious example). It would seem like JRockit took the wrong turn here, since -Xrs has been used to reduce JVM signal usage

Tomcat 5.028 with Apache 2.053 on different machines

2005-03-15 Thread Dan
Hi I'm trying to setup Apache 2.053 on one machine, and Tomcat 5.028 on another. I've put mod_jk.so in my modules directory. Configured bother the httpd.conf and the workers.properties file on the apache machine. Here are the lines httpd.conf LoadModule jk_modulemodules/mod_jk.so

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Ramu, Vinod
So, if I understood your requirement correctly, you want to execute a single file, I,e JSP for every request. Probably after processing a request you might wish to set an attribute to identify the response view. I would suggest to use standard jsp include tag, with this your template JSP would

RE: Tomcat 5.5.7+JRockit = windows service won't start

2005-03-15 Thread Caldarale, Charles R
From: BB Commish [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5.5.7+JRockit = windows service won't start With regards to the registry, the installer does not appear to create an entry that explicitly defines the -Xrs parameter. That's odd, since the -Xrs is in my registry entry, albeit

Re: Jk1 jkstatus?

2005-03-15 Thread Carlos Cajina
Good afternoon Byron. There is a way in JK to check the status of your workers and even configure them to some degree. It requires pretty much the same setup as in JK2; for details about this and other VERY useful info on putting Apache and Tomcat together see this webinar:

Re: Failing a JK Worker thread

2005-03-15 Thread Dan Thiffault
We have an application running as a webapp which requires legacy systems and network resources which are not fault-tolerant. Luckily these resources are stateless. So we have replicated these resources so that one is available per tomcat instance. When we attempt to use one of these

Installation Issues - AIX 5.2

2005-03-15 Thread Bob Wyatt
I've attempted to install tomcat 5.0.28 from source on an AIX 5.2 system without internet access. When running ant, cvs fails. So I downloaded and installed the binaries, but I get http 500 errors when running a javascript for secure login. The vendor supplying the script feels that tomcat does

SSL Appliance and Tomcat5.0.30/CoyoteConnector

2005-03-15 Thread Randy Watler
We employ an SSL appliance in front of servers running Tomcat5 stand-alone and wish to configure the CoyoteConnector as we have done previously with Tomcat4: Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8543 minProcessors=16 maxProcessors=384

Strange Tomcat Error

2005-03-15 Thread Larry Johnson
Hi all, Recently I lost the hard drive on one of my production tomcat servers. I've since reinstalled and setup the effected machine to mirror the configuration of one of my other servers that I know to be working fine. I know for a fact that my servlet code is fine and that the tomcat

RE: Trouble w/ remote debugging w/ Tomcat 5.5 and JDK 5.0

2005-03-15 Thread Fenderbosch, Eric
I just disabled the firewall and I'm still getting the same thing. Connection refused. -Original Message- From: Giuseppe Briotti [mailto:[EMAIL PROTECTED] Sent: Tue 3/15/2005 8:21 AM To: tomcat-user@jakarta.apache.org Cc: Subject:Re: Trouble w/ remote debugging w/

RE: Trouble w/ remote debugging w/ Tomcat 5.5 and JDK 5.0

2005-03-15 Thread Fenderbosch, Eric
I tried downloading the .tar.gz package and extracted the startup scripts to bin. Starting with catalina.bat run or cataline.bat start works fine. However, catalina.bat jdpa start simply returns to the command prompt. Now I'm really confused... -Original Message- From: Fenderbosch,