RE: How can we know Tomcat is running or not through Standalone Java Prog

2003-12-01 Thread Neal
Look in your Tomcat/conf/server.xml file. Is there an uncommented service tag like the following? Service name=Tomcat-Standalone This instructs Tomcat to run standalone. Also, you can confirm this by looking at Tomcat output when it is stated. When tomcat starts it will write to standard out

Vedr.: Garbage Collection issues

2003-12-01 Thread Thomas Nybro Bolding
Without knowing your system setup especially JDK version, RAM and # of processors my guess is that it could be due to an undersized heap and a high call-setup rate. If the pressure on the old collector is heavy enough, it can force the old collector to revert to the traditional mark-sweep

Re: html not working

2003-12-01 Thread Timo
As of my knowledge, I think Tomcat uses the concept of WebContext, which initialized during tomcat startup or through the manager commands, i.e. http://localhost:8080/manager/list check the documentations for manager commands on the tomcat website. where you can start/stop/restart webcontexts..

How to install new version of application (war file)

2003-12-01 Thread Rainer Stransky
What is the common way to install a new version of a war file ? My experience is, that I have to stop tomcat, delete the .../webapps/app_dir copy a new app_dir.war to .../webapps and start tomcat. But this is not appropriate on a production system. I do not want to restart tomcat. What will be

Re: Tomcat 4.0.x memory leak (not javac)

2003-12-01 Thread Abhijeet Selukar
Hi, I am also facing the same problem of memory leakage. I have posted on mail about this on 19th Nov too... I had contacted to the support people where our web application is hosted. I had got few suggestions. According to their suggestion - 1. I increased the heapsize in catalina.sh file.

Re: directory reference

2003-12-01 Thread Giorgio Franceschetti
Thanks, it solves my problems. Bye, Giorgio Tim Funk wrote: The best way is to use ServletContext.getResourceAsStream() to load a file from your webapp. This is portable (and safest) to any servlet container. -Tim Giorgio Franceschetti wrote: Hi all, I'd like to create a file with

Any Comments / Suggestions

2003-12-01 Thread Arnab Chakravarty
Hi all, We are using the oracle connection pool (which is part of the driver) for our application. I wish to know what would be ideal configuration for the following parameters under the FIXED_WAIT_SCHEME: CacheFixedWaitTimeout: ?? CacheFixedWaitIdleTime: ?? where connection pool size = 100

Re: html not working

2003-12-01 Thread Graham Reeds
As of my knowledge, I think Tomcat uses the concept of WebContext, which initialized during tomcat startup or through the manager commands, i.e. http://localhost:8080/manager/list check the documentations for manager commands on the tomcat website. where you can start/stop/restart

JNDIRealm question

2003-12-01 Thread Chong Yu Meng
Hi All, I have a configuration that is not covered in the JNDIRealm HOWTO, and was wondering if someone else has tried this before : I am using OpenLDAP 2.1.22 on Red Hat 9. For the DN, I am using the CN instead of the UID (i.e., dn: cn=Zhu De,ou=People,o=Cymulacrum instead of

LDAP connection problem through JSP

2003-12-01 Thread Damien Pacaud
hi list, I am trying to get the login for the user authentificated through LDAP in a JSP... I tryed : request.getRemoteUser(); but that returns always null... I am sure it can be done but am unable to find how... Any help would be greatly appreciated ;) Thanks in advance Damien Pacaud

Tomcat 4 vs Tomcat 5 and MIME settings

2003-12-01 Thread Stephen Thomas
Hi, I must apologise, I've never used these types of systems before and have sent this email to a couple of addresses. I am a developer of Voice applications. I use the Tomcat servlet engine to host my applications which are then fetched from the voice server. I am currently having an issue

Tomcat 4 threads

2003-12-01 Thread Walter do Valle
I have some doubts about Tomcat and his threads. If someone could help me, i will be very grateful. In what moment new threads are created in Tomcat when it's running? Is there a thread pool? In case positive: - What is the initial quantity of threads created? - What is the stagger algorithm?

endorsed directory

