java - Why can't I access APIs deployed in a newly created Jetty base directory? -
i using jetty server apps. have web app, , when deploy in ${jetty_home}/webapps
, works fine: can access apis have created locally , remotely.
but when create new jetty base directory, , deploy web app there, cannot access these apis , 404 error.
any idea things might have done incorrectly? new in web development, appreciated.
update:
these steps did when created new jetty base directory:
mkdir /opt/web cd /opt/web java -jar $jetty_home/start.jar --add-to-start=http,deploy
then placed war file in /opt/web/webapps
. new jetty base directory, started server with
java -jar $jetty_home/start.jar jetty.port=8000
this log when server started.
warning: property jetty.port in <command-line> set in /opt/web/start.ini 2015-05-14 12:11:49.973:info::main: logging initialized @659ms 2015-05-14 12:11:50.278:info:oejs.server:main: jetty-9.2.10.v20150310 2015-05-14 12:11:50.310:info:oejdp.scanningappprovider:main: deployment monitor [file:/opt/web/webapps/] @ interval 1 2015-05-14 12:11:51.271:info:oejw.standarddescriptorprocessor:main: no jsp support /myapi, did not find org.eclipse.jetty.jsp.jettyjspservlet 2015-05-14 12:11:51.305:info:oejsh.contexthandler:main: started o.e.j.w.webappcontext@47cdc2ce{/myapi,file:/tmp/jetty-0.0.0.0-8000-myapi.war-myapi-any-1456158384990153592.dir/webapp/,available}{/myapi.war} 2015-05-14 12:11:51.328:info:oejs.serverconnector:main: started serverconnector@5171c41f{http/1.1}{0.0.0.0:8000} 2015-05-14 12:11:51.329:info:oejs.server:main: started @2015ms
Comments
Post a Comment