jetty 9 symlink to exploded war -


i've upped jetty 9 8 , have odd issue. development environment exploded war, drop symlink (root) jetty/webapps directory pointing exploded war. worked fine jetty 8, seems fail jetty 9.

first, symlink 'root', per documentation. when hit server '/' gives me 404 , this:

error 404 - not found.  no context on server matched or handled request. contexts known server are: /war ---> o.e.j.w.webappcontext@613714d3{/war,file:/home/george/git/s/web_app/war/,available}{/home/george/git/s/web_app/war} 

meaning can find application served under '/war' instead of '/'. wacky.

this due host of changes, pointing @ use of java 7 , requirements more recent servlet specs.

easy enough fix situation tho.

  1. don't use os symlinks.
  2. create file called ${jetty.home}/webapps/mywebapp.xml following contents
<?xml version="1.0"  encoding="iso-8859-1"?> <!doctype configure public "-//jetty//configure//en"       "http://www.eclipse.org/jetty/configure_9_0.dtd">  <configure class="org.eclipse.jetty.webapp.webappcontext">   <set name="contextpath">/</set>   <set name="war">/home/george/git/s/web_app/war/</set> </configure> 

all done, using jetty deployable xml descriptor sets contextpath / (aka servlet spec root) , pointing war want deploy.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -