RE: Regarding Compilation Steps for Tomcat version 9 on RHEL8

2022-12-08 Thread Vivek Naruka (EXT-NSB)
Hi,

Please find attachment of Image. During study on changelog.txt we could see 
support of OpenSSL 3.0. for tomcat native.

Please do let us know if Tomcat can provide extended support of OpenSSL1.1.1  
beyond the EOL(End of life cycle) i.e after September 2023?


Regards 
Vivek Singh

-Original Message-
From: Mark Thomas  
Sent: 07 December 2022 19:01
To: users@tomcat.apache.org
Subject: Re: Regarding Compilation Steps for Tomcat version 9 on RHEL8

On 07/12/2022 09:36, Vivek Naruka (EXT-NSB) wrote:
> Hi,
> 
> We have downloaded Tomcat version 9 "apache-tomcat-9.0.70.tar.gz" from 
> https://tomcat.apache.org/download-90.cgi.
> 
> To check the compatibility of Tomcat version 9.0 with OpenSSL 3.0, we need to 
> compile source code of Tomcat version 9 on RHEL-8 with OpenSSL3.0.
> 
> We require compilation steps to compile Tomcat source code on RHEL8.

Tomcat 9.0.x does not require OpenSSL to compile. What makes you think it does?

> Could you please help to share the compilation steps?

Try looking in the BUILDING.txt file in the root of the source tarball.

The build should be fully reproducible, providing you follow the additional 
instructions for reproducible builds.


Getting back to the OpenSSL 3.0 question.

Tomcat Native, which does have a dependency on OpenSSL, is compatible 
with OpenSSL in both the 1.2.x and 2.0.x branches. What makes you think 
that it is not?

You can use Tomcat Native 1.2.x or 2.0.x with Tomcat 9.0.x but if you 
use Tomcat Native 2.0.x, you can't use the APR/native connectors - you 
must use NIO or NIO2.

Mark

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


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

Receiving HTTP (any version but 3 prefered) over UDP

2022-12-08 Thread Aryeh Friedman
I just tried the following command to test if tomcat does in fact listen on UDP:

aryeh@sarek1024% nc -u localhost 8080
GET / HTTP/1.1


aryeh@sarek1024%

Which is nice to see tomcat is listening but it is not apparently
processing any requests since doing the same on TCP yields:

aryeh@sarek1024% nc localhost 8080
GET / HTTP/1.1
HTTP/1.1 400
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1859
Date: Thu, 08 Dec 2022 21:51:11 GMT
Connection: close

HTTP Status 400 – Bad
Requestbody
{font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b
{color:white;background-color:#525D76;} h1 {font-size:22px;} h2
{font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a
{color:black;} .line
{height:1px;background-color:#525D76;border:none;}HTTP
Status 400 – Bad RequestType
Exception ReportMessage Invalid character found in the
HTTP protocol [HTTP1.1...]Description The server
cannot or will not process the request due to something that is
perceived to be a client error (e.g., malformed request syntax,
invalid request message framing, or deceptive request
routing).Exceptionjava.lang.IllegalArgumentException:
Invalid character found in the HTTP protocol [HTTP1.1...]

org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:559)
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:261)

org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)

org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)

org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:748)
Note The full stack trace of the root cause is
available in the server logs.Apache
Tomcat/9.0.41


-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org

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