Re: Question regarding running Tomcat 7.0.57 offline

2018-04-19 Thread John Dale
with host bindings and resolutions that might auto-resolve algorithmically, explaining this behavior. Will keep that in mind as I continue. Thanks, John - [ERROR] 04-19-2018 13:16:50 onefortyfive.SMSNotificationPoller init – Unable to initialize

Re: Question regarding running Tomcat 7.0.57 offline

2018-04-19 Thread John Dale
Tomcat 7.0.57 java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) There are a couple of subsequent emails with more information .. I'm in meetings for a couple of hours, then I'll check

Re: Oracle REST Data Services Unavailable -- java.sql.SQLException: Unable to start the Universal Connection Pool

2018-04-20 Thread John Dale
if I remember correctly, oracle requires the name of its database service in the connection parameters (aka schema). Try something like: jdbc:oracle:thin:someuser@//myhost:1521/myservicename If you aren't doing a thin connection, I'm sure the same principle still applies. Oracle likes the schema

Re: Oracle REST Data Services Unavailable -- java.sql.SQLException: Unable to start the Universal Connection Pool

2018-04-20 Thread John Dale
what is the value for max connections in your pool? On Fri, Apr 20, 2018 at 10:38 AM, chandra sekhar wrote: > Hi John, > > Thanks for the response! > Without giving this "jdbc:oracle:thin" parameter in default.xml other Apex > environments are working fine.Please sug

Re: Oracle REST Data Services Unavailable -- java.sql.SQLException: Unable to start the Universal Connection Pool

2018-04-20 Thread John Dale
Do you have the service name specified in your DBCP metadata? On Fri, Apr 20, 2018 at 11:18 AM, chandra sekhar wrote: > 5000 > > On Fri, Apr 20, 2018 at 1:03 PM, John Dale wrote: > >> what is the value for max connections in your pool? >> >> >> On Fri, Apr

Re: Training material is now on-line

2018-04-27 Thread John Byrne
On 11 April 2018 at 23:32, Mark Thomas wrote: > Hi all, > > Thanks to the magic of GitHub pages, the Tomcat training material that > was used for the recent training session is now available on-line here: > > https://apache.github.io/tomcat-training/ > > The source code is here: > > https://github

ErrorReportValve styling (CSS) not included when both showReport and showServerInfo set to false

2018-05-10 Thread John Palmer
nd(""); sb.append(smClient.getString("errorReportValve.errorReport")); sb.append(""); } // move style lines outside of if(showServerInfo || showReport){ section... above sb.append("<!--"); sb.append(org.apache.catalina.util.TomcatCSS.TOMCAT_CSS); sb.append("--> "); sb.append(""); ... or am I missing (or just ignorant of ) something? John Palmer

Re: Please help me in enabling SSL certificate

2018-08-07 Thread John Palmer
your server.xml shows TWO connectors for port 8443; that second one (with all the certificate entries) is then causing the errror: > Caused by: java.net.BindException: Address already in use As that one is probably the one you want to be using, delete or comment out the first connector for port

Re: tomcat Finding!

2018-12-14 Thread John Palmer
I found this to be easier to accomplish (and maintain): add to the Host section of server.xml: (this will disable the tomcat version number and the stacktrace - the defaults for these are "true") On Fri, Dec 14, 2018 at 10:18 AM wrote: > Good Morning, > I'm encountering following scan findi

tomcat 8.5.35 warning using NIO 2 (or NIO) connector w APR: An unknown setting with identifier [2147483647] and value [2] was ignored

2018-12-20 Thread John Palmer
I'm working with tomcat 8.5.35 to configure SSL (current system is tomcat 7.5 using JKS keystore and truststore).. I finally have the certificate parts working with the default (commented out) APR connector.. it bothers me (doesn't seem intuitive) that the logging shows "useAprConnector [false

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread John Dale
I agree with this tactic .. I do the same thing. Cheers. On 12/22/18, Olaf Kock wrote: > > On 22.12.18 13:35, Dhaval Jaiswal wrote: >> I am facing issue of crashing JAVA process and log files attached for >> the same. >> >> Server total RAM is 16 GB. >> >> catalina.sh having following setting. >

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-22 Thread John Dale
Why are you requiring so much memory? On 12/22/18, Dhaval Jaiswal wrote: > System has allocated all mentioned RAM. > > I assume 13 would be fine. > > On Sat 22 Dec, 2018, 11:44 PM John Dale >> I agree with this tactic .. I do the same thing. >> >> Cheers. &g

