Tomcat 9 Catalina Logging issue

2020-08-03 Thread Campbell, Lance
Apache Tomcat Version 9.0.37 I just upgraded to this version. When I start tomcat sometimes it generates a “logs/catalina.out” file and other times it does not. What is going on? Is anyone else having this issue? I always get a catalina.2020-08-03.log . However, it is lacking all of my

Re: Tomcat Upgrade Issue from 9.0.30 to 9.0.31

2020-04-23 Thread Campbell, Lance
That was it. I lost an entire day on that. I greatly appreciate your time! Lance On 4/23/20, 1:30 PM, "Mark Thomas" wrote: On 23/04/2020 18:57, Campbell, Lance wrote: > I am upgrading from Tomcat 9.0.30 to 9.0.31 . This same issue occurs > with any newer v

Tomcat Upgrade Issue from 9.0.30 to 9.0.31

2020-04-23 Thread Campbell, Lance
I am upgrading from Tomcat 9.0.30 to 9.0.31 . This same issue occurs with any newer version of Tomcat as well. I have been using Tomcat since the earliest version. I have never had an issue with upgrading or installing until now. I have a Apache web server with mod_jk and mod_shib. I have a

Re: Roadmap for Tomcat and Jakarta EE

2019-11-05 Thread Campbell, Lance
Thanks. On 11/5/19, 1:33 PM, "Rémy Maucherat" wrote: On Tue, Nov 5, 2019 at 8:19 PM Campbell, Lance wrote: > Is there an article describing a general roadmap for Tomcat and Jakarta EE > that I could read? > http://tomcat.apache.org

Roadmap for Tomcat and Jakarta EE

2019-11-05 Thread Campbell, Lance
Is there an article describing a general roadmap for Tomcat and Jakarta EE that I could read? Thanks, LANCE CAMPBELL Software Architect Web Services Public Affairs Contact the

Re: How to display the current In-Use Stack Size

2019-03-04 Thread Campbell, Lance
ory: " + (runtime.totalMemory() / mb) + "MB"); out.println(""); //Print Maximum available memory out.println("Max Memory: " + (runtime.maxMemory() / mb) + "MB"); out.println("");

How to display the current In-Use Stack Size

2019-03-04 Thread Campbell, Lance
Tomcat 9.x What is the easiest way to identify how much memory Tomcat/Java is currently using from the Java stack -Xss ? Not max but currently being used. Is there a particular statement I can put into a servlet to see what the current memory usage is of the stack? Thanks, Lance

Re: Tomcat Valve

2018-08-24 Thread Campbell, Lance
I don't understand. How does that help a valve running know that it is shutting down? At that point it would be too late. On 8/24/18, 11:06 AM, "Mark Thomas" wrote: On 24/08/18 16:52, Campbell, Lance wrote: > Tomcat 9 > Use Case 1: I want to store the last

Tomcat Valve

2018-08-24 Thread Campbell, Lance
Tomcat 9 Use Case 1: I want to store the last N number of URLs sent to Tomcat 9 application. Then if Tomcat shuts down I want to write out these last N number of URLs to the log file. Strategy: I figured I would use a valve to keep track of the last N number of URLs. However I don’t know

deallocated URLs during shutdown

2018-08-11 Thread Campbell, Lance
Tomcat 9.0.10 I got the below error during a shutdown of tomcat 9. Tomcat would not stop. It hung during shutdown. Is there a better way for me to get it to shutdown? Is there a way I could get the below deallocated servlet URLs during a shutdown? Could I add some type of listener that

Using CentOS 7 logrotate

2017-12-19 Thread Campbell, Lance
Tomcat 8.0.x CentOS 7 1) Is there a way to tell tomcat to put the logs for a running instance into /var/log/{somefoldername}/ . 2) Then have CentOS 7 logrotate take care of the rotation of the files? Thanks, Lance

RE: run thread from servlet

2017-07-19 Thread Campbell, Lance
, July 18, 2017 4:30 PM To: users@tomcat.apache.org Subject: Re: run thread from servlet -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 7/18/17 9:56 AM, Campbell, Lance wrote: > Tomcat 8.0.x Question: I am wanting to know the proper way to start a > thread from a servlet. > &

