[Bug 68911] Newly introduced ConfigurationSource doesn't respect environment variables

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68911

Remy Maucherat  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |INVALID

--- Comment #9 from Remy Maucherat  ---
ConfigurationSource.DEFAULT is a very bare bones default that is not part of
Catalina. Catalina is the component that uses the CATALINA_BASE env variable
(as the name implies). The ConfigurationSource implementation that implements
this behavior is org.apache.catalina.startup.CatalinaBaseConfigurationSource
which should be properly setup by the Catalina startup. If you are using some
exotic environment, then you need to either setup Catalina properly or
implement a ConfigurationSource that works for your environment.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68909] JSP compilation error due to classpath problems

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68909

--- Comment #8 from Mark Thomas  ---
Arguably the this issue isn't a Tomcat issue. This bug is a result of the
application using the work-around of setting the system property. That in turn
is used due to application and/or library issues loading the correct XML
parser.

The fix to EncodingDetector is the right one to avoid web application class
loader pinning.

It appears from comment #2 that the system property is set programmatically in
the web application. If that is the case then we may have a workaround for your
workaround.

If you add org.apache.jasper.compiler.EncodingDetector to the
classesToInitialize property of the JreMemoryLeakPreventionListener that should
trigger loading of the EncodingDetector before the web application starts and
the system property is set.

Long term, I'd suggest looking at the application and/or the libraries and
trying to fix whatever issues mean you need to set the system property.

Whether the above workaround solves the problem or not, I am leaning to
resolving this as INVALID since it is caused by setting the system property
which isn't appropriate in a web application environment.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68928] New: Apache httpd not starting with mod_jk 1.2.49 after upgrade to SLES 15 SP5

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68928

Bug ID: 68928
   Summary: Apache httpd not starting with mod_jk 1.2.49 after
upgrade to SLES 15 SP5
   Product: Tomcat Connectors
   Version: 1.2.49
  Hardware: PC
OS: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: mod_jk
  Assignee: dev@tomcat.apache.org
  Reporter: simeon.fais...@dxc.com
  Target Milestone: ---

Good morning!

We have been upgrading our system from SLES 12 to SLES 15 SP5.

We are running a self-compiled Apache httpd with mod_jk on multiple similar
systems. They are running fine on SLES 12, but stop working on SLES 15 SP5. We
tested with the following two sets of versions, but got the same results today:

1)
httpd_version: httpd-2.4.58
jk_version: tomcat-connectors-1.2.49-src
openssl_version: openssl-3.0.12
pcre_version: pcre-8.45
apr_version: apr-1.7.4
apr_util_version: apr-util-1.6.3

2)
httpd_version: httpd-2.4.59
jk_version: tomcat-connectors-1.2.49-src
openssl_version: openssl-3.3.0
pcre_version: pcre-8.45
apr_version: apr-1.7.4
apr_util_version: apr-util-1.6.3


The error was a not starting httpd with the module mod_jk.so included within
the configuration. Without the mod_jk.so in the config the httpd process was
running fine.

Error messages:

1. In syslog it shows the process dump:
2024-04-22T06:20:54.594579+00:00  systemd[1]: Starting The Apache HTTP
Server...
2024-04-22T06:20:54.656987+00:00  systemd[1]: Started The Apache HTTP Server.
2024-04-22T06:20:54.683137+00:00  systemd[1]: Started Process Core Dump (PID
14707/UID 0).
2024-04-22T06:20:54.958281+00:00  systemd-coredump[14708]: Process 14706
(httpd) of user 0 dumped core.#012#012Found module linux-vdso.so.1 with
build-id: d74f0fa9e6060ef50f04c54743fb715c80644efa#012Found module mod_env.so
with build-id: b09767ea8787f9edb7dd59e6d2bf5bef62e54a16#012Found module
mod_expires.so with build-id: f92c0b312e0af0ebef8734ec326538c22879d90f#012Found
module mod_cache_disk.so with build-id:
cd6b448361f9583b797a669aed525a045ab291f9#012Found module mod_cache.so with
build-id: 9a7aa6f344900598d28b3ec3e67711fd2825ae02#012Found module
mod_deflate.so with build-id: 97ce87386abda3446a8a54ce590ecfd19e37ddbd#012Found
module mod_filter.so with build-id:
559eb5331e63f1b433a5597fa304062851ac4a81#012Found module mod_setenvif.so with
build-id: 3e293f1905ebb3e1f962bb0a5303c65bc0139834#012Found module
mod_lbmethod_bytraffic.so with build-id:
be82ad83f17b7c9cdff8d92d98127b34fae3a16e#012Found module mod_rewrite.so with
build-id: 41009232c80c69da2eb3d68d2b5ddb0a9602ee6c#012Found module
mod_proxy_http.so with build-id:
3bfcade3b891801786ec25269d019c1e1e80e16d#012Found module
mod_lbmethod_byrequests.so with build-id:
3ff4f5930fa07c14021b1f82532db2a0d7badd56#012Found module mod_slotmem_shm.so
with build-id: 2e02511ba76733ebb4993c1d110e76ab6028c688#012Found module
mod_proxy_balancer.so with build-id:
ec73ee99138cc5ff48f3b2434f9a2b5fc0df2fac#012Found module mod_proxy_connect.so
with build-id: 3b12468ddb85b5a5972b391bc03df064484dd674#012Found module
mod_proxy.so with build-id: 8b9716c849a962972180d521d24be354cf734f34#012Found
module mod_headers.so with build-id:
12fa2d10cbe963dfb506a959ce064be39650c9b9#012Found module mod_unique_id.so with
build-id: 2b03b6fa0464c9b1869e86c2404dadd21416a40c#012Found module
mod_status.so with build-id: deaf7ff59eac61c5db3d64a028d4d73536147536#012Found
module mod_alias.so with build-id:
da6dec92b937af8a41190c33c14a22e04ce37314#012Found module mod_unixd.so with
build-id: 47a3b68b9b827a14189dd7a198dae8bcba92d3d3#012Found module
mod_log_config.so with build-id:
02a955eba9349826e308ec602e0ab11c8d8fa73d#012Found module mod_mime.so with
build-id: 672a4dfa2b17474a86a964972f7e3497545ac8b9#012Found module
mod_reqtimeout.so with build-id:
f148e20565439ab1bc26158ef12a1673d95e0ee5#012Found module mod_socache_shmcb.so
with build-id: b6f530e391a1feae47c5eeaf4ab840412e7e54c4#012Found module
mod_authz_core.so with build-id:
8ffb3e83446fe2ce293a3b7bf9ce2e8c2be4a173#012Found module mod_authz_host.so with
build-id: 17d63013b75c5cc8194c505cba900fe0c4c5c507#012Found module
libnss_dns.so.2 with build-id:
ef2fd4ef2dc5c4f31c311c8e2f120405c2850e5d#012Found module libnss_files.so.2 with
build-id: 2c0a191e2c931e65d5f1945052e226470aa54a26#012Found module
libjitterentropy.so.3 with build-id:
6cd5111426fb5f10ef2d5fb9109ef901dd6a67f5#012Found module libselinux.so.1 with
build-id: 58d24c02a015417be0c526fa565cfb868164ab7a#012Found module
libcrypto.so.1.1 with build-id:
b61a8d70989fdd00494c15631ad05356193b8234#012Found module libresolv.so.2 with
build-id: 86b7fb29524c820668a22605592a9030e80a2907#012Found module
libkeyutils.so.1 with build-id:
03f844991b5ec4ba1daa95ae19e06faaeb59be31#012Found module libkrb5support.so.0
with build-id: 0dbea5394276f0fd34c8e605ec8f9ae088867f65#012Found module
libcom_err.so.2 with build-id:
2875e21b1e71237a94d63d41390320bbcc0171e6#012Fou

[Bug 68928] Apache httpd not starting with mod_jk 1.2.49 after upgrade to SLES 15 SP5

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68928

Rainer Jung  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|NEW |RESOLVED

--- Comment #1 from Rainer Jung  ---
Fix for 1.2.49 was incomplete due to a typo in the Makefile. See comment #33 in
BZ 66005.

*** This bug has been marked as a duplicate of bug 66005 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 66005] Apache crashes, if there is a tomcat server, which can not be resolved

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=66005

Rainer Jung  changed:

   What|Removed |Added

 CC||simeon.fais...@dxc.com

--- Comment #34 from Rainer Jung  ---
*** Bug 68928 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68919] Make Tomcat return 503 on stopped web applications

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68919

--- Comment #2 from Michael Osipov  ---
Chris,

I am not convined by either approach because in any case it would require me to
deploy a ROOT application with Tomcat priviledges to properly fetch the URL and
check whether the application is truly stopped.

> Tomcat rewrite Valve
This is static, I should dynamically be able to determine that the requested
webapp is down

> plain JSP +  configuration in web.xml
How? The status is issued by the container, how am I supposed to change the
status code reasonably from a JSP. Looks wrong to me.

> Custom Java code that you write
Too sophisticated honestly.

I think that it is best configured at  or  level inside of
Tomcat.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68928] Apache httpd not starting with mod_jk 1.2.49 after upgrade to SLES 15 SP5

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68928

--- Comment #2 from SimEon  ---
(In reply to Rainer Jung from comment #1)
> Fix for 1.2.49 was incomplete due to a typo in the Makefile. See comment #33
> in BZ 66005.
> 
> *** This bug has been marked as a duplicate of bug 66005 ***


Thank you very much. 

We got it running with re-building mod_jk again and beforehand renaming
"-export-symbols-regexp" to "-export-symbols-regex" in apache-2.0/Makefile.in
as mentioned in BZ 66005.


Danke & Gruss,
Simeon

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68909] JSP compilation error due to classpath problems

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68909

Chris  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #9 from Chris  ---
Hello Mark,

thanks for your lines.

Indeed this is the workaround, I manually applied last week to apply the latest
Tomcat versions to all installations.

I herby withdraw my bug, since it is no issue of Tomcat.

Thanks guys for your support.

Chris

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch 9.0.x updated: Add constant

2024-04-22 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
 new c784581879 Add constant
c784581879 is described below

commit c784581879286a4d8388c04c04f74bfdf5e37f97
Author: remm 
AuthorDate: Mon Apr 22 16:48:52 2024 +0200

Add constant

For better readability, after reviewing the ConfigurationSource code.
---
 .../apache/catalina/startup/CatalinaBaseConfigurationSource.java| 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java 
b/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java
index cedc1cdd23..cd31f0fd1e 100644
--- a/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java
+++ b/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java
@@ -33,6 +33,8 @@ public class CatalinaBaseConfigurationSource implements 
ConfigurationSource {
 
 protected static final StringManager sm = 
StringManager.getManager(Constants.Package);
 
+public static final String LEGACY_SERVER_EMBED_XML = "server-embed.xml";
+
 private final String serverXmlPath;
 private final File catalinaBaseFile;
 private final URI catalinaBaseUri;
@@ -58,10 +60,10 @@ public class CatalinaBaseConfigurationSource implements 
ConfigurationSource {
 }
 if (result == null) {
 // Compatibility with legacy server-embed.xml location
-InputStream stream = 
getClass().getClassLoader().getResourceAsStream("server-embed.xml");
+InputStream stream = 
getClass().getClassLoader().getResourceAsStream(LEGACY_SERVER_EMBED_XML);
 if (stream != null) {
 try {
-result = new Resource(stream, 
getClass().getClassLoader().getResource("server-embed.xml").toURI());
+result = new Resource(stream, 
getClass().getClassLoader().getResource(LEGACY_SERVER_EMBED_XML).toURI());
 } catch (URISyntaxException e) {
 stream.close();
 }


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch main updated: Add OpenSSL listener to the silent list

2024-04-22 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
 new 2ac9660b4c Add OpenSSL listener to the silent list
2ac9660b4c is described below

commit 2ac9660b4c995018b2ccc7abc6ee0a914c4f1fec
Author: remm 
AuthorDate: Mon Apr 22 16:52:18 2024 +0200

Add OpenSSL listener to the silent list

It does the same thing as the APR one.
---
 java/org/apache/catalina/startup/Tomcat.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/startup/Tomcat.java 
b/java/org/apache/catalina/startup/Tomcat.java
index f1548a594a..2da827d3bc 100644
--- a/java/org/apache/catalina/startup/Tomcat.java
+++ b/java/org/apache/catalina/startup/Tomcat.java
@@ -838,7 +838,8 @@ public class Tomcat {
 static final String[] silences =
 new String[] { "org.apache.coyote.http11.Http11NioProtocol", 
"org.apache.catalina.core.StandardService",
 "org.apache.catalina.core.StandardEngine", 
"org.apache.catalina.startup.ContextConfig",
-"org.apache.catalina.core.ApplicationContext", 
"org.apache.catalina.core.AprLifecycleListener" };
+"org.apache.catalina.core.ApplicationContext", 
"org.apache.catalina.core.AprLifecycleListener",
+"org.apache.catalina.core.OpenSSLLifecycleListener" };
 
 private boolean silent = false;
 


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch 10.1.x updated: Add OpenSSL listener to the silent list

2024-04-22 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
 new cb570444c1 Add OpenSSL listener to the silent list
cb570444c1 is described below

commit cb570444c1eace2dcccf7bd27a5fba36978561d3
Author: remm 
AuthorDate: Mon Apr 22 16:52:18 2024 +0200

Add OpenSSL listener to the silent list

It does the same thing as the APR one.
---
 java/org/apache/catalina/startup/Tomcat.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/startup/Tomcat.java 
b/java/org/apache/catalina/startup/Tomcat.java
index 0932474c24..46f20b8e4b 100644
--- a/java/org/apache/catalina/startup/Tomcat.java
+++ b/java/org/apache/catalina/startup/Tomcat.java
@@ -839,7 +839,8 @@ public class Tomcat {
 static final String[] silences =
 new String[] { "org.apache.coyote.http11.Http11NioProtocol", 
"org.apache.catalina.core.StandardService",
 "org.apache.catalina.core.StandardEngine", 
"org.apache.catalina.startup.ContextConfig",
-"org.apache.catalina.core.ApplicationContext", 
"org.apache.catalina.core.AprLifecycleListener" };
+"org.apache.catalina.core.ApplicationContext", 
"org.apache.catalina.core.AprLifecycleListener",
+"org.apache.catalina.core.OpenSSLLifecycleListener" };
 
 private boolean silent = false;
 


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch main updated: Add constant

2024-04-22 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
 new 86bd1a42b1 Add constant
86bd1a42b1 is described below

commit 86bd1a42b15e186db4cdfa676f4e8652cba59490
Author: remm 
AuthorDate: Mon Apr 22 16:48:52 2024 +0200

Add constant

For better readability, after reviewing the ConfigurationSource code.
---
 .../apache/catalina/startup/CatalinaBaseConfigurationSource.java| 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java 
b/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java
index cedc1cdd23..cd31f0fd1e 100644
--- a/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java
+++ b/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java
@@ -33,6 +33,8 @@ public class CatalinaBaseConfigurationSource implements 
ConfigurationSource {
 
 protected static final StringManager sm = 
StringManager.getManager(Constants.Package);
 
+public static final String LEGACY_SERVER_EMBED_XML = "server-embed.xml";
+
 private final String serverXmlPath;
 private final File catalinaBaseFile;
 private final URI catalinaBaseUri;
@@ -58,10 +60,10 @@ public class CatalinaBaseConfigurationSource implements 
ConfigurationSource {
 }
 if (result == null) {
 // Compatibility with legacy server-embed.xml location
-InputStream stream = 
getClass().getClassLoader().getResourceAsStream("server-embed.xml");
+InputStream stream = 
getClass().getClassLoader().getResourceAsStream(LEGACY_SERVER_EMBED_XML);
 if (stream != null) {
 try {
-result = new Resource(stream, 
getClass().getClassLoader().getResource("server-embed.xml").toURI());
+result = new Resource(stream, 
getClass().getClassLoader().getResource(LEGACY_SERVER_EMBED_XML).toURI());
 } catch (URISyntaxException e) {
 stream.close();
 }


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch 10.1.x updated: Add constant

2024-04-22 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
 new 0e1c091bba Add constant
0e1c091bba is described below

commit 0e1c091bba4246361300c24daee8964c47f3ed04
Author: remm 
AuthorDate: Mon Apr 22 16:48:52 2024 +0200

Add constant

For better readability, after reviewing the ConfigurationSource code.
---
 .../apache/catalina/startup/CatalinaBaseConfigurationSource.java| 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java 
b/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java
index cedc1cdd23..cd31f0fd1e 100644
--- a/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java
+++ b/java/org/apache/catalina/startup/CatalinaBaseConfigurationSource.java
@@ -33,6 +33,8 @@ public class CatalinaBaseConfigurationSource implements 
ConfigurationSource {
 
 protected static final StringManager sm = 
StringManager.getManager(Constants.Package);
 
+public static final String LEGACY_SERVER_EMBED_XML = "server-embed.xml";
+
 private final String serverXmlPath;
 private final File catalinaBaseFile;
 private final URI catalinaBaseUri;
@@ -58,10 +60,10 @@ public class CatalinaBaseConfigurationSource implements 
ConfigurationSource {
 }
 if (result == null) {
 // Compatibility with legacy server-embed.xml location
-InputStream stream = 
getClass().getClassLoader().getResourceAsStream("server-embed.xml");
+InputStream stream = 
getClass().getClassLoader().getResourceAsStream(LEGACY_SERVER_EMBED_XML);
 if (stream != null) {
 try {
-result = new Resource(stream, 
getClass().getClassLoader().getResource("server-embed.xml").toURI());
+result = new Resource(stream, 
getClass().getClassLoader().getResource(LEGACY_SERVER_EMBED_XML).toURI());
 } catch (URISyntaxException e) {
 stream.close();
 }


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68932] New: Occasional 404 or 500 errors

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68932

Bug ID: 68932
   Summary: Occasional 404 or 500 errors
   Product: Tomcat 9
   Version: 9.0.83
  Hardware: All
OS: Linux
Status: NEW
  Severity: major
  Priority: P2
 Component: Catalina
  Assignee: dev@tomcat.apache.org
  Reporter: ningj...@163.com
  Target Milestone: -

When I upgrade tomcat 8.5.64 to 9.0.76(or 9.0.83), I found that there are
Occasional 404 or 500 errors (rate: 1/1,000,000~1/500,000).
I don't know how this happened.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68932] Occasional 404 or 500 errors

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68932

Nathan  changed:

   What|Removed |Added

Version|9.0.83  |9.0.76

--- Comment #1 from Nathan  ---
This is code snippet in StandardHostValve:
Context context = request.getContext();
if (context == null) {
if (!response.isError()) {
response.sendError(404);//here is 404 error
}
return;
}

..

This is stack info below:
at org.apache.coyote.Response.setStatus(Response.java:229)
at org.apache.catalina.connector.Response.sendError(Response.java:1276) 
at org.apache.catalina.connector.Response.sendError(Response.java:1249)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:102) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:673)
 
at
org.apache.catalina.core.standardEngineValve.invoke(StandardEngineValve.java:74)
 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) 
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
 
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
 
at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at
org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
 
at
org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
 
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 
at java.lang.Thread.run(Thread.java:750)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68932] Occasional 404 or 500 errors

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68932

--- Comment #2 from Nathan  ---
This is 500 error stack info below:
org.apache.coyote.http11.Http11Ppocessor.service Error processing request
java.lang.Nul1PointerException
at org.apache.tomcat.util.buf.MessageBytes.toChars(MessageBytes.java:322)
at org.apache.catalina.mapper.Mapper.map(Mapper.java:664)
at
org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:692)
atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:338)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
at
org.apache.tomcat.util.net.Nio2Endpoint$5ocketProcessor.doRun(Nio2Endpoint.java
:1713)
at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at
org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1288)
at
org.apache.tomcat.uti1.net.Nio2Endpoint$Nio2Socketwrapper$2.completed(Nio2Endpoint.java:641)
at
org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:619)
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(UnixAs ynchronous
SocketChannelImpl.java:432)
at sun.nio.ch.UnixAsynchronousSocketChannelImp1.finish(UnixAs
ynchronousSocketChannelImpl.java:191)
at sun.nio.ch.UnixAsynchronousSocketChannelImp1.onEvent(UnixAs
ynchronousSocketChannelImpl.java:213)
at sun.nio.ch.EPol1Port$EventHandlerTask.run(EPol1Port.java: 293)
at
sun.nio.ch.AsynchronousChannelGroupImp1$1.run(AsynchronousChannelGroupImpl.java:112)
at
java.uti1,concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker .run
(ThreadPoolExecutor.java:624)
at java.Lang.Thread.run(Thread.java:750)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68932] Occasional 404 or 500 errors

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68932

