Project instance and debugging operations started by Jetty Start

Start command:

java -jar %JETTY_HOME%/start.jar (in the base directory or home directory Execution)

Description: %JETTY_HOME% is an environment variable, the value is jetty home directory: \jetty-distribution-9.2.13. v20150730\jetty-distribution-9.2.13.v20150730

Startup source code:

https://github.com/eclipse/jetty.project/tree/04019675f6457d773d5693392ec50f21fc033e93

next jetty-start/src folder

dependencyjar package:

javax.servlet-api-3.1 .0.jar

jcommander-1.48.jar

jetty-deploy-9.2.13.v20150730.jar

jetty-http-9.2.13.v20150730.jar

jetty-io-9.2.13.v20150730.jar

jetty-security-9.2.13.v20150730.jar

jetty-server-9.2.13.v20150730.jar

jetty-servlet-9.2.13.v20150730.jar

jetty-servlets-9.2.13.v20150730.jar

jetty-test-helper-4.0.jar

jetty-util- 9.2.13.v20150730.jar

jetty-webapp-9.2.13.v20150730.jar

jetty-xml-9.2.13. v20150730.jar

testng-6.11.jar

Start code execution steps:

1, New For java application project, copy the contents of the src\main\java directory to src

2, Importjar package

3, Generate the base directory under the project root directory, and place the main directory of jetty (\Jetty\jetty-distribution-9.2.13.v20150730\jetty-distribution-9.2.13.v20150730) modules and files under etc are copied here

1) Environment variables JETTY_HOME =

D:\soft\ jetty\jetty-distribution-9.2.13.v20150730\jetty-distribution-9.2.13.v20150730

download link: http://central.maven.org/maven2/org/eclipse/jetty/jetty-distribution/

select the appropriate Version, such as this time: 9.2.13.v20150730

2) java -jar %JETTY_HOME%/start.jar –add-to-startd=http,deploy

Reason: Start jetty.home and jetty.base directories are required, if not, it is the default current directory. Since the operating parameters do not want to be added, so execute it first.

Because it is defaulted in the projectjetty version= 0 At present, I don’t know where to change this parameter. Modify the code first, and write this version directly as 9.2 in use.

. If you don’t know, you will be prompted directly to the fourth step.

Location:

Org. eclipse.jetty.start.StartArgsClass

String ver = System.getProperty(“jetty.version”,null);This line is changed to

String ver = System.getProperty(“jetty.version”,”9.2″);

4, Execute main parameter–debug

Project directory:

< br>

5, After successful startup, visitlocalhost:8080

6, If you want a default project, please

jetty-distribution-9.2.13.v20150730\jetty-distribution-9.2.13.v20150730\demo-base\webapps\root copy to the webapps folder in the project.

Jar package free download address

http://download.csdn.net/detail/zangge2009 /9901000

Description: The web configuration file used by the server is in

start (project root directory)\etc\webdefault.xml inside

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4528 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.