2003-12-01 Thread Basavaraju P. Banakar [SLK-India]
Hey all, I found from the tomcat users list that xalan.jar has to be placed in the ..\common\endorsed folder. but i could'nt find reason behind that... could someone help in understanding this please.. This might not be the right place to ask this question but might be releated with the above

Re: Tomcat 4 threads

2003-12-01 Thread Andoni
Hello, You should not have to worry about when tomcat creates or pools threads. It will do this in the background in whatever way it does and you should not have to know about it. There are rules for keeping servlets thread-safe so that you will not be affected by the threading of servlets by

Re: How to install new version of application (war file)

2003-12-01 Thread Jacob Kjome
The manager app in Tomcat5 now allows for a tag to be associated with the war you deploy. You can use this from the ant manager tasks as well. You can deploy an app and deploy the same app (different version) again with a different tag. The old one will be undeployed and the new one will go

RE: LDAP connection problem through JSP

2003-12-01 Thread Dean Searle
This is the simple jsp I used to test my JNDI Connection with: % String id = request.getRemoteUser(); out.write(User: + id); % See if that helps any. Dean -Original Message- From: Damien Pacaud [mailto:[EMAIL PROTECTED] Sent: Mon 12/1/2003 06:00 To: [EMAIL

Re: LDAP connection problem through JSP

2003-12-01 Thread Damien Pacaud
yes that's what i tried but the id String is always null i am getting confused here... do you get the LDAP login of the current user whith this script ?? - Original Message - From: Dean Searle [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 01, 2003

RE: endorsed directory

2003-12-01 Thread Philip Busby
Hi Basu, I'm new to tomcat, and over the last weekend I've been poking and prodding at Tomcat (with many problems, although none there wasn't a manual for). As far as I can reason, xalan.jar is placed in the endorsed folder and not the lib folder because it is endorsed by Tomcat... But they (we)

Nt Service and Sax Parser

2003-12-01 Thread Altug B. Altintas
Hi, I have got very strange problem. Here is the problem If i write a bat file to start Tomcat like this set TOMCAT_HOME=C:\tomcat set JAVA_HOME=C:\j2sdk1.4.1 set RTDIR=c:\rt set PATH=%RTDIR%\bin;c:\tomcat\;c:\tomcat\bin;. set CATALINA_OPTS=-Xmx1024m set

Re: GZIP-encoding/mod_gzip and Tomcat??

2003-12-01 Thread Mike Baroukh
No need for it in the connector if you're using apache! :) You can get a mod_gzip module and do it from Apache which would probably be faster. Are you sure ? Has somebody already used mod_gzip with Apache Tomcat ? I use it with Resin, but it was not possible with tomcat because mod_jk

Re: endorsed directory

2003-12-01 Thread Jeanfrancois Arcand
See http://java.sun.com/j2se/1.4.1/docs/guide/standards/ -- Jeanfrancois Basavaraju P. Banakar [SLK-India] wrote: Hey all, I found from the tomcat users list that xalan.jar has to be placed in the ..\common\endorsed folder. but i could'nt find reason behind that... could someone help in

Re: How to install new version of application (war file)

2003-12-01 Thread Jeanfrancois Arcand
See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html -- Jeanfrancois Rainer Stransky wrote: What is the common way to install a new version of a war file ? My experience is, that I have to stop tomcat, delete the .../webapps/app_dir copy a new app_dir.war to .../webapps and

new verion of Tomcat Service Manager

2003-12-01 Thread David Boyer
version 2.0.8 is out. -Changed GUI to multi-tabbed panels due the space constraints of a single-paned form, and to work better with screen resolutions less than 1024 x 768. This should also make it easier to add options without trying to pack everything onto the same form. -Added service start

Windows Serive Permissions?

2003-12-01 Thread Karl Coleman
I have a command-line utility I am running that converts files into PDF. Here is the line we're using to run the program: Process proc = Runtime.getRuntime().exec(cmd.exe /c C:\\BatchPDF.exe +rtfFile.getAbsolutePath()+ +pdfFile.getAbsolutePath()); The problem is, it only runs if Tomcat was

servlet redeploy

2003-12-01 Thread Kumar, Sumit
Hello, I am running tomcat 4.1. Can I deploy the servlet after my servlet code has changed without restarting the server. I am running Tomcat in stand-alone mode. -sumit - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: GZIP-encoding/mod_gzip and Tomcat??

2003-12-01 Thread Tim Funk
mod_gzip works with jk Just make sure that you have the following: mod_gzip_dechunk Yes -Tim Mike Baroukh wrote: No need for it in the connector if you're using apache! :) You can get a mod_gzip module and do it from Apache which would probably be faster. Are you sure ? Has

Re: servlet redeploy

2003-12-01 Thread Jeanfrancois Arcand
See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html [ and search the list before asking :-) ] -- Jeanfrancois Kumar, Sumit wrote: Hello, I am running tomcat 4.1. Can I deploy the servlet after my servlet code has changed without restarting the server. I am running Tomcat in

Re: JSP Editors

2003-12-01 Thread daniel
Try netbeans. Its free. And you can debug jsp's in the ide. - Original Message - From: Duncan [EMAIL PROTECTED] To: Tomcat User List [EMAIL PROTECTED] Sent: Friday, November 28, 2003 4:54 AM Subject: JSP Editors Sorry if off topic but... What do people use to edit JSPs? I'm

SEVERE: Error in action code

2003-12-01 Thread Rob Wichterman
I am getting this error in my Catalina.out file and I can seem to find anything good about it. SEVERE: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at

SessionListener

2003-12-01 Thread Hart, Justin
My SessionListener doesn't seem to be firing, any help? I have a SessionListener that I want to go off when a user authenticates to my web app (this is a correct usage, right?) So, in the web.xml of my app, I would put the lines: web-app listener listener-class

RE: SessionListener

2003-12-01 Thread Hart, Justin
Ok, so, the listener in there must implement HttpSessionListener, where can I use SessionListeners? Justin -Original Message- From: Hart, Justin Sent: Monday, December 01, 2003 11:34 AM To: Tomcat Users List (E-mail) Subject: SessionListener My SessionListener doesn't seem to be

forward thing: tomcat 4.1

2003-12-01 Thread Kumar, Sumit
Hello, This is more like a jsp question rather then the tomcat one but pardon me for asking here. In my servlet, I do a getServletContext().getRequestDispatcher( /reports.jsp?msg='selectEval'pid= + pid).forward( req, res ). The code is given below. I believe this should forward it to

RE: JSP Editors

2003-12-01 Thread Neal
Isn't netBeans now SunOne? And don't they now charge an arm and a leg for it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, November 28, 2003 6:46 AM To: Tomcat Users List Subject: Re: JSP Editors Try netbeans. Its free. And you can debug jsp's in

Please Help

2003-12-01 Thread Yuval Zantkeren
why I'm getting this error : 01/12/2003 18:23:27 org.apache.jk.server.JkCoyoteHandler action INFO: RESET Which also causing my tomcat not to serve any more. Regards, Yuval Zantkeren Domain The Net Technologies Ltd. 81 Sokolov St. Ramat-Hasharon Israel 47238 Tel: 972-3-7600500 Fax:

Re: JSP Editors

2003-12-01 Thread James Neville
Sun One Studio is Sun's 'extension' to NetBeans Studio v4 was free, but v5 is not. from Sun:- Developers who prefer to continue using a free IDE and only require J2SE and Web application development capabilities should download the NetBeans http://www.netbeans.org open source IDE.

Please Help

2003-12-01 Thread Yuval Zantkeren
why I'm getting this error : 01/12/2003 18:23:27 org.apache.jk.server.JkCoyoteHandler action INFO: RESET Which also causing my tomcat not to serve any more. Regards, Yuval Zantkeren Domain The Net Technologies Ltd. 81 Sokolov St. Ramat-Hasharon Israel 47238 Tel: 972-3-7600500 Fax:

Re: forward thing: tomcat 4.1

2003-12-01 Thread Tim Funk
You must follow the forward() with a return inside of a servlet. forward() is just a plain old java method call. -Tim Kumar, Sumit wrote: Hello, This is more like a jsp question rather then the tomcat one but pardon me for asking here. In my servlet, I do a

Re: Please Help

2003-12-01 Thread Andoni
Have you tried removing the connector line from server.xml? then tried going direct to Tomcat on the port 8080 or whatever it is set to in the Tomcat Connector on your machine (in server.xml) This is a JK problem so try to remove it from the Equation and make sure the rest works. what did you

Re: Tomcat 4 vs Tomcat 5 and MIME settings

2003-12-01 Thread Jeanfrancois Arcand
Bill Barker has already fixed this: org.apache.coyote.Response revision 1.31 date: 2003/11/16 05:20:23; author: billbarker; state: Exp; lines: +10 -3 Restore the ability to explicitly set the charset to iso-latin-1. Download the latest Tomcat 5 source and try it. -- Jeanfrancois Stephen

RE: GZIP-encoding/mod_gzip and Tomcat??

2003-12-01 Thread Subir Sengupta
If you're using Apache 2.x then you need mod_deflate http://httpd.apache.org/docs-2.0/mod/mod_deflate.html Subir -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 8:12 AM To: Tomcat Users List Subject: Re: GZIP-encoding/mod_gzip and Tomcat??

Re: Intermittent failures using DataSources

2003-12-01 Thread Liem Do
I just had another thought about this, where do you have the jdbc driver jars? You may also need a copy of the driver jars in the common/lib directory in order for the container to see it at start up time. The stack trace indicates that it not able to find the jdbc driver class. HTH Liem -

RE: Tomcat 4 threads

2003-12-01 Thread Filip Hanik
take a look at the coyote connector source code, all your questions will be answered! Filip -Original Message- From: Walter do Valle [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 5:19 AM To: [EMAIL PROTECTED] Subject: Tomcat 4 threads I have some doubts about Tomcat and his

Perhaps a thread problem

2003-12-01 Thread Luc Foisy
Tomcat 4.1.18-LE with Java 1.4.0_03 RedHat 9 Tomcat is serving through https from catalina.out Dec 1, 2003 11:09:55 AM org.apache.tomcat.util.log.CommonLogHandler log INFO: All threads are busy, waiting. Please increase maxThreads or check the servlet status75 75 some application output (which

RE: Perhaps a thread problem

2003-12-01 Thread Filip Hanik
in server.xml for each connector -Original Message- From: Luc Foisy [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 10:58 AM To: Tomcat User List (E-mail) Subject: Perhaps a thread problem Tomcat 4.1.18-LE with Java 1.4.0_03 RedHat 9 Tomcat is serving through https from

Listening to Session Creation... Need Access to Session

2003-12-01 Thread Hart, Justin
Ok, here's what I've tried. 1) Implement SessionListener, put in web.xml file in listener tags. This never seems to run. 2) Implement HttpSessionListener, put in web.xml file in listener tags. This runs, but doesn't seem to have access to the Session (I need the username and

RE: Tomcat 4 vs Tomcat 5 and MIME settings

2003-12-01 Thread Stephen Thomas
Does this mean it will still return a charset? I don't need any charset returned. I will continue using Tomcat 4.1.27 until the fixed release of 5 is stable. Thanks, Steve -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Sent: 01 December 2003 17:54 To: Tomcat

Re: Tomcat 4 vs Tomcat 5 and MIME settings

2003-12-01 Thread Jeanfrancois Arcand
Stephen Thomas wrote: Does this mean it will still return a charset? I don't need any charset returned. Now, you won't get the charset unless you ask for it (so no more Content-Type: image/gif; charset=iso-8859-1 ). However, if you call response.setCharacterEncoding(iso-9959-1), you now

RE: Doubt Reg. Servlet Contex

2003-12-01 Thread Shapira, Yoav
Howdy, You are mostly correct. The context will also be destroyed and a new one created when the application is restated (which can be done without restarting the server itself). Yoav Shapira Millennium ChemInformatics -Original Message- From: dakavara [mailto:[EMAIL PROTECTED] Sent:

RE: Forwarding

2003-12-01 Thread Shapira, Yoav
Howdy, You can also do this with a filter (mapped to url-pattern /*, looks for request URL ending in /something.jsp/, redirects accordingly. I understand your desire NOT to use Apache (even though mod_rewrite would work here) in order to keep the environment simpler and pure java. Yoav

RE: Garbage Collection issues

2003-12-01 Thread Shapira, Yoav
Howdy, Perhaps you are experiencing higher load, which requires more memory. Or perhaps your application does have a memory leak: those are possible and occur in java, so yes that would a programming error on your part. The garbage collector does much magic, but it can't save you all the time.

RE: How can we know Tomcat is running or not through Standalone Java Prog

2003-12-01 Thread Shapira, Yoav
Howdy, You have options that check slightly different things: - Ping tomcat's port: checks the server is up, accepting request on the port you check - Specify a CATALINA_PID file, have your standalone program check for presence of this file - Write out your own file from your webapp, have your

RE: jakarta Slide

2003-12-01 Thread Shapira, Yoav
Howdy, You mean beyond its users guide on its site? Yoav Shapira Millennium ChemInformatics -Original Message- From: Vaneet Sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2003 5:07 AM To: Tomcat Users List Subject: jakarta Slide Hi All, Is there any place where i can

RE: Listening to Session Creation... Need Access to Session

2003-12-01 Thread Shapira, Yoav
Howdy, 1) Implement SessionListener, put in web.xml file in listener tags. This never seems to run. 2) Implement HttpSessionListener, put in web.xml file in listener tags. This runs, but doesn't seem to have access to the Session (I need the username and pass off the Session to

RE: Listening to Session Creation... Need Access to Session

2003-12-01 Thread Hart, Justin
What am I looking for in order to get the username/password out of this? I'm using BASIC authentication. Are these credentials dumped somewhere that I could find them? I haven't been able to find that data in HttpSession? Justin -Original Message- From: Shapira, Yoav [mailto:[EMAIL

RE: Listening to Session Creation... Need Access to Session

2003-12-01 Thread Karl Coleman
Why would that be wasting time? Isn't this a tomcat list? Karl -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 2:39 PM To: Tomcat Users List Subject: RE: Listening to Session Creation... Need Access to Session I'm not going to waste time

RE: Propeties file

2003-12-01 Thread Shapira, Yoav
Howdy, I'd like to know why so few people bother to do a bit of research prior to posting ;( You can search the archives of this list, and you'll see that you have two main choices, summarized as: - Put it under your webapp root, and use ServletContext#getResource(...) - Put it on the classpath,

RE: org.apache.catalina.valves.RemoteHostValve

2003-12-01 Thread Shapira, Yoav
Howdy, I already answered this question, FCOL. Put just the subnet without a * as the attribute value. Senor Ruiz's suggestion would also work but it's not what the original poster asked. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rodrigo Ruiz [mailto:[EMAIL

RE: Sending to Printer?

2003-12-01 Thread Shapira, Yoav
Howdy, I hear you, I'm not a big javascript fan either. Yoav Shapira Millennium ChemInformatics -Original Message- From: Luc Foisy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2003 3:41 PM To: Tomcat Users List Subject: RE: Sending to Printer? That's it eh. I always try to

Where is the HowTo FAQ section?

2003-12-01 Thread Shapira, Yoav
Hi, What's up with http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Howto (linked from the HowTo section of the tomcat FAQ at http://jakarta.apache.org/tomcat/faq) ? I could swear we had a bunch of questions and answers there. Please tell me the clueless user who posted the WinXP setup

RE: Listening to Session Creation... Need Access to Session

2003-12-01 Thread Shapira, Yoav
Howdy, Why would that be wasting time? Isn't this a tomcat list? Yup, tomcat list. But as I said his approaches #1 and #3 are tomcat-specific, and I'm not going to waste my personal time working for myself, much less explaining to others, how to use server-specific non-portable non-spec

RE: SessionListener

2003-12-01 Thread Shapira, Yoav
Howdy, A SessionListener of the org.apache.catalina variety would go in the same place as all tomcat-specific features: $CATALINA_HOME/conf/server.xml. That means the class specified there must be accessible to the server classloaders, i.e. must reside in common/lib or higher on the classloader

RE: tomcat session invalidate

2003-12-01 Thread Shapira, Yoav
Howdy, Senor Souther is exactly right. It is dangerous and bad practice to depend on destroy events for memory reclamation. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, November 28, 2003 6:47 AM To: Tomcat

RE: Tomcat 4 threads

2003-12-01 Thread Shapira, Yoav
Howdy, In what moment new threads are created in Tomcat when it's running? Under many possible circumstances: new webapp deployed, new request arrived and current # processors on the receiving connector less than max and all processors busy, some new JNDI resources (e.g. 3rd party datasource

RE: Perhaps a thread problem

2003-12-01 Thread Luc Foisy
And by chance could you grant me a guess as to why this would happen? And should maxThreads be in any way related to how much traffic is expected to go through the site? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 2:22 PM To: Tomcat

RE: Perhaps a thread problem

2003-12-01 Thread Luc Foisy
Could several null pointer exceptions occuring because of some bad code in the application cause a thread problem? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 2:22 PM To: Tomcat Users List Subject: RE: Perhaps a thread problem in

RE: Propeties file

2003-12-01 Thread Marot Laurent
sorry guys, i did have a look at tomcat archives and googled that query too but couldn't find anything for my need as a run tomcat on win2k platform and i don't want the file to be acceesed for security reasons, i can't cant put it under my webapp root, ( of course i can't use tomcat realm

RE: SessionListener

2003-12-01 Thread Hart, Justin
Ok, still, I haven't found any documentation on how to add a SessionListener in the server.xml file, and adding one using the listener tags defined for web.xml files doesn't seem to work. I also haven't seen how to get a user's credentials from a HttpSession, or how to get a Session from an

RE: Propeties file

2003-12-01 Thread Shapira, Yoav
Howdy, sorry guys, i did have a look at tomcat archives and googled that query too but couldn't find anything for my need Really? Wow... A search like this has many threads that answer your question: http://marc.theaimsgroup.com/?l=tomcat-userw=2r=2s=property+file+loca tionq=b as a run

RE: SessionListener

2003-12-01 Thread Shapira, Yoav
Howdy, Ok, still, I haven't found any documentation on how to add a SessionListener in the server.xml file, and adding one using the listener tags defined for web.xml files doesn't seem to work. The XML is the similar but not quite the same to the portable one: listener

Re: forward thing: tomcat 4.1

2003-12-01 Thread Doug Parsons
Kumar, Why not? There is nothing in the code to stop it from proceeding. Think in the terms of a servlet. If you called a servlet instead of placing this code in the jsp, how would you write it. Also do you mean for the (5) statement to be outside your else bracket? Or did you mean for it to look

Re: forward thing: tomcat 4.1

2003-12-01 Thread Doug Parsons
Sorry I read to fast. You are in a servlet. Unless you return or escape out or try catch it is going to execute to the end or until you do something to exit. - Original Message - From: Kumar, Sumit [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 01,

tomcat on kaffe

2003-12-01 Thread kalyan ram
Hai How to run tomcat on kaffe virtual machine?During setup or installation,what exactly do i need to modify? Any pointers would be helpful. Thanks -Ram __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/

RE: Strange GET error with recent linux upgrade.

2003-12-01 Thread Brian Menke
I didn't get a response on this, but I did solve the problem and thought I would pass it on just in case someone else runs into something similar. I found out that the web.xml file was an older version that used an older DTD (2.2). It was tied to an older version of tomcat. I think around tomcat

jk-1.2.5 not working

2003-12-01 Thread Michael Valentiner
I have apache 2.0.48, tomcat 4.1.29, and jk-1.2.5 on the latest Mac OSX (Panther). Apache and tomcat are working, but not jk. jk is apparently failing to find a match when attempting to map the requested URI. I configured server.xml, workers.properties, and httpd.conf according to the

RE: Tomcat 4.0.x memory leak (not javac)

2003-12-01 Thread Shapira, Yoav
Howdy, First, prove to us it's the same bug. I say bug in quotes when referring to the original issue because I have no clue what's being discussed unless someone posts a bugzilla ID for it. Yoav Shapira Millennium ChemInformatics -Original Message- From: Abhijeet Selukar

RE: tomcat on kaffe

2003-12-01 Thread Shapira, Yoav
Howdy, Please don't cross-post. Yoav Shapira Millennium ChemInformatics -Original Message- From: kalyan ram [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 1:17 PM To: [EMAIL PROTECTED] Subject: tomcat on kaffe Hai How to run tomcat on kaffe virtual machine?During setup or

Re: Where is the HowTo FAQ section?

2003-12-01 Thread Tim Funk
The HowTo is in the Wiki. I was hoping the power of Wiki would allow more in depth instructions. So far it hasn't turned out that way. I did notice over the weekend the current revision is really bad, unless someone else beats me - I'll try to revert to an older one - or put some better

Re: Where is the HowTo FAQ section?

2003-12-01 Thread Mark Eggers
I'm putting some stuff in the Wiki right now. I should be done in another hour or so. I am describing the following: Tomcat 4.1.x / Apache 2.0.x / mod_jk2 IP sockets / Linux Tomcat 4.1.x / Apache 2.0.x / mod_jk IP sockets / Linux Tomcat 4.1.x / Apache 2.0.x / mod_jk2 IP sockets / Win2K Tomcat

RE: SessionListener

2003-12-01 Thread Hart, Justin
I still don't see how one gets a session from HttpSession or user credentials? I see how to get a UserPrincipal, but without the password, I still can't authenticate the user :-/ Am I missing something? Justin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent:

Load Balancing Factor Tomcat-mod-jk2

2003-12-01 Thread Asif Chowdhary
Which instance will get more requests? First or Second #First instance of tomcat in workers2.properties lb_factor = 10 #Second instance of tomcat in workers2.properties lb_factor = 20 Thanks - To unsubscribe, e-mail:

Re: SessionListener

2003-12-01 Thread Atreya Basu
Sorry, I should have added to this earlier, but I thought that SessionListener should go in the web.xml document under the Listener element. Or am I thinking about HttpSessionListener which is different Anyways if it is HttpSessionListener that you are talking about I can provide some

RE: SessionListener

2003-12-01 Thread Hart, Justin
If this can be done with HttpSessionListener, than I am game. What I want to do, is get the username and password when the user signs on, so I can then use this data to authenticate the user to other programs as themselves. I'm using BASIC authentication, and trying to avoid having them sign on

Sticky sessions - How to configure Apache?

2003-12-01 Thread Antonio Fiol BonnĂ­n
Hello, I have TWO Apache and THREE Tomcat servers. I tried to configure them to use mod_jk and sticky sessions. Namely, I simply added jvmRoute=something to every server. A different something for each, as explained on the docs. I see it at the end of JSESSIONID cookie, so I must believe it

Tomcat FAQs on Wiki

2003-12-01 Thread Mark Eggers
Folks, I have put some of my documentation on the Tomcat Wiki at: http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb These are sort of bare-bones documents about some ways to connect Tomcat/Apache on Linux, Tomcat/Apache on Windows/2000, and Tomcat/IIS 5 on Windows/2000. Hopefully this

Re: SessionListener

2003-12-01 Thread Atreya Basu
Hi, Here is how I use the HttpSessionListener. First I create a Class that implements HttpSessionListener: package com.gri.web; import javax.servlet.http.*; public MySessionListener implements HttpSessionListener { private static int num_sessions = 0; private HttpSession session = null;

Include tag, dynamic param

2003-12-01 Thread Peter Maas
In the documentation for the include tag I read that something like: jsp:include page=slideEvents.jsp flush=true jsp:param name=BroadcastId value={parameterValue | %=BroadcastId%}/ /jsp:include Should work... This compiles / and runs... but the expression is never

Re: Problems Deploying web application

2003-12-01 Thread Rainer Stransky
Late (but better late than never) acknowledge of my problem solution: To solve the problem you have to add a new task defintion: taskdef name=install classname=org.apache.catalina.ant.InstallTask/ and replace the deploy task within the install target with the new above defined install task.

Re: How to install new version of application (war file)

2003-12-01 Thread Rainer Stransky
Sorry Jake, I do not understand your suggestion. In my manager/html there is no tag field in the deployment form. Jeanfrancois link to the 5.0 documentation gave me the hint to put the autoDeploy=true to the server.xml : Host appBase=webapps name=myhost.mydomain autoDeploy=true

RE: Garbage Collection issues

2003-12-01 Thread neal cabage
When I said that surely it can't be a memory leak in my app I was operating under the assumption that the JRE runs garbage collection periodically anywayis this not true? If I was waisting resources and not releasing them in a way that the GC could take them back when it runs

Argument Type Mismatch

2003-12-01 Thread Hart, Justin
Listener className=class inheriting from SessionListener/ I get an argument type mismatch error parsing my server.xml... Is there something wrong with this line? Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Tag Handler pool eating up Memory (and enablePooling is set to false)

2003-12-01 Thread Neil Aggarwal
Hello: We have several tomcat servers running an application. The servers slow down after a few hours of uptime. Looking at the memory usage on the servers, we noticed that the servers seem to be accumulating memory and finally they slow down when the memory utilization becomes high. We are

Shell script to check if Tomcat is running?

2003-12-01 Thread Tom Ly
I plan on using cron to automatically run a script to check if Tomcat is running. How would I write one? -Tom - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard

Servlet as Welcome File doesn't work

2003-12-01 Thread SH Solutions
Hello. I'm using tomcat 4.1.29 on debian and I have the following problem: I need to get / handled by my Servlet myPackage.Root, but I do not want to change the mapping of ordinary files. Just as a welcome file would, but welcome-file does not apply to servlets, right? My solutions so far is to

Re: building mod_jk - exportable?

2003-12-01 Thread Christopher Schultz
Jon, Is it possible to modify the settings for mod_jk *after* building it so I can export it to this server from an internal build machine? I don't think that mod_jk keeps any settings compiled-in, so you should be okay. Just to be extra-sure, you should compile it on a machine which is

Re: Servlet as Welcome File doesn't work

2003-12-01 Thread Rainer Stransky
edit the $CATALINA_HOME/ROOT/WEB-INF/web.xml if you want the root application to show an custom welcome-file and put welcome-file-list welcome-filemyFile.jsp/welcome-file /welcome-file-list to the web-app tag. This works on my tomcat 5.0 Rainer --

Re: Argument Type Mismatch

2003-12-01 Thread Tim Funk
In server.xml, Listeners are LifeCycleListeners http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/LifecycleListener.html -Tim Hart, Justin wrote: Listener className=class inheriting from SessionListener/ I get an argument type mismatch error parsing my

RE: Argument Type Mismatch

2003-12-01 Thread Hart, Justin
I thought that there was something related to that, is it that it must implement LifeCycleListener SessionListener, or is SessionListener just not happening? How is it possible, if at all, to add my own SessionListener? Justin -Original Message- From: Tim Funk [mailto:[EMAIL

RE: Tag Handler pool eating up Memory (and enablePooling is set to false)

2003-12-01 Thread Filip Hanik
are you sure this is a tomcat reference holding on to it? it could be one of your classes as well, you need to run it through a memory profile in order to find out Filip -Original Message- From: Neil Aggarwal [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 2:53 PM To:

Re: Shell script to check if Tomcat is running?

2003-12-01 Thread Tim Funk
2 really simple ways - # Assume tomcat is the only java process COWBELL=`ps -ef | grep java| grep -v grep | wc -l` if [ $COWBELL 0 ]; then echo Woohoo - the process is there; fi - OR - # Assume glodenfile

Re: Shell script to check if Tomcat is running?

2003-12-01 Thread Oscar Carrillo
On Mon, 1 Dec 2003, Tim Funk wrote: 2 really simple ways - # Assume tomcat is the only java process COWBELL=`ps -ef | grep java| grep -v grep | wc -l` if [ $COWBELL 0 ]; then echo Woohoo - the process is there; fi - This

  1   2   >