RE: run thread from servlet

2017-07-18 Thread Campbell, Lance
Also if tomcat is shut down and a thread is running how does tomcat communicate with my software to end a thread? Is this where you were referring to the servlet context listener? -Original Message- From: Campbell, Lance [mailto:la...@illinois.edu] Sent: Tuesday, July 18, 2017 12:00

RE: run thread from servlet

2017-07-18 Thread Campbell, Lance
e data in a concurrent queue, and then notify the object, on which EmailProcess thread is waiting. Is this EmailProcess is an asynchronous service to send emails ? Regards Pradip.B On Jul 18, 2017 7:27 PM, "Campbell, Lance" <la...@illinois.edu> wrote: Tomcat 8.0.x Question: I am wanting

run thread from servlet

2017-07-18 Thread Campbell, Lance
Tomcat 8.0.x Question: I am wanting to know the proper way to start a thread from a servlet. Use Case: A batch process will call a URL that is a servlet. The servlet will call a processes that will trigger a thread to run to do a particular job. The thread will run for a while. The servlet

Database Session Manager

2017-06-21 Thread Campbell, Lance
Tomcat 8, 8.5, or 9 Is there a session manager for Tomcat that does not keep sessions in memory at all but stores the session attributes in a database? Example: If I create a session for the first time then the session manager would create a session ID and write it to a database table. Now if

how to write a valve

2016-10-13 Thread Campbell, Lance
Tomcat 8.0.38 In my Eclipse development environment when particular servlet requests are made I want to simulate going through Shibboleth prior to Tomcat handling the request. I wanted to see if this will work. In Eclipse within each dynamic web application I would add a valve to the

Re: mod JK ho to rout all content to tomcat except for a few static folders

2016-06-21 Thread Campbell, Lance
I am so sorry. You are correct. Lance Sent from my iPhone > On Jun 20, 2016, at 12:13 PM, Rainer Jung <rainer.j...@kippdata.de> wrote: > >> Am 20.06.2016 um 18:32 schrieb Campbell, Lance: >> Neither of these options will work for me: >> 1) no-jk is only suppor

RE: mod JK ho to rout all content to tomcat except for a few static folders

2016-06-20 Thread Campbell, Lance
al Message- From: Anthony Biacco [mailto:abia...@handll.com] Sent: Monday, June 20, 2016 10:29 AM To: Tomcat Users List <users@tomcat.apache.org> Subject: Re: mod JK ho to rout all content to tomcat except for a few static folders On Mon, Jun 20, 2016 at 9:14 AM, Campbell, Lance <la...@

mod JK ho to rout all content to tomcat except for a few static folders

2016-06-20 Thread Campbell, Lance
These are the versions of software I have to use. I cannot install other software: Apache 2.2.15 mod_jk 1.2.41 Tomcat 8.0.36 Issue: We are looking at having a domain where all content will get routed to Tomcat 8 except for three directories that contain static content. These three

proper web application logging

2016-05-24 Thread Campbell, Lance
Tomcat 8.0.35 The below question is not about logging Tomcat internal activity. This is about logging web applications running within Tomcat. I have been using tomcat forever. I have been manually adding the Log4J 1.2 JAR file into my web application. Then using Log4J for web application

RE: Tomcat 8 disable parts

2016-05-20 Thread Campbell, Lance
] Sent: Friday, May 20, 2016 9:04 AM To: Tomcat Users List <users@tomcat.apache.org> Subject: Re: Tomcat 8 disable parts Lance, On 5/20/16 9:41 AM, Campbell, Lance wrote: > I love Tomcat. I have been using it before it was Tomcat. Thanks for > the great work! > > Our grou

Tomcat 8 disable parts

2016-05-20 Thread Campbell, Lance
Tomcat 8.0.35 I love Tomcat. I have been using it before it was Tomcat. Thanks for the great work! Our group only uses Tomcat with Apache for serving up content through servlets. We never use JSPs, tag libs, etc. I know Tomcat is taking on a lot more capabilities. Is there a way to

