---
description: In this JBoss Server tutorial, we will learn How to Configure JBoss Server in Eclipse &amp; How to run a JSP Dynamic Web Project &amp; Program in Eclipse.
title: How to Run JSP File in Eclipse with JBoss Server
image: https://www.guru99.com/images/how-to-run-jsp-file-in-eclipse.png
---

[Skip to content](#main)

**⚡ Smart Summary**

Running a JSP file in Eclipse with the JBoss server requires installing Java and JBoss, configuring the server inside the IDE, creating a dynamic web project, writing the page, and deploying it to view browser output.

- ☕ **Install Prerequisites:** Java (JDK) and the JBoss server must be installed first, since both are required to compile and run any JSP.
- 🖧 **Configure JBoss in Eclipse:** Download and unzip JBoss, then add it as a new server in Eclipse pointing to the unzipped path.
- 🗂️ **Create a Web Project:** Build a dynamic web project through the project explorer and name it before finishing the wizard.
- 📄 **Write the JSP Page:** Add a new JSP under the web content folder and enter the page directive and HTML body.
- 🚀 **Deploy and Run:** Start the server, right-click the project, and choose Run on Server to deploy the application.
- 🌐 **View Output:** Access the page at localhost port 8080 followed by the project and JSP file name to see the result.

Read More

![](https://www.guru99.com/images/how-to-run-jsp-file-in-eclipse.png)

In this tutorial, we are going to study the basics of writing and running a JSP. We will install Java and JBoss server on our machine as they are pre-requisites to run a JSP.

## Installing Java

To install java, we need to check whether we have any older versions of JDK (Java Development Kit) on the machine. If yes, uninstall them.

Refer this guide to [install Java](https://www.guru99.com/install-java.html).

## How to Configure JBoss Server in Eclipse

Here is a step by step process on how to configure JBoss server in Eclipse:

**Step 1)** JBoss server can be downloaded from the following [link](https://developers.redhat.com/products/red-hat-jboss-web-server/download):

After downloading the latest version of the server from the link, we will get a zip file which needs to be unzipped.

After unzipping it, it takes to the below folder:

[![Configure JBoss Server]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw1.png)

We can start and stop the server using start and stop exe from the bin folder.

**Step 2)** We can include the server into eclipse IDE using following way:

1. Create a new server by adding name to it as localhost
2. Select the version of server from the list of servers
3. Server name will be added here as JBoss v5 at localhost(the one which is selected in above two steps)
4. Click on the finish button to complete the steps.

[![Configure JBoss Server in Eclipse]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw2.png)

Need to define which version of the server we are using, and we can specify the path from which we have unzipped above.

Once we click on finish button, then the server would be added to eclipse IDE.

[![Configure JBoss Server in Eclipse]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw3.png)

Installation of JBoss has been done, and server can be accessed from here.

**Step 3)** Test the Installation

Check if the installation is done properly or not:

- Once Java and JBoss server have been installed on the machine, we can start using them in the eclipse IDE.
- In eclipse IDE, we check that there are no errors and java path has been set as an environment variable.
- If above steps are executed successfully, then the server will start successfully.

[![Configure JBoss Server in Eclipse]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw4.png)

The server has been started successfully.

## How to Run a JSP Dynamic Web Project in Eclipse

**Step 1)** We can create a dynamic web project by right clicking on the project explorer, and we get the following window:

[![Run a JSP Dynamic Web Project in Eclipse]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw5.png)

**Step 2)** Once we click on next button in above screen, we get the following window, where we have to enter a project name and then click on finish.

1. Name the project
2. Click on finish button

[![Run a JSP Dynamic Web Project]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw6.png)

Once we click on finish button, the project is created and seen on the explorer with the following folders.

[![Run a JSP Dynamic Web Project]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw7.png)

**Don't Miss:**

- [JSP Life Cycle: Phases & Diagram Explained](https://www.guru99.com/jsp-life-cycle.html)
- [JSP Debugging: How to Debug JSP in Eclipse?](https://www.guru99.com/debug-jsp.html)
- [JSP Action Tags](https://www.guru99.com/jsp-action-tags.html)
- [Cookies in JSP With Example](https://www.guru99.com/jsp-cookies-handling.html)

## How to Run a JSP Program in Eclipse

Following are the steps to run a JSP program in Eclipse:

**Step 1) Create a New JSP Page**

In the gurutest project, right-click on the project and then click on New JSP Page.

**Step 2) Select Folder and enter File name**

Following window will open, and it will help to create a new JSP in the project.

1. Select the parent folder in the application directory
2. Select the web content folder as JSP are created under that folder
3. Enter the filename of the JSP.
4. Click on finish button to complete the steps and JSP is created.

[![Run a JSP Program]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw8.png)

File Name given as guru\_example.jsp and then clicked on next and then finish.

**Step 3) Check the created JSP in the Folder**

Once the JSP is created it is seen in the web content folder as below:

[![Run a JSP Program]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw9.png)

**Step 4) Enter the code in file and Run**

Enter the following code in the file:

```
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Guru Example1</title>
</head>
<body>
<a>This is Guru JSP.</a>
</body>
</html>
```

**Explanation of the code:**

**Code Line 1:** Here we are defining the page directives like language which is set to java, contentType to text/html, pageEncoding to standard ISO-8859(we will be learning in more detail in JSP in Action article directives section)

**Code Line 3-12:** Here we have defined an html with text “This is Guru JSP” which is shown as the output.

## How to Start JBoss Server and Deploy Project in Eclipse

**Step 1)** In the [eclipse IDE](https://www.guru99.com/install-eclipse-java.html), in the servers section right click on the server which has been configured and there is an option to start the server.

[![Start JBoss Server and Deploy Project]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw11.png)

**Step 2)** Once the server is started then we can deploy the gurutest project. In the project explorer, right click on the gurutest project and then click on Run on the server and we get the following options.

1. Select server either choose existing server or define a new server
2. Select the server which has already been defined.
3. Click on the finish button.

[![Start JBoss Server and Deploy Project]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw12.png)

**Step 3)** Once you click on finish button, a new window will pop up.

There are two options,

- Either to choose existing server or
- Manually configure the server

In this case, we have already configured the server in the above case. Hence we can select the configured server and then click on next.

Here we get the configured projects which are to be deployed.

[![Start JBoss Server and Deploy Project]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw13.png)

When we click the finish button, then the project is deployed on the server and message can be seen in following screen shot.

[![Start JBoss Server and Deploy Project]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw14.png)

When we try to access **http://localhost:8080/gurutest/guru\_example.jsp**

Where,

**Localhost:** Our own host on which server is started and 8080 is the port for that

**Gurutest:** Project which has been deployed on this localhost

**Guru\_example.jsp:** This is JSP, which we are trying to access.

[![Start JBoss Server and Deploying Project]()](https://www.guru99.com/images/jsp/022716_0834_InstallJSPw15.png)

**Output:**

This is Guru JSP text from the guru\_example.jsp

## FAQs

🔌 What port does the JBoss server use by default?

JBoss uses port 8080 by default for HTTP requests. A deployed JSP is accessed at localhost:8080 followed by the project name and file name, for example localhost:8080/gurutest/guru\_example.jsp.

⚖️ What is the difference between JBoss and Apache Tomcat?

Tomcat is a lightweight servlet container for JSP and servlets. JBoss is a full Java EE application server that includes a servlet container plus support for EJB, messaging, and transactions.

🗂️ Why create a dynamic web project for JSP in Eclipse?

A dynamic web project generates the WEB-INF folder, deployment descriptor, and web content structure JSP needs. A static project only serves fixed HTML and cannot run server-side Java code.

🤖 How can AI help set up a JSP development environment?

AI can list the required JDK and server versions, generate step-by-step setup instructions for your operating system, and explain environment variables, helping beginners configure Eclipse and JBoss without missing a step.

🤖 Can AI help fix JBoss server startup errors?

Yes. AI can read the console log, identify port conflicts or missing Java paths, and suggest fixes. This shortens troubleshooting when the JBoss server fails to start inside Eclipse.

#### Summarize this post with:

ChatGPTPerplexityGrokGoogle AI

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.**

##### Sign up for the newsletter

Subscribe for Free

You have successfully subscribed.  
Please check your inbox.

![AI-Newsletter]() Chosen by over **350,000+** professionals

[Scroll to top](#wrapper)

×

Search for:

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/how-to-run-jsp-file-in-eclipse.png","url":"https://www.guru99.com/images/how-to-run-jsp-file-in-eclipse.png","width":"700","height":"250","caption":"How to Run JSP File in Eclipse","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/install-jsp-jboss-server-java.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/jsp","name":"JSP"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/install-jsp-jboss-server-java.html","name":"How to Run JSP File in Eclipse with JBoss Server"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/install-jsp-jboss-server-java.html#webpage","url":"https://www.guru99.com/install-jsp-jboss-server-java.html","name":"How to Run JSP File in Eclipse with JBoss Server","dateModified":"2026-07-01T17:42:52+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/how-to-run-jsp-file-in-eclipse.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/install-jsp-jboss-server-java.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/james","name":"James Hartman","description":"I am James Hartman, a seasoned professional in Oracle Certified Java Professional tutorials, specializing in crafting comprehensive guides to help you excel in your Java certification journey.","url":"https://www.guru99.com/author/james","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/james-hartman-author-v2-120x120.png","url":"https://www.guru99.com/images/james-hartman-author-v2-120x120.png","caption":"James Hartman","inLanguage":"en-US"},"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"articleSection":"JSP","headline":"How to Run JSP File in Eclipse with JBoss Server","description":"In this JBoss Server tutorial, we will learn How to Configure JBoss Server in Eclipse &amp; How to run a JSP Dynamic Web Project &amp; Program in Eclipse.","keywords":"jsp","speakable":{"@type":"SpeakableSpecification","cssSelector":[".entry-title",".summary"]},"@type":"Article","author":{"@id":"https://www.guru99.com/author/james","name":"James Hartman"},"dateModified":"2026-07-01T17:42:52+05:30","image":{"@id":"https://www.guru99.com/images/how-to-run-jsp-file-in-eclipse.png"},"copyrightYear":"2026","name":"How to Run JSP File in Eclipse with JBoss Server","subjectOf":[{"@type":"HowTo","name":"How to Run a JSP Program in Eclipse","description":"Following are the steps to run a JSP program in Eclipse:","step":[{"@type":"HowToStep","name":"Step 1) Create a New JSP Page","text":"In the gurutest project, right-click on the project and then click on New JSP Page.","url":"https://www.guru99.com/install-jsp-jboss-server-java.html#step1"},{"@type":"HowToStep","name":"Step 2) Select Folder and enter File name","text":"Following window will open, and it will help to create a new JSP in the project.","image":"https://cdn.guru99.com/images/jsp/022716_0834_InstallJSPw8.png","url":"https://www.guru99.com/install-jsp-jboss-server-java.html#step2"},{"@type":"HowToStep","name":"Step 3) Check the created JSP in the Folder","text":"Once the JSP is created it is seen in the web content folder as below:","image":"https://cdn.guru99.com/images/jsp/022716_0834_InstallJSPw9.png","url":"https://www.guru99.com/install-jsp-jboss-server-java.html#step3"},{"@type":"HowToStep","name":"Step 4) Enter the code in file and Run","text":"Enter the following code in the file:","url":"https://www.guru99.com/install-jsp-jboss-server-java.html#step4"}]},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What port does the JBoss server use by default?","acceptedAnswer":{"@type":"Answer","text":"JBoss uses port 8080 by default for HTTP requests. A deployed JSP is accessed at localhost:8080 followed by the project name and file name, for example localhost:8080/gurutest/guru_example.jsp."}},{"@type":"Question","name":"What is the difference between JBoss and Apache Tomcat?","acceptedAnswer":{"@type":"Answer","text":"Tomcat is a lightweight servlet container for JSP and servlets. JBoss is a full Java EE application server that includes a servlet container plus support for EJB, messaging, and transactions."}},{"@type":"Question","name":"Why create a dynamic web project for JSP in Eclipse?","acceptedAnswer":{"@type":"Answer","text":"A dynamic web project generates the WEB-INF folder, deployment descriptor, and web content structure JSP needs. A static project only serves fixed HTML and cannot run server-side Java code."}},{"@type":"Question","name":"How can AI help set up a JSP development environment?","acceptedAnswer":{"@type":"Answer","text":"AI can list the required JDK and server versions, generate step-by-step setup instructions for your operating system, and explain environment variables, helping beginners configure Eclipse and JBoss without missing a step."}},{"@type":"Question","name":"Can AI help fix JBoss server startup errors?","acceptedAnswer":{"@type":"Answer","text":"Yes. AI can read the console log, identify port conflicts or missing Java paths, and suggest fixes. This shortens troubleshooting when the JBoss server fails to start inside Eclipse."}}]}],"@id":"https://www.guru99.com/install-jsp-jboss-server-java.html#schema-61409","isPartOf":{"@id":"https://www.guru99.com/install-jsp-jboss-server-java.html#webpage"},"publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/install-jsp-jboss-server-java.html#webpage"}}]}
```
