开发者

jetty run-war: restarting the server returns 404

I have a maven application and configured the pom.xml to run the mvn jetty. Everythig starts up without errors, but I am always getting 404, and WEB-INF is always empty.

I did mvn开发者_高级运维 clean install and then mvn jetty:run-war.

On restarting the server I always get the 404.

Any suggestion?


Check the path that you are hitting. For example, if your app is named sample-app, depending on your maven config you may need to hit http://localhost:8080/sample-app-SNAPSHOT.0.1 or whatever. The port, the path, all are configurable.

Make sure you are getting the 404 from the right server.

Otherwise, would need to see the pom.xml to be sure.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