Re: State of the Cat 2022

2022-06-30 Thread Rémy Maucherat
On Thu, Jun 30, 2022 at 6:41 PM Christopher Schultz
 wrote:
>
> Rémy, all,
>
> On 6/28/22 09:58, Rémy Maucherat wrote:
> > On Tue, Jun 28, 2022 at 3:38 PM Christopher Schultz
> >  wrote:
> >>
> >> Rémy,
> >>
> >> On 6/28/22 05:33, Rémy Maucherat wrote:
> >>> On Mon, Jun 27, 2022 at 11:37 PM Christopher Schultz
> >>>  wrote:
> 
>  Cathy,
> 
>  On 6/27/22 15:01, Cathy Spears wrote:
> > Wondering if there will be a State of the cat 2022.
> 
>  Rémy is scheduled to give a talked called "[Tomcat:] New and Upcoming"
>  at ApacheCon North America in October. I would imagine it would be very
>  similar to State of the Cat though perhaps without any retrospective 
>  info.
> >>>
> >>> I'll integrate a lot of the content from the state of the cat, since
> >>> Mark is not coming this time.
> >>>
> >>> BTW, when is the full conference schedule going to be out ?
> >>
> >> When all of the "your presentation has been accepted" messages went out,
> >> there were a FLOOD of requests for specific times, specific days, etc.
> >> and so the folks working on the schedule (mostly Brian Proffitt, I
> >> think) are losing their minds trying to figure it all out.
> >>
> >> I'm not sure what their target date is for having the schedule complete,
> >> but they are "working on it."
> >
> > Makes sense. Since the Tomcat track is only one day, I'm not planning
> > on staying a full week. So have to wait for the schedule now.
>
> Looks like it's up:
>
> https://www.apachecon.com/acna2022/schedule.html
>
> Unfortunately, there is no overarching schedule or anything on there,
> yet. Just a huge list of presentations and their date/times.
>
> It looks like the Tomcat Track is on Wednesday 5 October. You are
> first-thing in the morning.

Awesome. So indeed it's a bit hard to read, but I have the info I need.

Many thanks !

Rémy

> -chris
>
> -
> 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



Tomcat in distroless image

2022-06-30 Thread Thomas Meyer
Hi,

Sadly currently Tomcat startup relies on shell script to bootstrap JVM process.

In the light of distroless images (e.g. 
https://blog.chainguard.dev/introducing-apko-bringing-distroless-nirvana-to-alpine-linux/)
 what are you thoughts on packaging tomcat in distroless base OCI images that 
doesn't even contain any shell anymore?

Would it be possible to provide an alternative start mechanism which directly 
starts JVM process which setup/prepare env like the current catalina.sh shell 
script does?

What are your thoughts on above topic?

Mfg
Thomas

Re: Tomcat freezes with axios

2022-06-30 Thread Christopher Schultz

All,

On 6/30/22 02:34, Mark Thomas wrote:

Hi,

We need more information to help you.

Tomcat version?

Tomcat connector configuration (from server.xml)?

httpd version?

httpd MPM and configuration?

mod_proxy configuration?

Was the httpd restart graceful or not?


Wild guess: missing finally { java.sql.Connection.close(); }

-chris


On 29/06/2022 19:36, Stephane Passignat wrote:

Hello,

I'm creating a SAP application performing REST call on an API running 
on Tomcat. Tomcat runs behind an apache reverse-proxy and 
communication between them use http. The calls are executed with axios 
using a basic authentication.



Everything runs fine for a moment, but for an unknown reason all http 
request are hanging after some time and hundreds or maybe thousands 
requests (if these metrics make any sense).



In chrome, the requests are in a 'pending' status.

Restarting chrome allows to do one or two requests and then issue 
occurs again


Restarting apache doesn't change anything.

Restarting Tomcat resolve the situation. Tomcat shutdow is a bit 
longer. Request in chrome ends when tomcat stops.



I'm not very inspired by this issue and actually trying to find 
inspiration in jmx and log files but nothing pops up.



Does someone have an idea ?



thanks

Stephane


-
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



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



Re: State of the Cat 2022

2022-06-30 Thread Christopher Schultz

Rémy, all,

On 6/28/22 09:58, Rémy Maucherat wrote:

On Tue, Jun 28, 2022 at 3:38 PM Christopher Schultz
 wrote:


Rémy,

On 6/28/22 05:33, Rémy Maucherat wrote:

On Mon, Jun 27, 2022 at 11:37 PM Christopher Schultz
 wrote:


Cathy,

On 6/27/22 15:01, Cathy Spears wrote:

Wondering if there will be a State of the cat 2022.


Rémy is scheduled to give a talked called "[Tomcat:] New and Upcoming"
at ApacheCon North America in October. I would imagine it would be very
similar to State of the Cat though perhaps without any retrospective info.


I'll integrate a lot of the content from the state of the cat, since
Mark is not coming this time.

BTW, when is the full conference schedule going to be out ?


When all of the "your presentation has been accepted" messages went out,
there were a FLOOD of requests for specific times, specific days, etc.
and so the folks working on the schedule (mostly Brian Proffitt, I
think) are losing their minds trying to figure it all out.

I'm not sure what their target date is for having the schedule complete,
but they are "working on it."


Makes sense. Since the Tomcat track is only one day, I'm not planning
on staying a full week. So have to wait for the schedule now.


Looks like it's up:

https://www.apachecon.com/acna2022/schedule.html

Unfortunately, there is no overarching schedule or anything on there, 
yet. Just a huge list of presentations and their date/times.


It looks like the Tomcat Track is on Wednesday 5 October. You are 
first-thing in the morning.


-chris

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



Websockets: get Reference to @ServerEndpoint in a Servlet ?

2022-06-30 Thread Jürgen Weber
Hi,

use case: HTML clients connect to @ServerEndpoint, some Servlet.GET
should send a message to connected HTML clients.

I found no other way to have the Servlet have a reference to the
ServerEndpoint than a hack with a static field, as in the Tomcat
sample.

https://github.com/apache/tomcat/blob/3e5ce3108e2684bc25013d9a84a7966a6dcd6e14/webapps/examples/WEB-INF/classes/websocket/drawboard/DrawboardContextListener.java

Is there indeed no better way?


public class WSServlet extends HttpServlet

public static WebSocketRef webSocketRef;


@ServerEndpoint(value = "/broadcast")
public class BroadCastEndpoint
{

public BroadCastEndpoint()
{
WSServlet.webSocketRef = new WebSocketRef();
WSServlet.webSocketRef.broadCastEndpoint = this;

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