finding number of threads being used by Tomcat

2003-08-10 Thread Rau NF
Hello - Is there a way (programmatically or otherwise) to find the number of threads being used by Tomcat while it's running ? This will be some number between minProcessors and maxProcessors. kill -3 on the JVM and getting the number of threads from the thread dump is not an option. Th

Re: How to configure to use tomcat and struts to use log4j?

2003-08-10 Thread Zsolt Koppany
Jon, I have found commons-logging.jar in two directories: /WEB-INF/lib/commons-logging.jar server/lib/commons-logging.jar struts.jar is also in /WEB-INF/lib Any ideas? Zsolt On Thu, 2003-08-07 at 12:49, Jon Wingfield wrote: > Looks like Struts has a dependency on Commons Logging which is usin

Re: Digest

2003-08-10 Thread Maxime Colas des Francs
Thks for your response ! But I have now another pb . javadoc for org.apache.catalina.realm.RealmBase.Digest() says : ... Digest password using the algorithm especificied and convert the result to a corresponding hex string ... So how to convert my base64(MD5()) digest to the correct hex String

RE: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-10 Thread Steph Richardson
Mark, On compiling the _jsp.java files - yes I had to use . And then because works recursively on whatever directory you point it at ( now that every file is in the same package ), I had to move the contents of each dir to a tempdir, compile the tempdir, move classfiles back. Full ( and long

Including in server.xml?

2003-08-10 Thread Alan Ford
Hi, I'm running Tomcat 4.04. I can't see any mention of this in the docs: is it possible to Include another file inside the server.xml file? I'd like to have the virtual host definitions kept in a seperate file.. Could anybody confirm whether this is possible or not? Many thanks, -- Alan Ford *

Tomcat does not want to compile

2003-08-10 Thread Bob Hacker
I am running Jbuilder 7, JBoss 3.0.2. When I touch a jsp I get the following exception when trying to run it Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java

tomcat and external provider

2003-08-10 Thread Maxime Colas des Francs
Hi I detect a stange comportement of my tomcat when using an external security provider I want to use openpgp in my web application with cryptix provider In a 'load-on-startup' servlet i add security provider like this : java.security.Security.addProvider(new cryptix.jce.provider.CryptixCrypto

apache/tomcat w/ mod_2k on linux

2003-08-10 Thread Skyler . Bingham
I am having lots of problems integrating apache 1.3 with tomcat 4.1.24 using mod_jk. Apache works and I can access tomcat via the standalone service but not through the tomcat-apache service. I get the following error in error_log: [Tue Aug 5 12:41:18 2003] [error] (25)Inappropriate ioctl for d

RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions

2003-08-10 Thread Angus Mezick
Yup, and when nothing is happening, the # of active connections should be 0. If it isn't you aren't releasing connections properly. > -Original Message- > From: Barclay A. Dunn [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2003 4:19 PM > To: Tomcat Users List > Subject: RE: Help!

RE: ANT tasks for management console

2003-08-10 Thread Steph Richardson
Juraj Look for TOMCAT_HOME/server/lib/catalina-ant.jar and copy it to your ANT_HOME/lib directory. Then you need to define the targets, and add some tasks like this :

Re: integration of apache2.0.40 & tomcat4.1.27

2003-08-10 Thread 苗启广
ÔÚ 2003-08-09 13:14:00 ÄúдµÀ£º >Hi all,of you ? Could you tell me ? Thanks~~ > > I have installed RH9 and it contains apache2.0.40. Then I installed >tomcat4.1.27 by binary. After that I want to integrate them to work >together by using jk2. What is the easy way to integrate them? Any >doc

Re: Oracle connection pooling

2003-08-10 Thread 苗启广
ÔÚ 2003-08-08 23:50:00 ÄúдµÀ£º >We are running a fairly large ecommerce site consisting of 3 apacheof you ? Could you >tell me ? Thanks~~ >2.0.48 servers being balanced between using UltraMonkey/ldirector and 2 >tomcat servers with AJP1.3. Everything is Linux except the back end >which is a fai

RE: Tomcat 4.1 & https problem

2003-08-10 Thread Scott Stewart
I am running Tomcat 4.1.24 in standalone mode using https with no problems. How do you have the non-SSL and SSL Connectors defined in your server.xml? Also, where do your key/cert files live (i.e. within the Tomcat directory structure somewhere)? Thanks, Scott Stewart [Manager, Software Developm

AW: Tracking active sessions

2003-08-10 Thread Philipp Leusmann
Ok, thank you. > -Ursprungliche Nachricht- > Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 6. August 2003 21:46 > An: Tomcat Users List > Betreff: RE: Tracking active sessions > > > > Howdy, > > >Yes, I think it does matter if the sessions are still open. Because,

Re: Servlet mapping for root directory in a webapp?

2003-08-10 Thread Bill Barker
Alternatively, having a zero-length index.html file in your directory, together with a should also work. "Shapira, Yoav" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Howdy, >Today I changed it to: > > > MainView > /index.html > >

error-code 401

2003-08-10 Thread Georges Roux
Hi, I'm trying to display custom error pages. My https context is BASIC protected, and now the site is automatically redirecting to the error page before asking for authentification... I put this lines in web.xml 401 error/401.jsp I m using tomcat 4.1.27 standalone on linux. I need yo

RE: Tomcat Conn Pooling in 4.0.4 - Very Slow?

2003-08-10 Thread Shapira, Yoav
Howdy, >Factory? What is a factory? What does it look like? It's a class implementing the GoF Factory pattern. >I thought what I had below WAS a factory? is having DataSource there not >good enough? No. >What's below is exactly what my Tomcat book has!! Your book could be out of date or i

Re: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-10 Thread Mark R. Diggory
Ah, o.k. I had misunderstood what that attribute was for in the Ant Manual. I will try it and verify if the packaging comes out right. If I understand correctly, I will still need to walk the directories with the forEach task to get them compiled to classes, is this correct? thanks again for th

RE: RE: Java and tomcat issues - never mind got the path set

2003-08-10 Thread batristain
Thanks everyone - I got it set correctly thanks -Original Message- From: Atristain, Bobbie J. Sent: Tuesday, August 05, 2003 2:33 PM To: [EMAIL PROTECTED] Subject: RE: RE: Java and tomcat issues Okay this happens bash-2.05b# export $PATH=$JAVA_HOME/bin -bash: export: `/usr/local/sbin

Re: "unable to compile class for JSP" Upgrade 4.0 to 4.1

2003-08-10 Thread Jesús Antonio Sánchez A.
Well, jsp files are not meant to be inside a WEB-INF directory. Try putting those outside of it. You may use some dir structure like this: root_dir/ jsp/ WEB-INF/ lib/ tags/ classes/ Try putting your jsp files in the jsp dir. Hope it works. :) Susanne Munker <[E

RE: large objects in sessions

2003-08-10 Thread Mike Curwen
Ok, I just wanted to be sure everyone knew that. ;) > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 06, 2003 9:15 AM > To: Tomcat Users List > Subject: RE: large objects in sessions > > > > Howdy, > > >And how does this approach save memo

Re: Tomcat 5.0.2 and IIS

2003-08-10 Thread John Turner
If you have Tomcat on port 80, what do you need the connector for? John vikas jain wrote: I followed the instructions to set up IIS with tomcat. The virtual redirector is showing green arrow pointing up but the servlets are not working. in the log I am getting following errors: [Thu Aug 07 09:

RE: Custom Tag Lib

2003-08-10 Thread Mike Cherichetti \(Renegade Internet\)
I should have been more clear. If you have tags without body content, call release() at the end of doStartTag(). If you have tags with body content, call release() at the end of doAfterBody(). This has worked rather well for me. Perhaps implement TryCatchFinally would be a little cleaner. Mike

Re: how to suppor 30000 concurrent users

2003-08-10 Thread Vic Cekvenich
If you use Resin/J:Rockit/NewISys 2100, you can do at least 4,000 cocurent users w/ sub second response time. (test your app w/ free DiselTest - part of Jasic and linked on basicPortal.com, other links there to) NewIsys is a 1U. A 19" rack can hold 40. You need 3-4 racks. He.net charges $400 per

RE: is there a way to download a jsp file from server withoutexecuting it?

2003-08-10 Thread Jeff Tulley
Just be EXTREMELY careful; such servlets/jsps tend to open up security holes, if not properly coded, which allow users of said servlet/jsp to get to other files elsewhere on your hard disk (a password file, config files, etc). Make sure you limit the scope of what jsp sources can be viewed, and do

Re: aliases under tomcat

2003-08-10 Thread Bill Barker
Eventually, you'll need to have your DNS server recognize the names. But to get started, you can just edit your system's host file and make "fr.localhost" etc. aliases for localhost. "Julien Martin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, In order to internationalize a

RE: off-topic, need help in scrolling

2003-08-10 Thread Aggarwal, Gautam (IE03)
This forum is meant for helping each other in Tomcat related problems, not for advertising your products. Please remove the advertisement footer from your mail, this will help in keeping the mail short as well. Bye, Gautam -Original Message- From: N.B.Bopanna [mailto:[EMAIL PROTECTED] Se

Re: jsps xhtml and Internet Explorer

2003-08-10 Thread Graham Stark
Bill, many thanks: that worked perfectly. Graham > MSIE has a bad habit of ignoring Content-Type, so I don't know that this > will work. However, what you want is: > > > (of course, change the charset if you aren't using iso-latin-1). > > <[EMAIL PROTECTED]> wrote in message > news:[EM

Re: Digest

2003-08-10 Thread Tim Funk
My favorite Base64 library is org.apache.catalina.util.Base64 ;) -Tim Bill Barker wrote: I agree with Nikola. Firstly, even if you could access Catalina internals, you are calling the wrong method. You would need to call getDigest(String userName, String Pass). From the RealmBase code, you prob

taglibs inside another taglib

2003-08-10 Thread Edson Alves Pereira
Hello folks, how do i could do this in right way?

Re: Tomcat 5.0.2 and IIS

2003-08-10 Thread John Turner
I would suggest comparing this resource: http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html to the resource you used, and note any differences, if any. John vikas jain wrote: The isapi.log file doesn't have any log. it's empty. In the tomcat log files, it doesn't have any error message

RE: URI Servlet Path Problems

2003-08-10 Thread Gregg Bolinger
I did that. But here is the problem with that. My pages are under a folder called "secure" so then the URL was http://localhost:8080/holocron/secure/holocron/servlet/AddReference ha. Thanks for the quick response though. Gregg -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECT

WINXP + TOMCAT + apache

2003-08-10 Thread David O'Sullivan
__ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. ---

Tomcat v4.0 Admin Utility Crashing

2003-08-10 Thread Thomas, Kevin
Hi again, Sorry to be a pain. But we are continuing to have Tomcat crash on us whenever we try to access Jsp pages. It would appear that there is a problem with the HotSpot JVMcan anyone help or possibly point me in the right direction. I've searched the Sun Java site and essentially they have

RE: performance question

2003-08-10 Thread Jay Lee
Hi, Mark. Keep your head up. I just let you know that I started with 1 transaction per 4 sec and now we could do per 0.5 sec. As to scalability, I could make it reaching max resource per box. I started with 500 users and now on same wintel box I could go above 2500 users, which I could prove tha

Re: mod_jk2 and stickySession

2003-08-10 Thread Christian Traber
NormW wrote: Good evening Christian. Have you set the jvmRoute parameter in each Tomcat, and the TomcatID (aka route) for each JK worker? Norm Thanks, I set jvmRoute in server.xml Engine section and now it works. Best regards, Christian

Re: Digest

2003-08-10 Thread Bill Barker
I agree with Nikola. Firstly, even if you could access Catalina internals, you are calling the wrong method. You would need to call getDigest(String userName, String Pass). From the RealmBase code, you probably want something like: <% MessageDigest md = MessageDigest.getInstance("MD5"); Strin

RE: off-topic, need help in scrolling

2003-08-10 Thread N.B.Bopanna
Hey Gautham, It is not under my control. The mail server adds it to all mails. -Original Message- From: "Aggarwal, Gautam (IE03)" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Date: Thu, 7 Aug 2003 11:06:19 +0530 Subject: RE: off-topic, need help in scrolling > This forum

RE: OutOfMemoryError

2003-08-10 Thread Andy Cooke
Hi Yoav, > You have the two calls in the Runtime class (totalMemory() and > freeMemory()), and that's pretty much it. This of course reflects only > the heap. So you can have a background thread that checks freeMemory() > every so often and if the free percentage falls below a certain > configur

Mapping problem

2003-08-10 Thread Donald Duquaine
1. What ever happened to the 'catalina out log'? 2. this is the error I am getting upon starting Tomcat(catalina). Aug 6, 2003 10:27:07 AM org.apache.commons.nodeler.Registry loadRegistry INFO: Loading registry information Aug 6, 2003 10:27:07 AM org.apache.commons.nodeler.Registry getRegistr

Rpm of jdk 1.2?

2003-08-10 Thread batristain
Does anyone know where I can find an rpm of the jdk 1.2 kit? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-