java - Jetty9 - Jetty is not running from a separate {jetty.base} -


i see following warning while starting jetty9 server service. have no idea this.

warn:oejs.homebasewarning:main: instance of jetty not running separate {jetty.base} directory, not recommended. see documentation @ http://www.eclipse.org/jetty/documentation/current/startup.html

jetty recommends run instances of jetty not jetty.home distribution folder directly jetty.base folder should defined separatedly

1. see chapter declaring jetty base here:

http://www.eclipse.org/jetty/documentation/current/startup-base-and-home.html

the jetty distribution's start.jar component manages behavior of separation.

the jetty start.jar , xml files assume both ${jetty.home} , ${jetty.base} defined when starting jetty.

you can opt manually define ${jetty.home} , ${jetty.base} directories, such this:

 [jetty-distribution-9.3.7.v20160115]$ pwd  /home/user/jetty-distribution-9.3.7.v20160115  [jetty-distribution-9.3.7.v20160115]$ java -jar start.jar \      jetty.home=/home/user/jetty-distribution-9.3.7.v20160115 \      jetty.base=/home/user/my-base 2013-10-16 09:08:47.802:info:oejs.server:main: jetty-9.3.7.v20160115 2013-10-16  09:08:47.817:info:oejdp.scanningappprovider:main: deployment monitor  [file:/home/user/my-base/webapps/] @ interval 1 ... 

or can declare 1 directory , let other 1 discovered.

the following example uses default discovery of ${jetty.home} using parent directory of wherever start.jar is, , manual declaration of ${jetty.base}.

 [jetty-distribution-9.3.7.v20160115]$ pwd  /home/user/jetty-distribution-9.3.7.v20160115  [jetty-distribution-9.3.7.v20160115]$ java -jar start.jar  jetty.base=/home/user/my-base 2013-10-16  09:08:47.802:info:oejs.server:main: jetty-9.3.7.v20160115 2013-10-16  09:08:47.817:info:oejdp.scanningappprovider:main: deployment monitor  [file:/home/user/my-base/webapps/] @ interval 1 ... 

but jetty recommends start jetty sitting in directory ${jetty.base} , starting jetty referencing start.jar remotely.

2. ... , creating new jetty base here:

http://www.eclipse.org/jetty/documentation/current/quickstart-running-jetty.html

the demo-base directory described above example of jetty.base mechanism added in jetty 9.1. jetty base allows configuration , web applications of server instance stored separately jetty distribution, upgrades can done minimal disruption. jetty's default configuration based on 2 properties: jetty.home property defines location of jetty distribution, libs, default modules , default xml files (typically start.jar, lib, etc) jetty.base property defines location of specific instance of jetty server, configuration, logs , web applications (typically start.ini, start.d, logs , webapps) jetty.home , jetty.base properties may explicitly set on command line, or can inferred environment if used commands like:

 cd $jetty_base  java -jar $jetty_home/start.jar 

the following commands: create new base directory; enables http connector , web application deployer; copies demo webapp deployed:

 jetty_base=/tmp/mybase  mkdir $jetty_base  cd $jetty_base  java -jar $jetty_home/start.jar warning: nothing start, exiting ...  usage: java -jar start.jar [options] [properties] [configs]        java -jar start.jar --help  # more information  > java -jar $jetty_home/start.jar --add-to-startd=http,deploy info: server          initialised (transitively) in ${jetty.base}/start.d/server.ini info: http            initialised in ${jetty.base}/start.d/http.ini info: security        initialised (transitively) in ${jetty.base}/start.d/security.ini info: servlet         initialised (transitively) in ${jetty.base}/start.d/servlet.ini info: webapp          initialised (transitively) in ${jetty.base}/start.d/webapp.ini info: deploy          initialised in ${jetty.base}/start.d/deploy.ini mkdir: ${jetty.base}/webapps info: base directory modified > cp $jetty_home/demo-base/webapps/async-rest.war webapps/root.war > java -jar $jetty_home/start.jar 2015-06-04 11:10:16.286:info::main: logging initialized @274ms 2015-06-04 11:10:16.440:info:oejs.server:main: jetty-9.3.0.v20150601 2015-06-04 11:10:16.460:info:oejdp.scanningappprovider:main: deployment monitor [file:///tmp/mybase/webapps/] @ interval 1 2015-06-04 11:10:16.581:warn::main: async-rest webapp deployed. not use in production! 2015-06-04 11:10:16.589:info:oejw.standarddescriptorprocessor:main: no jsp support /, did not find org.eclipse.jetty.jsp.jettyjspservlet 2015-06-04 11:10:16.628:info:oejsh.contexthandler:main: started o.e.j.w.webappcontext@1a407d53{/,[file:///tmp/jetty-0.0.0.0-8080-root.war-_-any-4510228025526425427.dir/webapp/, jar:file:///tmp/jetty-0.0.0.0-8080-root.war-_-any-4510228025526425427.dir/webapp/web-inf/lib/example-async-rest-jar-9.3.0.v20150601.jar!/meta-inf/resources],available}{/root.war} 2015-06-04 11:10:16.645:info:oejs.serverconnector:main: started serverconnector@3abbfa04{http/1.1,[http/1.1]}{0.0.0.0:8080} 2015-06-04 11:10:16.646:info:oejs.server:main: started @634ms 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -