java - Running .war files with Jetty -


i'm struggling creating basic of examples of running jetty application , launching .war package @ same time. find says put .war in "$jetty_home/webapps", i'm not sure how verify "$jetty_home" is. i'm trying extend simple heroku default application found @ https://github.com/heroku/java-getting-started.git. directory structure:

src/ -- main/ ---- java/ ------ main.java target/ -- (lots of stuff in here) pom.xml procfile webapps/ -- workbench.war 

i run application java -cp target/classes:target/dependency/* main.

main.java identical to: https://raw.githubusercontent.com/heroku/java-getting-started/master/src/main/java/main.java.

how can application run .war files? whenever visit localhost:5000/workbench see "hello world" should seeing workbench application contained in workbench.war.

i guess trying run jetty embeded in application, , want serve war file. check link http://www.eclipse.org/jetty/documentation/current/embedded-examples.html#embedded-one-webapp


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -