Re: tomcat connection pool per database (postgres)

2020-11-25 Thread Rob Sargent
For those scoring at home, I'm going to try managing pool-per-user myself for the potential jmx gain and as I said, two will be amazing success. On 11/25/20 9:40 AM, Christopher Schultz wrote: Phil and Rob, On 11/24/20 11:26, Phil Steitz wrote: On 11/24/20 8:52 AM, Rob Sargent wrote

Re: ANN: Bill Stewart's Apache Tomcat Setup for Windows [9.0.40]

2020-12-01 Thread Rob Sargent
Is there something similar for embedded tomcat on linux? On 12/1/20 3:58 PM, Bill Stewart wrote: Documentation and installer source: https://github.com/Bill-Stewart/ApacheTomcatSetup Download installer: https://github.com/Bill-Stewart/ApacheTomcatSetup/releases

Re: embedded tomcat and context.xml

2020-12-03 Thread Rob Sargent
to the DataSource, which I need to be able to change the current database (in a postgres sense) > On Dec 3, 2020, at 8:06 AM, Christopher Schultz > wrote: > > Rob, > > On 12/2/20 13:31, Rob Sargent wrote: >> I'm old and easily confused: does an embedded tomcat server re

Re: embedded tomcat and context.xml

2020-12-03 Thread Rob Sargent
only one and for me a user is associated with only one database.) Really great to hear that lookup() is not my biggest concern;) Thanks again, rjs On 12/3/20 3:18 PM, Christopher Schultz wrote: Rob, On 12/3/20 11:03, Rob Sargent wrote: Thanks for you time. Your response goes a long w

Re: tomcat connection pool per database (postgres)

2020-11-24 Thread Rob Sargent
quot;replacement" bit. Are both equally sound, supported, surviving?  I try to use what I think is the safest longer term bet (my retirement is nigh, it shouldn't take the code with it :) ) On 11/24/20 8:28 AM, Phil Steitz wrote: On 11/24/20 8:14 AM, Rob Sargent wrote: Thanks. I get it. But

Re: tomcat connection pool per database (postgres)

2020-11-24 Thread Rob Sargent
and knowledge sharing On 11/24/20 6:28 AM, Christopher Schultz wrote: Rob, On 11/19/20 12:38, Rob Sargent wrote: Since the connection URL names a specific postgres database is it standard practice to have a pool per target database?  (Switching databases in postgres amounts to closing/opening

Off-loading heavy process

2020-12-09 Thread Rob Sargent
My apologies if this is too vague to warrant consideration. In the recent past I managed a naked port, a Selector, a ThreadPoolExecutor and friends (and it worked well enough...) but a dear and knowledgeable friend suggested embedding tomcat and using http.[3] I have that working, one

Re: Problems configuring a JNDI JDBC pool to Postgres

2020-11-26 Thread Rob Sargent
Looks like you named your resource jdbc/dspaceWeb and dropped the Web in your lookup > On Nov 26, 2020, at 12:58 PM, Hrafn Malmquist > wrote: > > Good day fellow Apache Tomcat users > > I have recently had reason to set a Postgres DataSource via the Tomcat JNDI > api. My experiments have

embedded tomcat and context.xml

2020-12-02 Thread Rob Sargent
I'm old and easily confused: does an embedded tomcat server read (any) context.xml file?  I find conflicting answers /out there./ Using tomcat 9.0.40 embeddedTomcat =new Tomcat(); embeddedTomcat.setPort(tomcatPort); embeddedTomcat.enableNaming(); embeddedTomcat.getConnector();// an

Re: embedded tomcat and context.xml

2020-12-02 Thread Rob Sargent
typo: should read "none of which are named in the web.xml" (not "which are NOT" as below) On 12/2/20 11:31 AM, Rob Sargent wrote: I'm old and easily confused: does an embedded tomcat server read (any) context.xml file?  I find conflicting answers /out there./

Re: Off-loading heavy process

2020-12-14 Thread Rob Sargent
>>> Calling save() from the servlet would tie-up the request-processing thread >>> until the save completes. That's where you get your 18-hour response times, >>> which is not very HTTP-friendly. >> Certainly don't want to pay for 18 EC2 hours of idle. > > So your clients spin-up an EC2

Re: Off-loading heavy process

2020-12-11 Thread Rob Sargent
Chris, This is _so_ helpful. On 12/11/20 3:00 PM, Christopher Schultz wrote: Rob, On 12/11/20 15:00, Rob Sargent wrote: > [huge snip] Your “Job” example seems along the lines of get-it-off-the-servlet, which again points back to my current queue handler I think. Yes, I think so. So le

Re: Off-loading heavy process

2020-12-14 Thread Rob Sargent
oh,oh.  If you're confused, then likely I am and don't know it.  When I finally realize the point of confusion, I'll come crawling back.  (Would love to un-confuse you, but I think I've proven inadequate there.) Cheers, and thanks for all your time and help. rjs On 12/14/20 3:31 PM,

Re: Off-loading heavy process

2020-12-11 Thread Rob Sargent
Chris, Thank you for the completeness. I always miss on getting the correct detail (too little, too much) in my postings. > On Dec 11, 2020, at 11:31 AM, Christopher Schultz > wrote: > > Rob, > > On 12/9/20 23:58, Rob Sargent wrote: >> My apologies if this

tomcat connection pool per database (postgres)

2020-11-19 Thread Rob Sargent
Since the connection URL names a specific postgres database is it standard practice to have a pool per target database?  (Switching databases in postgres amounts to closing/opening a connection.)

Details of connection pooling

2020-11-20 Thread Rob Sargent
I'm using tomcat 9.0.+ and wish to use the built in connection pooling to connect to a postgres server. I would like to understand the lookup mechanism for the next available connection. I create a context contextResource.setName("jdbc/sgsdb");

Re: troubled by "SEVERE: Cannot register null bean"

2021-01-08 Thread Rob Sargent
Nice catch. Unfortunately that doesn't clear up the 'Cannot register null bean' problem. rjs On 1/8/21 12:18 PM, Mark Thomas wrote: On 08/01/2021 16:11, Rob Sargent wrote: classname="org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSource" factory="org.apach

troubled by "SEVERE: Cannot register null bean"

2021-01-08 Thread Rob Sargent
I'm getting the following error message during startup SEVERE: Cannot register null bean for [Tomcat:type=DataSource,host=localhost,context=/sgs,class=javax.sql.DataSource,name="jdbc/sgsdb"] with sgs/META-INF/context.xml as   and sgs/WEB-INF/web.xml as

Re: troubled by "SEVERE: Cannot register null bean"

2021-01-09 Thread Rob Sargent
e since it's being registered and registerComponent refuses to register a null value. I have no idea why the actualResource (a DataSource Factory) is not available. On 1/8/21 9:11 AM, Rob Sargent wrote: I'm getting the following error message during startup    SEVERE: Cannot register null

Re: troubled by "SEVERE: Cannot register null bean"

2021-01-10 Thread Rob Sargent
for the noise. On 1/9/21 8:10 PM, Rob Sargent wrote: After many loops through this, I'm pretty certain my datasource factory is simply never added to the context as per the SEVERE message. Any other combinations of lookups generates a NamingException. This verbose approach demonstrates that the key

Re: troubled by "SEVERE: Cannot register null bean"

2021-01-10 Thread Rob Sargent
n the type attribute you use the commons package name, but then specify the tomcat factory.  Try changing the type attribute to type="org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolPoolDataSource" Phil On 1/10/21 8:41 AM, Rob Sargent wrote: I've abandon PerUserPoolData

javadoc 404

2021-01-10 Thread Rob Sargent
While trying to understand why PerUserPoolDataSource doesn't implement javax.sql.ConnectionPoolDataSource on https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/tomcat/dbcp/dbcp2/datasources/package-summary.html I get a 404 from anchor cpdsadapter example

Re: SSL trouble in embeddedLand

2021-01-20 Thread Rob Sargent
On 1/20/21 8:15 AM, Rémy Maucherat wrote: On Tue, Jan 19, 2021 at 5:02 AM Rob Sargent wrote: Dealing with a complex configuration using the embedded API can be a bit problematic. If you're using a recent Tomcat 9 (9.0.38+), you could use the code generator that was designed for ahead of time

Re: SSL trouble in embeddedLand

2021-01-19 Thread Rob Sargent
My recommendation would be: - start with the test certs from the Tomcat unit tests as they are known to work - get your code working so you know the code is good - they try with your own keys certificates Mark That's exactly what I'll do next.  Thank you very much. rjs

Re: SSL trouble in embeddedLand

2021-01-22 Thread Rob Sargent
On 1/22/21 3:06 PM, Christopher Schultz wrote: You are telling keytool to read-in localhost-rsa-key.pem as a PKCS12 file, which is most likely wrong. You don't want to import a keystore, you want to import a key. Unfortunately, keytool doesn't allow that. But openssl does: $ openssl

SSL trouble in embeddedLand

2021-01-18 Thread Rob Sargent
Stuck in my basement with no real domain I'm having trouble setting up SSL/TLS on an embedded tomcat instance. And I'm very lost, having tried more dead ends than I can remember. I used this to generate cert and key openssl req -out localhost.crt -key localhost.key \ -newkey rsa:2048 -nodes

Re: CATALINA_OPTS vs JAVA_OPTS

2021-06-16 Thread Rob Sargent
> On Jun 16, 2021, at 8:36 AM, Noelette Stout wrote: > > If I have a setenv.sh file that contains: > CATALINA_OPTS="-server -Xms2048m -Xmx5g" > JAVA_OPTS="... -Xms2048m -Xmx4g .." > > How much memory is actually being allocated to tomcat and the applications > it is serving up? > > -- >

Re: Urgent Help

2021-06-23 Thread Rob Sargent
I dropped a couple lines in the C/P, ammended below On 6/23/21 1:35 PM, Rob Sargent wrote: Please provide a list of all the JAR files under WEB-INF/lib in your WAR file. +1 and maybe also everything in $CATALINA_BASE/lib as well, just in case your Tomcat lib directory has had things added

Re: Pi Based Java Work

2021-05-28 Thread Rob Sargent
On 5/28/21 6:21 PM, John Dale wrote: Tried sending another email .. doesn't appear to have worked. Internet hicupped. It's working just like Ubuntu in the cloud. Pi 4 is very fast, but I'm also running DB2DOM (middleware microkernel miniaturized O/R M, Html5 IDE, and Virtual Web Server).

abandoned connections

2021-05-26 Thread Rob Sargent
I think I have all my calls for new connections in try/with blocks, but things went bump in the night at AWS/RDS yesterday and I'm wondering if I missed one or if the try/with isn't as safe as I thought. 00:10:12.201 [https-jsse-nio-10.0.2.28-15002-exec-11] INFO

Re: [Possible Spam] Re: HTTP/2 Memory Leak

2021-07-08 Thread Rob Sargent
On 7/8/21 3:17 PM, Mark A. Claassen wrote: Ok. That didn’t seem to work. I will investigate further and try to find a way to send that information. It is not that busy a server, but the memory use increases very quickly. Doing a class_histogram shows MessageBytes growing by the thousands

Re: 10. migration doc flaw

2021-02-08 Thread Rob Sargent
Well, it the 9->10 page, but that form generator is all about 10.x->10.y  (Not sure it's doing anything useful either?) On 2/8/21 4:35 PM, Rob Sargent wrote: I think there's an error on this page:    http://tomcat.apache.org/migration-10.html First paragraph under "Upgra

10. migration doc flaw

2021-02-08 Thread Rob Sargent
I think there's an error on this page: http://tomcat.apache.org/migration-10.html First paragraph under "Upgrading 10.0.x" When upgrading instances of Apache Tomcat from one version of _Tomcat 9 _to another, particularly when using separate Which confused me because I was looking

Re: 10. migration doc flaw

2021-02-09 Thread Rob Sargent
> On Feb 9, 2021, at 1:25 AM, Mark Thomas wrote: > > On 08/02/2021 23:40, Rob Sargent wrote: >> Well, it the 9->10 page, but that form generator is all about >> 10.x->10.y (Not sure it's doing anything useful either?) > > Copy/paste error

Re: SSL trouble in embeddedLand

2021-01-22 Thread Rob Sargent
For completeness, I must admit that I was unable to use PKCS12 files.  I had to use JKS format. I copied and transformed my cacerts files as per keytool recommendation: keytool -importkeystore -srckeystore /usr/lib/jvm/java-15-oracle/lib/security/cacerts -destkeystore

module muddle

2021-03-11 Thread Rob Sargent
I've started getting this error, though I've been running fine since days of "localhost" issue help. class org.apache.tomcat.dbcp.dbcp2.BasicDataSource cannot be cast to class org.apache.tomcat.jdbc.pool.DataSource (org.apache.tomcat.dbcp.dbcp2.BasicDataSource is in unnamed module

Re: module muddle

2021-03-15 Thread Rob Sargent
A little late in responding to Mark's questions.  Been on a  short walk-about. On 3/11/21 12:17 PM, Mark Thomas wrote: On 11/03/2021 19:08, Rob Sargent wrote: I've started getting this error, though I've been running fine since days of "localhost" issue help.

small error in log documentation

2021-03-15 Thread Rob Sargent
Last sentence of Introduction on https://tomcat.apache.org/tomcat-9.0-doc/logging.html If it used directly or indirectly by your logging library then elements of it will be shared across web applications because it is loaded by the system class loader. I think in needs to be "If it is

reload vs restart

2021-02-26 Thread Rob Sargent
Given a single webapp, what's the difference between server restart and webapp reload in terms of current open sessions?

Re: reload vs restart

2021-03-02 Thread Rob Sargent
Chris, > On Mar 2, 2021, at 9:46 AM, Christopher Schultz > wrote: > > So you just have a single Tomcat node? Yeah, you are going to want to use > parallel deployment unless you can be VERY careful about your JVM restarts. > > You will also need to familiarize yourself with using the Manager

embedded: one-liner

2021-02-26 Thread Rob Sargent
In the absence of anything Catalina, but with etc/>, is an embedded tomcat able to detect updates to web.xml (or context.xml) and reload the app or the resource definitions? Hasn't worked for me so far, but still hoping I doing it wrong (as usual).

Re: reload vs restart

2021-02-27 Thread Rob Sargent
Chris, Thank you, yet again. On 2/26/21 9:31 PM, Christopher Schultz wrote: Rob, On 2/26/21 16:47, Rob Sargent wrote: Given a single webapp, what's the difference between server restart and webapp reload in terms of current open sessions? That depends upon a few things. If you do not have

Re: embedded: one-liner

2021-02-26 Thread Rob Sargent
On 2/26/21 12:05 PM, Mark Thomas wrote: On 26/02/2021 18:36, Rob Sargent wrote: In the absence of anything Catalina, but with true etc/>, is an embedded tomcat able to detect updates to web.xml (or context.xml) and reload the app or the resource definitions? Hasn't worked for me so

Re: tomcat timeout

2021-04-15 Thread Rob Sargent
On 4/15/21 12:23 PM, Mohamed Eliyas Abdul Kadar wrote: I am using tomcat 9.0.41. In my web application, when executing a query to fetch data for reporting it is taking time more than 2 minutes. The request is getting time out after 50s. Please let me know how to increase the data base

Again with the missing headers

2021-04-10 Thread Rob Sargent
I saw this mentioned a couple years ago, on tomcat 7, but don't see anything recent on this topic and I'm using 9.0.43.  Of 59 separate requests to same servlet three repeatedly do not have the header entry added by the servlet to the response.  The remaining 56 all have the header/value.  The

Re: Again with the missing headers

2021-04-12 Thread Rob Sargent
oding and allows header > values to be written after the response body. You might want to confirm that > the client you are using supports trailer headers. > > HTH, > > Mark > > >> On 11/04/2021 23:53, Rob Sargent wrote: >> I should mention that this is ent

Re: Again with the missing headers

2021-04-12 Thread Rob Sargent
> On Apr 12, 2021, at 8:43 AM, Rob Sargent wrote: > > > > > Begin forwarded message: > >> From: Konstantin Kolinko >> Date: April 12, 2021 at 8:38:14 AM MDT >> To: Tomcat Users List >> Subject: Re: Again with the missing headers >> Repl

Re: [OT] Again with the missing headers

2021-04-12 Thread Rob Sargent
> On Apr 12, 2021, at 2:04 PM, Christopher Schultz > wrote: > > Mark, > > On 4/12/21 04:16, Mark Thomas wrote: >> maxHttpHeaderSize only applies to Tomcat reading requests from clients. It >> has no impact on the headers Tomcat sends to the client. >> Given that the issue is size dependent

Re: Again with the missing headers

2021-04-11 Thread Rob Sargent
of content. the response headers should > be the first thing that is received by the client. Then the body can be > split and transmitted along the connection. > >> On Sat, Apr 10, 2021 at 10:06 PM Rob Sargent wrote: >> >> I saw this mentioned a couple years ago, on tomc

Re: Again with the missing headers

2021-04-11 Thread Rob Sargent
I should mention that this is entirely on localhost (running linux) and using https. On 4/11/21 8:31 AM, Rob Sargent wrote: Thanks, I’ll go back to reading headers first. I did not mean to imply the header content differed significantly. The header value is always an integer (<

Re: embedded, not local

2021-02-15 Thread Rob Sargent
Thanks again, Chris, On 2/15/21 1:32 PM, Christopher Schultz wrote: Try this: $ openssl s_client -showcerts -connect k1:16004 -tls1_2 openssl s_client -showcerts -connect k1:16004 -tls1_2 CONNECTED(0003) 140444510528832:error:1408F10B:SSL routines:ssl3_get_record:wrong version

Re: embedded, not local

2021-02-15 Thread Rob Sargent
cess-Control-Request-Method,Access-Control-Request-Headers         cors.support.credentials   false           cors.exposed.headers Access-Control-Allow-Origin             CorsFilter     /sgs/*   [2]       Enable debugging for the application     debug     true       On 2/15/21

Re: embedded, not local

2021-02-16 Thread Rob Sargent
Thanks, Chris, Complete radio silence when running from command line [1][2] with a startup script and running in IntelliJ [3]. (I wish I could make the same /mistake/ with jOOQ;) ) I have managed to get access-logging started. The only warning I get (cmdline) is from the jvm WARNING: An

Re: embedded, not local

2021-02-16 Thread Rob Sargent
I'm managed to open the flood gates.  Will report soon. On 2/16/21 11:25 AM, Rob Sargent wrote: Thanks, Chris, Complete radio silence when running from command line [1][2] with a startup script and running in IntelliJ [3]. (I wish I could make the same /mistake/ with jOOQ;) ) I have managed

Re: embedded, not local

2021-02-16 Thread Rob Sargent
ddedTomcat.start(); On 2/16/21 1:02 PM, Rob Sargent wrote: The logging so far has told me only that my port 16004 is in use, but at outset it clearly is not according to netstat or ss.  Is tomcat opening that port before the call to "tomcat.start(); tomcat.getServer().await():"? On

Re: embedded, not local

2021-02-16 Thread Rob Sargent
change port assignment (16005) and restarted server.  port in use. On 2/16/21 2:36 PM, Rob Sargent wrote: Rebooted desktop k1.  I get port in use first time I start my server (shell). On 2/16/21 1:26 PM, Christopher Schultz wrote: Rob, On 2/16/21 15:02, Rob Sargent wrote: The logging so

Re: embedded, not local

2021-02-16 Thread Rob Sargent
Rebooted desktop k1.  I get port in use first time I start my server (shell). On 2/16/21 1:26 PM, Christopher Schultz wrote: Rob, On 2/16/21 15:02, Rob Sargent wrote: The logging so far has told me only that my port 16004 is in use, but at outset it clearly is not according to netstat or ss

Re: embedded, not local

2021-02-16 Thread Rob Sargent
The logging so far has told me only that my port 16004 is in use, but at outset it clearly is not according to netstat or ss.  Is tomcat opening that port before the call to "tomcat.start(); tomcat.getServer().await():"? On 2/16/21 12:04 PM, Rob Sargent wrote: I'm managed to open

Re: embedded, not local

2021-02-15 Thread Rob Sargent
have the feeling that your issue is not 100% SSL/TLS related but more CORS related stuff... Cheers, Luis El lun, 15 feb 2021 a las 16:18, Rob Sargent () escribió: Luis, Not a peep. Not in IntelliJ, nor from startup script (with zero output redirects). It works (on localhost:16004 and on k1:16004

Re: embedded, not local

2021-02-16 Thread Rob Sargent
Ah, yes, a stray Constuctor() left lying around. Thank you!  I am now down to dealing with https mis-configurations, which puts me squarely back to the future. Ever grateful, rjs On 2/16/21 3:27 PM, Mark Thomas wrote: On February 16, 2021 10:00:01 PM UTC, Noelette Stout wrote: I'm kinda

Re: embedded, not local

2021-02-16 Thread Rob Sargent
Other than the browsers not trusting my self-signed cert I think I'm now in the business of impersonation AWS ;) Thanks to all I've bothered, rjs On 2/16/21 7:50 PM, Rob Sargent wrote: Ah, yes, a stray Constuctor() left lying around. Thank you!  I am now down to dealing with https mis

embedded, not local

2021-02-14 Thread Rob Sargent
Yep, me again. Inching along here, unable as yet to re-create ssl traffic when not on localhost. Moving from my basement (localhost) where ssl worked using SGSSRVR_keystoreFile     = /home/rob/Downloads/tomcat/localhost-rsa.jks SGSSRVR_truststoreFile      =

Re: embedded, not local

2021-02-15 Thread Rob Sargent
Luis, Not a peep.  Not in IntelliJ, nor from startup script (with zero output redirects). It works (on localhost:16004 and on k1:16004 (fully qualified), but only http, not https.  The browser shows "This site can’t provide a secure connection" and not much from chrome inspect: request:

Re: Error = Caused by: java.lang.NoSuchMethodError: com.google.common.io.ByteStreams.exhaust(Ljava/io/InputStream;)

2021-02-19 Thread Rob Sargent
Can you remove IntelliJ from local env? Much magic in there. > On Feb 19, 2021, at 6:14 AM, Ricky Thomas wrote: > > Thanks. > I already did that so there is no guava or any other google in tomcat’s lib > which would collide. > > also as we checked WEB-INF lib there were no dupes. > > we

Re: Connector Port Issue

2021-08-05 Thread Rob Sargent
> Caused by: java.lang.IllegalArgumentException: No SSLHostConfig > element was found with the hostName [_default_] to match the > defaultSSLHostConfigName for the connector [https-jsse-nio-9443] > Isn’t that the real issue?

Re: Help Needed

2021-08-06 Thread Rob Sargent
> > On Aug 6, 2021, at 8:31 PM, Mohan T wrote: > > Dear All, > > Any inputs on this. We are not getting a break in this. Did upgrading change anything? You may want to layout your configuration and why you think it should work. Which version of Java, etc?

Re: More information, Re: Tomcat 8.5.68 failing on takeoff!

2021-08-06 Thread Rob Sargent
> On Aug 6, 2021, at 10:17 AM, Konstantin Kolinko > wrote: > > пт, 6 авг. 2021 г. в 01:33, James H. H. Lampert > : >> org.xml.sax.SAXNotRecognizedException: Feature: >> http://apache.org/xml/features/allow-java-encodings >> >>

Re: Do I Need Network NameSpaces to Solve This Tomcat+Connector/J Problem?

2021-12-30 Thread Rob Sargent
> On Dec 30, 2021, at 4:33 PM, Eric Robinson wrote: > > Hi Rob, > >>> On Dec 30, 2021, at 4:03 PM, Eric Robinson >> wrote: >>> >>> Chris, >>> >>> If I want to ignore the vendor's recommendation and try connection >> pooling anyway, is that something I can enable with a config file setting,

Re: Do I Need Network NameSpaces to Solve This Tomcat+Connector/J Problem?

2021-12-30 Thread Rob Sargent
> On Dec 30, 2021, at 4:03 PM, Eric Robinson wrote: > > Chris, > > If I want to ignore the vendor's recommendation and try connection pooling > anyway, is that something I can enable with a config file setting, or do they > actually have to trigger it from within their code? > Up thread,

help with Valve

2021-11-23 Thread Rob Sargent
Is the Access Log Valve available for use in an embedded environment?

Re: help with Valve

2021-11-23 Thread Rob Sargent
Thank you.  Does this look like a believable deployment (presuming the property is in fact set)? cat ./localhost/sgs/META-INF/context-valve.xml     On 11/23/21 10:38 AM, Mark Thomas wrote: On 23/11/2021 16:48, Rob Sargent wrote: Is the Access Log Valve available for use

Re: help with Valve

2021-11-23 Thread Rob Sargent
On 11/23/21 10:55 AM, Mark Thomas wrote: On 23/11/2021 17:42, Rob Sargent wrote: Thank you.  Does this look like a believable deployment (presuming the property is in fact set)?     cat ./localhost/sgs/META-INF/context-valve.xml     No. A context.xml file placed in META-INF

Re: servletcontext.log filename

2021-12-01 Thread Rob Sargent
On 12/1/21 12:32 PM, Mark Thomas wrote: On 01/12/2021 19:24, Rob Sargent wrote: I'm using an embedded tomcat (ver9.0.54) and I don't see how to name/redirect the output of ServletContext.log(String). I see in the manual     This logging is performed according to the Tomcat logging

servletcontext.log filename

2021-12-01 Thread Rob Sargent
I'm using an embedded tomcat (ver9.0.54) and I don't see how to name/redirect the output of ServletContext.log(String). I see in the manual This logging is performed according to the Tomcat logging configuration. You cannot overwrite it in a web application. I missing the "Tomcat

Re: servletcontext.log filename

2021-12-01 Thread Rob Sargent
On 12/1/21 12:32 PM, Mark Thomas wrote: On 01/12/2021 19:24, Rob Sargent wrote: I'm using an embedded tomcat (ver9.0.54) and I don't see how to name/redirect the output of ServletContext.log(String). I see in the manual     This logging is performed according to the Tomcat logging

Re: Request for Help

2021-07-24 Thread Rob Sargent
> On Jul 23, 2021, at 10:42 PM, Mohan T wrote: > > Dear All, > > We are using tomcat 8.5.35 on SUse Linux. > > We are facing a issue while launching the help files. > / > We deployed the help files in the > /home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/hub#rvwhelp. > > The

Re: birthdate of AbstractHttp11Protocol.setRejectIllegalHeader

2022-01-15 Thread Rob Sargent
ve located the relevant releases of vaadin which break the spring dependencies and am heading over there now, so this Apache issue is of less importance to me. Thanks, rjs > On Jan 15, 2022, at 4:21 AM, Mark Thomas wrote: > > On 15/01/2022 02:42, Rob Sargent wrote: >> With vers

Re: birthdate of AbstractHttp11Protocol.setRejectIllegalHeader

2022-01-16 Thread Rob Sargent
And bingo! 9.0.31. Please pardon my “find” skills > On Jan 16, 2022, at 3:05 AM, Mark Thomas wrote: > > On 15/01/2022 22:24, Rob Sargent wrote: >> Wow. On >> https://nightlies.apache.org/tomcat/tomcat-9.0.x/docs/changelog.html >> <https://nightlies.apach

Re: correct usage of properties to supply database port

2022-03-11 Thread Rob Sargent
> On Mar 11, 2022, at 6:50 AM, Mark H. Wood wrote: > > On Thu, Mar 10, 2022 at 09:40:48AM -0700, Rob Sargent wrote: >> About context/context/value: I have this context.xml. Is the value >> correctly inside the outer Context? >> >> >> >

Re: correct usage of properties to supply database port

2022-03-11 Thread Rob Sargent
> On Mar 11, 2022, at 8:17 AM, Thomas Hoffmann (Speed4Trade GmbH) > wrote: > >  > >> -Ursprüngliche Nachricht- >> Von: Rob Sargent >> Gesendet: Freitag, 11. März 2022 15:14 >> An: Tomcat Users List >> Betreff: Re: correc

Re: correct usage of properties to supply database port

2022-03-10 Thread Rob Sargent
I think I see the problem:  and extra colon has snuck in to the url - localhost:5432*":"*/tbar Sorry for the noise. On 3/10/22 09:40, Rob Sargent wrote: Using tomcat 9.0.58 I have a propertiesfile supplied to my embedded tomcat which includes SGSSRVR_databasePort

correct usage of properties to supply database port

2022-03-10 Thread Rob Sargent
Using tomcat 9.0.58 I have a propertiesfile supplied to my embedded tomcat which includes SGSSRVR_databasePort     = 5432 SGSSRVR_databaseHost        = localhost and in my app-specific web.xml I have     databaseHost ${SGSSRVR_databaseHost} java.lang.String    

Re: correct usage of properties to supply database port

2022-03-12 Thread Rob Sargent
> On Mar 12, 2022, at 9:59 AM, Christopher Schultz > wrote: > > Rob, > Chris, Yes I see that. Wasn’t really worried about context at the time of that post. I would argue though that the message is a tad obtuse. I’ll clean up the code generating that context.xml. Luckily it only breaks

Re: Maybe a stupid (Windows related) question

2022-03-22 Thread Rob Sargent
On 3/22/22 11:21, Rony G. Flatscher (Apache) wrote: For debugging purposes I downloaded the zip-version of Tomcat 10.0.18 and start it up using %CATALINA_HOME%\bin\startup.bat. This will create by default a separate process (terminal, commandline window) in which Tomcat runs and dispatches

Re: Fwd: tomcat 9.50 - rewrite rule question

2022-03-24 Thread Rob Sargent
On 3/24/22 13:27, Peter Chiu wrote: Application builder->Your application->Shared Components->Application Definition Attributes->Properties->Friendly URLs And that does what, exactly? - To unsubscribe, e-mail:

Re: Migration JDK11 - Tomcat 9 - NoClassDefFoundError: java/sql/Statement

2022-03-29 Thread Rob Sargent
On 3/29/22 10:54, Senguttuvan, Gopalakrishnan (CWM-NR) wrote: Hi Thomas, Thanks for the response. This issue occurred when I have start the Tomcat server in Linux-QA machine. Regards, Gopalakrishnan S Double check your runtime environment - something there is out of whack I suspect.

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Rob Sargent
On 2/7/22 14:50, Robert Turner wrote: All I'm hoping that someone can point me in the right direction as this issue has been baffling me all day, and I'm starting to run out of ideas of what to look at next. The logic below is working without issue until I move our test environment into a

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Rob Sargent
.but might be necessary) - construct a trivial application reproduction, along with docker layout, and see if anyone else can reproduce... (assuming anyone else has time to do that of course...) Anyone got any suggestions of what to look into next? On Mon, Feb 7, 2022 at 5:05 PM Rob Sarg

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-08 Thread Rob Sargent
On 2/8/22 08:11, Robert Turner wrote: Okay. Yep, my most recent suspicion was correct -- it's related to the Docker bind to a local folder containing the webapps. As such, I believe it's a Docker issue of some sort and not Tomcat specific. However, you may want to understand it more

birthdate of AbstractHttp11Protocol.setRejectIllegalHeader

2022-01-14 Thread Rob Sargent
With version number as a surrogate date. I didn’t see any mention in the changelog. Thanks, rjs - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

embeded tomcat apache-jasper dependency

2022-05-16 Thread Rob Sargent
I'm seeing a new-to-me deployment failure and am at a loss to explain. Using tomcat 9-0-63 (and getting Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [org_apache_jasper_el] was found. This is not legal with relative ordering. See section 8.2.2 2c

Re: AW: embeded tomcat apache-jasper dependency

2022-05-18 Thread Rob Sargent
On 5/18/22 12:21, Rob Sargent wrote: On 5/17/22 01:24, Mark Thomas wrote: On 17/05/2022 08:13, Thomas Hoffmann (Speed4Trade GmbH) wrote: Hello, -Ursprüngliche Nachricht- Von: Rob Sargent Gesendet: Dienstag, 17. Mai 2022 00:38 An: users@tomcat.apache.org Betreff: embeded tomcat

Re: AW: embeded tomcat apache-jasper dependency

2022-05-18 Thread Rob Sargent
On 5/17/22 01:24, Mark Thomas wrote: On 17/05/2022 08:13, Thomas Hoffmann (Speed4Trade GmbH) wrote: Hello, -Ursprüngliche Nachricht- Von: Rob Sargent Gesendet: Dienstag, 17. Mai 2022 00:38 An: users@tomcat.apache.org Betreff: embeded tomcat apache-jasper dependency I'm seeing

Re: cert/key config woes

2022-06-02 Thread Rob Sargent
I had this overall configuration working until I 'terminated' the AWS server instance and am trying to rebuild. Could a lack of network connectivity between client and server present this same symptom? Hmm. Your SAN looks okay to me. Are you 100% sure you have that certificate configured

Re: cert/key config woes

2022-06-02 Thread Rob Sargent
On 6/2/22 11:43, Rob Sargent wrote: I had this overall configuration working until I 'terminated' the AWS server instance and am trying to rebuild. Could a lack of network connectivity between client and server present this same symptom? Hmm. Your SAN looks okay to me. Are you 100

Re: cert/key config woes

2022-06-02 Thread Rob Sargent
Hang on.  I'm panicking.  I have a plane to catch in 3 hours and need this working by then.    ws s3 cp fullca.p12 s3://691459864434-sgs-source/certs/sgstrust.p12 splatting one file on top of the other Midway through this email when you last came in:  "Not running" is spot-on becase...

cert/key config woes

2022-06-01 Thread Rob Sargent
This part always confuses me I supply the trust and key store files on the command line and I see the SAN for the tomcat server IP (in ObjectId #3). I try to connect to tomcat by host-IP and port.  Here's the text of the keystore sent in. Keystore type: PKCS12 Keystore provider: SUN

Re: cert/key config woes

2022-06-02 Thread Rob Sargent
    java  -Djavax.net.ssl.keyStore=/ppr/certs/sgstrust.p12     -Djavax.net.ssl.keyStoreType=PKCS12 -Djavax.net.ssl.keyStorePassword=p1     -Djavax.net.ssl.trustStore=/ppr/certs/fullca.p12     -Djavax.net.ssl.trustStoreType=PKCS12     -Djavax.net.ssl.trustStorePassword=p2     --oper=1 --seg=id

Re: cert/key config woes

2022-06-02 Thread Rob Sargent
I'm starting both the server and the client with both key and trust. Does that bite? I would avoid giving access to the key to anything that doesn't absolutely need it. Usually, only the server needs access to the key. -chris

Re: Precompile JSP error using webapp-jspc.ant.xml (tomcat stuffed)

2022-06-23 Thread Rob Sargent
> On Jun 23, 2022, at 12:53 AM, Markus Reich wrote: > > yes, it seems that in the pom tomcat 10 is specified, does this make any > difference? > 10.0.18 > >> Am Do., 23. Juni 2022 um 08:30 Uhr schrieb Rob Sargent < >> rsarg...@xmission.com>: >>

  1   2   >