My jetty context xml looks like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
**<Set name="contextPath">/</Set>**
<Set name="war"><SystemProperty name="jetty.home" default="."/>/../core.war</Set>
</Configure>
My rail server talks to jetty. However, the I get some "server errors"
But when I change the contextPath as follows, then it works:
**<Set name="contextPath">/foo</Set>**
Could you please tell me why root context is not working?
尝试将其命名为root.xml和您的war文件root.war
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.