BogoToBogo
  • Home
  • About
  • Big Data
  • Machine Learning
  • AngularJS
  • Python
  • C++
  • go
  • DevOps
  • Kubernetes
  • Algorithms
  • More...
    • Qt 5
    • Linux
    • FFmpeg
    • Matlab
    • Django 1.8
    • Ruby On Rails
    • HTML5 & CSS

Tomcat setup with Eclipse Mars - 2020

Duke 512




Bookmark and Share





bogotobogo.com site search:




Note

In this article we'll see how to setup Tomcat with eclipse Mars.

We'll try to deploy applications from within eclipse including Servlet 3.x projects under the following environments:

  1. eclipse Mars.2 Release (4.5.2)
  2. Tomcat 8.0.32
  3. Oracle JAVA 8 (JDK 8u72)





Create a server

In Eclipse, Open Window -> Show View -> Others...

ShowView.png

Select Servers and Click OK.

At this point, we don't have any servers. So, to create a new server, we need to click the link under the Servers tab:

Define-a-New-Server.png

Set the installation directory the same as the unzipped folder:

Tomcat-Installation-Directory.png

Click Next -> Finish.


UnderServersTab.png

We need to update the location of our server. So, right click on Servers -> properties -> Switch Location -> Apply -> OK.

SwitchLocation.png



Server configuration

If we double click on the Server, we can see the following configuration has been setup:

ServerConfigA.png ServerConfigB.png

We need to change the configuration:

  1. For Server Path, refer to our local tomcat directory.
  2. For Deploy path refer to webapps folder inside that tomcat directory.
  3. ModifyConfig.png

    After changing the configuration, SAVE it.





    Start the server

    We can start the server by clicking the green arrow which is under the Server tab:

    StartServer.png

    We can see our Tomcat server is now running within eclipse:

    TomcatWithinEclipse.png

    Note: we may want to move install directory so we can avoid any permission issue. In my case, I installed it /var/lib/tomcat8, and give tomcat user the permission. But with ellipse, it's not supposed to work. So, I ended up with give general permission (k which is my username).







Ph.D. / Golden Gate Ave, San Francisco / Seoul National Univ / Carnegie Mellon / UC Berkeley / DevOps / Deep Learning / Visualization

YouTubeMy YouTube channel

Sponsor Open Source development activities and free contents for everyone.

Thank you.

- K Hong







Spring Boot



Spring Boot : Hello world with Mavan 3

Spring Boot : Hello world with Gradle 2

Spring Boot (Gradle 2) : Hello world with Authentication

Spring Boot : Deploying War file to Tomcat 8's webapps

How to Setup Apache as Reverse Proxy for Tomcat Server using mod proxy

Maven : mvn command cheat sheet

Spring-Boot REST API with CORS App Maven war file deploy to Tomcat

Spring-Boot / Spring Security with AngularJS - Part I (Introduction)

Spring-Boot / Spring Security with AngularJS - Part II (Dynamic resource load from Angular)

Spring-Boot / Spring Security with AngularJS : Part III (Form-based Authentication)




Sponsor Open Source development activities and free contents for everyone.

Thank you.

- K Hong







Java Tutorials



Java Tutorial Home

Basics - Compiling and Launching

Inner Classes

Constructor

Enums

Static & Finally

Default and Protected

Polymorphism

Exception Handling

Exception Handling II

String Class

Threads

Threads II - State Transition

Threads III - Synchronization

Object Class

File I/O

Serialization

ArrayList

Autoboxing

Java Graphics Interface I - Basics

Java Graphics Interface II - Labels, Text Fields, Layouts

Java Graphics Interface III - paintComponent

TCP Sockets Server/Client

Scala - Functional Java Programming

Apache CXF install

Tomcat 7 Ubuntu 14 Install on Amazon EC2 instance

What is Apache Maven?

Maven life cycle

Eclipse Maven 3 plugin on Ubuntu 14.04

Apache Maven 3 - Setting up and creating a project

Apache Maven 3 - Compile, build, and install a Maven project

Apache Maven 3 - Dependencies

Apache Maven 3 - Web Application

Apache Maven 3 - Plugins (compiler)

Apache Maven 3 - Plugins (Jetty)

Eclipse CDT / JNI (Java Native Interface) / MinGW



Spring Framework

Hello World App with Spring 4 & Maven 3 - Part I





JUnit & Maven Tutorial



JUnit 4 Introduction (Hello World)

JUnit 4 Test with Eclipse Luna (Hello World)

JUnit 4 Test with Maven (Hello World)











Contact

BogoToBogo
contactus@bogotobogo.com

Follow Bogotobogo

About Us

contactus@bogotobogo.com

YouTubeMy YouTube channel
Pacific Ave, San Francisco, CA 94115

Pacific Ave, San Francisco, CA 94115

Copyright © 2024, bogotobogo
Design: Web Master