MyEclipse Application Server Getting Started Guide (bottom)

Source: Internet
Author: User
Tags tomcat server

In the application server Getting Started Guide (top) article, the small section describes how MyEclipse defines a new application server, installs third-party servers, and deploys JEE projects to application servers. The next small series for you to introduce another three content, hope to help everyone.

4. Applications published on the server

All deployment projects are published synchronously on the server-associated resource file. When you add a project to a server, either during server configuration or after that, the project cannot be published on the server. A publication can take advantage of a server to complete a run or stop. When you start the server, the deployed application is automatically synchronized by default. If the application is not synchronized, the server view displays the status of the republish. You can change the actions that are published in the default server configuration file.

Note : When you deploy a project by using Run as (or debug as) >myeclipse Server application, the project is deployed at the same time that it is published.

To publish an application on a server, select a server in the server view, and then click Tools on the Server View toolbar.

When you delete a project from a running server, the publication automatically occurs and the project is eliminated, and the deployment is synchronized in other projects in the server. If you want to delete an item when the server is stopped, it is technically not removed from the server until the server restarts or you manually publish it to the server before it is deleted.

Changes to the publishing project are synchronized to the application server. If you want to redeploy, you can right-click the server from the menu and choose Clean (redeploy). Use the clean operation to remove all deployed applications and redeploy the project.

5. Application Server run and debug

From the server view, click the appropriate icon to start the server selected in run mode, or click the icon to start the selected server in debug mode. Also, click the drop-down arrow on the MyEclipse toolbar and select [Your Server]>start,debug, or profile (if applicable) from the menu.

Start the application server from the toolbar

The application server connection redirects the output and error flow of the application server to the console view. Displays the successful launch of Tomcat.

The Tomcat process started successfully5.1 Open a Web project deployed in a browser

After you deploy the project, open the server view to start the Web application. Right-click the deployed Web project or Web module (if it is part of an ear), and then select Open Web Browser.

To open a project deployment in a browser

This action allows you to not have to remember the URL of the application, which is usually as follows:

http://< Host name >:< default port >/< Project site root directory >

You do not have to remember the port or hostname that is running on the server, and by using an open browser operation, the correct URL is automatically opened in the MyEclipse Web browser.

Items displayed in the browser are applied5.2 Debugging the deployed application

MyEclipse expands the debug platform of Eclipse and supports JSP breakpoint debugging operations. Debugging Java applications that have deployed JEE applications similar to debugging standards.

Either the Java or JSP source Editor, you enter a breakpoint on the left. During this time, when the application executes to a breakpoint, the debug perspective is called and the debug information is displayed. When a breakpoint is stopped, the application server must start and enable and execute breakpoints in debug mode. For more information on debugging applications, see JavaScript development and debugging.

JSP Debugging session5.3 Stopping the application server

In the server view, click Execute to terminate the server. Alternatively, click the drop-down arrow on the main toolbar and select [Your server]>stop. The connector for the application server begins to perform a shutdown process on an instance of the application server.

Start Tomcat shutdown

When the application server terminates, you can observe the termination of the thread of the application server process. In many cases, the shutdown information for a process is output from the application server to the console view. Describes a successful tomcat server that shuts down. Note that the thread for the Tomcat process has been terminated.

Tomcat off6. Configure your work with a custom service connector

Sometimes, you may need another configuration to start the application server. In this case, you can use a custom launch configuration to create a server instance. You can configure multiple service connectors on the same server.

(1) With the same runtime environment setting, a new server is defined for the preconfigured server type.

(2) In the server view, double-click the new server to open the server configuration.

View server Configuration

(3) Click to open the Launch configuration link.

(4) Customize the details of various startup needs and click OK.

Launch Configuration window

You now have a specific boot configuration when you deploy the project to the server.

Server View customizing the startup configuration of JBoss

MyEclipse official Chinese online line, welcome to download Communication!

MyEclipse Application Server Getting Started Guide (bottom)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.