AccessLogValve - add a suffix to log file on rotation

2015-02-22 Thread Campbell, Lance
Tomcat 8.x Valve: org.apache.catalina.valves.AccessLogValve When all of my log files rotate I like to add the suffix .old. This is so that if there is an issue with file sizes I can very quickly delete all old log files by doing: rm *.old Using the above AccessLogValve how can I append .old

RE: AccessLogValve - add a suffix to log file on rotation

2015-02-22 Thread Campbell, Lance
on rotation Am 22.02.2015 um 17:12 schrieb Campbell, Lance: Tomcat 8.x Valve: org.apache.catalina.valves.AccessLogValve When all of my log files rotate I like to add the suffix “.old”. This is so that if there is an issue with file sizes I can very quickly delete all old log files by doing

How do you catch these exceptions

2014-10-31 Thread Campbell, Lance
Tomcat 7.0.56 Java 7.0_72 I received the below Tomcat error messages in a web application. Is there a way for me to catch these exceptions so that I can then either execute Java code or trigger a Linux shell script? Oct 31, 2014 7:38:25 PM

Programmatically retrieve number of tomcat connections

2014-07-31 Thread Campbell, Lance
Tomcat 7 Is there a way via a Java servlet to get the number of tomcat connections? Thanks, Lance Campbellhttp://illinois.edu/person/lance Software Architect Web Services at Public Affairs 217-333-0382 [University of Illinois at Urbana-Champaign logo]http://illinois.edu/

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Campbell, Lance
-Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Thursday, July 31, 2014 11:10 AM To: Tomcat Users List Subject: Re: Programmatically retrieve number of tomcat connections On 31/07/2014 17:06, Campbell, Lance wrote: Tomcat 7 Is there a way via a Java servlet

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Campbell, Lance
To: Tomcat Users List Subject: RE: Programmatically retrieve number of tomcat connections Write a simple ServletFilter On Jul 31, 2014 9:33 AM, Campbell, Lance la...@illinois.edu wrote: Good question. I would like to have a servlet that would return to me the number of tomcat HTTP connections. I

Tomcat 7.0.53 no changelog

2014-04-02 Thread Campbell, Lance
Tomcat 7.0.53 does not have a changelog. The last change log is for Tomcat 7.0.52 . Thanks, Lance Campbellhttp://illinois.edu/person/lance Software Architect Web Services at Public Affairs 217-333-0382 [University of Illinois at Urbana-Champaign logo]http://illinois.edu/

Number of AJP connections

2014-02-13 Thread Campbell, Lance
Java 7 Tomcat 7 In a servlet when doing I a RequestDispatcher.forward to another servlet does this create a new Tomcat AJP connection or does it reuse the same connection ? Thanks, Lance Campbell - To unsubscribe, e-mail:

RE: Number of AJP connections

2014-02-13 Thread Campbell, Lance
AM, Campbell, Lance la...@illinois.edu wrote: Java 7 Tomcat 7 For future reference, please specify the full version numbers in use. In a servlet when doing I a RequestDispatcher.forward to another servlet does this create a new Tomcat AJP connection or does it reuse the same connection

documentation resource suggestions for scaling tomcat 7 horizontally

2014-02-13 Thread Campbell, Lance
I am looking for free documentation for scaling Tomcat 7 horizontally. I currently have three tomcat 7 application servers load balanced. The system is working good. I have noticed that my number of connections has increased. I was hoping to find an up to date resource guide that would

Servlet RequestDisplatcher.forward

2014-02-10 Thread Campbell, Lance
Java 7 Tomcat 7 In a servlet I am doing a RequestDispatcher.forward to another servlet. In Tomcat 7 I use AJP connectors. Does this create a new Tomcat AJP connection when it does the forward or use the same connection? Thanks, Lance Campbellhttp://illinois.edu/person/lance Software

New website skin looks great