Nathan  changed:

   What|Removed |Added

 CC||ningj...@163.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68932] Occasional 404 or 500 errors

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68932

--- Comment #3 from Nathan  ---
This issue has already arisen in projects across different departments.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68932] Occasional 404 or 500 errors

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68932

--- Comment #4 from Michael Osipov  ---
You should first upgrade to 8.5.100 and see whether the error is present there
as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[PR] Configurable HTML subtitle in Manager web application [tomcat]

2024-04-22 Thread via GitHub


xsimo opened a new pull request, #724:
URL: https://github.com/apache/tomcat/pull/724

   Managing multiple tomcats on multiple servers, the need came to have a way 
of customizing the Manager HTML interface. 
   This PR proposes to add a simple configurable html subtitle.
   
![Example_of_customized_subtitle](https://github.com/apache/tomcat/assets/2412297/4716550e-37f1-4532-a388-381e1c95289d)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 68934] New: Add logginge for set Connector parameter limits such as maxConnections

2024-04-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68934

Bug ID: 68934
   Summary: Add logginge for set Connector parameter limits such
as maxConnections
   Product: Tomcat 10
   Version: unspecified
  Hardware: All
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Connectors
  Assignee: dev@tomcat.apache.org
  Reporter: ba...@hawaii.edu
  Target Milestone: --

Tomcat 10.1.x 

Tocat allows to set limits on certain Connector parameters, e.g.:
maxConnections, maxThreads. It would be useful if logging could be configured
to report when these limits were reached.

Logging needn't be super timely, but would be helpful for forensic confirmation
that the parameter in question may require tuning.

Ref.: Tomcat Users mailing list thread


-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: [VOTE] Release Apache Tomcat 10.1.23

2024-04-22 Thread jean-frederic clere

On 4/17/24 12:00, Mark Thomas wrote:

Build is reproducible.


My tests here complain about examples, did I miss something.

TCK tests are still running...


--
Cheers

Jean-Frederic


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org