How to Deploy a Spring Boot Application on Tomcat as a WAR Package [Intermediate Spring Boot]

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024

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

  • @anon24kf95
    @anon24kf95 4 года назад +1

    at first i thought why this is a 30 minute video then you explained everything and it just worked. I did not know the difference between a war file and a jar file before this. thank you very much

  • @Xilith90
    @Xilith90 6 лет назад

    I just finished my first year of studying computer science. As something completly new, our school has decided to drop JavaFX in favor of Spring Boot for a stronger emphasis on teaching web development. Only problem is that most of our teachers are still learning this framework and know nothing about it, so help has been very hard to come by during the last 2 months of our exam project. Your videos have been very informative and extremely helpful! Thank you! Keep up the good work.

  • @RoamFree1866
    @RoamFree1866 4 года назад +2

    This is great! I wish I'd had come across this video before spending hours trying to do this on my own. Thank you!

  • @reno3823
    @reno3823 5 лет назад +1

    I've been searching for hours for a proper explanation and i finally found your video! Thank you so much!

  • @pelaoinfo
    @pelaoinfo 6 лет назад +1

    so far the best tutorial I've seen about this

  • @shayhan6227
    @shayhan6227 5 лет назад

    Really happy that you have a good microphone matched with high quality video.

  • @elgrito9688
    @elgrito9688 4 года назад

    Finally someone told it in a few, comprehensible words... Very good video!

  • @sukurumuku
    @sukurumuku 5 лет назад

    Thank you very much for your tutorial. I needed because I new to Spring Tool Suite 4 and I didn't how to deploy it to a Tomcat dedicated server. It worked for me! Before your video I was thinking to give STS up.

  • @guitarDad100
    @guitarDad100 7 лет назад +5

    Well done. This is a very informative video lesson. Thanks for posting this one.

  • @cheatman05
    @cheatman05 5 лет назад +1

    This was a surprisingly good tutorial, thanks for explaining this process with such detail!

    • @RomanianCoder
      @RomanianCoder  5 лет назад

      I am glad you liked it and that it was useful;)

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

    Thanks!!! I had been trying to deploy my application in Cpanel for days but the 404 error seemed invincible in my case. But this video helped me a lot and I have managed to solve my problem, thank you very much :)

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

      What did you do to get rid of error 404?

  • @petriluukkonen276
    @petriluukkonen276 6 лет назад

    Really great lesson! Demystified a lot of things. Thanks!

  • @kiraninline4
    @kiraninline4 4 года назад

    Well structured explanation of the concept.

  • @meghnaraghunath4508
    @meghnaraghunath4508 3 года назад +1

    Just what I needed !!!
    Thank u so much...

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

    Excellent explanations and style of providing information

  • @nthanki7978
    @nthanki7978 4 года назад

    Great Tutorial for those who faces tiny issues. i learned many thing which was unknown to me. Thanks @Romainan Coder for sharing such an amazing Video :)

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

    Thanks Buddy yout tutorial saved my job !

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

    excellent!! appreciated!!! all the explanation

  • @Mohamed-uf5jh
    @Mohamed-uf5jh 6 лет назад

    Great Job ,I look for this tuto for long time ,thanks Romanian

  • @josephwong2832
    @josephwong2832 4 года назад

    Thanks a lot Romanian coder. Love your detailed explanations and I just subbed to your channel

  • @ismaelpena8555
    @ismaelpena8555 5 лет назад

    thank you very much !!! I've been looking for this exact procedure

  • @commitea9627
    @commitea9627 6 лет назад

    Great video, that's solve a very important issue in my application. Thanks.

    • @RomanianCoder
      @RomanianCoder  6 лет назад

      Thank you very much:) Can i ask you what other courses would make this channel even more helpful?

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

    Thank you so much. Incredibly clear and useful.

  • @aobaidi5626
    @aobaidi5626 5 лет назад +1

    The best now im able to deploy my web app

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

    just what I was looking for!! many thanks!!!!!!!!!

  • @Raj7321-w6p
    @Raj7321-w6p 5 лет назад

    amazing video , loads of information . Just two questions . 1. If you have a jar file (and u dont want war) , how you execute it in an external server , like we do here as "java -jar jar file name" . 2. if we are using multiple JNDIs how to use it from application.properties.

  • @alinmateut8792
    @alinmateut8792 6 лет назад

    Bravo! You should consider recording some videos using Spring and Angular 6

    • @RomanianCoder
      @RomanianCoder  6 лет назад +1

      Hello Alin. A new course on Angular 6 + Spring Boot has just been published. Episodes are coming out every 2 days. Hope you like it

    • @alinmateut8792
      @alinmateut8792 6 лет назад

      Romanian Coder Thanks!

  • @ArvindVerma-ct7oq
    @ArvindVerma-ct7oq 6 лет назад

    Awesome very informative and so unique ur video...i also face the same issue with IntelliJ

  • @ibrahimyazicii
    @ibrahimyazicii 3 года назад +2

    Thank yo for the vidoe. after I did everything as in the video, I get the following error: http status - The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

  • @pauloferreira4040
    @pauloferreira4040 5 лет назад +1

    great video, congratulations!

  • @ihor_biedin
    @ihor_biedin 4 года назад

    Really useful. Thank you, Romanian!

  • @brunosanti__
    @brunosanti__ 7 лет назад

    Thanks for this tutorial!! It helps me a lot!

  • @pradeepghimire2360
    @pradeepghimire2360 7 лет назад

    Thank you for posting this video.

  • @mlizano6793
    @mlizano6793 3 года назад

    thankyou, greetings from Costa Rica

  • @gengamer_
    @gengamer_ 5 лет назад +1

    thanks man, that was very helpful!!

  • @srijaljoshi3421
    @srijaljoshi3421 4 года назад +2

    Such a great video. It would be awesome if you could help me with making war files with jsp work. When I build a war file and deploy it using docker, I'm getting a 404 error. It seems like my jsp views are not being read by the servlet container. Any help would be appreciated!

  • @samuelsodagudi
    @samuelsodagudi 4 года назад

    Solved my problem.
    Thank you very much.

  • @mastan143socool
    @mastan143socool 7 лет назад +1

    Can you please create a video explaining how to deploy springboot war in AWS Elastic BeanStalk?

  • @CraftMojo777
    @CraftMojo777 4 года назад +2

    What about external database like mysql ?

  • @dark_evil77
    @dark_evil77 4 года назад +1

    Thank you very much, спасибо!

  • @michelegenchi
    @michelegenchi 3 года назад +1

    My project deployed but it don't load any resources ("image or css or js")

  •  5 лет назад +1

    Great video, thanks for your time. Do you have any video explaining how to deploy load balanced microservices with Spring Boot in production environments? I'm a Tomcat/WebLogic/Glassfish java developer but I'm starting to see things like Docker and Spring Boot jar packing applications.

    • @RomanianCoder
      @RomanianCoder  5 лет назад

      Hi! My experience with spring microservices is not very deep, so I won't be publishing anything on this topic in the near future. Sorry...

    • @khalidelwansari4524
      @khalidelwansari4524 5 лет назад

      can explain more detail about Tomcat/WebLogic/Glassfish

  • @KishoreKumar-fg6vf
    @KishoreKumar-fg6vf 5 лет назад

    Nice and detailed demo .

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

    The error is for Intellij IDEA you need to configure only in that project . This is bug from intellij IDEA. You need to include scope "Provided" in config.

  • @Gorky25
    @Gorky25 2 года назад +4

    Everything that I do I am always on remote Tomcat gets error 404.

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

      I am facing the same, did you find a solution?

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

      @@shubhamsuri9907 Same problem here :'(

  • @jhonatandariomarinjaramill9519
    @jhonatandariomarinjaramill9519 3 года назад

    Hi, this is a amazing video!!!. I have two questions: the first one is what does the java -jar command and wheter I must use an embedded container to run that command or not?, and the last one or second one is when you said what the provided property is added for working with dedicated server or with jdk,, what would be an example of work with jdk, maybe the case where I use java -jar command?, congra for your excellent work!!!

  • @oraetlabora2472
    @oraetlabora2472 7 лет назад

    Thanks a lot. Saved my day.

  • @indiekiduk
    @indiekiduk 5 лет назад +1

    Is there a way to build, deploy and run it (or debug it) on the server from IntelliJ? Instead of uploading the WAR using the Tomcat web interface.

  • @isnaldolopezjr
    @isnaldolopezjr 5 лет назад

    This is brilliant, thanks for publishing it. Just a quick question: Do you know what's the build baseName equivalent for Gradle? I can't find it anywhere around the interwebs. Thanks in advance.

  • @bricardonelson
    @bricardonelson 6 лет назад

    Thanks , was a great help for me

  • @karkiashwin1174
    @karkiashwin1174 5 лет назад

    hello brother you videos are awesome.Please post the video realted to spring security with its full features

    • @RomanianCoder
      @RomanianCoder  5 лет назад

      Thank you very much for the comment! I will try to do a mini series on security :D

  • @MrGuilleFerru
    @MrGuilleFerru 7 лет назад +1

    Hi there, excellent video! I have a rare problem deploying the app in a tomcat under windows 8, it throws me a 404 page not found, but it runs correct on windows 7 and linux, what might be the problem?.. thanks!

  • @drewatkison4127
    @drewatkison4127 6 лет назад

    HELPPPPEDD A LOT!!!!
    Thanks

  • @mehdimhmvd9175
    @mehdimhmvd9175 4 года назад

    it was very useful thank you man

  • @shivamvishwakarma2596
    @shivamvishwakarma2596 4 года назад

    Very helpful. Thank you

  • @bakedbillybacon
    @bakedbillybacon 3 года назад

    I get the following error when deploying the WAR and trying to execute a task with a form in it:
    Form failure: The context path is either empty or not defined

  • @ivanpaladino21
    @ivanpaladino21 5 лет назад

    Great tutorial. Thanks

  • @parassetia1593
    @parassetia1593 3 года назад

    Thank you so much sir its very helpfull

  • @MASINALI
    @MASINALI 3 года назад +1

    Hi everyone.
    By the way, now in 2020, we already can run a packaged Spring Boot web app (war file), directly with Spring Boot Run/Debug Configurations.
    There is no need anymore, to use custom solutions, like JAR Application Run/Debug Configurations.

  • @anilkumar-nr4tu
    @anilkumar-nr4tu 7 лет назад

    Very Informative

  • @ZygusPatryk
    @ZygusPatryk 6 лет назад

    Great video, thanks!

  • @erickramones2167
    @erickramones2167 5 лет назад

    I have a web app that shows a list of prices but I need that those prices are updated right after the prices in the db are updated. Any ideas or suggestion on what technology or approach should I follow to accomplish that? Thanks for the tutorials, I like them, I spend a good time watching them.

  • @mastan143socool
    @mastan143socool 7 лет назад +1

    It helps if you shows us continuous integration in AWS with spring boot?

  • @musazutov2772
    @musazutov2772 6 лет назад

    Great job, Thanks

  • @denismugane2765
    @denismugane2765 7 лет назад

    hello have followed your tutorial and am getting this error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project demo: There are test failures.

  • @jeeperscreepers7
    @jeeperscreepers7 6 лет назад

    Hi, very nice video! Is there a way to automate this process? Maybe with maven. Thanks a lot!

  • @anmolmore6074
    @anmolmore6074 5 лет назад

    Nice video sir !
    But I do not completely understand the need of overriding 'SpringApplicationBuilder' method.
    What will happen if i do not override this method ?
    Can you explain more on that, or can you please share some google link on that ?

  • @MegaHudson1996
    @MegaHudson1996 7 лет назад

    Hi, I do not speak English very well, but I need help, I need to know if I have to change the URLs of the web page resources that need to be uploaded, CSS and JS, just like you did in the 17 minutes in the video. In my project, these files in the static folder are not loaded in the browser when I publish to TomCat Server.

  • @eSpVoLTaGe
    @eSpVoLTaGe 5 лет назад

    Really nice video!

  • @unnimk75
    @unnimk75 4 года назад

    Great video ..Thanks

  • @ilenitudor7745
    @ilenitudor7745 6 лет назад +1

    thank you, it helps ;)

  • @anilkinikar
    @anilkinikar 4 года назад

    Very good video 👍🏻

  • @dimabevz6996
    @dimabevz6996 3 года назад

    thank you so much!!

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

    Just awesome

  • @azerphoenix
    @azerphoenix 5 лет назад

    Really, thank you so much! You saved me))

    • @colinjax3381
      @colinjax3381 3 года назад

      i realize I'm kind of off topic but does anyone know of a good place to stream newly released series online?

    • @paxtonhunter6308
      @paxtonhunter6308 3 года назад

      @Colin Jax Lately I have been using flixzone. Just search on google for it :)

    • @garyemmitt1338
      @garyemmitt1338 3 года назад

      @Paxton Hunter Yea, have been using flixzone for months myself =)

    • @colinjax3381
      @colinjax3381 3 года назад

      @Paxton Hunter thanks, signed up and it seems like they got a lot of movies there :D I really appreciate it !!

    • @paxtonhunter6308
      @paxtonhunter6308 3 года назад

      @Colin Jax You are welcome :D

  • @ramallounzuetakaterineandr5763
    @ramallounzuetakaterineandr5763 4 года назад

    thaks a lot for this video :)

  • @tuoan5533
    @tuoan5533 4 года назад

    Hi, I have a question is, how can we package spring boot project to war file with a profile ?

  • @axis2038203
    @axis2038203 6 лет назад

    very informative

  • @lts8683
    @lts8683 3 года назад

    Hi,
    If I have spring boot app created with themeleaf which better for packaging jar or war?

  • @gurmeetchawla8362
    @gurmeetchawla8362 6 лет назад

    you mentioned after you deploy your app to an independent tomcat then the properties from th application.properties will not be picked, how to give property in such a scenario.

    • @RomanianCoder
      @RomanianCoder  6 лет назад

      Hello. Because your app is running in Tomcat and not in the embedded server, you need to use external Tomcat configs. One way is to use the Context element in Tomcat config file. Here is a link with more info stackoverflow.com/a/29122037/10269484

  • @nikunjrank5579
    @nikunjrank5579 7 лет назад

    hey romanian, I am looking for hosting springboot web application with embedded tomcat as a website, I have domain registered can you guide me through some links or can you provide some details on how part,
    Thanks

  • @murziusrokas
    @murziusrokas 5 лет назад

    Hi there, why does my .war only contain WEB-INF and META-INF? I think there should also be recources just next to these two folders.

    • @RomanianCoder
      @RomanianCoder  5 лет назад +1

      Hello! Well, it's a REST app, with no views, css or scripts(resources folder empty). That is the reason you don not see them.

  • @weekendhoppers
    @weekendhoppers 6 лет назад

    Hey thanks for sharing the detailed explanation.
    In my app, Application class is already extending WebSecurityConfigurerAdapter
    Any work around for me to make it external tomcat friendly?

    • @RomanianCoder
      @RomanianCoder  6 лет назад +1

      Hello. Thanks for the feedback. I am not exactly sure but maybe there is a way to register security via an annotation and not by inheritence. I have not tried this scenario. Sorry I can't help you more.

    • @weekendhoppers
      @weekendhoppers 6 лет назад

      Romanian Coder Okies will try 🙂

    • @somnathbehera427
      @somnathbehera427 4 года назад

      Are u using ldap server

  • @myactivitues7623
    @myactivitues7623 4 года назад

    post method is giving 404 . could you please some one help me

  • @anilkinikar
    @anilkinikar 4 года назад

    Can we deploy this war to Weblogic/JBoss? Or is this only for Tomcat.

  • @hamzix6599
    @hamzix6599 6 лет назад +1

    +Romanian Coder
    i have a spring boot application with a mysql database querys in it.is the deolyment method the same ?

    • @RomanianCoder
      @RomanianCoder  6 лет назад

      Hey! Should be the same, but you need to include the neesed pom dependencies and to modify the connection settings in the application.properties file.

    • @enginipek8735
      @enginipek8735 6 лет назад

      sir thanks for the video. I have a mysql db+spring app as well. on local everything works fine but on my server I keep getting 404 white label errors. any idea how to fix?

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

      Do you remember how did you solve this problem?

  • @shiwanthasandamal927
    @shiwanthasandamal927 7 лет назад

    thank you

  • @akhandpratapsingh1527
    @akhandpratapsingh1527 5 лет назад

    How to Deploy a Spring Boot Application Fat Jar. Please tell me, Thank you.

    • @RomanianCoder
      @RomanianCoder  5 лет назад

      Hello! I never used fat jars for deployment, buy this article should help: www.baeldung.com/deployable-fat-jar-spring-boot

  • @azarshukur2317
    @azarshukur2317 4 года назад

    nice video.

  • @axlakias
    @axlakias 5 лет назад

    hello when i type the url localhost:8080/myapp i get error HTTP Status 404 - Not Found,
    Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
    Do you have a clue why this is happening? :(
    P.S i had no problem with deploy

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

      Do you remember how did you solve it?

  • @MiguelCruz-zj5if
    @MiguelCruz-zj5if 3 года назад

    Is it possible to deploy Eureka clients and servers as war applications?

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

      same issue..how to deploy spring cloud gateway war?

  • @MultiKvach
    @MultiKvach Месяц назад

    doesnt work

  • @wronganswer5005
    @wronganswer5005 5 лет назад

    It's a thymeleaf example. Will it work with jsp ?

    • @RomanianCoder
      @RomanianCoder  5 лет назад

      Hello! Sure, jsp is just a view engine. No reason for it not to work;)

    • @wronganswer5005
      @wronganswer5005 5 лет назад

      @@RomanianCoder Thanks for reply. Please make a video for critical queries of spring mongo data like nested data update, filtered update etc. It would be very helpful

  • @aobaidi5626
    @aobaidi5626 5 лет назад

    i couldnt find how to deploy the web app i the Cpannel ? any idea?

    • @aobaidi5626
      @aobaidi5626 5 лет назад

      I deploy my web app war on bluehost VPS and unzipped the war then after i call my domain on web browser the only things i get is folders of my application that i uploaded and unzipped. which it dons't take me to the index . any idea ? thanks in advance

    • @aobaidi5626
      @aobaidi5626 5 лет назад

      i try install tomcat on whm it never completed saying gcj not available then i tried install gcj on whm it fails : error no package java-gcj-compat available....

  • @mirasimic
    @mirasimic 4 года назад

    thank you