Re: tomcat manager gui hangs on web-app reload for one web-app not others

2018-09-21 Thread Mitch Claborn
PS - my Thunderbird has a "Reply List" button for this mailing list. Mitch On 09/20/2018 09:41 AM, Shawn Heisey wrote: On 9/20/2018 8:30 AM, Bill Harrelson wrote: Looking back through my sent folder I realize that I have been replying directly to people that posted directly to me instead of

Re: Not able to start the tomcat 8.5.32 on RHEL7.4

2018-09-19 Thread Mitch Claborn
This looks like output from catalina.out. I didn't immediately spot any errors. Look in the other log files for error messages. Mitch On 09/19/2018 07:38 AM, gaurav.kuma...@wipro.com wrote: Hi All, While restarting getting below error and it's failing to deploy web application on RHEL

Re: Error receiving all sessions in cluster

2018-09-18 Thread Mitch Claborn
I apologize. I know see the "sendAllSessions" setting on DeltaManager. Not sure how I missed that the first time. I'll experiment with that. Still would like any insight into question #2. Mitch On 09/18/2018 08:51 AM, Mitch Claborn wrote: 1) Any time the DeltaManager runs int

Re: Error receiving all sessions in cluster

2018-09-18 Thread Mitch Claborn
e processing of Delta Manager with some debugging in place so that I can see exactly which session had the problem and which attribute within that session. I'd also like to propose some updates to Delta Manager that would capture that information and put it into the error logging. Mitch On

Re: Cluster session replication performance

2018-09-14 Thread Mitch Claborn
https://bz.apache.org/bugzilla/show_bug.cgi?id=62723 Mitch On 09/14/2018 10:10 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mitch, On 9/14/18 09:43, Mitch Claborn wrote: On 09/13/2018 08:10 PM, Christopher Schultz wrote: Mitch, On 9/13/18 10:29, Mitch

Re: Cluster session replication performance

2018-09-14 Thread Mitch Claborn
git I've used subversion in the past, but it's been a LONG time. Mitch On 09/13/2018 08:10 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mitch, On 9/13/18 10:29, Mitch Claborn wrote: On 09/12/2018 11:37 AM, Christopher Schultz wrote: Would you care

Re: Cluster session replication performance

2018-09-13 Thread Mitch Claborn
Sure. How do I go about that? Mitch On 09/12/2018 11:37 AM, Christopher Schultz wrote: Would you care to submit a documentation patch/PR? Get your name in the ChangeLog and you get the text that makes the most sense to you:) - -chris

Re: Cluster session replication performance

2018-09-12 Thread Mitch Claborn
he javadoc for Channel.java Mitch On 09/10/2018 03:15 PM, Mark Thomas wrote: On 10/09/18 17:33, Mitch Claborn wrote: Further information and questions. I created my own interceptor based on ThroughputInterceptor so that I could log the timing of specific sessions to correlate them with the failures in

Re: Cluster session replication performance

2018-09-10 Thread Mitch Claborn
ext().sendMessage(destination, msg, payload) returns, does that mean that the message has been sent AND received by the recipient member, or does that only indicate a send? Mitch On 09/06/2018 01:53 PM, Mitch Claborn wrote: I'm using a cluster with the DeltaManager between two servers on Tomcat 9.0

Error receiving all sessions in cluster

2018-09-07 Thread Mitch Claborn
I'm using a cluster with the DeltaManager between two servers on Tomcat 9.0.11. When I restart my "A" server, I sometimes see the error below. Peaking at the code in DeltaManager it appears that there is a problem in the serialized data stream when receiving all of the session data from the

Cluster session replication performance

2018-09-06 Thread Mitch Claborn
I'm using a cluster with the DeltaManager between two servers on Tomcat 9.0.11. I've set channelSendOptions="8" (asynchronous session replication). I have a "health check" app that I run periodically, one of the functions being to check that sessions are being replicated properly. That app 1)

Clustering considerations - single server, multiple Tomcat instances - in the cloud

2017-04-17 Thread Mitch Claborn
I'm trying to think through the security implications of this configuration: a single cloud server (Digital Ocean) with 2 Tomcat 8.5 instances in a cluster, for session replication. I can bind the Receiver element to 127.0.0.1, which I think should protect the actual session data from prying

Re: Check if a URL exists programatically

2015-07-21 Thread Mitch Claborn
2015-07-17 18:48 GMT+03:00 Mitch Claborn mitch...@claborn.net: I spent some time yesterday digging through code without much luck. Today I'm going to experiment with this: getting a Request Dispatcher for the URL from the ServletContext, creating a dummy ServerRequest and ServerResponse object

Re: Check if a URL exists programatically

2015-07-20 Thread Mitch Claborn
On 07/17/2015 10:48 AM, Mitch Claborn wrote: On 07/16/2015 02:19 PM, chris derham wrote: I already have a custom error page. When I detect that a URL returned by google would return a 404, I exclude it from the search results so that the user never sees it. Mitch Mitch, Ok I see now what

Re: Check if a URL exists programatically

2015-07-17 Thread Mitch Claborn
On 07/16/2015 02:19 PM, chris derham wrote: I already have a custom error page. When I detect that a URL returned by google would return a 404, I exclude it from the search results so that the user never sees it. Mitch Mitch, Ok I see now what you mean. Sorry your original email was quite

Check if a URL exists programatically

2015-07-16 Thread Mitch Claborn
Short question: How can I, from within code running under Tomcat, determine if a given URL request to that tomcat instance would result in a 404 or not, without calling back to the Tomcat using an HTTP HEAD or GET? Background: We use google custom search by calling the google server and then

Re: Check if a URL exists programatically

2015-07-16 Thread Mitch Claborn
On 07/16/2015 01:04 PM, chris derham wrote: Short question: How can I, from within code running under Tomcat, determine if a given URL request to that tomcat instance would result in a 404 or not, without calling back to the Tomcat using an HTTP HEAD or GET? Background: We use google custom

Embedded tomcat problem

2010-09-30 Thread Mitch Claborn
Tomcat 6.0.29 sun java 1.6.0_20 Ubuntu 10.04 64 bit Seems like this should be simple, but can't get it to work. I'm trying to run a simple embedded Tomcat inside my program. Code for starting the Tomcat is below. It seems to start OK, based on logging messages, but whenever I try to access

Re: Embedded tomcat problem

2010-09-30 Thread Mitch Claborn
At a guess, you'll need to define the JSP servlet in web.xml if you want to handle JSPs. Same goes for the default servlet and static content. Mark Mark - I owe you one! That was it. Seems like when Tomcat runs standalone, it merges the contents of conf/web.xml into the application's

Re: Tomcat and Hex characters

2010-07-13 Thread Mitch Claborn
This may help. If any of the filters in the chain do any kind of read to the input stream, then the encoding is fixed from that point on. I had a similar problem with Struts in Tomcat. I solved it by putting a filter in the chain ahead of sturts and calling

Re: cluster error recovered?

2009-12-15 Thread Mitch Claborn
, prolly GC again Filip On 12/11/2009 04:28 PM, Mitch Claborn wrote: tomcat 6.0.20 cluster See output below. There are errors at the beginning. Do the later messages (e.g. INFO: Manager [localhost#]; session state send at 12/11/09 5:16 PM received in 7,894 ms.) indicate that it recovered

Re: deadlock in database connection pooling?

2009-12-11 Thread Mitch Claborn
Excellent information! I will try those immediately. mitch Christopher Schultz wrote: Mitch, On 12/10/2009 7:43 PM, Mitch Claborn wrote: poolPreparedStatements=true driverClassName=com.mysql.jdbc.Driver validationQuery=select * from operator

cluster error recovered?

2009-12-11 Thread Mitch Claborn
tomcat 6.0.20 cluster See output below. There are errors at the beginning. Do the later messages (e.g. INFO: Manager [localhost#]; session state send at 12/11/09 5:16 PM received in 7,894 ms.) indicate that it recovered? Is there a way to somehow determine that the cluster is operational after

deadlock in database connection pooling?

2009-12-10 Thread Mitch Claborn
I'm seeing several occurrences of deadlocks in Tomcat like the following. Any clues? Definition of the Resource is below. Found one Java-level deadlock: = http-8081-56: waiting to lock monitor 0x08f50bd0 (object 0x560511f8, a

Re: deadlock in database connection pooling?

2009-12-10 Thread Mitch Claborn
Sorry - I was going to put that in and just forgot. Old age strikes again. It is 6.0.20. Can I simply delete the tomcat version of dbcp (jar file) and drop in the 1.3 version from commons? Mitch Claborn 972-954-7341 mi...@claborn.net Caldarale, Charles R wrote: From: Mitch Claborn

Bad file descriptor serving static file

2009-10-31 Thread Mitch Claborn
) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:361) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) -- Mitch Claborn 972

Re: JSESSIONID cookie permanent?

2009-08-24 Thread Mitch Claborn
I played a bit with that approach, but couldn't figure out how to get my valve early enough in the chain. Mitch Christopher Schultz wrote: Mitch, On 8/12/2009 7:08 PM, Mitch Claborn wrote: The answer is: yes, there are times when the response is already committed, so the valve

Re: JSESSIONID cookie permanent?

2009-08-14 Thread Mitch Claborn
I was able to change the expiration on the cookie with a one line change to org.apache.catalina.connector.Request and it works like I need it to. What is the official way to request an enhancement to allow this to be configurable? mitch Mitch Claborn wrote: The answer is: yes, there are times

JSESSIONID cookie permanent?

2009-08-12 Thread Mitch Claborn
Is there a way to make the JSESSIONID cookie issued by Tomcat permanent, or at least significantly longer life than end of session ? Mitch - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands,

Re: JSESSIONID cookie permanent?

2009-08-12 Thread Mitch Claborn
My usage is: I store the key to the user's shopping cart in the session. I'd like the user to be able to come back a few days from now and still find the items they have placed in their shopping cart. (This is mostly for anonymous users who don't sign in until checkout.) Mitch Martin Gainty

Re: JSESSIONID cookie permanent?

2009-08-12 Thread Mitch Claborn
I don't have any problem with the session contents (on the tomcat server). I'm in a tomcat cluster and the sessions are replicated between members of the cluster. As long as at least one member of the cluster is running, then the sessions survive. I don't mind if the sessions on the server

Re: JSESSIONID cookie permanent?

2009-08-12 Thread Mitch Claborn
cart data. --David Mitch Claborn wrote: My usage is: I store the key to the user's shopping cart in the session. I'd like the user to be able to come back a few days from now and still find the items they have placed in their shopping cart. (This is mostly for anonymous users who

Re: JSESSIONID cookie permanent?

2009-08-12 Thread Mitch Claborn
()) { if (Globals.SESSION_COOKIE_NAME.equals(c.getName())) { Cookie l_new = (Cookie) c.clone(); l_new.setMaxAge(Integer.MAX_VALUE); response.addCookie(l_new); } } } Mitch Claborn 972-954-7341 mi...@claborn.net Len Popp wrote: It comes up all the time. The solution

Re: JSESSIONID cookie permanent?

2009-08-12 Thread Mitch Claborn
The answer is: yes, there are times when the response is already committed, so the valve is not a foolproof solution. mitch Mitch Claborn wrote: I was able to get the cookie permanent with a simple valve, code below. Question: the new cookie will be ignored if the response has already

Re: Can a Realm communicate with a web application?

2009-07-23 Thread Mitch Claborn
Pid wrote: On 22/7/09 19:32, Mitch Claborn wrote: Pid wrote: On 21/7/09 23:23, Mitch Claborn wrote: I am toying with the idea of writing my own Realm for authentication. Much of the code and structures that I need are already present in the web application. Is there any way for the Realm

Re: Can a Realm communicate with a web application?

2009-07-22 Thread Mitch Claborn
Pid wrote: On 21/7/09 23:23, Mitch Claborn wrote: I am toying with the idea of writing my own Realm for authentication. Much of the code and structures that I need are already present in the web application. Is there any way for the Realm to access Java objects from the web application

Re: Can a Realm communicate with a web application?

2009-07-22 Thread Mitch Claborn
Caldarale, Charles R wrote: From: Mitch Claborn [mailto:mi...@claborn.net] Subject: Re: Can a Realm communicate with a web application? I found that I can define the Realm in the conext.xml in my WEB-INF, The context.xml file (not conext.xml) goes into META-INF, not WEB-INF. Start

Can a Realm communicate with a web application?

2009-07-21 Thread Mitch Claborn
I am toying with the idea of writing my own Realm for authentication. Much of the code and structures that I need are already present in the web application. Is there any way for the Realm to access Java objects from the web application? They don't appear to share the same class loader. As an

Re: Clustering help

2009-07-20 Thread Mitch Claborn
FYI - running one of the instances in a VMWare virtual machine works fine. Mitch Mitch Claborn wrote: Yes to both questions. What a bummer. I'll try running the second instance on a VM an see what happens. Mitch Filip Hanik - Dev Lists wrote: Wait a second, are both your instances

Clustering with persistent sessions

2009-07-20 Thread Mitch Claborn
The web site we are developing will have at least two tomcat servers behind some kind of load balancer (looking at nginx so far). The requirement is that the session data be completely persistent, even if all of the members of the cluster fail. This will be an extremely rare condition, but it

Re: Clustering help

2009-07-17 Thread Mitch Claborn
: correct, you're members are not discovering each other. and its purely multicast related. what do you get when you do ping 224.0.0.1 Filip On 07/16/2009 05:16 PM, Mitch Claborn wrote: Not having much luck getting a simple cluster to work. Using nginx as a front end/load balancer against two

Re: Clustering help

2009-07-17 Thread Mitch Claborn
turned off. https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 Filip On 07/17/2009 08:54 AM, Mitch Claborn wrote: ping 224.0.0.1 PING 224.0.0.1 (224.0.0.1) 56(84) bytes of data. 64 bytes from 192.168.3.254: icmp_seq=1 ttl=255 time=0.895 ms 64 bytes from 192.168.3.254: icmp_seq=2 ttl

Clustering help

2009-07-16 Thread Mitch Claborn
Not having much luck getting a simple cluster to work. Using nginx as a front end/load balancer against two tomcat instances on the same machine (for now). SuSE Linux 11.1. I see this message in the startup log, making me think the tomcat instances are not talking: INFO: Manager

Re: Multiple invocation of servlet with the same URL request

2009-07-06 Thread Mitch Claborn
Check the access logs - you may be actually getting multiple requests. Mitch Claborn mi...@claborn.net Konstantin Kolinko wrote: 2009/7/6 Daniele Development-ML daniele@googlemail.com: (...) Looking at the log and all the printouts, I have noticed that the servlet is invoked four

Clustering questions

2009-06-30 Thread Mitch Claborn
I'm investigating to set up my first Tomcat cluster and have some questions. 1. Using a SimpleTcpCluster, it looks like session information is replicated to all members of the cluster. If all members of the cluster go down at once, is the session information lost? Can a simple cluster be

JSP/Japer in batch

2009-06-02 Thread Mitch Claborn
I'm looking for a good general purpose template engine to use with various Java projects, not just web projects. Is it possible to use Jasper outside of a servlet engine? Mitch - To unsubscribe, e-mail: