Re: memory leak in tomcat

2012-05-24 Thread Warren Bell
them and stores them too. I have seen this kind of thing happen many times before causing big memory usage. Remove the Wicket app and run the Eclipse Memory Analyzer. Thanks, Warren Bell On 5/24/12 5:42 AM, Konstantin Kolinko wrote: > 2012/5/24 Christian Kaufhold : >> Hi, >>

Re: tomcat slowing down

2012-05-16 Thread Warren Bell
Here is a good link explaining some of the pros and cons of Wicket. Look at the part titled "Wicket Session size!" http://www.small-improvements.com/10-things-about-apache-wicket-i-love Thanks, Warren Bell On 5/16/12 12:49 PM, Mikolaj Rydzewski wrote: > On 05/16/2012 05:35

Re: tomcat slowing down

2012-05-16 Thread Warren Bell
y built-in ways to keep this from happening, but it is still easy for a beginner to write an app that can cause problems. Thanks, Warren Bell On 5/16/12 12:49 PM, Mikolaj Rydzewski wrote: > On 05/16/2012 05:35 PM, Christian Kaufhold wrote: >> its not intentional but the myfaces App run

Re: Initializing webapps in a certain order

2012-03-13 Thread Warren Bell
On 3/13/12 6:37 PM, Caldarale, Charles R wrote: >> From: Warren Bell [mailto:warrenbe...@gmail.com] >> Subject: Initializing webapps in a certain order > >> Can you initialize webapps in a certain order ? > > Read the FAQ: > http://wiki.apache.org/tomcat/FAQ/Misc

Initializing webapps in a certain order

2012-03-13 Thread Warren Bell
Can you initialize webapps in a certain order ? I have two apps, app1 and app2. app2 needs to access app1 during app2's initialization. I need app1 to be initialized first and be done before app2 starts to initialize. -- Thanks, Warren

Modifying requests and responses in a proxy

2012-02-12 Thread Warren Bell
of doing all of this before I spend any more time coding for these situations. -- Thanks, Warren Bell - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: RESOLVED Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-16 Thread Warren Bell
little more often. Thanks for everyone's help. Thanks, Warren Bell On 12/12/11 10:27 PM, Pid * wrote: > On 13 Dec 2011, at 03:27, Warren Bell wrote: > >> Here are all the jars in my app. There are a lot. The jars that came in >> as dependencies of smooks are: >>

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Warren Bell
Here the answers to your other questions. Thanks, Warren Bell On 12/12/11 8:25 PM, Konstantin Kolinko wrote: > 2011/12/10 Warren Bell : >> Hello Tomcat Users, >> >> I am having a problem with xerces and other jars in the JDK or Tomcat >> conflicting with jars

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Warren Bell
to my project. Thanks, Warren Bell On 12/12/11 8:25 PM, Konstantin Kolinko wrote: > 2011/12/10 Warren Bell : >> Hello Tomcat Users, >> >> I am having a problem with xerces and other jars in the JDK or Tomcat >> conflicting with jars in my app. I am getting the

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Warren Bell
it.sauronsoftware.cron4j.TaskExecutor$Runner.run(Unknown Source) at java.lang.Thread.run(Thread.java:680) This is the first exception thrown before I started moving jars around into the endorsed folder. The endorsed folder is empty when this exception is thrown. Thanks, Warren Bell On 12/12/11 11:49

Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-09 Thread Warren Bell
m to point to the wrong classes being loaded. My question is, is their a set of XML related jars that I should take out of my app and place in this endorsed directory or is there a different way of fixing this problem ? Thanks, W

Re: Maven and Tomcat and Eclipse

2010-10-18 Thread Malcolm Warren
Nobody's answered this, but perhaps this shouldn't really be in this mailing list. I'll try with a maven list. This problem is closed. Thanks Il 17/10/10 16.46, Malcolm Warren ha scritto: Dear All, I've spent three days reading two books about Maven, all of the Mave

Maven and Tomcat and Eclipse

2010-10-17 Thread Malcolm Warren
Dear All, I've spent three days reading two books about Maven, all of the Maven site, and finally searching the web for hours. But unfortunately I seem unable to work out and understand one simple concept and I've reached the end of my tether. Hope somebody can help! I've successfully moved

Re: Fw: Applet Servlet communication in Tomcat 7

2010-10-09 Thread Warren Henning
error was and so without giving more detailed information about what you expected to happen and what happened instead I don't see what we can do. Warren - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat Consultant

2010-09-24 Thread Warren Henning
http://www.springsource.com/support/professional-services SpringSource claims to be able to do this kind of thing. They were the first google result for "tomcat consultant." Did you not search for that or did you disregard it? On Fri, Sep 24, 2010 at 10:25 AM, tdelesio wrote: > > My fortune 500

Re: Exception report - HTTP Status 500 -

2010-04-16 Thread Warren Pace
If you installed your Tomcat using the Debian package manager, take a look at the tomcat startup script. While it's been a number of years since I used Debian, I seem to remember this from back in the day - look for a statement referencing "security" or "use security" or something to that effect a

Re: Junit and Tomcat

2010-04-08 Thread Malcolm Warren
Thank you for your reply. I'm more interested in testing common java classes: e.g. beans being used by .jsp files, but these java classes depend heavily on two things provided by Tomcat in its own virtual machine which Junit can't get at. 1) datasources 2) file paths regards, Malcolm Il 08/0

Junit and Tomcat

2010-04-08 Thread Malcolm Warren
the new version. I could probably code round the problem: but the recoding - just so that I can test things effectively - will be enormous. Thanks for any help with this. Regards, Malcolm Warren

Re: Nasty problem with headless mode in Tomcat 6-0-24

2010-03-09 Thread Malcolm Warren
Ok, thanks. In fact just after receiving this email from you I also got one from Apple saying that it's a bug and that they're trying to solve it. Sorry for the bother, and thanks again. Malcolm Il 09/03/10 18.25, Caldarale, Charles R ha scritto: From: André Warnier [mailto:a...@ice-sa.com]

Re: Threadlocal problem

2010-02-02 Thread Malcolm Warren
Thanks for your very helpful answers. I shall gradually cut out reflectionToString: unfortunately I've used it quite a lot, because it was useful! Thanks again, Malcolm Warren Cyrille Le Clerc ha scritto: Hello, Your threadLocal variable is created by the reflectionToString featu

Threadlocal problem

2010-02-02 Thread Malcolm Warren
ce it's not mine it's something I can't do much about, presumably. Thanks for any help you may be able to give. regards, Malcolm Warren

Re: Tomcat, out of memory and hot reployment

2009-12-07 Thread Malcolm Warren
Thanks very much for your answers. My question has been clarified. Malcolm Pid ha scritto: On 07/12/2009 10:53, Malcolm Warren wrote: Dear All, I've seen that using hot deploy too often for apps on my production server (more than seven or eight times) without restarting Tomcat causes a

Tomcat, out of memory and hot reployment

2009-12-07 Thread Malcolm Warren
nd use the Tomcat manager to redeploy applications, does that solve the problem? I would assume that it does not, but any information from the experts would be very welcome. Thanks, Malcolm Warren

Re: [OT] Re: So many timeout values

2009-10-29 Thread Warren Pace
On Thu, Oct 29, 2009 at 10:30 AM, André Warnier wrote: > Warren Pace wrote: >> >> On Thu, Oct 29, 2009 at 9:14 AM, Caldarale, Charles R >> wrote: >>>> >>>> From: André Warnier [mailto:a...@ice-sa.com] >>>> Subject: Re: [OT] Re: So

Re: [OT] Re: So many timeout values

2009-10-29 Thread Warren Pace
On Thu, Oct 29, 2009 at 9:14 AM, Caldarale, Charles R wrote: >> From: André Warnier [mailto:a...@ice-sa.com] >> Subject: Re: [OT] Re: So many timeout values >> >> As long as we're on the [OT] subject, how about learning about the >> judicious and parcimonious usage of sorted data structures, on a

Re: [OT] Re: So many timeout values

2009-10-29 Thread warren . pace
I was the happiest man in the world when they delivered our shiny new System/34. No more punch cards! --Original Message-- From: André Warnier To: Tomcat Users List ReplyTo: Tomcat Users List ReplyTo: Tomcat Users List Subject: Re: [OT] Re: So many timeout values Sent: Oct 29, 2009 5:08 AM

Re: jsvc and logging

2009-05-30 Thread Malcolm Warren
Dear Hassan, Thank you very much for your reply. I've found my mistake - a stupid one - I forgot the trailing back slash indicating a continuing line of the command. And it now all seems to be working. Thanks again, Malcolm Warren Hassan Schroeder ha scritto: On Sat, May 30, 2009

jsvc and logging

2009-05-30 Thread Malcolm Warren
talina.out -errfile /var/lib/tomcat6/logs/catalina.err Any help would be much appreciated. Regards, Malcolm Warren

Re: nio connector configuration

2009-02-19 Thread Peter Warren
Sorry to bump this thread. I'm willing to pay for some assistance if anyone's interested in helping. I'm trying to figure out 2 problems when running my system under a light-moderate load test: 1) why do my comet timeout events not get generated on time (supposed to be every 50 seconds, averagin

Re: nio connector configuration

2009-02-13 Thread Peter Warren
I'm trying to figure out how best to configure nio so that my comet timeout events get generated in a timely manner. I have the comet events set to generate a timeout every 50 seconds. Works fine with few users. Under a moderate but reasonable load the timeout gets generated on average every 113

Re: nio connector configuration

2009-02-11 Thread Peter Warren
Thanks for the tips. Very helpful. >> I also get the warning when trying to use keepAliveTimeout. >> Is this property available for the nio connector? > > No; it's only listed under the older connector (the one labeled "Standard > Implementation" that then somewhat ambiguously refers to HTTP).

nio connector configuration

2009-02-11 Thread Peter Warren
Looking for nio configuration tips for 6.0.18... I have an ajax app that uses a single socket connection for sending standard http requests and receiving responses, and another socket connection to listen via comet for messages pushed out by the server. A comet timeout is generated every 50 second

Re: comet end vs. client_disconnect

2009-02-11 Thread Peter Warren
> CLIENT_DISCONNECT is only used a subtype of ERROR > and that happens when the socket is closed from the client side When a client disconnects (i.e. socket is closed from the client side), I see an END event on both Windows and Ubuntu. I expected an ERROR event with a subtype of CLIENT_DISCONNEC

comet end vs. client_disconnect

2009-02-11 Thread Peter Warren
How do I distinguish between a comet END event generated due to a client disconnect and an end event generated for some other reason? I'm using tomcat 6.0.18 with the nio connector. On both windows xp sp3 and ubuntu 8.10, I'm seeing END events generated when a client disconnects and for other sit

Re: comet loop after webapp re-start

2009-02-05 Thread Peter Warren
Thanks for the pointer. That bug does look related, as does this one: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6403933 -- fixed against java 7. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additiona

Re: comet loop after webapp re-start

2009-02-04 Thread Peter Warren
> What JVM are you using? The stack trace doesn't look like anything that a > HotSpot JVM would produce. It's Sun Java 1.6.0_10-b33. I grabbed the trace from my eclipse debugger. And I see the loop when running both with and without vm debug flags. Peter -

comet loop after webapp re-start

2009-02-04 Thread Peter Warren
I'm running tomcat 6.0.18 on Ubuntu 8.10. I have a comet application that maintains an open connection with tomcat. If I re-start my webapp and then close the client connection, tomcat goes into a loop and chews up all cpu. This server is not live and only has my single client. The ClientPoller

Re: Struts vs JSF (poll?)

2008-08-25 Thread Warren Bell
ut either just plain HTML. It has a large community and a helpful mailing list. I have been very happy with it. Hope this helps you. Warren Tommy Pham wrote: Hi everyone, This maybe out of scope for this list but I wanted to know more about Struts vs JSF other this old article [1]. Whi

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Warren Bell
Peter Crowther wrote: From: Warren Bell [mailto:[EMAIL PROTECTED] [details of attack elided] The network that the server is on has a Lynksys RV082 small business router with the firewall completely locked down except for port 8080 available only to the networks with the kiosks. The

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Warren Bell
Mark Thomas wrote: Warren Bell wrote: Mark Thomas wrote: Warren Bell wrote: Mark Thomas wrote: - What other webapps are installed on the Tomcat instance? Several, they are all intranet apps that do not have any download/upload capabilities and there is no possible sql injection

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Warren Bell
Mark Thomas wrote: Warren Bell wrote: Mark Thomas wrote: - What other webapps are installed on the Tomcat instance? Several, they are all intranet apps that do not have any download/upload capabilities and there is no possible sql injection vulnerabilities either. And none of the apps

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Warren Bell
Mark Thomas wrote: Warren Bell wrote: I have found a war file on my server that appeared around July 14. I am the only one that has access to this machine and I did not put it there. It consists of a jsp that downloads a program named init.exe and then executes it. This server is on a private

Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Warren Bell
} }catch(Exception e) { result="Failure!throws Exception - "+e.getMessage()+"! "; } request.setAttribute("result",result); } else { request.setAttribute("result","Failure!Because Remote computer

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Warren Killian
Hi, If you can't get past this limitation, you might look into the Apache Commons "file upload" utility. It is an API specifically for allowing (large) file uploads to a server. It works great, has a simple API and some decent documentation as well. Hope this helps. On Thu, Aug 7, 2008 at 2:18

Re: Cool SSL/TLS Deployment Trick! How Does It Work?

2008-08-07 Thread Warren Killian
ce to (think I) understand what is going on now. :-) Cheers! On Thu, Aug 7, 2008 at 10:36 AM, Patrick Markiewicz < [EMAIL PROTECTED]> wrote: > Hi Warren, >It is my understanding that all tomcat does with a WAR file is > unjar it. I.e. whatever is in the war becomes extracte

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Warren Killian
Hi Jonathan, About ServletRequest and ServletResponse Interfaces not having a "setParameter(name, value)" method...depending on your situation, you may not need to do that. Are you forwarding to another URI within your web app? If so, you could use request/session.setAttribute( String name, Obje

Re: cant run servlets

2008-08-06 Thread Warren Killian
Hi Swechha, I don't exactly know of a solution to your problem. I'd need more information. But I think that you do not have to set an explicit $CLASSPATH to include the servlet-api and jsp-api jar files. Tomcat automatically includes the jars in [Tomcat]/common/lib without you needing to specif

Re: #of Site can be run on single Tomcat Instance?

2008-08-05 Thread Warren Killian
Hi, I don't know of any specific limit to the number of web apps you can run on a single instance of Tomcat. I think it may only be limited by the amount of system resources you can sweat out of your hardware. Where I work, we have one instance of Tomcat which has probably 30 distinct web applic

Re: Virtual Host

2008-08-05 Thread Warren Killian
- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Cheers, Warren Killian [EMAIL PROTECTED]

Cool SSL/TLS Deployment Trick! How Does It Work?

2008-08-04 Thread Warren Killian
py one web application's deployment directory directly "into" another web application's deployment directory? Does this violate the J2EE spec? Is it recommended practice? Can you see anything particularly "wrong" with it? I'd love to hear some comments as this sounds like a strange and interesting trick to me. -- Cheers, Warren Killian [EMAIL PROTECTED]

RE: Newbie help with newly installed app

2008-04-11 Thread Warren
FORWARD > ERROR > > > > info.magnolia.cms.servlets.MgnlServletContextListe > ner > > > > > > > > > > - Original Message - > From: "Warren" <[EMAIL PROTECTED]> > To: "Tomcat Users List" >

RE: Newbie help with newly installed app

2008-04-11 Thread Warren
How are you installing your app. do you have a war file named magnolia that you are placing in the webapps directory? I am not familiar with magnolia but you should have a web.xml file. Are there any special settings that need to be set in it, like url mapping? > -Original Message- > From:

Re: comet end event

2008-01-29 Thread Peter Warren
> > Could you indulge me and try the client with the sleep? > > > just did, worked exactly as before. > event: BEGIN, subtype: null > event: READ, subtype: null > Read 10 bytes: comet test for session: A01334D0AC22505DCD4B323820963FEC > read error > event: ERROR, subtype: TIMEOUT Hmm, not sure whe

Re: comet end event

2008-01-29 Thread Peter Warren
Could you indulge me and try the client with the sleep? I see the end event when there's a break/delay between sending a chunk and sending the last chunk. It is legal http to send the last chunk separately from preceding chunks, isn't it? > getting a -1 on a inputstream.read is normal (even for

Re: comet end event

2008-01-28 Thread Peter Warren
not an official version, but you can test it out and see how > your test works > > Filip > > > Peter Warren wrote: > > I put up a war file at: http://www.nomad.org/comet_test.war. > > > > It includes the webapp, source for the comet servlet & client, and the

Re: comet end event

2008-01-25 Thread Peter Warren
I put up a war file at: http://www.nomad.org/comet_test.war. It includes the webapp, source for the comet servlet & client, and the server.xml file. Let me know if I missed anything. As I mentioned before, I've also used your cometgui.jar client and see the end event generated when using it as w

Re: comet end event

2008-01-22 Thread Peter Warren
r.append(hexChunkLength); > outputBuffer.append(DELIMITER); > outputBuffer.append(chunkData); > outputBuffer.append(DELIMITER); > byte[] outputBytes = outputBuffer.toString().getBytes(ENCODING); > outputStream.write(outputBytes); > outputStrea

Re: comet end event

2008-01-22 Thread Peter Warren
outputStream.write(outputBytes); outputStream.flush(); } } On Jan 22, 2008 9:07 AM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > I still don't get the END event, however, thanks for pointing it out, > you did find a regression bug about the timeout > &

Re: comet end event

2008-01-21 Thread Peter Warren
} } while (inputStream.available() > 0); } } On Jan 21, 2008 11:53 AM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > answers inline > > Peter Warren wrote: > > First off, thanks for your responses. The contributors to this lis

Re: comet client doesn't receive server response

2008-01-21 Thread Peter Warren
t you are seeing, a regular servlet, ends the response right away > > Filip > > > Peter Warren wrote: > > What is interesting to me is that the exact same client code only > > using a different url (i.e. to a normal http servlet, not a comet > > servlet) succeeds. Is t

Re: comet end event

2008-01-21 Thread Peter Warren
20, 2008 8:15 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > > now I get it. I just ran through a test case, and an END event was not > thrown just because there was an end chunk. > the response is very much still open at that point > > > Filip > > Peter

Re: comet end event

2008-01-19 Thread Peter Warren
writes are possible, just not after the END or > ERROR events have been issued > > Filip > > > Peter Warren wrote: > > Does that mean that HttpURLConnection cannot be used for comet > > requests with asynchronous (i.e. delayed) responses? > > > > It would

Re: comet end event

2008-01-19 Thread Peter Warren
rror, you MUST close the Comet event > > Filip > > > Peter Warren wrote: > > What do I do to make the END event stop repeating? I don't want to > > close the CometEvent yet because the server is waiting for data to > > send to the client. If I don't close th

comet end event

2008-01-18 Thread Peter Warren
What do I do to make the END event stop repeating? I don't want to close the CometEvent yet because the server is waiting for data to send to the client. If I don't close the comet event, the END event repeats incessantly. I'm using an unsigned applet as a comet client. To accommodate proxies,

Re: Comet Development

2008-01-16 Thread Peter Warren
This post (http://www.nabble.com/comet-questions-td14673697.html#a14673697) contains test code for both a client & comet servlet. See if it helps. On Jan 16, 2008 10:35 AM, Siobhan <[EMAIL PROTECTED]> wrote: > To anyone who has successfully used Comet: > > > > I've been trying to use Comet with T

Re: comet client doesn't receive server response

2008-01-15 Thread Peter Warren
e end (or some high amount of > data), to run the checks. In my case, this buffering lasts for minutes, > with no byte sent back to the browser. > > I think this can be a simple point to check... > > Hugs, > > Leonardo Fraga > Web Developer > [EMAIL PROTECTED] > >

Re: comet questions

2008-01-15 Thread Peter Warren
comet timeout event every 10 secs. Setting it to 2 mins gives a comet timeout every 2 mins. The docs don't mention any link between the connectionTimeout settings and comet timeout events that I can find. Connector config: On Jan 9, 2008 12:23 PM, Peter Warren <[EMAIL PROTECTED

comet client doesn't receive server response

2008-01-10 Thread Peter Warren
I posted this question along with some others recently. I'm re-posting it in its own thread with some additional information. I have a comet client app that works on all the machines I've tested except one. The failing machine sends a comet request to the server and then waits indefinitely for t

Re: comet questions

2008-01-09 Thread Peter Warren
} } } On Jan 7, 2008 4:43 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > The time when it is called without a subtype, is if the > application(servlet) has an unhandled exception > > in terms of timeout, that should work just dandy, unless the client > dis

Re: comet questions

2008-01-07 Thread Peter Warren
Buffer when you wanna flush it out (ie > after you've written to and flushed your stream). > > also, there have been some bug fixes, that you can get from SVN, or wait > for 6.0.16 to come out > > Filip > > > Peter Warren wrote: > > I have some comet q

comet questions

2008-01-07 Thread Peter Warren
I have some comet questions. I'm using the tomcat 6.0.x trunk as of last Friday. 1) My comet event timeout setting being honored. How come? I set the timeout for 3 hours but a timeout event gets generated every 2 minutes. If I inspect the comet event for which the timeout is triggered, I see a

Re: tomcat init script not LSB compliant

2007-11-21 Thread Warren Pace
Most distros have a skeleton script (or something similarly named) in /etc/init.d. Poke around in there. On 11/21/07, Waseem Azhar <[EMAIL PROTECTED]> wrote: > Hi All, > > Could anybody tell me how to make tomcat script LSB compliant ? I am using > Linux High availability project. The heartbeat d

Re: Best Linux distribution

2007-11-16 Thread Warren Pace
Point taken. We ran a Vax until last year... On Nov 15, 2007 10:52 AM, Steve Ochani <[EMAIL PROTECTED]> wrote: > If everyone based their decisions solely on that criteria we would be all > using pdp-11s. > > > > On 15 Nov 2007 at 6:19, Warren Pace wrote: > > >

Re: Best Linux distribution

2007-11-15 Thread Warren Pace
And that is the correct answer. On Nov 15, 2007 5:54 AM, Peter Crowther <[EMAIL PROTECTED]> wrote: > > From: Andrew Hole [mailto:[EMAIL PROTECTED] > > In your opinion what is the best LINUX distribution for a server with > > an instance of Tomcat and an J2EE application of medium load? > > The one

Re: Tomcat memory issues

2007-09-07 Thread Peter Warren
s? - org.apache.catalina.connector.ResponseFacade (ACCA) - [] (ACCB) - org.apache.catalina.connector.Request (ACCC) Peter On 9/7/07, Morten <[EMAIL PROTECTED]> wrote: > > "Peter Warren" <[EMAIL PROTECTED]> skrev i en meddelelse > news:[EMAIL PROTECTED] > > Is it

Re: Tomcat memory issues

2007-09-06 Thread Peter Warren
Is it possible you're caching Request or Response objects somewhere and not releasing them? I just did a bunch of memory profiling and many of the classes you mention are the same classes I see when I open and don't close a bunch of connections to the server. -

comet webapp memory optimization

2007-09-05 Thread Peter Warren
I have a webapp that maintains many concurrent comet connections. Transmissions between the client and server are small and infrequent. I'm trying to lessen the memory usage by playing with buffer configurations. To test various configurations, I wrote a client that opens 2000 connections to a c

comet read & httpsession timeout

2007-08-16 Thread Peter Warren
A comet read event doesn't update the last accessed time of an HttpSession -- which means comet read events will never prevent an http session (not the comet session) from timing out and the connection getting closed. Is that by design? If so, can anyone offer me suggestions on how to handle long

Re: multiple comet requests

2007-08-14 Thread Peter Warren
take a look and see why it is happening, Filip Peter Warren wrote: How do you send multiple requests to the same comet servlet? Sending multiple chunks of a single request is fine. My problem occurs after the client ends the chunked transaction by sending "0CRLFCRLF" to the server.

multiple comet requests

2007-08-14 Thread Peter Warren
How do you send multiple requests to the same comet servlet? Sending multiple chunks of a single request is fine. My problem occurs after the client ends the chunked transaction by sending "0CRLFCRLF" to the server. The comet servlet correctly registers the END event. But then the client subseq

Re: comet read event

2007-06-04 Thread Peter Warren
.getSession(true).getId()); } else if (n < 0) { log("comet read error"); } } while (is.available() > 0); return inputBuffer.toString(); } } Filip Hanik - Dev Lists wrote: > why don't you make your test available,

Re: [maybe not solved] comet read event

2007-06-01 Thread Peter Warren
gerous waters my friend. the comet is somewhat like > a real socket, and sending up new HTTP headers might end up just being > data for the Comet servlet. > > Filip > > Peter Warren wrote: >> My client code was the problem. I had been thinking of the comet >> interaction

Re: [solved] comet read event

2007-06-01 Thread Peter Warren
ystem.out.println(line); out.close(); urlConn.disconnect(); } Peter Warren wrote: > Thanks for the suggestion. I changed the comet test servlet to read > directly from the input stream as shown in the advanced io example. I'm > still seeing the same behavior. No comet read event g

Re: tomcat comet, not working...

2007-05-29 Thread Peter Warren
Filip, could you post some client code that sends two separate messages to the server on the same output stream and generates both a begin event and then a subsequent read event. Thanks, Peter (I'm the guy who started the "comet read event" thread. I never heard back after you asked me which conn

Re: comet read event

2007-05-23 Thread Peter Warren
Yes, I'm using the NIO connector. Here is the config line from my server.xml: Are there any other configuration options I need to set? Peter Filip Hanik - Dev Lists wrote: > and you are using the APR or the NIO connector right? > > Filip > > Peter Warren wrot

Re: comet read event

2007-05-23 Thread Peter Warren
utBuffer.toString(); } Filip Hanik - Dev Lists wrote: > take a look at the documentation, the way you are reading it is > incorrect. > you need to take advantage of the available() method > > Filip > > Peter Warren wrote: >> My BEGIN block in my comet servlet now loo

comet read event

2007-05-22 Thread Peter Warren
anik wrote: > > it could be because the data from the request already came in with the request. > when the BEGIN happens, perform the actions as if there was a READ as well, ie, empty out the buffer. > > Filip Peter Warren wrote: > The following client code generates a comet BEGIN ev

comet read event

2007-05-22 Thread Peter Warren
The following client code generates a comet BEGIN event on the server but not a subsequent READ event, as I was expecting. How come? Is my code wrong? Are my expectations wrong? See sequence of events commented in code below. // client test method that sends messages to server and listens

RE: Replacing tomcat-users.xml