2013-09-12 Thread Campbell, Lance
WOW! I love the new design of the tomcat web site. It looks much more professional and refined. It is also much easier to read. The prior background colors caused the text to run together. This is so much better. I love the subtle but clear separation and grouping of information.

Too many open files error

2011-08-24 Thread Campbell, Lance
Tomcat 6.0.32 Java 1.6.27 Apache 2.0 RedHat 6.x 64 bit /proc/sys/fs/file-max = 3233344 We experienced an issue where we were getting the error too many open files in tomcat. The server manager increase the amount of open files to the above. But the error kept coming back even after rebooting

RE: Too many open files error

2011-08-24 Thread Campbell, Lance
10:24 AM To: Tomcat Users List Subject: Re: Too many open files error On Wed, Aug 24, 2011 at 17:21, Campbell, Lance la...@illinois.edu wrote: Tomcat 6.0.32 Java 1.6.27 Apache 2.0 RedHat 6.x 64 bit /proc/sys/fs/file-max = 3233344 We experienced an issue where we were getting the error too

Outlook 2003and 2010 does not display image when streamed through tomcat

2010-09-22 Thread Campbell, Lance
I am streaming an image through tomcat 6.29. In a browser the image looks fine. But in an email in Outlook 2003 and 2010 the image does not display. Any thoughts? System.out.println content: fileSize:80848 contentTypeStr:image/jpeg The file name does have .jpg Code: if

RE: Outlook 2003and 2010 does not display image when streamed through tomcat

2010-09-22 Thread Campbell, Lance
at Public Affairs 217-333-0382 -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, September 22, 2010 1:03 PM To: Tomcat Users List Subject: RE: Outlook 2003and 2010 does not display image when streamed through tomcat From: Campbell, Lance

RE: Outlook 2003and 2010 does not display image when streamed through tomcat

2010-09-22 Thread Campbell, Lance
Never Mind. It was a security issue on our side. There is no problem. Thanks, Lance Campbell Software Architect/DBA/Project Manager Web Services at Public Affairs 217-333-0382 -Original Message- From: Campbell, Lance [mailto:la...@illinois.edu] Sent: Wednesday, September 22, 2010 1

Re: Basic Question

2010-04-15 Thread Campbell, Lance
Did you put an entry in your web.XML file? Lance Campbell Sent from my iPhone On Apr 15, 2010, at 8:09 PM, Rhino rhi...@sympatico.ca wrote: I hope someone will take pity on me and help me with this very basic question. I was moderately fluent with servlets and Tomcat several years ago but

mod_jk - apache to tomcat using SSL

2010-03-16 Thread Campbell, Lance
I have a web server and an application server. I use mod_jk to communicate between apache2.0 and tomcat 6. I don't believe the communication between apache and tomcat is secured by default. Is there a way to have it send the information in a secure way. Thanks, Lance Campbell

RE: mod_jk - apache to tomcat using SSL

2010-03-16 Thread Campbell, Lance
...@ice-sa.com] Sent: Tuesday, March 16, 2010 4:08 PM To: Tomcat Users List Subject: Re: mod_jk - apache to tomcat using SSL Campbell, Lance wrote: I have a web server and an application server. I use mod_jk to communicate between apache2.0 and tomcat 6. I don't believe the communication

Schema or DTD for the context.xml

2009-12-03 Thread Campbell, Lance
Is there a schema or DTD for the context.xml file? Thanks, Lance Campbell Project Manager/Software Architect/DBA Web Services at Public Affairs 217-333-0382

How do I set the location of where catalina.out goes

2009-11-09 Thread Campbell, Lance
Tomcat 6 How do I set the location and file name of catalina.out? Thanks, Lance Campbell Project Manager/Software Architect/DBA Web Services at Public Affairs 217-333-0382

RE: How do I set the location of where catalina.out goes

2009-11-09 Thread Campbell, Lance
, 2009 11:21 AM To: Tomcat Users List Subject: RE: How do I set the location of where catalina.out goes From: Campbell, Lance [mailto:la...@illinois.edu] Subject: How do I set the location of where catalina.out goes How do I set the location and file name of catalina.out? The catalina.out file