After the installation version Jetty-9.4.6 starts the service, you cannot find the resource files under Web-INF in the deployment project.

Because of the first contact with jetty, when deploying the project, follow the online steps to put the war package of the previous project

in the installation directory under webapps.

But after starting, the console always prompts an error message, as follows:

java.io.FileNotFoundException: E:\jetty-9.4.6\resources\WEB-INF\allowPath. xml (The system cannot find the specified path.)

Note: allowPath.xml is the configuration file under WEB-INF in my project

I have found many possible solutions on the Internet. But none of them succeeded, which may be different from my situation.

After that, I tried to read the relevant documents on the official website, and finally found a solution.

Find the start.ini file in the installation directory, find the “–module=resources” information, and comment out this configuration, restart it, and it can run normally.

Official website document:

Chapter 9. Starting Jetty

Managing Server Classpath

In this chapter, there is an introduction about The role of –module=resources, you can look at

By the way, look at the previous part, Managing Jetty Base and Jetty Home, to help understand!


This problem took a long time to solve , I hope to help some friends!

It seems necessary to study the content on the official website!





Leave a Comment

Your email address will not be published.