How to Create WAR file in Eclipse for Java Web and Maven projects

preview_player
Показать описание
Through this video, I will share with you how to create WAR file for Java web project in Eclipse IDE. A WAR file packages all resources of a Java web application to be deployed on a Java web server/servlet container like Apache Tomcat.

In details, you will learn how to use Eclipse IDE for:
- Create WAR file for Java Dynamic Web project
- Create WAR file for Maven project

And I also show you how to deploy the generated WAR file onto Apache Tomcat server.
Рекомендации по теме
Комментарии
Автор

Thank you. In all other places when trying to create a WAR from Maven they suggested
this in the POM.xml
<plugin>

<version>2.4</version>
<configuration>


</configuration>
</plugin>

But in my project this was changing everything to a state that the WAR was build ok, but then nothing happen in TomCat. On the other hand if you run this in Eclipse with "Run on Server" everything was working ok, pointing me to the war-plugin.

Than I saw your code is just
<plugin>

<version>3.0.0</version>
</plugin>

So no configurations, just as is. And the version but i used the 2.4 version and the WAR was able to run on TomCat 9.

So thank again.

teovm
Автор

Thats saved me a lot of time, thanks!

juliano.souza.freitas
Автор

thanks for the video, very helpful !!!!

namjoonsbrokewife
Автор

just want to ask why it need to create first a dynamic and convert to maven? when there is direct creating a maven project?
is it the same right?

jeromeobogne
Автор

Nghe biết ông anh Việt Nam hướng dẫn :))

duonggialong
Автор

what can i do if i don't remember the login/password to access the tomcat manager? 5:26

VitaliKiSS
Автор

if i want to add .html file and put an image in it is that possible

msea
Автор

do you have a tutorial for evergreen web application ?

muhammadshakir
Автор

Got confused😇
How to convert war to maven project....

saichowdhary