In Tomcat, I placed an .xml file to configure the context in $CATALINA_HOME/conf/Catalina/localhost:
< Context path="/CurrencyServlet" docBase="/Users/macbook/Desktop/School/Java/Temp/CurrencyServlet.war" debug="0" privileged="true"/>
Anyone can Provide a simple example for Jetty 9?
Look at the documentation: http://www.eclipse.org/jetty/documentation/current/configuring- contexts.html
This is how you configure the webapp path:
/webapps/test
I want to point to my external .war (outside the webapps folder) context by setting .war file is deployed to Jetty. I know how to do this in Tomcat, but I can’t figure out how to do it for Jetty 9.
In Tomcat, I put an .xml File to configure the context in $CATALINA_HOME / conf / Catalina / localhost:
Can anyone provide a simple example for Jetty 9?
Look at the provided $jetty_home/webapps/test.xml file. In jetty9, you can do this by placing the ContextProvider configuration file in $jetty_home/webapps Configure your webapps etc.
Look at the documentation: http://www.eclipse.org/jetty/documentation/current/configuring-contexts.html
This is How you configure the webapp path:
/webapps/test< /Set>