I have a simple spring boot app which has just 2 rest controllers and I am exporting the war for the same. I am deploying the same war using the tomcat manager on EC2 instance on AWS, but unfortunately I am getting http status 404 when trying to hit the API. URL that I am trying to hit is –
Tag: amazon-ec2
Unable to run jar file with –enable-preview flag when using corretto 17
I am trying to run my application in an ec2 instance using the command nohup java –enable-preview my-application.jar But somehow the –enable-preview flag is ignored and i still get an error on startup telling me that i should try running it with the flag –enable-preview. I use amazon’s corretto-17 as the openJDK version. Does corretto-17 not support the –enable-preview flag?
How do I install JDK 17 on my AWS AMI Ec2 instance? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
AWS – Ubuntu User Session Stops Spring Boot App
this is my first deploy on AWS. I have a Spring Boot API on an EC2 AWS instance. To run my API I run the command ‘java -jar app.jar’, this works for a while, but when the session for the ubuntu user is logged out my API stops. Then I have to run the command ‘java -jar app.jar’ and so
How to use RDS environment properties attached to Elastic Beanstalk Environment – Java
I created an ElasticBeanstalk env with an RDS attached to it. The platform of the instance using Corretto 8 running on 64bit Amazon Linux 2. It says here that the RDS settings are available as environment properties like RDS_HOSTNAME and here it states that in Java, we could retrieve them using System.getenv(). But when I try it on the EC2
AWS error downloading object from S3, “profile file cannot be null”
I’ve already seen this, but there was no answer to explain my problem. I first used the sample provided here (GetObject class), and it worked immediately on my desktop. However, my friend could not get it to work on his machine, nor will it work on our EC2 instance. It was mentioned that there are to be credentials files specified,
Unable to connect to Selenium Grid running on AWS EC2
I have a Selenium Grid up and running on an AWS EC2 instance. I would like to connect to this from my local machine using Java to fire off my tests via a RemoteWebDriver, however, I’m unable to connect to the server be it through SSH or the Public IP. For example I need to access the instance on port
How to install Tomcat in Amazon Web Services EC2
I have created an instance in Amazon web services, and I have connected to the server using putty through ssh. But I do not know how to install tomcat 8 in amazon ec2. Please help me with this. Answer You can use yum tool to install the tomcat8 packer from amazon default repository. The command is: yum install tomcat8-webapps tomcat8-admin-webapps
Invalid Availability Zone when creating Instance
I’m attempting to create instance on us-west-1c (though I get the same error when trying 1b, or any other AZ) and I’m getting this error: I can manually create the instance via the AWS console. Here is my code to create that instance: I’ve looked over this a hundred times, compared to other examples I’ve found online but I’m unable