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...
This is the only video available on internet to save java developers
AMEN 🙏🏼
Phenomenal work and explanation! Congratulations and THANK YOU!
Hey Tech Blog Dev ❤ this video is just awesome keep it up. Appreciate
Thank you very much for the great tutorial
Great tutorial
Thank you 😊
Thank you so much.
Very Nice One
thank you great tuto but i have a problem, how to link my project with the data base
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
did you used spring boot with thymeleaf?
Gracias parcero
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?
Thank for sharing! and Could you tell me how to redirect ip to domain name?
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 😊
can you explain how to handle request of spring API with this?
very nice
It very very helpful
Thank you so much 🥰
Thanks a lot 😊
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?
you can press cntrl + x or cntrl + c
thanks for sharing the information. I did the port change but showing me "Apache2 Ubuntu Default Page" could you help me to fixed it
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😊
Thank you for the nice tutorial. Could you please explain how we could proceed with making a SSL connection? Thank you
Hi Alex, I haven't done as of now still have to explore this feature.. will check on that
@@techblogdev1125 Thank you
36:00 please check this timestamp, comments hiding below the screen recorder
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
Hi @laponiec , i am also facing this same situation like this. did you find a solution?
if it is can you help us?
@@user-gd4qu8nv3u Unfortunately not.
Sir, is it still can work on tomcat 8.5 with Java 8?
how can i uninstall apache server if i followed this tutorial?
Brother i do all this as you show but my Tomcat server is not its default page
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
hello your video is sso helpfull, but i have a problem when i install phpmyadmin i can't access to IP/phpmyadmin page 404
Can you follow thestep from 40:42
can you tell me how to configure the connection in applicatione.properties ? Thanks you
Hey did you get your answer. I also want to know the same thing.
how to add more than 1 domain name in VPS and make directory for spritely
Not sure . Didn't tried yet.. If get any updates will update you
@@techblogdev1125 now what can I do
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 ...
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
@@techblogdev1125 Thanks 🙂
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 🙂
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 🙂
@@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 :-) :-) :-)
Thank you. My Pleasure...😊
hii
i am install tomcat server in my system before seeing your video how to use the existing tomcat server
You can follow the video... Just check your configuration are matching with those in the videos.
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
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
I'm configuring it exactly like you, but when I put the username and password, the page reloads and doesn't access
Hi @Danrley, is it related to connecting from local system to remote VPS using putty,?
@@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
@Danrley, have you tried changing the permission for webapps, you can follow the video from timestamp 26:50, Hope it helps
in 30:27 when enter new password and Re-entre new password ask me enter new password again ?
Exactly not sure.. but only possibilty i see if current passwprd and reenter password might not be matching...
@@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[]]]
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!
Hi, Not sure can you follow the video from @54:20
Is it working in your local env
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?
Hi you can uninstall mysql 5.7 as we do in Linux. sudo apt purge mysql-server*
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!
Hey did you find the solution