2007-03-28 Thread Warren Lewis
Take a look at this HOWTO. It describes how to configure security/realms to fit your needs: http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html cheers - Warren -Original Message- From: Jean-Sebastien Pilon [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:08 AM To

invalid LOC header (bad signature) when running in servlet only

2007-01-26 Thread Claude Warren Jr
>> Subject: invalid LOC header (bad signature) when running in >> servlet only >> >> message = invalid LOC header (bad signature) >> > > This is an indication of a corrupted .zip file. ZIP files can be read > either sequentially or via the table of contents at the end of the file;

invalid LOC header (bad signature) when running in servlet only

2007-01-25 Thread Claude Warren Jr
as I want to make sure that I understand why the servlet fails in this case so that I can attempt to account for it in future cases. Any help with this would be appreciated. I will gladly provide the servlet, stand alone, and sxw file for anyone that is interested in looking at this p

Re: JDBCRealm

2006-12-19 Thread Warren Pace
> > From: Wojtek Kusch <[EMAIL PROTECTED]> > Date: 2006/12/19 Tue AM 11:52:20 EST > To: users@tomcat.apache.org > Subject: JDBCRealm > > Hallo! > > I am a newbie. I am defining a JDBCRealm for my web application in the > server.xml: > > driverName="sun.jdbc.odbc.JdbcOdbcDriver"

Re: question about context file entries and TC 5.5

2006-12-12 Thread Warren Pace
look in the META-INF folder inside your webapp's directory maybe > > From: "Michael Hencin" <[EMAIL PROTECTED]> > Date: 2006/12/12 Tue AM 10:47:58 EST > To: "'Tomcat Users List'" > Subject: question about context file entries and TC 5.5 > > I am starting to use TC 5.5, JVM 1.5.0_06-b05 on XP. I

java.io.FileNotFoundException: webapp not found

2006-11-22 Thread Warren
I keep getting a java.io.FileNotFoundException when Tomcat starts. I will get one for each app I have. My app still works though. I am running Tomcat on a Windows XP box.What do I need to do to fix this? Thanks, Warren Nov 22, 2006 6:55:44 PM org.apache.coyote.http11.Http11Protocol init INFO

Re: virtual host getRealPath

2006-11-05 Thread Peter Warren
Chris, The application is an image gallery. I want to be able to drop images into directories anywhere underneath the "gallery" webapp directory and have the images automatically displayed as thumbnails in a table. Users can click on a thumbnail for the full-size image. I have an index.

Re: virtual host getRealPath

2006-11-04 Thread Peter Warren
Hi Chris, Thanks for your response. After poking around a little more, it seems that the call application.getRealPath(request.getServletPath()) provides the proper local file path for me. Any reason not to use that? Peter Christopher Schultz <[EMAIL PROTECTED]> wrote: Peter, > I'm tr

virtual host getRealPath

2006-11-03 Thread Peter Warren
I'm trying to figure out why I get repeated directory names when calling "application.getRealPath(request.getRequestURI())" from an index.jsp file. Clearly there's something about virtual hosts and contexts that I'm missing. Using Tomcat 5.5 & 6.0 in standalone mode under Windows XP, I see the fo

Re: JNDI Realm and Active Directory root search

2006-11-01 Thread Matt Warren
With that lead, I figured out what was going on. Two issues: - referrals="follow" is required if you search from the top of an ldap tree instead of a specific OU. That property is not documented in Tomcat docs as it might be: http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JNDIRealm Wit

JNDI Realm and Active Directory root search

2006-10-31 Thread Matt Warren
I'm trying to get a JNDI Realm working as one might expect with Active Directory. Tomcat 5.5.20 Java 1.5.06 Windows 2000 Server The basic issue is that searching from a domain root "dc=company,dc=com" and using userSubtree="true" results in: Oct 31, 2006 3:18:20 PM org.apache.catalina.realm.JNDI

RE: CGI vs SMTP vs Tomcat

2006-10-18 Thread HALSTEAD SGT WARREN F
can't seem to figure out how to compile a single .java file to a .class file. I find myself downloading all the dependencies for Tomcat so it will all compile and I can extract a single class file.) ~Warren Halstead -Original Message- From: Wade Chandler [mailto:[EMAIL PROTEC

  1   2   >