You also need to choose a browser to when your application starts, here I chose Chrome. For JRE, again, you can choose a different version than what you’re seeing on the screen. On Run/Configuration window, on the Templates tab, scroll down and click to the Tomcat Server and choose Local:įor the Application Server, you choose the correct Tomcat server’s location. Finally, click Next.Ī new window shows up, in this window, you simply provide your project name and its location, you can leave everything else as it is and click Finish:Īs the project window appears, on the top corner, click on “ Add Configuration” (or Edit Configuration if the Tomcat configuration is already there): Then, on the Additional Libraries and Framework tab as on the first screen, scroll down and find Web Application and check it. For the Application Server, choose the Tomcat version you just installed by clicking on New, a new dialog will appear to let you choose the Tomcat location and click OK: For the Java EE version, choose the newest version Java EE 8. Open Intellij IDEA => Choose Create New Project => Choose Java Enterprise on the side bar:įor Project SDK, you can choose a different version you have if you want, but you should choose java version 8 because newer versions such as Java 14, or Java 15 you might run into some problems. However, in the scope of this article, we are only interested in working with Servlet. Thanks to Coyote, you can run Tomcat other of Java enterprise specifications. It provides you the actual implementation for Tomcat’s servlet specification, when you start running Tomcat, you’re usually run start Catalina.Īpache Tomcat doesn’t limit itself just as a Servlet container, it also contains an engine called Coyote, which is a web server. Tomcat itself is a sophisticated and complicated piece of software that is composed of many components, however, at its core, there is a component named Catalina which acts as a Servlet container. It’s also can be called a web server or a web container. However, if you have no idea about what is Tomcat, then it’s essential for us to find out what is Tomcat and why we need them.Īpache Tomcat is an open-source Servlet container that implements several enterprise specifications such as Servlet, JSP, Expression Language, and WebSocket APIs. You can live blissfully without going through this session and still can configure the Tomcat server. Last but not least, the Java EE specification is also a requisite to run our application. You will also need to install the Tomcat server before we proceed any further, in this tutorial I use Tomcat server version 8, but of course, you can choose a different version if you want. IntelliJ IDEA Ultimate is required for run enterprise application such as a web application run on Tomcat. But I promise that if you stick with it and follow along step by step it will get easier and you will know enough to configure Tomcat to run most web applications.įirst, there are 3 prerequisites that you need in your computer first before we’re moving on: There are a lot of new terms and tools to learn, and that can be daunting. This whole process might seem confusing and complicated at first. In this article, we are going to learn how to configure the Tomcat server to run a simple “Hello World” application on the web browser with JSP and Servlet (i.e Hello World with the web edition □ ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |