Install tomcat9 - AMZ2 - using Amazon extra repos

0

Hi, All,

I am trying to install Tomcat 9, over amazon linux2, using Amazon extra repos, but it gives an error: Refusing because tomcat9 could cause an invalid combination.

When listing the available options over the Amazon extra repos, it shows that tomcat9 is available, but without a package number: the result of checking the amazon extra repos

Could you please advise if tomcat9 is supported to be installed using Amazon extra repos, or how can I get tomcat9 as a service, not standalone?

2 Risposte
0
Risposta accettata

Hello.
The image shows Tomcat 8.5 enabled.
Change this to disabled with the following command.

sudo amazon-linux-extras disable tomcat8.5

Once disabled, try activating Tomcat 9.0 with the following command.

sudo amazon-linux-extras enable tomcat9
profile picture
ESPERTO
con risposta 9 mesi fa
profile picture
ESPERTO
verificato 9 mesi fa
  • Thanks! The issue is resolved, and the tomcat9 is able to be installed using the following approach!

  • this allows us to jump from 8.5 to 9. but how can we pick minor releases. For example. what if we need to use 9.0.83 particular. The default seems to be 9.0.82. Certain versions did not pass the CVE scan.

0

I've installed Tomcat 10 on my AWS Lightsail machine which is running Ubuntu 22.04.3 LTS. Everything seems fine. The Catalina log doesn't show any errors or warnings, and Tomcat is running and listening on port 8080. However, it's only accessible from the local machine and not from external IPs.

I've tried everything I found on Google. I've opened the ports in the AWS Lightsail console, and I've commented out the Valve lines in the context.xml of the manager and host-manager apps to prevent filtering external IPs.

I've also checked that the connector in the server.xml which opens port 8080 is correct.

<Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxParameterCount="1000" />

I've verified through Linux commands that port 8080 is open and there aren't any firewall rules blocking traffic on that port. However, it's still not accessible from outside.

Any ideas?

Pablo
con risposta 8 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande