AWS Elastic Beanstalk - Problem with tomcat java spring boot application












0














Do you have any idea what I can't access my application hosted on Amazon Elastic Beanstalk?



Configuration: Tomcat 8.5 with Java 8 running on 64bit Amazon Linux/3.0.6
My app: Java spring boot application



On my localhost, everything is working fine.



I've set the server.port = 5000 in my application.properties file.



When i trying to get my app login page using link:



http://testenv-env.eu-west-1.elasticbeanstalk.com/employee/login



I received and 404 error:



HTTP Status 404 – Not Found
Type Status Report



Message /employee/login



but when I add a port to the link:



http://testenv-env.eu-west-1.elasticbeanstalk.com:5000/employee/login



the error is: This site can’t be reached.



My security group configuration:



enter image description here



/var/log/tomcat8/localhost_access_log.txt



127.0.0.1 - - [17/Nov/2018:10:19:04 +0000] "GET / HTTP/1.1" 404 1074
127.0.0.1 - - [17/Nov/2018:10:21:16 +0000] "GET /employee/login HTTP/1.1" 404 1092
127.0.0.1 - - [17/Nov/2018:10:29:02 +0000] "GET / HTTP/1.1" 404 1074
127.0.0.1 - - [17/Nov/2018:10:29:56 +0000] "GET /employee/login HTTP/1.1" 404 1092


/var/log/httpd/error_log



[Sat Nov 17 10:19:18.529071 2018] [mpm_worker:notice] [pid 3716:tid 140569196038208] AH00295: caught SIGTERM, shutting down
[Sat Nov 17 10:19:22.241929 2018] [ssl:warn] [pid 25414:tid 140137380542528] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Nov 17 10:19:22.243341 2018] [mpm_worker:notice] [pid 25414:tid 140137380542528] AH00292: Apache/2.4.34 (Amazon) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Sat Nov 17 10:19:22.243372 2018] [core:notice] [pid 25414:tid 140137380542528] AH00094: Command line: '/usr/sbin/httpd'


and my pom.xml dependencies:



<groupId>com.project</groupId>
<artifactId>iam</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>

<name>iam</name>
<description>Demo project for Spring Boot</description>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>4.0.0</version>
</dependency>


<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>


</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>









share|improve this question





























    0














    Do you have any idea what I can't access my application hosted on Amazon Elastic Beanstalk?



    Configuration: Tomcat 8.5 with Java 8 running on 64bit Amazon Linux/3.0.6
    My app: Java spring boot application



    On my localhost, everything is working fine.



    I've set the server.port = 5000 in my application.properties file.



    When i trying to get my app login page using link:



    http://testenv-env.eu-west-1.elasticbeanstalk.com/employee/login



    I received and 404 error:



    HTTP Status 404 – Not Found
    Type Status Report



    Message /employee/login



    but when I add a port to the link:



    http://testenv-env.eu-west-1.elasticbeanstalk.com:5000/employee/login



    the error is: This site can’t be reached.



    My security group configuration:



    enter image description here



    /var/log/tomcat8/localhost_access_log.txt



    127.0.0.1 - - [17/Nov/2018:10:19:04 +0000] "GET / HTTP/1.1" 404 1074
    127.0.0.1 - - [17/Nov/2018:10:21:16 +0000] "GET /employee/login HTTP/1.1" 404 1092
    127.0.0.1 - - [17/Nov/2018:10:29:02 +0000] "GET / HTTP/1.1" 404 1074
    127.0.0.1 - - [17/Nov/2018:10:29:56 +0000] "GET /employee/login HTTP/1.1" 404 1092


    /var/log/httpd/error_log



    [Sat Nov 17 10:19:18.529071 2018] [mpm_worker:notice] [pid 3716:tid 140569196038208] AH00295: caught SIGTERM, shutting down
    [Sat Nov 17 10:19:22.241929 2018] [ssl:warn] [pid 25414:tid 140137380542528] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
    [Sat Nov 17 10:19:22.243341 2018] [mpm_worker:notice] [pid 25414:tid 140137380542528] AH00292: Apache/2.4.34 (Amazon) OpenSSL/1.0.2k-fips configured -- resuming normal operations
    [Sat Nov 17 10:19:22.243372 2018] [core:notice] [pid 25414:tid 140137380542528] AH00094: Command line: '/usr/sbin/httpd'


    and my pom.xml dependencies:



    <groupId>com.project</groupId>
    <artifactId>iam</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>war</packaging>

    <name>iam</name>
    <description>Demo project for Spring Boot</description>

    <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.1.0.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <java.version>1.8</java.version>
    </properties>

    <dependencies>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-security</artifactId>
    </dependency>

    <dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <scope>runtime</scope>
    </dependency>

    <dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-jasper</artifactId>
    </dependency>

    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jstl</artifactId>
    </dependency>

    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-test</artifactId>
    <scope>test</scope>
    </dependency>
    <dependency>
    <groupId>org.webjars</groupId>
    <artifactId>bootstrap</artifactId>
    <version>4.0.0</version>
    </dependency>


    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    </dependency>


    </dependencies>

    <build>
    <plugins>
    <plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    </plugin>
    </plugins>
    </build>









    share|improve this question



























      0












      0








      0







      Do you have any idea what I can't access my application hosted on Amazon Elastic Beanstalk?



      Configuration: Tomcat 8.5 with Java 8 running on 64bit Amazon Linux/3.0.6
      My app: Java spring boot application



      On my localhost, everything is working fine.



      I've set the server.port = 5000 in my application.properties file.



      When i trying to get my app login page using link:



      http://testenv-env.eu-west-1.elasticbeanstalk.com/employee/login



      I received and 404 error:



      HTTP Status 404 – Not Found
      Type Status Report



      Message /employee/login



      but when I add a port to the link:



      http://testenv-env.eu-west-1.elasticbeanstalk.com:5000/employee/login



      the error is: This site can’t be reached.



      My security group configuration:



      enter image description here



      /var/log/tomcat8/localhost_access_log.txt



      127.0.0.1 - - [17/Nov/2018:10:19:04 +0000] "GET / HTTP/1.1" 404 1074
      127.0.0.1 - - [17/Nov/2018:10:21:16 +0000] "GET /employee/login HTTP/1.1" 404 1092
      127.0.0.1 - - [17/Nov/2018:10:29:02 +0000] "GET / HTTP/1.1" 404 1074
      127.0.0.1 - - [17/Nov/2018:10:29:56 +0000] "GET /employee/login HTTP/1.1" 404 1092


      /var/log/httpd/error_log



      [Sat Nov 17 10:19:18.529071 2018] [mpm_worker:notice] [pid 3716:tid 140569196038208] AH00295: caught SIGTERM, shutting down
      [Sat Nov 17 10:19:22.241929 2018] [ssl:warn] [pid 25414:tid 140137380542528] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
      [Sat Nov 17 10:19:22.243341 2018] [mpm_worker:notice] [pid 25414:tid 140137380542528] AH00292: Apache/2.4.34 (Amazon) OpenSSL/1.0.2k-fips configured -- resuming normal operations
      [Sat Nov 17 10:19:22.243372 2018] [core:notice] [pid 25414:tid 140137380542528] AH00094: Command line: '/usr/sbin/httpd'


      and my pom.xml dependencies:



      <groupId>com.project</groupId>
      <artifactId>iam</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <packaging>war</packaging>

      <name>iam</name>
      <description>Demo project for Spring Boot</description>

      <parent>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-parent</artifactId>
      <version>2.1.0.RELEASE</version>
      <relativePath/> <!-- lookup parent from repository -->
      </parent>

      <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
      <java.version>1.8</java.version>
      </properties>

      <dependencies>
      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-data-jpa</artifactId>
      </dependency>
      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
      </dependency>

      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-security</artifactId>
      </dependency>

      <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <scope>runtime</scope>
      </dependency>

      <dependency>
      <groupId>org.apache.tomcat.embed</groupId>
      <artifactId>tomcat-embed-jasper</artifactId>
      </dependency>

      <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      </dependency>

      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-test</artifactId>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.webjars</groupId>
      <artifactId>bootstrap</artifactId>
      <version>4.0.0</version>
      </dependency>


      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-devtools</artifactId>
      </dependency>


      </dependencies>

      <build>
      <plugins>
      <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
      </plugin>
      </plugins>
      </build>









      share|improve this question















      Do you have any idea what I can't access my application hosted on Amazon Elastic Beanstalk?



      Configuration: Tomcat 8.5 with Java 8 running on 64bit Amazon Linux/3.0.6
      My app: Java spring boot application



      On my localhost, everything is working fine.



      I've set the server.port = 5000 in my application.properties file.



      When i trying to get my app login page using link:



      http://testenv-env.eu-west-1.elasticbeanstalk.com/employee/login



      I received and 404 error:



      HTTP Status 404 – Not Found
      Type Status Report



      Message /employee/login



      but when I add a port to the link:



      http://testenv-env.eu-west-1.elasticbeanstalk.com:5000/employee/login



      the error is: This site can’t be reached.



      My security group configuration:



      enter image description here



      /var/log/tomcat8/localhost_access_log.txt



      127.0.0.1 - - [17/Nov/2018:10:19:04 +0000] "GET / HTTP/1.1" 404 1074
      127.0.0.1 - - [17/Nov/2018:10:21:16 +0000] "GET /employee/login HTTP/1.1" 404 1092
      127.0.0.1 - - [17/Nov/2018:10:29:02 +0000] "GET / HTTP/1.1" 404 1074
      127.0.0.1 - - [17/Nov/2018:10:29:56 +0000] "GET /employee/login HTTP/1.1" 404 1092


      /var/log/httpd/error_log



      [Sat Nov 17 10:19:18.529071 2018] [mpm_worker:notice] [pid 3716:tid 140569196038208] AH00295: caught SIGTERM, shutting down
      [Sat Nov 17 10:19:22.241929 2018] [ssl:warn] [pid 25414:tid 140137380542528] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
      [Sat Nov 17 10:19:22.243341 2018] [mpm_worker:notice] [pid 25414:tid 140137380542528] AH00292: Apache/2.4.34 (Amazon) OpenSSL/1.0.2k-fips configured -- resuming normal operations
      [Sat Nov 17 10:19:22.243372 2018] [core:notice] [pid 25414:tid 140137380542528] AH00094: Command line: '/usr/sbin/httpd'


      and my pom.xml dependencies:



      <groupId>com.project</groupId>
      <artifactId>iam</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <packaging>war</packaging>

      <name>iam</name>
      <description>Demo project for Spring Boot</description>

      <parent>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-parent</artifactId>
      <version>2.1.0.RELEASE</version>
      <relativePath/> <!-- lookup parent from repository -->
      </parent>

      <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
      <java.version>1.8</java.version>
      </properties>

      <dependencies>
      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-data-jpa</artifactId>
      </dependency>
      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
      </dependency>

      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-security</artifactId>
      </dependency>

      <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <scope>runtime</scope>
      </dependency>

      <dependency>
      <groupId>org.apache.tomcat.embed</groupId>
      <artifactId>tomcat-embed-jasper</artifactId>
      </dependency>

      <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      </dependency>

      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-test</artifactId>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.webjars</groupId>
      <artifactId>bootstrap</artifactId>
      <version>4.0.0</version>
      </dependency>


      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-devtools</artifactId>
      </dependency>


      </dependencies>

      <build>
      <plugins>
      <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
      </plugin>
      </plugins>
      </build>






      java spring amazon-web-services spring-boot amazon-elastic-beanstalk






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 19 '18 at 19:40

























      asked Nov 17 '18 at 10:37









      michal9225

      155




      155
























          2 Answers
          2






          active

          oldest

          votes


















          0














          First step would be check your URL



          http://iam-env.eu-west-1.elasticbeanstalk.com/employee/login



          itself looks incorrect. It is too generic to be right. I suggest you look up the AWS Beanstalk All Applications screen. In the box that appears on the right for the correct environment you will find your URL which will be something like this



          https://test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com






          share|improve this answer





















          • Yea, it is. But in my application controller, I have defined /employee/login for my login.jsp view.
            – michal9225
            Nov 17 '18 at 12:42










          • Yes you need to find the URI first and then append your path to it. I hope you have tried that one ... would be something like ... test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com/employee/…
            – Sid Malani
            Nov 17 '18 at 12:48





















          0














          @michal9225 what you have to just set is the Routing.
          What happens is beanstalk URL expect that your application is running on Port 80 and while developing an application in our local system we generally change the port as our other application or services may be running on most common ports.



          So now you have two options:-



          1- set a load balancer and route 5000 port to 80 and then access the application via load balancer URL



          2- change the port from 5000 to 80 from your Application.property file (server.port = 80)






          share|improve this answer





















          • And do conf Inbound rules regarding 80 port
            – karan sharma
            Nov 18 '18 at 18:08











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53350396%2faws-elastic-beanstalk-problem-with-tomcat-java-spring-boot-application%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          First step would be check your URL



          http://iam-env.eu-west-1.elasticbeanstalk.com/employee/login



          itself looks incorrect. It is too generic to be right. I suggest you look up the AWS Beanstalk All Applications screen. In the box that appears on the right for the correct environment you will find your URL which will be something like this



          https://test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com






          share|improve this answer





















          • Yea, it is. But in my application controller, I have defined /employee/login for my login.jsp view.
            – michal9225
            Nov 17 '18 at 12:42










          • Yes you need to find the URI first and then append your path to it. I hope you have tried that one ... would be something like ... test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com/employee/…
            – Sid Malani
            Nov 17 '18 at 12:48


















          0














          First step would be check your URL



          http://iam-env.eu-west-1.elasticbeanstalk.com/employee/login



          itself looks incorrect. It is too generic to be right. I suggest you look up the AWS Beanstalk All Applications screen. In the box that appears on the right for the correct environment you will find your URL which will be something like this



          https://test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com






          share|improve this answer





















          • Yea, it is. But in my application controller, I have defined /employee/login for my login.jsp view.
            – michal9225
            Nov 17 '18 at 12:42










          • Yes you need to find the URI first and then append your path to it. I hope you have tried that one ... would be something like ... test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com/employee/…
            – Sid Malani
            Nov 17 '18 at 12:48
















          0












          0








          0






          First step would be check your URL



          http://iam-env.eu-west-1.elasticbeanstalk.com/employee/login



          itself looks incorrect. It is too generic to be right. I suggest you look up the AWS Beanstalk All Applications screen. In the box that appears on the right for the correct environment you will find your URL which will be something like this



          https://test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com






          share|improve this answer












          First step would be check your URL



          http://iam-env.eu-west-1.elasticbeanstalk.com/employee/login



          itself looks incorrect. It is too generic to be right. I suggest you look up the AWS Beanstalk All Applications screen. In the box that appears on the right for the correct environment you will find your URL which will be something like this



          https://test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 17 '18 at 12:17









          Sid Malani

          1,79711011




          1,79711011












          • Yea, it is. But in my application controller, I have defined /employee/login for my login.jsp view.
            – michal9225
            Nov 17 '18 at 12:42










          • Yes you need to find the URI first and then append your path to it. I hope you have tried that one ... would be something like ... test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com/employee/…
            – Sid Malani
            Nov 17 '18 at 12:48




















          • Yea, it is. But in my application controller, I have defined /employee/login for my login.jsp view.
            – michal9225
            Nov 17 '18 at 12:42










          • Yes you need to find the URI first and then append your path to it. I hope you have tried that one ... would be something like ... test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com/employee/…
            – Sid Malani
            Nov 17 '18 at 12:48


















          Yea, it is. But in my application controller, I have defined /employee/login for my login.jsp view.
          – michal9225
          Nov 17 '18 at 12:42




          Yea, it is. But in my application controller, I have defined /employee/login for my login.jsp view.
          – michal9225
          Nov 17 '18 at 12:42












          Yes you need to find the URI first and then append your path to it. I hope you have tried that one ... would be something like ... test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com/employee/…
          – Sid Malani
          Nov 17 '18 at 12:48






          Yes you need to find the URI first and then append your path to it. I hope you have tried that one ... would be something like ... test-env.asu2mcXXrr.eu-west-2.elasticbeanstalk.com/employee/…
          – Sid Malani
          Nov 17 '18 at 12:48















          0














          @michal9225 what you have to just set is the Routing.
          What happens is beanstalk URL expect that your application is running on Port 80 and while developing an application in our local system we generally change the port as our other application or services may be running on most common ports.



          So now you have two options:-



          1- set a load balancer and route 5000 port to 80 and then access the application via load balancer URL



          2- change the port from 5000 to 80 from your Application.property file (server.port = 80)






          share|improve this answer





















          • And do conf Inbound rules regarding 80 port
            – karan sharma
            Nov 18 '18 at 18:08
















          0














          @michal9225 what you have to just set is the Routing.
          What happens is beanstalk URL expect that your application is running on Port 80 and while developing an application in our local system we generally change the port as our other application or services may be running on most common ports.



          So now you have two options:-



          1- set a load balancer and route 5000 port to 80 and then access the application via load balancer URL



          2- change the port from 5000 to 80 from your Application.property file (server.port = 80)






          share|improve this answer





















          • And do conf Inbound rules regarding 80 port
            – karan sharma
            Nov 18 '18 at 18:08














          0












          0








          0






          @michal9225 what you have to just set is the Routing.
          What happens is beanstalk URL expect that your application is running on Port 80 and while developing an application in our local system we generally change the port as our other application or services may be running on most common ports.



          So now you have two options:-



          1- set a load balancer and route 5000 port to 80 and then access the application via load balancer URL



          2- change the port from 5000 to 80 from your Application.property file (server.port = 80)






          share|improve this answer












          @michal9225 what you have to just set is the Routing.
          What happens is beanstalk URL expect that your application is running on Port 80 and while developing an application in our local system we generally change the port as our other application or services may be running on most common ports.



          So now you have two options:-



          1- set a load balancer and route 5000 port to 80 and then access the application via load balancer URL



          2- change the port from 5000 to 80 from your Application.property file (server.port = 80)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 18 '18 at 18:07









          karan sharma

          26827




          26827












          • And do conf Inbound rules regarding 80 port
            – karan sharma
            Nov 18 '18 at 18:08


















          • And do conf Inbound rules regarding 80 port
            – karan sharma
            Nov 18 '18 at 18:08
















          And do conf Inbound rules regarding 80 port
          – karan sharma
          Nov 18 '18 at 18:08




          And do conf Inbound rules regarding 80 port
          – karan sharma
          Nov 18 '18 at 18:08


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53350396%2faws-elastic-beanstalk-problem-with-tomcat-java-spring-boot-application%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to send String Array data to Server using php in android

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Is anime1.com a legal site for watching anime?