How to deploy .war file to Tomcat?

When you finish developing a web application. Now you want to deploy it into Tomcat.

Here we go:

  1. Update config file:
    • Open file: tomcat-user.xml, update the following:
      • <role rolename=”manager-gui”/>
      • <role rolename=”manager-script”/>
      • <role rolename=”manager-jmx”/>
      • <role rolename=”manager-status”/>
      • <user username=”yourname” password=”123” roles=”manager-gui,manager-status”/>
  2. Export your application to war file
  3. browse the link to your tomcat server: ex: http://localhost:8080
  4. Select “Manager App”
  5. Follow the instructions to finish deploying your .war file.

Happy deploying !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s