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.