Re: insufficient memory for the Java Runtime Environment to continue

2018-12-23 Thread John Dale
ou can fix the code on one place and it would apply to all services. I've fixed this type of issue a lot .. being able to read the code and find memory leaks without a profiler is .. a good skill to acquire. Have a super day and best of luck! John On 12/22/18, Dhaval Jaiswal wrote: > Ap

Problem with JDK10-12 "NOTE: Picked up JDK_JAVA_OPTIONS"

2018-12-31 Thread John Larsen
g.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"] 31-Dec-2018 15:09:52.094 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"] Thanks, John

Re: Problem with JDK10-12 "NOTE: Picked up JDK_JAVA_OPTIONS"

2018-12-31 Thread John Larsen
All versions of tomcat. But mostly 8.5 and 9. Also heres my setenv.sh export JAVA_HOME=/usr/java/jdk11 CATALINA_OPTS="-Xms256M -Xmx256M -server -XX:+UseParallelGC" export JAVA_HOME CATALINA_OPTS Thanks John On Mon, Dec 31, 2018 at 12:00 PM Christopher Schultz < ch...@christoph

Re: [OT] Happy New Year

2018-12-31 Thread John Dale
Tomcat.community.println("Hello, New Year!"); On 12/31/18, Igal Sapir wrote: > On 12/31/2018 8:38 AM, Leon Rosenberg wrote: >> I wish a happy and sound new year to all of the tomcat family! >> See, Hear and Read all of you next year! > > Happy New Year everyone! > > Igal > > > > -

Re: Tomcat and IDE

2019-01-02 Thread John Dale
log files. Have a good one, John On 1/2/19, r.bott...@afterbit.com wrote: > Hi, > actually during development, I use the server in localhost .. but if I do > not reboot, I do not see the new code changes... > > -Messaggio originale- > Da: André Warnier (tomcat) > In

Re: Java Supported Versions for Apache Tomcat/7.0.77

2019-01-02 Thread John Dale
Great question .. I would like to know the answer as well. On 1/2/19, Janakiram Maganti wrote: > Hi Support, > > Can you suggest what is the latest Java 8 version supported for “Apache > Tomcat/7.0.77”. > > [oracle@prn-bapdevapp01 bin]$ ./version.sh > Using CATALINA_BASE: /opt/app/oracle/BAPDEV

Re: Problem with JDK10-12 "NOTE: Picked up JDK_JAVA_OPTIONS"

2019-01-03 Thread John Larsen
How can I surpress it if its not an error? Problem I have is the output causes the script thinks its an error. Thanks, John On Thu, Jan 3, 2019 at 12:51 PM Mark Thomas wrote: > On 31/12/2018 15:12, John Larsen wrote: > > Hello, > > > > Ever since we started using jdk

Re: Anyway to set more max ram to Tomcat 32bit?

2019-01-04 Thread John Dale
It's like a finger pointing to the moon .. don't watch the finger. :) Sometimes the path to an answer must be followed, for the answer cannot travel on its own. On 1/4/19, ark...@tutanota.com wrote: > is this ur way of saying u dont have answer > > ur post doesnt explain away why on same arch

Re: Anyway to set more max ram to Tomcat 32bit?

2019-01-04 Thread John Dale
Good answer, but 32 bit may be a reality for some folks. I agree with you regarding 64 bit. Cloud instances are 64 bit. My workstations are 64 bit. It's great. I did some work with a bank awhile back .. they had some *ahem* limitations for security reasons and had to use 32 bit on many of thei

Re: Tomcat SSL - unsupported protocol or cipher suit error

2019-01-06 Thread John Larsen
I have run into this and solved it. Basically its due to JDK versions 7 and older. Two options to fix. 1. upgrade to jdk8 2. Add the following to your JAVA_OPTS or CATALINA_OPTS: -Dhttps.protocols=TLSv1.2 -Dhttps.cipherSuites=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 John On Sun, Jan 6, 2019 at 6

Re: Accessing the manager application in a new Tomcat 8.5 install

2019-01-07 Thread John Larsen
You need to allow access in your webapps/manager/META-INF/context.xml file replace allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" with allow=".*" Or set it to more restrictive if needed. Restart tomcat and you should be able to access. John On Mon, Jan 7, 2019 at 12

Re: Proper way to set up tomcat 8.5 (autostart and service setup)

2019-01-08 Thread John Larsen
Setup an init script. This is similar to how I do it. https://gist.github.com/katesclau/0ff6e41fd698e94eb43c John Larsen On Tue, Jan 8, 2019 at 10:01 AM Joel Saunders wrote: > All, > > > > I just installed Tomcat 8.5 on RedHat. > > > > The previous tomcat6 instal

Re: Proper way to set up tomcat 8.5 (autostart and service setup)

2019-01-08 Thread John Larsen
I simply tie systemd with the init script. Our servers host around 20-30 tomcat instances. I found it easier do it this way. John Larsen On Tue, Jan 8, 2019 at 10:26 AM Igal Sapir wrote: > On Tue, Jan 8, 2019 at 9:08 AM John Larsen > wrote: > > > Setup an init script. &g

Re: Proper way to set up tomcat 8.5 (autostart and service setup)

2019-01-08 Thread John Dale
style? I've been using it since .. I can't even remember. 1998 maybe on Fedora? On 1/8/19, John Larsen wrote: > I simply tie systemd with the init script. Our servers host around 20-30 > tomcat instances. I found it easier do it this way. > > > John Larsen > >

Re: Proper way to set up tomcat 8.5 (autostart and service setup)

2019-01-08 Thread John Dale
ow to math, they forget how to number. :) On 1/8/19, Igal Sapir wrote: > On Tue, Jan 8, 2019 at 9:58 AM John Dale wrote: > >> I'm using init.d and a custom script complete with single command >> deploy using git hooks. >> >> git push master pushes, builds, and

Re: Tomcat memory growth while using TLS

2019-01-12 Thread John Dale
I love it when a memory leak bites the dust .. it's a great feeling to extend process life. Fixed one yesterday in a capture/encode buffer of my mp3 streamer. Kudos, Mark! :) John On 1/12/19, i...@flyingfischer.ch wrote: > Am 11.01.19 um 18:23 schrieb Mark Thomas: >> Found

Re: request.getContextPath() behind a proxy (apache/nginx)

2019-02-05 Thread John Dale
I've encountered something similar in the past, but it was around access logging. It all depends on what the load balancer can forward to tomcat in headers. Port forwarding and resolving internally to the same domain externally seems to be how Tomcat wants to handle your issue. JMX M-Beans can o

Re: Tomcat patch management and patching best practices

2019-02-06 Thread John Larsen
Thats a really good question. We've simply replaced the entire tomcat installation and then rerun auto config. Be nice if apache provided patches. John On Wed, Feb 6, 2019 at 7:39 PM Murtaza Doctor wrote: > Dear Support, > > We request your help/advice for the Tomcat Patch

Re: HTTP2 with WebSockets

2019-02-06 Thread John Larsen
I am interested in this too. Basically we've had to set another port in which the app can access tomcat for websockets directly. We've not been able to get this to work over httpd. John On Wed, Feb 6, 2019 at 5:32 PM Jesse Schulman wrote: > Is it possible for tomcat to run w

Re: current best practices for Tomcat with SSL on port 443

2019-02-07 Thread John Larsen
. John On Thu, Feb 7, 2019 at 9:45 AM Garret Wilson wrote: > Hi, everyone. In the computer course I'm writing I'm using Tomcat for > the server. (Students learn how to set up CentOS and everything from > scratch. Currently the course has them using Tomcat running on port >

Re: Eclipse/Tomcat/jdbc

2019-02-09 Thread John Dale
Eclipse creates its own set of deployment metadata .. likely your jdbc configuration is not being replicated there. In the tomcat logs, you can usually find some file paths that give a clue as to the deployment information being used .. in eclipse, I would guess they are machine generated paths th

Re: Eclipse/Tomcat/jdbc

2019-02-09 Thread John Dale
p me advise further. Take a little time to straighten out which set(s) of files re driving tomcat, and one final word to the wise .. make sure you aren't pointing to another older/stale war file that is deploying successfully. THAT is annoying! ;) John On 2/9/19, Jerry Malcolm wrote: > Jo

Re: Eclipse/Tomcat/jdbc

2019-02-09 Thread John Dale
Bravo! Good work. John On 2/9/19, Jerry Malcolm wrote: > John, > > Update I went into the eclipse server definition and changed "Use > Workspace Metadata" to "Use Tomcat Installation" and it finally works. > This validates your assumption that some con

tomcat 8.5.37 specifying PKCS (.pfx) cert files in SSLHostConfig/Certificate elements

2019-02-11 Thread John Palmer
I'm new to implementing APR/tc-natiive for SSL/TLS on Windows Server 2008R2, attepting to usse tomcat 8.5.37 specifying PKCS12 format in the SSLHostConfig/Certificate elements for the keystore and truststore.. (I would prefer to drop the JKS format for several reasons) questions are: is this al

how to use separate shared dlls for OpenSSL, APR, and libtcnative-1...

2019-02-11 Thread John Palmer
(I'm new to using TC-native, interested in how to accomplish "In security conscious production environments, it is recommended to use separate shared dlls for OpenSSL, APR, and libtcnative-1, and update them as needed according to security bulletins. " Apparently I need a concrete example (step-by

Re: how to use separate shared dlls for OpenSSL, APR, and libtcnative-1...

2019-02-11 Thread John Palmer
rschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > John, > > On 2/11/19 10:46, John Palmer wrote: > > (I'm new to using TC-native, interested in how to accomplish "In > > security conscious production environments, it is re

Re: tomcat 8.5.37 specifying PKCS (.pfx) cert files in SSLHostConfig/Certificate elements

2019-02-11 Thread John Palmer
. Glad I finally ASKED). Thanks again. On Mon, Feb 11, 2019 at 11:22 AM Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > John, > > On 2/11/19 10:42, John Palmer wrote: > > I'm new to implementing AP

tomcat 8.5.37, Http11Nio2Protocol (OpenSSL), clientAuth or certificateVerification options

2019-02-12 Thread John Palmer
ng to beat a dead horse :) ... thanks again.. John

Re: tomcat 8.5.37, Http11Nio2Protocol (OpenSSL), clientAuth or certificateVerification options

2019-02-12 Thread John Palmer
retested with tc-native 1.2.21 on the desktop... and its working as expected. (Still not sure what was going on previously). thanks, again. On Tue, Feb 12, 2019 at 12:27 PM Mark Thomas wrote: > On 12/02/2019 17:21, John Palmer wrote: > > using the ol

Re: Tomcat connection error

2019-02-18 Thread John Dale
t and close references to PreparedStatements and ResultSets as well (especially ResultSets). I'm sure you'll figure it out. Sincerely, John On 2/18/19, Mark Thomas wrote: > On 18/02/2019 10:24, fai...@bestercapitalmedia.com wrote: >> Hi Ted, >> >> Yes, you are

Re: Tomcat connection error

2019-02-18 Thread John Dale
one of them .. it took a day or two for my connection pool to start timing out. Something like this seems like it will be in the Java code. Have a super day, John On 2/18/19, fai...@bestercapitalmedia.com wrote: > Hi John, > > I am working in spring boot (maven) project. > I

Re: Tomcat session management with Redisson

2019-02-18 Thread John Dale
Regarding clustering and state recovery, I opted some time ago to store session information in the database - I prefer full control over session state for security/obscurity reasons. Load balancing is straightforward this way. I'm not sure I would ever need more than 2 nodes for my purposes, thou

Re: [OT] Tomcat connection error

2019-02-18 Thread John Dale
Chris, On 2/18/19, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > John, > > On 2/18/19 07:45, John Dale wrote: >> I agree - release your connection, commit transaction (if you have >> auto-commit set to false), and null-out

Re: Tomcat session management with Redisson

2019-02-18 Thread John Dale
tha Fernando > Director > RevPort (Pvt.) Ltd. > malith.ferna...@revport.net | +94 713 76 92 17 > > > > ____ > From: John Dale > Sent: Tuesday, February 19, 2019 1:57:10 AM > To: Tomcat Users List > Subject: Re: Tomcat session management with

Re: Tomcat Apache 7.0.79 upgrade to Latest version

2019-02-20 Thread John Dale
I have always found migrating forward is fairly simple. That said, it depends lot no what you're doing in your code. I have not yet migrated to 8, but if I had to venture a guess, deployment metadata syntax of the server.xml may have changed. Check out this guide and let us know what we can do

Re: Logging web applications with log4j 1.2

2019-02-20 Thread John Dale
I'm using 7.x still .. I put my log4j file in the classes folder of my web app. On 2/20/19, Thomas Rohde wrote: > Hi! > > I've some basic questions regarding the usage of log4j 1.2 in Tomcat 8.5. > > We are running more than one web application in Tomcat. Each application > uses log4j via slf4j a

Re: Tomcat Apache 7.0.79 upgrade to Latest version

2019-02-20 Thread John Dale
ation as much as you feel comfortable. Good luck and again .. welcome! John On 2/20/19, Nitin Kadam wrote: > Thanks John for reply.. > > is there any documentation walkthrough for this upgrade available? > i am new to Tomcat and doing this 1st time, It will be great help if anyon

Re: Tomcat Apache 7.0.79 upgrade to Latest version

2019-02-20 Thread John Dale
uninstall the current version and then upgrade directly > with the latest version? > > > > Regards > Nitin > > > On Wed, Feb 20, 2019 at 7:28 PM Olaf Kock wrote: > >> >> On 20.02.19 14:47, Nitin Kadam wrote: >> > Thanks John for reply.. >> >

Re: Tomcat Apache 7.0.79 upgrade to Latest version

2019-02-20 Thread John Dale
was working for a bank a couple of years back that was still on Java 1.6 and that's the way they liked it. :) Did you see the road map for Java 10? Seems like we're moving a little too fast sometimes .. On 2/20/19, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- >

Re: [OT] Tomcat Apache 7.0.79 upgrade to Latest version

2019-02-20 Thread John Dale
IGNED MESSAGE- > Hash: SHA256 > > John, > > On 2/20/19 10:58, John Dale wrote: >> Points taken .. I have a great deal from my cloud provider on a >> wheezy instance, so I have to see if I can negotiate to keep my >> rate. I do a lot of custom MVC and security checks so t

Re: [OT] Tomcat Apache 7.0.79 upgrade to Latest version

2019-02-21 Thread John Dale
for > upgrading the version 7.0.79 to the latest version > need to figure out this ASAP > > Apps are hosted in Web apps folders and there are few D3 apps > which connected with SQL for database > > > > > On Wed, Feb 20, 2019 at 9:45 PM John Dale wrote: > >>

Re: Logging web applications with log4j 1.2

2019-02-21 Thread John Dale
1 - DevOps can alleviate this issue .. implicit in the model. 2 - exploded directory deployment would allow you to change log4j assuming log4j is configured to reload its configuration on change I'm not sure how classpath contexts are assigned to war files .. but I'm sure there is way. Anyone els

Re: [OT] Tomcat Apache 7.0.79 upgrade to Latest version

2019-02-22 Thread John Dale
heck some email Saturday morning in case there is something specific I can help out with. Good luck and again .. welcome to Tomcat, John On 2/21/19, Nitin Kadam wrote: > Hello , > > Thanks for the reply. > Yes having the plan to remediate same on weekend, ALready informed them >

Re: AW: Parallel Tomcat Instances On Same Server

2019-02-22 Thread John Dale
I'm going to say that you'll need two services. Isn't there a 1-1 mapping between services and processes? As such, two processes, two services? Anyone else want to weigh-in? I haven't used windows in sooo long! John On 2/22/19, Jerry Malcolm wrote: > Thanks J

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-04 Thread John Dale
Nice test case. Is the JVM able to garbage collect fast enough? Are you releasing the resources properly in your components as early as possible? Java VM's achieve a steady-state after a certain period of time, but I've found in some cases garbage collection doesn't keep-up with my load tests be

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

2019-03-04 Thread John Dale
I found this in some old code .. not sure if it works. Let me know. //Getting the runtime reference from system Runtime runtime = Runtime.getRuntime(); //Print used memory out.println("Used Memory: " + ((runtime.totalMemory() - runtime.freeMemo

Re: Tomcat 8.5.13 - random issue with HTTPS (blank page) - working good with HTTP

2019-03-04 Thread John Dale
We need some more information .. what are you using to log? Do you wait to see if there will be a timeout, after which something more meaningful might appear in the logs? Memory/resource leak would be my guess. Uses all the threads, none of which seem to be properly reclaimed, so it eventually j

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

2019-03-04 Thread John Dale
I have seen those as well. I was hoping someone knew if there was a way to > view the Java Stack in particular. > > On 3/4/19, 11:16 AM, "John Dale" wrote: > > I found this in some old code .. not sure if it works. Let me know. > > //Getting the runtime

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-04 Thread John Dale
Does anyone know if this connector supports maxPostSize parameter? On 3/4/19, Santhosh Kumar wrote: > Hi, > > We have a tomcat instance which is http2 enabled and it needs to serve > large number of requests using multiplexing, so we have configured our > instance as follows, > > sslImplementati

Re: Tomcat 8.5.13 - random issue with HTTPS (blank page) - working good with HTTP

2019-03-05 Thread John Dale
s the best practice to configure the tomcat in a more efficient way ? > > > Do you want the HTTPS config we have ? from Tomcat configuration JAVA tab ? > > > -Original Message- > From: John Dale [mailto:jcdw...@gmail.com] > Sent: Monday, March 04, 2019 6:45 PM > T

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-05 Thread John Dale
1000-1500 MB or KB? On 3/4/19, Santhosh Kumar wrote: > As per the documentation, > https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_SSLHostConfig > > this connector supports maxPostSize, by default the limit is set to 2MB > > On Tue, Mar 5, 2019 at 5:09 A

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-05 Thread John Dale
. Will let you know if I have any other ideas. On 3/5/19, Santhosh Kumar wrote: > Bytes > > On Tue, Mar 5, 2019 at 9:28 PM John Dale wrote: > >> 1000-1500 MB or KB? >> >> On 3/4/19, Santhosh Kumar wrote: >> > As per the documentation, >> > &g

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-05 Thread John Dale
How many orders of magnitude slower are the post requests? On 3/5/19, Santhosh Kumar wrote: > I was testing in the localhost > > On Tue, Mar 5, 2019 at 9:32 PM John Dale wrote: > >> Are you running your test client (h2load) on the same machine, same >> network, or is i

Re: Tomcat 8.5.13 - random issue with HTTPS (blank page) - working good with HTTP

2019-03-05 Thread John Dale
I do not typically use that log file .. have you searched other log files in the tomcat/logs/* directory? On 3/5/19, youness.dakk...@bnpparibasfortis.com wrote: > /logs/stderr.log > > -Original Message- > From: John Dale [mailto:jcdw...@gmail.com] > Sent: Tuesday, March 0

Re: Tomcat 8.5.13 - random issue with HTTPS (blank page) - working good with HTTP

2019-03-06 Thread John Dale
o set > the tomcat config to get more usefull logs > > Thanks in advance, > Youness > > > > > > > -Original Message- > From: John Dale [mailto:jcdw...@gmail.com] > Sent: Tuesday, March 05, 2019 9:25 PM > To: Tomcat Users List > Subject: Re: Tomcat

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-06 Thread John Dale
are you looking to measure request handling time? if so, startTime will not give you what you need since threads get reused by many requests. Sincerely, John On 3/6/19, Helena Carbajo wrote: > >I want to know how much time my requests have to wait before they are > handle, but

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-06 Thread John Dale
ue, Mar 5, 2019 at 10:00 PM John Dale wrote: > >> How many orders of magnitude slower are the post requests? >> >> On 3/5/19, Santhosh Kumar wrote: >> > I was testing in the localhost >> > >> > On Tue, Mar 5, 2019 at 9:32 PM John Dale wrote: >>

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-06 Thread John Dale
be, so I would have to defer to someone else who is elbow deep in that code at the moment). Thoughts? John On 3/6/19, Helena Carbajo wrote: > >are you looking to measure request handling time? > >>if so, startTime will not give you what you need since threads get >>

Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload

2019-03-06 Thread John Dale
t; On Wed, Mar 6, 2019 at 6:18 PM John Dale wrote: > >> Have you upgraded to the most recent release of your major version? >> >> If so, and if this issue still persists, it is something that the core >> development team might want to look at assuming they can replicate

Re: Tomcat 8.5.13 - random issue with HTTPS (blank page) - working good with HTTP

2019-03-06 Thread John Dale
e end of the file for unix. > > > > -Original Message- > From: John Dale [mailto:jcdw...@gmail.com] > Sent: Wednesday, March 06, 2019 1:44 PM > To: Tomcat Users List > Subject: Re: Tomcat 8.5.13 - random issue with HTTPS (blank page) - working > good with HTTP >

Re: Followup2: Changed behaviour of Tomcat Deployment/Context/Lifecycle Manager concerning symbolic links

2019-03-09 Thread John Dale
Nice investigative work, Guido. Curious, are you debugging the source code? Downloading any nightly builds? If you're connected to the repo somehow you could get users named on the commit logs and read commit messages? Again - nice work! Sincerely, John On 3/8/19, Jäkel, Guido

Re: What is `tomcat7/common/` for?

2019-03-12 Thread John Larsen
Tomcat 8 uses tomcat/lib instead of tomcat/common/ you'll need to adjust your script. John Larsen On Tue, Mar 12, 2019 at 7:43 AM Joel Griffith wrote: > I'm upgrading a webapp server from Tomcat 7 to Tomcat 8 on Ubuntu 16.04. > At installation, Tomcat 7 creates a directory `

Re: Tomcat 9 Nio2+OpenSSL problem (very likely a bug)

2019-03-13 Thread John Palmer
I'm testing to see if this might be an issue on a new tomcat 8.5.38 upgrade I'm doing (using NIO2 and OpenSSL) before I promote this to our Production environment :) (Windows Server 2008R2, Java (javaC.exe) version is 1.8.0_191) .. after some missteps (had to add some imports to get it to compile

Re: Tomcat doesn't restart

2019-03-16 Thread John Dale
How big had your log files gotten in that period? On 3/14/19, Louis Zipes wrote: > Hi Experts, > Running Tomcat 7.0.54 on Windows 2012 > > Our morning process is to fire a stop of the Tomcat Windows Service and then > an immediate restart. This is more due to the 3rd party application that is >

Re: 2 instance of ParallelWebAppClassLoaders in Tomcat JVM

2019-03-16 Thread John Dale
Are you running a debugger? On 3/15/19, Mark Thomas wrote: > On 15/03/2019 17:51, Shankar P S wrote: >> @Mark Thanks for the tip. I compared the 2 heap dumps. For the same >> server.xml config, 8.5.38 version of Tomcat creates 3 StandardContext >> instances. I see that these 3 objects have their

Question about the longevity of Java ..

2019-03-25 Thread John Dale
. Sincerely, John Dale, MS MIS/Entrepreneurship PS: Have a great week everyone. Think hard this week (that's what she said). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: us

how to enable OCSP for Tomcat w OpenSSL

2019-04-01 Thread John Palmer
What, if anything, needs to be configured to ENABLE (preferably REQUIRE) tomat to do CLIENT certificate revocation checking via OCSP in Tomcat 8.5.38 using Openssl ? I'm sure I'm missing something simple and obvious (once pointed out) but I've been struggling with this all morning). 1) using Open

Re: Monitoring resources comsumption at context level

2019-04-03 Thread John Dale
Can't stress that enough if you aren't already doing that. :) Be the John Henry of software code, John On 4/2/19, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Fellipe, > > On 4/2/19 17:04, Fellipe Theophilo wrote: >> Hi everyo

Re: how to enable OCSP for Tomcat w OpenSSL

2019-04-03 Thread John Palmer
e: > Hi, > > On Mon, Apr 1, 2019 at 3:30 PM John Palmer wrote: > > > What, if anything, needs to be configured to ENABLE (preferably REQUIRE) > > tomat to do CLIENT certificate revocation checking via OCSP in Tomcat > > 8.5.38 using Openssl ? > > > Setti

Re: how to enable OCSP for Tomcat w OpenSSL

2019-04-04 Thread John Palmer
the tc-native source what I might be missing, but apparently I'm overlooking it. helpful suggestions are welcomed. On Wed, Apr 3, 2019 at 12:32 PM John Palmer wrote: > I appreciate your response > > > Setting `certificateVerification="require"` on your

Re: Sending post from ajax to servlet

2019-04-07 Thread John Dale
Debug pause made your request/db connection/other timeout? On 4/5/19, alejandro.var...@kymsolutions.com wrote: > I have a problem, not always, it happens randomly. Sometimes I send some > data, ~200KB , using jquery ajax, but when I received the request it came > null, but before I debugged in Ch

Re: Using WebSockets with a Tapestry WebApp running on Tomcat

2019-04-08 Thread John Dale
thout having to negotiate etherial stubs to far off services. Looking forward to hearing about the resources you're trying to have injected into your code. Have a good one, John DB2DOM.COM On 4/8/19, Christopher Dodunski wrote: > Hi team, > > I have developed a web application

Re: Session Persistence Problems

2019-04-11 Thread John Dale
I'm looking forward to hearing from the dev folks on this. I suspect it has something to do with the context configuration. A long time ago, I started doing my own session management, but then I don't mind building out the pieces I needed for clustering. In fact, I decided to store session infor

Re: Session Persistence Problems

2019-04-11 Thread John Dale
have always struggled to shoe-horn some of the session management into my (sometimes admittedly advanced and unpredictable) application requirements. Would love to hear your thoughts. Have a good one, John DB2DOM.COM On 4/11/19, Jerry Malcolm wrote: > On 4/11/2019 4:22 PM, Christopher Schultz wr

Re: connectionInitSqls

2019-04-12 Thread John Dale
Are you using the "*" (splat/star/asterisk) characters below to highlight the configuration entry for our benefit? Are you sure you're putting the connectionInitSqls on the correct Resource element below (noticed you had two)? Try verifying the JNDI lookup in your code with the configuration belo

Re: [ANN] Apache Tomcat 8.5.40 available

2019-04-14 Thread John Dale
Hi Mark; Do you have an artifact depicting the dependencies in Tomcat? I'd like to start building, debugging, and helping-out, but I just like using Ant and using manual methods for dependencies at compile time. Do I have a chance? Sincerely, John Dale, MS MIS DB2DOM.COM Spearfish, SD

Re: Build Dependencies

2019-04-15 Thread John Dale
I neglected to appreciate the volume of communication you guys deal with. Igor - thanks! Chris - noted. Have a good one, John On 4/15/19, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Igal, > > On 4/14/19 13:23, Igal Sapir wrote: >

Re: Wildcard certificates

2019-04-17 Thread John Larsen
We do the same - via mod_jk we utilize apache httpd to handle the SSL. Keeps things simple and works well. John Larsen On Wed, Apr 17, 2019 at 7:44 AM TurboChargedDad . wrote: > We terminated SSL above the tomcat layer using NGINX or Apache to avoid > the complexities that come with ma

Re: Wildcard certificates

2019-04-17 Thread John Dale
I have a really nice process that works great with certbot. Single command to renew all of my certs and I'm finished. I get some piece of mind having a Java process guarding the front door. Seems to be more impervious to overflows. What am I missing? I think what I have might be easily develop

Re: Wildcard certificates

2019-04-17 Thread John Dale
y" because it is used to extend and maintain itself. Any ideas I'd love to hear them. Have a good one, John On 4/17/19, TurboChargedDad . wrote: > I would have the opposite feeling. I would not want a java process > parked out in the internet. Not saying you're w

Re: how to enable OCSP for Tomcat w OpenSSL

2019-04-17 Thread John Palmer
or:1417C086:SSL routines:tls_process_client_certificate:certificate verify failed] the Connector part of the server xml.config file is (ip address and server name etc removed): On Thu, Apr 4, 2019 at 7:47 PM John Palmer wrote: > Well, afte

Re: Wildcard certificates

2019-04-17 Thread John Dale
quests and a few scripts that use the certbot to do the work. Come to think of it, my certs will need renewal soon. I'll take a pass over what I have and send it out after I renew .. thank you for your patience. John On 4/17/19, Christopher Schultz wrote: > -BEGIN PGP SIGNED M

Re: Wildcard certificates

2019-04-17 Thread John Dale
On 4/17/19, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > John, > > On 4/17/19 10:42, John Dale wrote: >> My understanding is that the folks at SUN really put their backs >> into it from the beginning: >> https://stackove

Re: Wildcard certificates

2019-04-17 Thread John Dale
Exactly .. this is part of the solution. I am having tomcat behave smartly in response to the certificate validation, and I have a nice path to develop some cool tools, similar to HTTPD, around certbot (I love that this is a free service, but I do have some concerns over centralized CSA, so I do o

Re: Wildcard certificates

2019-04-18 Thread John Dale
fis.close(); return; } Hope this helps, John On 4/17/19, Sean Dawson wrote: > On Wed, Apr 17, 2019 at 9:20 AM Sean Dawson > wrote: > >> >> Hello, I have a widlcard certificate from GoDaddy. Can I use this with >> Tomcat? (8.5) >&

Re: unable to serve static files with embedded Tomcat

2019-04-19 Thread John Dale
Tomcat doesn't seem to timeout one its own unless my DBCP is being abused in the code. I'm thinking firewall .. also, double-check your port configuration(s) in server.xml (or context.xml if that's the route you're going). On 4/19/19, Garret Wilson wrote: > Embedding Tomcat 9 (with OpenJDK 11 on

Is there a limit to mod_jk?

2019-04-24 Thread John Larsen
:139932601325312] [error] ajp_service::jk_ajp_common.c (2796): (w314) connecting to tomcat failed (rc=-3, errors=2, client_errors=0). [Thu Apr 25 04:14:07.458 2019] [30178:139932601325312] [info] jk_handler::mod_jk.c (2991): Service error=-3 for worker=w314 I tried updating mod_jk to 1.2.46 John Larsen

Re: Initiating httpservletrequest from inside Tomcat / TomEE

2019-04-30 Thread John Dale
This is one of my favorite things. You'll need to retransmit headers, but by and large it's doable. Management of contexts can be tricky. Don't forget that the target service will have a difference context (database connection context has bitten me in the past on this type of task). I do my sess

<    3   4   5   6   7   8   9   10   11   12   >