Project Jetty Configuration

Source: Internet
Author: User
Tags parent directory jboss

Jetty is an open-source servlet container, which is a Java-based Web container. Jetty is written in the Java language, and its APIs are published as a set of jar packages. Developers can instantiate a jetty container as an object that can quickly provide network and web connectivity for some Java applications that run independently (Stand-lone).

Prerequisites: Eclipse Luna, JDK8, Jetty9

After you have created the workspace D:\Workspace2 on the D drive, import the entire project through SVN, noting that you cannot select the parent directory when importing the project .

Unzip the downloaded jetty9 onto the D:\Servers\jetty-distribution-9.2.5.v20141112 (same as JBoss directory D:\Servers\jboss-6.1.0.Final_ITNMS).

Configure debug boot or run start, in which the debug configuration

Next, you'll see Jetty Webapp

Point New button or right-click New to create a launch instance, clicking Launch instance to configure

You can see that there are 9 configuration items, namely: Webapp/arguments/options/dependencies/jre/classpath/source/environment/common

First Look at WebApp: The main thing is to set project items, click Browse to select Itnms-web

Arguments main set VM arguments:-dconfig_base= "D:\Workspace2\itnms-web\conf\dev_db"

Options choose to use the jetty, choose your own D plate in the jetty

Add dependencies, add Websocketxxx.jar from Common-lib/lib/compile to global

Choose your own JRE, which is used in JDK8

Classpath, Source, environment do not need to be configured, common main configuration display in Favorites menu displays it in the front end

Try to start the jetty container successfully.

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.