How can I limit the number of instance my servlet can server concurrently?

2006-04-03 Thread Meryl Silverburgh
Is it possible to limit Tomcat to just handle 10 concurrently request to my servlet? for all others (11 and onward), it will queue them up, and serve them only when one of the currently-serving request is done? Thank you. - To un

Re: Deploying with Static Context Descriptors

2006-04-03 Thread Bob_Savard
Hi. I just struggled with this and here's what I've determined so far. It depends on where your context xml file lives: 1) If your context XML file is named via the convention $CATALINA_HOME/conf/[enginename]/[hostname]/[contextname].xml, then you're fine. Note that the file name is named afte

Tomcat5 Service.

2006-04-03 Thread Gohil, Jayesh
> > Hi, > > > > I am using Tomcat5.0.28.I have jdk > j2sdk1.4.2_07.For some specific reason I want to > create Tomcat5 service manually.I want this service > to be an automatic type.As there are two ways to > achieve this. > > > > 1) Just call "service.bat install" from catalina > home\bin.I am

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Rajeev Jha
TP If the thread servicing your request blocks, the browser will not quit. The browser would wait the min( browser time-out ,response stream is closed). this is the trick many people use. doGet(request, response){ out = response.getOutputStream(); // when you write something out.write(by

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Rajeev Jha
I think everybody on the list here agrees that http is not the right sort of thing for a chat application. And most of the IM/chat applications do not run on http anyway. opening the sockets directly for such an application is better/easier any day. However, people do demand an HTTP

Tomcat 5.5.15 Undeploy Problem

2006-04-03 Thread Gamigin Gamigin
Server specs: Tomcat Version: Apache Tomcat/5.5.15 JVM Version: 1.5.0_06-b05 JVM Vendor Sun Microsystems Inc. OS Name: Linux OS Version: 2.6.14.7-grsec OS Architecture: i386 This is running on a third party shared hosting service so I can't change the server setup or try upgrading to 5.5.16. I'm

JNDI configure question

2006-04-03 Thread red phoenix
I use tomcat 5.5.16,and my database is Microsoft Access 2000,and I have configured ODBC as SMS in windows,then I configure JNDI like follows: /*\tomcat\conf\server.xml*/ /*\tomcat\webapps\test\WEB-INF\web.xml*/ http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.o

Tomcat with PHP support

2006-04-03 Thread Indraveni
Hi, I came to know recently that there is a facility for PHP to run under Tomcat Web server. So I want to compile PHP with tomcat support and use the PHP coding for that. I have some points to think. I want to know whether if we make PHP to run under Tomcat then will it support all the f

Re: Request Entity Too Large with mod_jk and SSL Client Certs

2006-04-03 Thread Bill Barker
"Seth Milder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi list, > > I am seeing this in the logs when posting to a particular URL: > > [Mon Apr 03 14:52:06 2006] [13089:15648] [debug] > ajp_get_endpoint::jk_ajp_common.c (2131): acquired connection cache slot=0 > [Mon Apr 03 1

Re: Question/Problem

2006-04-03 Thread Bill Barker
>From the line number, it looks like a copy of tomcat-util.jar somewhere that it doesn't belong. "Eric C. Forcey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I'm not sure if this is the appropriate list if not forgive me. I have a server running Fedora/Tomcat/ColdFusion. I am

RE: How to setup Tomcat as a service on W2K3 with special arguments

2006-04-03 Thread Tim Lucia
Put one argument per line in the Java tab of the service configuration. Tim -Original Message- From: Stuart, Steven G (SStuart) [Contractor] [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 8:59 PM To: users@tomcat.apache.org Subject: How to setup Tomcat as a service on W2K3 with

How to setup Tomcat as a service on W2K3 with special arguments

2006-04-03 Thread Stuart, Steven G (SStuart) [Contractor]
To Whomever It may concern: I am trying to setup Apache Tomcat 5.0.0.28 to start at startup. I have figured out how to change the first line, of the batch file to start up automatically, but not the second. Can someone please help me. Here is the original Batch file, used to start Tomcat

Re: PHP Servlet Fails in Tomcat 5.5.15-SOLVED

2006-04-03 Thread Gregg Leichtman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am using the same version of Tomcat and PHP. I did erratically get JVM crashes which brought Tomcat down. Placing the PHP file that I was trying to access under /webapps/ROOT solved my problem for the reason given. However, a null IOException is pret

Re: tools.jar not in CP (Tomcat 5.5.15)

2006-04-03 Thread Martin Schulz
I tried to copy tools.jar to shared/lib, but I think that the JVM itself might prevent that from working, not sure about chapter and verse though. After perusal of the source code and comparison between 4.1.31 and 5.5.15, as well as comparing the Windows and Unix startup scripts, I am now more

how to control lifetime of JSessionID cookie in Tomcat 5.5

2006-04-03 Thread Andrew E. Davidson
Hi I am trying to figure out how to set up my application so that users are only forced to log on every couple of day. Sort of like my.yahoo.com. If you click "remember my id" you can close/restart you browser and not have to log back in again. Here is part of my web.xml file

Question/Problem

2006-04-03 Thread Eric C. Forcey
I'm not sure if this is the appropriate list if not forgive me. I have a server running Fedora/Tomcat/ColdFusion. I am a new administrator to this machine. I haven't worked with CF or Tomcat before. Currently their server is down. Getting the following in the catalina.out file: Apr 3, 2006

Re: Deploying with Static Context Descriptors

2006-04-03 Thread Eric Wulff
ok, figured I'd reply to this post one more time because I think this issue is directly related to the context descriptor and anyone who is using MySQL and upgrading from tomcat 5.0.28 to 5.5.16, and likely other versions. You need to configure the resource factory differently than how the docs di

Tomcat won't read context files

2006-04-03 Thread Cord Awtry
All, I've got a new installation of tomcat5.5.16 but it's having issues starting up and IU can't figure out why. I don't have a webapp deployed, I just have a ROOT.xml file in Catalina/localhost which points at my source. According to the debug it finds the file but it doesn't seem to

Re: [OT] Better JSP Performance with Opteron

2006-04-03 Thread Rainer Jung
Leon Rosenberg wrote: Ok, my fault, read "page" and "java" in one sentence -> map to Java Page -> Java Server Page. Must be a circuit error in the brain. Anyway, does it mean, that a proper configured JVM on an opteron processor, will be significantly faster? Could be very interesting for caches.

RE: Character Encoding : Unix vs Windows

2006-04-03 Thread Derrick Koes
java.net.URLEncoder.encode -Original Message- From: Nigel Blake [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 5:43 PM To: users@tomcat.apache.org Subject: Character Encoding : Unix vs Windows Problem : Creating a URL type with parameters that have a space between them causes an

Re: Character Encoding : Unix vs Windows

2006-04-03 Thread Michael Jouravlev
On 4/3/06, Nigel Blake <[EMAIL PROTECTED]> wrote: > Problem : Creating a URL type with parameters that have a space > between them causes an IOException in a javabean when called from > Tomcat 5.0.0.27 on a Unix installation. Using the same bean and JSP > code causes no problem when invoked on the

Character Encoding : Unix vs Windows

2006-04-03 Thread Nigel Blake
Problem : Creating a URL type with parameters that have a space between them causes an IOException in a javabean when called from Tomcat 5.0.0.27 on a Unix installation. Using the same bean and JSP code causes no problem when invoked on the same version of Tomcat on a Windows installation. Solutio

Re: [OT] Better JSP Performance with Opteron

2006-04-03 Thread Leon Rosenberg
Ok, my fault, read "page" and "java" in one sentence -> map to Java Page -> Java Server Page. Must be a circuit error in the brain. Anyway, does it mean, that a proper configured JVM on an opteron processor, will be significantly faster? Could be very interesting for caches... Leon On 4/3/06, Rai

Re: Deploying with Static Context Descriptors

2006-04-03 Thread Eric Wulff
ok, I solved the problem for my configuration and perhaps my solution will help you. I'm running tomcat 5.5.16 on win XP and java 1.5_06. I have my webapp sitting in a directory titled ROOT instead of appName as I had it in tomcat 5.0.28 (of course I renamed the original ROOT directory to somethi

Re: [OT] Better JSP Performance with Opteron

2006-04-03 Thread Rainer Jung
Using large pages to eliminate TLB misses has nothing to do with the size of the objects. From the view of the operating system java heap is just a huge and continuous chunk of memory. Anything what's inside is managed by the JVM. But whenever the JVM needs to access an adress it needs to make

RE: list hosts under tomcat

2006-04-03 Thread Tim Lucia
http://localhost:8080/manager/status/all will give you pretty much all available information on the tomcat you ask about. It's in HTML. http://localhost:8080/manager/status?XML=true - doesn't show the hosts, as far as I can tell. -Original Message- From: John Powers [mailto:[EMAIL PROTE

list hosts under tomcat

2006-04-03 Thread John Powers
/manager/list Give you a list of the contexts in the current virtual host inside tomcat. Is there a way to get a list (preferably xml) of the hosts defined in tomcat?I have a servlet in each host that I want to call and aggregate the info, but I need a list of the hosts so I can know who to

[OT] Better JSP Performance with Opteron

2006-04-03 Thread Leon Rosenberg
Hi, recently I found (ok actually our sysadmin did) this articles on the web, and wanted to share some thoughts. http://www.devx.com/amd/Article/30529 http://www.devx.com/amd/Article/30785 The article describes, that using opteron and large memory pages can give significant performance wins. I d

Re: Deploying with Static Context Descriptors

2006-04-03 Thread Eric Wulff
I'm having the exact same problem and have followed a similar path looking for a solution - but no success yet. I'll keep the list posted if I find anything. I eagerly await suggestions here too of course. thx Eric On 4/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm migrating web app

Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-04-03 Thread Shankar Unni
David Grace wrote: Maybe the solution to the problems with bad posts can be solved by an email once a month that describes exactly what the accepted posting policy is. Ah, but that's not enough - see, that would require that you actually read the archives, and that's something that's apparen

Deploying with Static Context Descriptors

2006-04-03 Thread sean . harrison
I'm migrating web applications from Tomcat v.4 to v.5.5 and having some trouble adapting my old virtual hosts setup with the 5.5 recommended methods. According to http://tomcat.apache.org/tomcat-5.5-doc/config/context.html "In addition to nesting Context elements inside a Host element, you can

Re: How to run a thread on app startup

2006-04-03 Thread Bruce McGuire
Hello Jim. Actually, I have never heard of Quartz. I will look it up and consider it. Thanks, Bruce. Jim Freeby wrote: Have you considered using Quartz to run recurring jobs? It comes with a Servlet that can be used to initialize your jobs when Tomcat starts up :) -Original Message--

RE: How to run a thread on app startup

2006-04-03 Thread Jim Freeby
Have you considered using Quartz to run recurring jobs? It comes with a Servlet that can be used to initialize your jobs when Tomcat starts up :) -Original Message- From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 12:51 PM To: Tomcat Users List Subject: RE:

RE: Tomcat tag question

2006-04-03 Thread John Powers
Or use a filter to append that tag onto any response that is html... -Original Message- From: Darryl L. Miles [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 2:38 PM To: Tomcat Users List Subject: Re: Tomcat tag question MW Mike Weiner (5028) wrote: > Dear List readers > > Sorr

RE: How to run a thread on app startup

2006-04-03 Thread Asensio, Rodrigo
I didn't use ServletContextlistener beause my inner classes don't know anything about a servlet or http (MVC) and the core is used across services, swing and swt applications, etc. -Original Message- From: Bruce McGuire [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 3:46 PM To: To

RE: How to run a thread on app startup

2006-04-03 Thread Asensio, Rodrigo
Here you have more info public class Application { public static final int WEB_APPLICATION = 0; public static final int WEB_SERVICE = 1; public static final int WINDOWS_STANDALONE = 2; public static final int WINDOWS_PROCESS = 3; private static InheritableThreadLocal instance = new Inh

Re: How to run a thread on app startup

2006-04-03 Thread Bruce McGuire
Hello Rodrigo. Thanks very much for the information. Bruce. Asensio, Rodrigo wrote: I figured out that the best way to do that is with a variable of type InheritableThreadLocal that keeps a copy per thread. We have 4 webapps over the same framework and all works in the same way. The servlet

Re: How to run a thread on app startup

2006-04-03 Thread Bruce McGuire
Hello Tim. Thanks for the information. Bruce. Tim Lucia wrote: Google for ServletContextListener -Original Message- From: Bruce McGuire [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 3:31 PM To: users@tomcat.apache.org Subject: How to run a thread on app startup Hello

RE: How to run a thread on app startup

2006-04-03 Thread Asensio, Rodrigo
I figured out that the best way to do that is with a variable of type InheritableThreadLocal that keeps a copy per thread. We have 4 webapps over the same framework and all works in the same way. The servlet creates a new instance of MyApplication and sets this "singleton by thread" in the MyAppli

RE: How to run a thread on app startup

2006-04-03 Thread Tim Lucia
Google for ServletContextListener -Original Message- From: Bruce McGuire [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 3:31 PM To: users@tomcat.apache.org Subject: How to run a thread on app startup > Hello. > > I need to have an application that has a seperate thread that load

Re: Tomcat tag question

2006-04-03 Thread Darryl L. Miles
MW Mike Weiner (5028) wrote: Dear List readers Sorry to bother you with what is most likely a silly question, but i have been googling, and found no real answers and was hoping you might know. I am doing another Tomcat project and to that end, i need to get tomcat to behave in a certain way, n

help for context

2006-04-03 Thread Qaiser Mehmood
Getting this error while stoping tomcat , plz help me: SEVERE: Destroy method on bean with name 'jbi' threw an exception edu.emory.mathcs.backport.java.util.concurrent.RejectedExecutionExceptio n at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$AbortP olicy.rej

How to run a thread on app startup

2006-04-03 Thread Bruce McGuire
Hello. I need to have an application that has a seperate thread that loads when tomcat loads. It scans my db every once in a while, to find out if any new info has to be processed. I have tried to find out from the docs how to do this, but I can't find it. Thanks for your help, Bruce.

Re: tomcat pauses for no reason at all

2006-04-03 Thread Markus Schönhaber
Javier Gonzalez wrote: > I have a tomcat server (Tomcat 5.5.16, sun jdk 1.5, linux 2.6), and, for no > reason at all, > after some time it decides to pause, with this message in the > catalina.outlogs: > > org.apache.coyote.http11.Http11Protocol pause > INFO: Pausing Coyote HTTP/1.1 on http-x-x-x-x

Re: 5.5.16 & native library

2006-04-03 Thread Markus Schönhaber
Eric Wulff wrote: > many thx Dave, I won't worry about until I clearly need to then. > Another question - is this issue related to the Apache Portable > Runtime? Yes. http://tomcat.apache.org/tomcat-5.5-doc/apr.html Regards mks --

Re: [REPOST] Tomcat 5.5.15 - HTTPS hanging and intermittent "Page Cannot be Displayed" problems

2006-04-03 Thread Markus Schönhaber
Richard Mundell wrote: > In 5.5.15 we switched to using the (ever-so-well-documented) APR native > library so I suspect it's the OpenSSL code in the APR library which is > causing the problem. First thing I'd try is to update to tomcat-native 1.1.2. This fixes an issue where sometimes the respons

tomcat pauses for no reason at all

2006-04-03 Thread Javier Gonzalez
Hi, I have a tomcat server (Tomcat 5.5.16, sun jdk 1.5, linux 2.6), and, for no reason at all, after some time it decides to pause, with this message in the catalina.outlogs: org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-x-x-x-x Any attempt to connect will r

Request Entity Too Large with mod_jk and SSL Client Certs

2006-04-03 Thread Seth Milder
Hi list, I am seeing this in the logs when posting to a particular URL: [Mon Apr 03 14:52:06 2006] [13089:15648] [debug] ajp_get_endpoint::jk_ajp_common.c (2131): acquired connection cache slot=0 [Mon Apr 03 14:52:06 2006] [13089:15648] [error] ajp_marshal_into_msgb::jk_ajp_common.c (490): faile

Tomcat tag question

2006-04-03 Thread MW Mike Weiner \(5028\)
Dear List readers Sorry to bother you with what is most likely a silly question, but i have been googling, and found no real answers and was hoping you might know. I am doing another Tomcat project and to that end, i need to get tomcat to behave in a certain way, namely i need tomcat to add an ht

Re: [REPOST] Tomcat 5.5.15 - HTTPS hanging and intermittent "Page Cannot be Displayed" problems

2006-04-03 Thread David Smith
It'd be interesting if you removed the APR library and tried it to see if your issues can be isolated to that library. Also I think (I generally haven't been following the APR module too closely) there have been some bug fixes for the 5.5.16 version. --David Richard Mundell wrote: >In 5.5.15 we

Undeploy/deploy WAR clears out files in symlink?

2006-04-03 Thread Michael Atlas
Hello, I currently deploy my JSP application via the ant WAR tasks to my production server. After it gets deployed, I have a directory that needs to be a symlink on the server: /opt/tomcat/webapps/myapp/userfiles/specialfiles -> /specialfiles I make this symlink in my ant script after deployin

Re: 5.5.16 & native library

2006-04-03 Thread Eric Wulff
many thx Dave, I won't worry about until I clearly need to then. Another question - is this issue related to the Apache Portable Runtime? Eric On 4/3/06, David Rees <[EMAIL PROTECTED]> wrote: > On 4/3/06, Eric Wulff <[EMAIL PROTECTED]> wrote: > > > > Doesn't seem too serious but I've found litt

Re: Get JDBCRealm's current user

2006-04-03 Thread Rapthor
request.getRemoteUser() was the method I was searching for! Thanks :) -- View this message in context: http://www.nabble.com/Get-JDBCRealm%27s-current-user-t1341315.html#a3731063 Sent from the Tomcat - User forum at Nabble.com. ---

Re: 5.5.16 & native library

2006-04-03 Thread David Rees
On 4/3/06, Eric Wulff <[EMAIL PROTECTED]> wrote: > > Doesn't seem too serious but I've found little doc on it. I > downloaded the tomcat-native.zip but there is no readme, install, > config file and I haven't been able to find documentation about > install config for this. 2 questions... > > How

Re: Context files disapearring

2006-04-03 Thread David Smith
I'm not very familiar with Redhat's offerings. My main dist of unix is Mandriva (used to be Mandrake). At any rate, deleting the context xml files is not normal tomcat behavior in any version I've ever run (tomcat 3.3 - 5.5). If I were sitting in front of the machine, I'd be looking to some secu

RE: [REPOST] Tomcat 5.5.15 - HTTPS hanging and intermittent "Page Cannot be Displayed" problems

2006-04-03 Thread Richard Mundell
In 5.5.15 we switched to using the (ever-so-well-documented) APR native library so I suspect it's the OpenSSL code in the APR library which is causing the problem. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 2:18 PM To: Tomcat Users List Sub

Re: [REPOST] Tomcat 5.5.15 - HTTPS hanging and intermittent "Page Cannot be Displayed" problems

2006-04-03 Thread David Smith
When I said change log, I meant the text file that lists out all the changes the developers made between releases. What issues they fixed and what not. Is your install using the APR native library that I believe was introduced somewhere around 5.5.15? --David Richard Mundell wrote: >Hi David,

RE: [REPOST] Tomcat 5.5.15 - HTTPS hanging and intermittent "Page Cannot be Displayed" problems

2006-04-03 Thread Richard Mundell
Hi David, There's nothing in any of the log indicating any problems. We uninstalled Tomcat 5.5.15 on the server and installed 5.5.9 with identical configuration (with the exception of reconfiguring the HTTPS connector to use the Java Key Store rather than OpenSSL-style certificate and key). No ot

help for context

2006-04-03 Thread Qaiser Mehmood
Getting this error while stoping tomcat : SEVERE: Destroy method on bean with name 'jbi' threw an exception edu.emory.mathcs.backport.java.util.concurrent.RejectedExecutionExceptio n at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$AbortP olicy.rejectedExecution(Thre

Re: [REPOST] Tomcat 5.5.15 - HTTPS hanging and intermittent "Page Cannot be Displayed" problems

2006-04-03 Thread David Smith
Given you've indicated all the headaches occurred in the move from 5.5.9 to 5.5.15, you might want to take a look at the change log in relation to your environment. Are your connectors configured the same (acceptCount, maxThreads)? Beyond that, issue 1 implies something else may be causing issues

5.5.16 & native library

2006-04-03 Thread Eric Wulff
I just installed java 5 and tomcat 5.5.16 in order to experiment with trails. I'm ready to start developing using ruby on rails or trails. I'm hoping trails is my answer because my experience is with server side java - not ruby. Anyway, I'm having problems getting going on tomcat 5.5.16 and one

tomcat 5.5.16 vs 5.0.28 - web app context

2006-04-03 Thread Eric Wulff
Hi, I'm having problems getting my webapp to be recognized at the root of my development tomcat server 5.5.16 (http://localhost:8080). I've been using tomcat 5.0.28 for 1.5 years and accomplished this by putting a webAppName.xml file at catalina.home/conf/Catalina/localhost containing the followin

Re: Tomcat 5.5.15 in "debug mode"?

2006-04-03 Thread Mark Thomas
When starting a new thread (i.e. sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. T

Tomcat 5.5.15 in "debug mode"?

2006-04-03 Thread John Cherouvim
Hello I have a serious problem with Tomcat 5.5.15 on windows 2003 with Java 1.5.0_06-b05. Tomcat runs as service in mode jvm (and not mode java, not sure what that is but anyway). Every request on the server gives me this block of debug log on stdout.log 2006-04-03 17:51:36,421 DEBUG [ajp-800

Re: change alias in https

2006-04-03 Thread Mark Thomas
[EMAIL PROTECTED] wrote: > Hello, > I need to use another alias than tomcat in https with tomcat 5.5 (keytool > -genkey -alias newalias -keyalg RSA -keystore /etc/keystore -storepass > mysecretpass). Have you got any idea? Thanks Try setting the (undocumented) keyAlias property on the connector.

[REPOST] Tomcat 5.5.15 - HTTPS hanging and intermittent "Page Cannot be Displayed" problems

2006-04-03 Thread Richard Mundell
Apologies for the repost but I sent this last week but didn't get any replies. In the hope that the people with the answers on this might've missed it, I'm trying again... ;-) _ From: Richard Mundell [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 11:33 AM To: 'users@tomcat.apache

RE: jsf-impl.jar does not get deleted on app undeploy

2006-04-03 Thread Jim Freeby
Not sure if you found the answer, but this sounds like the same problem as a previous post (see subject "Ant Deploy Task Problem") My solution is I updated my META-INF/context.xml as follows: and now undeploy can properly remove the webapp directory. Apparently there is a problem

RE: Apache Tomcat Native library not found on the java.library.path

2006-04-03 Thread sean . harrison
Thanks, Kerem. I added the following to the top of catalina.sh LD_LIBRARY_PATH=/usr/local/apr/lib export LD_LIBRARY_PATH but on startup I still get INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

RE: Can any body send me a sample war file to demonstrate Connection pool in tomcat 5.5

2006-04-03 Thread Farrow, Marc
You need to add a new Data Source either globally or within your context. Give it a name say "jdbc/connectionname". Check Tomcat documentation on how to do this. Then in your java code write this to get your Data Source reference and connection via this code: Context ctx

Can any body send me a sample war file to demonstrate Connection pool in tomcat 5.5

2006-04-03 Thread rao krishna
Can any body send me a sample war file which demonstrate Connection pool in tomcat 5.5 using jndi look up procedure. I tried a lot But I could n't. Any alternate in apache tomcat5.5 also ok. Please help me as soon as possible. __ Do You Yahoo!? Tir

Re: Context files disapearring

2006-04-03 Thread tomcat
I'm running tomcat on Linux machine (FC2) and it is installed in: /usr/local/jakarta/tomcat Aladin > Sounds to me like some other process is responsible for this. Out of > curiosity, what platform are you on (Windows, Linux, etc., ...) and > where is tomcat installed? > > --David > > [EMAIL PRO

Re: Context files disapearring

2006-04-03 Thread David Smith
Sounds to me like some other process is responsible for this. Out of curiosity, what platform are you on (Windows, Linux, etc., ...) and where is tomcat installed? --David [EMAIL PROTECTED] wrote: >Thanks for the response. I've never seen it happen randomly either... but >what can I say? > >I

Re: tomcat users file

2006-04-03 Thread Rainer Jung
During startup, tomcat reads tomcat-users.xml and then immediately writes it out again as tomcat-users.xml.new and afterwards renames tomcat-users.xml.new to tomcat-users.xml (I don't know who invented that ...). So either: - the runtime user has write access to the directory tomcat-users.xml is

Re: mod_jk Connector: version question

2006-04-03 Thread Rainer Jung
1.2.15 ist current stable for linux also. The page is wrong. I don't know where the binaries come from, so unfortunately at the moment there seems to be no binary download. If you build yourself, take 1.2.15 sources. Paul Smith wrote: I notice here: http://www.apache.org/dist/tomcat/tomcat-con

Re: Context files disapearring

2006-04-03 Thread tomcat
Thanks for the response. I've never seen it happen randomly either... but what can I say? I shutdown my server yesterday (as in powered it off) and when I restarted it, all the context files were gone including the manager.xml. Any thoughts?? Aladin > [EMAIL PROTECTED] wrote: >> I am using T

JSP 2.x *.tag files problem

2006-04-03 Thread Darryl L. Miles
My question is about the use of *.tag files, to have the container (TC) automatically build tag libraries from my test.tag file. But some aspects don't work as I would naturally expect and I don't know if this is my lack of understanding or a genuine bug. When I use <%@ attribute name="vvAbcDe

Re: getsession if you know the id?

2006-04-03 Thread David Delbecq
Pack you HttpSessions in WeakReference objects so they can be GCed (*not* SoftReferences as suggested because SoftReference are only GCed when outofmemory, while WeakReference are gced about as soon as the object is not reachable anymore by hardreference). http://java.sun.com/j2se/1.5.0/docs/api/j

Re: getsession if you know the id?

2006-04-03 Thread Leon Rosenberg
On 4/3/06, John Powers <[EMAIL PROTECTED]> wrote: > We were using a list of sessions to report who is logged in now. > however our sessions don't look like they are being collected by the GC. Which is right since you maintain a reference to the session object it can't be GCed. you should check the

RE: getsession if you know the id?

2006-04-03 Thread John Powers
The "application" object in jsps...the hosts in the server.xml. the context of the httpsessions for each user. -Original Message- From: Franck Borel [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 4:28 AM To: Tomcat Users List Subject: Re: getsession if you know the id? > If

RE: getsession if you know the id?

2006-04-03 Thread John Powers
We were using a list of sessions to report who is logged in now. however our sessions don't look like they are being collected by the GC. We have a serious memory problem. I was thinking this list may be a problem so I was removing all the actual httpsessions from it and was going to just 'get' t

Re: Context files disapearring

2006-04-03 Thread Markus Schönhaber
[EMAIL PROTECTED] wrote: > I am using Tomcat 5.5.16 and every now and then, my context.xml files get > deleted from the $TOMCAT_HOME/conf/Catalina/localhost directory. This > seems to be random and it is becoming very frustrating. > > Does anyone know what's causing this to happen? and how the pro

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Darryl L. Miles
Tp wrote: Well, that's a good question. The outcome of this thread might be just that. But it would have been nice to use existing software infrastructure. Maybe look at the IRC protocol ? Has existing infrastructure, heritage and eco-system. http://www.irchelp.org/irchelp/rfc/ http://www

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Remy Maucherat
On 4/3/06, Tp <[EMAIL PROTECTED]> wrote: > Also the reference to the OutputStream itself? I mean it should stay > open until the connection closes. Are you sure? This OutputStream object is a fake facade, and loses its relationship to the actual socket at the end of the request. -- xx

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Tp
David Delbecq schrieb: Here a diagram: Client sends GET -> Server Server sends HEADERS (Content Encoding: Chunked) -> Client Server sends chunks -> Client Client displays them whenever they arrive. Just one point. If your 'client' is a classical browser it won't work like this out of the box,

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Tp
Remy Maucherat schrieb: On 4/3/06, Tp <[EMAIL PROTECTED]> wrote: Remy Maucherat schrieb: But you said that the connection will not close, when the doGet() or doPost() method returns, which of course make a lot of sense. Otherwise Persistent connections would not be possible at all. So if that'

RE: tomcat users file

2006-04-03 Thread Ali Kassem
Thanks, but i don't have file called tomcat-users.xml.new And the user have read permission to tomcat-users.xml Ali KASSEM Project Leader - IT Dept. Banque Du Liban P.O.Box:11/5544 Beirut, Lebanon Tel:961-1-75 ext 4110 Fax:961-1-343316 Ali KASSEM Project Leader - IT Dept. Banque Du Liban P.

Context files disapearring

2006-04-03 Thread tomcat
Hello, I am using Tomcat 5.5.16 and every now and then, my context.xml files get deleted from the $TOMCAT_HOME/conf/Catalina/localhost directory. This seems to be random and it is becoming very frustrating. Does anyone know what's causing this to happen? and how the problem can be fixed? Thanks

Slower file upload across WAN using AJP connector

2006-04-03 Thread Su,Tong X (MCD)
Hi All, We have a NY based intranet web app (Tomcat hosted) with a global client base. To improve performance in Tokyo/Hong Kong, we have deployed an Apache server in Tokyo to locally serve the static content (style, script, and image files), while proxying the dynamic content requests over the WA

Tomcat 5.5/Active Directory/JNDI/server.xml Question (Not Realm related)

2006-04-03 Thread Jason Beck
Hello, I am trying to create a block inside my server.xml file similar to a JDBC Resource, only this on is for Active Directory connections (through LDAP port 389). I have written a simple class, created a .jar from it and added it to $CATALINA_HOME/common/lib. I have configured server.xmlwith

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Remy Maucherat
On 4/3/06, Daniel Guggi <[EMAIL PROTECTED]> wrote: > Hi! > > > > Right. I said you need to use polling, or use 5000 threads (which is > > not a problem if you have enough memory). > > > Are you sure that 5000 threads is not a problem when you have enough > memory. I'd be worried about wasting lots

RE: Apache Tomcat Native library not found on the java.library.pa th

2006-04-03 Thread KEREM ERKAN
Add /usr/local/apr/lib to LD_LIBRARY_PATH before starting Tomcat. That will do it. Regards, Kerem > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, April 03, 2006 4:40 PM > To: users@tomcat.apache.org > Subject: Apache Tomcat Native library not fou

RE: Tomcat on other JVM

2006-04-03 Thread Richard Mixon
This is done quite commonly. For almost a year I used IBM 64bit JVM on SuSE Linux running dual AMD Opteron chips. Went back to Sun eventually when I upgraded OS versions - but the IBM JVM and Tomcat worked well. HTH - Richard -Original Message- From: Krish B [mailto:[EMAIL PROTECTED] Sen

Apache Tomcat Native library not found on the java.library.path

2006-04-03 Thread sean . harrison
I compiled and installed the Apache Tomcat connector v.1.1.2 per http://tomcat.apache.org/tomcat-5.5-doc/apr.html but I still get this error upon startup. "INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path"

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Remy Maucherat
On 4/3/06, Tp <[EMAIL PROTECTED]> wrote: > Remy Maucherat schrieb: > But you said that the connection will not close, when the doGet() or > doPost() method returns, which of course make a lot of sense. Otherwise > Persistent connections would not be possible at all. > > So if that's true, then I sh

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread David Delbecq
> > Here a diagram: > > Client sends GET -> Server > Server sends HEADERS (Content Encoding: Chunked) -> Client > Server sends chunks -> Client > Client displays them whenever they arrive. Just one point. If your 'client' is a classical browser it won't work like this out of the box, for the simp

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Daniel Guggi
Hi! > > Right. I said you need to use polling, or use 5000 threads (which is > not a problem if you have enough memory). > Are you sure that 5000 threads is not a problem when you have enough memory. I'd be worried about wasting lots of cpu because of context-switching??? lg -

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Tp
Remy Maucherat schrieb: On 4/3/06, Tp <[EMAIL PROTECTED]> wrote: Well, I don't know what you understand under polling. I guess you mean the clients will have to sent GET and POST requests repeately, right? The load is going to be even higher with polling. That's I would not introduce any polli

Re: tomcat users file

2006-04-03 Thread Hadraba Petr
Hi, check if the different user has read permissions for the /opt/jakarta-tomcat-5.5.9/conf/tomcat-users.xml.new file PETR On 4/3/06, Ali Kassem <[EMAIL PROTECTED]> wrote: > Hi > > I am using tomcat 5.5.9 with linux, and jdk1.5.0_6 > > When I start the tomcat as root user every thing it started

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Daniel Guggi
> > > > Why then using tomcat at all? What's wrong with writing own app, which > > listens on a socket and does whatever it has to do? Before you have to > > rape tomcat to perform a task it was never designed for... > > > > Well, that's a good question. The outcome of this thread might be just > t

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Remy Maucherat
On 4/3/06, Tp <[EMAIL PROTECTED]> wrote: > Well, I don't know what you understand under polling. I guess you mean > the clients will have to sent GET and POST requests repeately, right? > > The load is going to be even higher with polling. That's I would not > introduce any polling. How would I do

  1   2   >