Deployment – Context of an external directory in Jetty 9

I want to deploy the .war file to Jetty by setting a context pointing to my external .war (outside the webapps folder). I know how to do this in Tomcat, but I Can’t figure out how to do this for Jetty 9.

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?

Take a look at the provided $jetty_home / webapps / test.xml file. In jetty9, you can Configure your webapps, etc. by placing the ContextProvider configuration file in $jetty_home/webapps.

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>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 472 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.