Spring boot java application deployment on tomcat (VPS Server)

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2021
  • This tutorial explains the steps of how to deploy a sample spring boot application war on tomcat on the Virtual private server and also a quick walkthrough of the sample java application.
    The application is deployed on Hostinger VPS Server which is an unmanaged server and the user gets all the root access. basically Unmanaged VPS server gives the user the flexibility to install any type of application which can range from Spring boot, Spring MVC, Elastic search, NoSql databases.
    This tutorial covers the following below steps. We will do the set up from scratch till the app deployment.
    • Setting up the VPS server
    • Installation of Java
    • Mysql and PHPMyadmin setup
    • Tomcat installation and configuration
    • Domain linking with application
    • War deployment on tomcat server
    Hostinger VPS Server: www.hostg.xyz/SH8M3
    Namecheap Domain Registeration : namecheap.pxf.io/do5yeM
    References:
    Java Setup : www.digitalocean.com/communit...
    Tomcat Setup : www.digitalocean.com/communit...
    PhpMyadmin Setup: www.digitalocean.com/communit...

Комментарии • 71

  • @saddammd
    @saddammd 8 месяцев назад +14

    This is the only video available on internet to save java developers

  • @compscitopics
    @compscitopics 3 месяца назад

    Phenomenal work and explanation! Congratulations and THANK YOU!

  • @atulsharmabloox
    @atulsharmabloox Год назад

    Hey Tech Blog Dev ❤ this video is just awesome keep it up. Appreciate

  • @umbek-premium
    @umbek-premium Год назад

    Thank you very much for the great tutorial

  • @aamirshayanshaikh2728
    @aamirshayanshaikh2728 2 года назад +1

    Great tutorial

  • @Integer2023
    @Integer2023 Год назад

    Thank you so much.

  • @hubertharris6874
    @hubertharris6874 6 месяцев назад

    Very Nice One

  • @taksittaksit636
    @taksittaksit636 Год назад

    thank you great tuto but i have a problem, how to link my project with the data base

  • @user-fx4qq8ek2s
    @user-fx4qq8ek2s 7 месяцев назад

    it is very usefull but i have a problem. while i try to access to the api installed in tomcat with ssl it dose not work. the frontend is on googlestore. i have nginx installed but the domain is not link to the tmcat and nginx on the vps sever

  • @marianofranzetti8982
    @marianofranzetti8982 Год назад

    did you used spring boot with thymeleaf?

  • @hectorbeltran4576
    @hectorbeltran4576 2 месяца назад

    Gracias parcero

  • @kangnifredable
    @kangnifredable 5 месяцев назад

    I have nginx springboot and tomcat 10 installed on vps server. While i fetched the api deployed in tomcat i get cors issue. What is going wrong?

  • @tipswithnna6670
    @tipswithnna6670 2 года назад +1

    Thank for sharing! and Could you tell me how to redirect ip to domain name?

    • @techblogdev1125
      @techblogdev1125  2 года назад

      hi, you have to set the A records at the domain registeration website like godaddy, Namecheap. pls follow the video from 42:15 onwards where i have done the same. Hope it helps 😊

  • @ShriyamGupta-wx4ou
    @ShriyamGupta-wx4ou Год назад

    can you explain how to handle request of spring API with this?

  • @गाँववाले
    @गाँववाले 2 года назад +1

    very nice

  • @Dabayare
    @Dabayare 2 года назад

    I entered the statement @31:45 and could not get out of "mysql>" . I have to log out out session log back on. Is there sort of a way to abandon and start a news sql statement?

  • @AsheeshKumar-fi7uj
    @AsheeshKumar-fi7uj 2 года назад +1

    thanks for sharing the information. I did the port change but showing me "Apache2 Ubuntu Default Page" could you help me to fixed it

    • @techblogdev1125
      @techblogdev1125  2 года назад

      Hi Asheesh, you have to set the reverse proxy configuration in order to redirect to your application home page. you can follow the steps from 45:30 onwards in the video which shows how to do the reverse proxy configuration. Basically it will redirect from default ubuntu home page to your application default page .. Hope it helps😊

  • @amdimov
    @amdimov Год назад

    Thank you for the nice tutorial. Could you please explain how we could proceed with making a SSL connection? Thank you

    • @techblogdev1125
      @techblogdev1125  Год назад +1

      Hi Alex, I haven't done as of now still have to explore this feature.. will check on that

    • @amdimov
      @amdimov Год назад

      @@techblogdev1125 Thank you

  • @gameofnoobgon7199
    @gameofnoobgon7199 Год назад

    36:00 please check this timestamp, comments hiding below the screen recorder

  • @laponiec
    @laponiec 8 месяцев назад

    Hi would you be able to give me some advice? I have a React.js app which I deployed on hostinger. My React.js uses axiom to connect to Springboot API which then uses a GET call to retrieve information from Database. So far, I have uploaded the React.js app to my hostinger account and connected it with my domain. The problem is that I am not really sure how I would connect the other two components. Do I have to use VPS to upload my Springboot API and then connect it to mySQL DB on hostinger? Will appreciate any pointers. Thank you

    • @user-gd4qu8nv3u
      @user-gd4qu8nv3u 2 месяца назад

      Hi @laponiec , i am also facing this same situation like this. did you find a solution?
      if it is can you help us?

    • @laponiec
      @laponiec 2 месяца назад

      @@user-gd4qu8nv3u Unfortunately not.

  • @bansiloyjohnkennethc.7514
    @bansiloyjohnkennethc.7514 Месяц назад

    Sir, is it still can work on tomcat 8.5 with Java 8?

  • @preciodetalles9790
    @preciodetalles9790 4 месяца назад

    how can i uninstall apache server if i followed this tutorial?

  • @vivekkumarchauhan3788
    @vivekkumarchauhan3788 2 года назад +1

    Brother i do all this as you show but my Tomcat server is not its default page

    • @techblogdev1125
      @techblogdev1125  2 года назад

      Hi Vivek, you have to do reverse proxy configuration to redirect to your tomcat page. kindly follow the steps from 45:30 in the video section where I have done the same. Hope it helps

  • @nechazz2951
    @nechazz2951 Год назад +1

    hello your video is sso helpfull, but i have a problem when i install phpmyadmin i can't access to IP/phpmyadmin page 404

  • @phimmoi939
    @phimmoi939 Год назад

    can you tell me how to configure the connection in applicatione.properties ? Thanks you

    • @piyushrajput07
      @piyushrajput07 Год назад

      Hey did you get your answer. I also want to know the same thing.

  • @गाँववाले
    @गाँववाले Год назад +1

    how to add more than 1 domain name in VPS and make directory for spritely

  • @hippiestafarii
    @hippiestafarii 2 года назад

    Hello again ...
    Sorry to ask you that but maybe you know how to do that ...
    In this same config how can deploy a angular app for the front and spring for the back ...
    Or maybe you have a video showing that ...

    • @techblogdev1125
      @techblogdev1125  2 года назад +1

      Hi @Hippie, not tried yet but I guess it should be same as you do in Linux and you have to configure your angular apps port the similar way we have done for PhpMyadmin

    • @hippiestafarii
      @hippiestafarii 2 года назад

      @@techblogdev1125 Thanks 🙂

  • @hippiestafarii
    @hippiestafarii 2 года назад

    Hi @TechBlogDev
    I need your help please ...
    After all steps done with no error and with the same result as the video after the step in minute 48:45 my phpmyadmin gives me a 404 ...
    I think it's normal because after this modification it's pointing to tomcat and not apache ...
    Can you please help 🙂

    • @techblogdev1125
      @techblogdev1125  2 года назад +1

      Hi @Hippie Stereo , Since we have modified our application to point to 80, we have to change the port of PHPMyadmin to some other in mine case changed to 90, you can follow the steps from 50:30 onwards in the video. I hope it helps 🙂

    • @joaoluis3042
      @joaoluis3042 2 года назад

      @@techblogdev1125 Don't know your name ...
      Sorry man i stop at 48:45 didn't know that you deal with that problem later ... sorry !!!
      Thanks a lot and that was a kick answer :-) :-) :-)

    • @techblogdev1125
      @techblogdev1125  2 года назад +1

      Thank you. My Pleasure...😊

  • @ramarajukakarlapudi9875
    @ramarajukakarlapudi9875 Год назад

    hii
    i am install tomcat server in my system before seeing your video how to use the existing tomcat server

    • @techblogdev1125
      @techblogdev1125  Год назад

      You can follow the video... Just check your configuration are matching with those in the videos.

  • @aumpragashgnanaguru5484
    @aumpragashgnanaguru5484 Год назад

    Thanks for the content bro. I followed every single step but still am getting this error java.lang.IllegalStateException: Error starting child
    while deploying war file

    • @techblogdev1125
      @techblogdev1125  Год назад

      Hi, Just try deploying the same war file in your local system, if that doesn't work in local then some issue with your war file

  • @danrleybrasil
    @danrleybrasil 2 года назад

    I'm configuring it exactly like you, but when I put the username and password, the page reloads and doesn't access

    • @techblogdev1125
      @techblogdev1125  2 года назад

      Hi @Danrley, is it related to connecting from local system to remote VPS using putty,?

    • @danrleybrasil
      @danrleybrasil 2 года назад

      @@techblogdev1125 No, it's when I try to access the manager at 8080/manager/html. I use the credentials created in the "tomcat-users.xml" file but I don't get access

    • @techblogdev1125
      @techblogdev1125  2 года назад

      @Danrley, have you tried changing the permission for webapps, you can follow the video from timestamp 26:50, Hope it helps

  • @ahmedkasso1
    @ahmedkasso1 Год назад

    in 30:27 when enter new password and Re-entre new password ask me enter new password again ?

    • @techblogdev1125
      @techblogdev1125  Год назад

      Exactly not sure.. but only possibilty i see if current passwprd and reenter password might not be matching...

    • @ahmedkasso1
      @ahmedkasso1 Год назад

      @@techblogdev1125 thanks you its wark now
      but I'm facing another problem
      i make deply to my app but running is false when make it start get massage
      FAIL - Application at context path [/] could not be started
      FAIL - Encountered exception [org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]]

  • @gusanejo
    @gusanejo Год назад +1

    Awesome video guy! You totally deserve more subscribers!
    Just a quick question, when I deploy my own war file (ROOT.war), it doesn't start and I get this messages:
    Could not start application in context path [/]
    Exception found: [org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]]
    Do you have any idea what can it be? Thank you anyway and have a great day!

  • @johnnyferreira7738
    @johnnyferreira7738 Год назад

    hey men, good video. I'm in trouble here "UNINSTALL COMPONENT "file://component_validate_password";
    Error 1064 (42000): You have an error in your SQL syntax; check the manual that correspons to your MYSQL server version for the right systax to use near 'COMPONENT ""file://component_validate_password" at line 1.
    Can you help?

    • @techblogdev1125
      @techblogdev1125  Год назад

      Hi you can uninstall mysql 5.7 as we do in Linux. sudo apt purge mysql-server*

  • @NanaKwameAkore
    @NanaKwameAkore Год назад +1

    Hello Master.. Thanks a lot for the knowledge.. it is well appreciated... pls can i have the code for linking the signup form with the LIVE phpmyadmin... thus... Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3307/youtube-db?useSSL=false","root","password");.... this is for hosting locally... and so can you assist me with that of the LIVE VPS.... i think it should be a link... or better still can u give me all the code for this very lesson... thanks in advance.... Master!