Server targeting for Web applications

To support different Java EE application servers, the Java EE tooling allows you to target a specific server during your Enterprise Application (EAR) project development. In most cases, a Web project must target the same server as the EAR project in order to deploy the Web application to the server properly.

After you have a Web project created, you can modify the target server using the project's properties dialog. To do this, right-click on the project in the Project Explorer view, and select Properties > Server.

Related tasks
Creating a dynamic Web project