当我尝试在Debian 9上的Jetty上部署我的战争时出现错误404 [英] Error 404 when I try to deploy my war on Jetty on Debian 9

查看:182
本文介绍了当我尝试在Debian 9上的Jetty上部署我的战争时出现错误404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Debian在线服务器上部署我的java网站。为此,我安装了Jetty(在此之后:



我试图将其放入opt中/ jetty / webapps和opt / web / mam / webapps



但当我尝试通过 http:// myipaddress / test ,我收到了404错误。



我用curl命令尝试了命令行,我也收到了404错误。



我知道这是基本的,但是我被阻止了..



我怎么能确定我的战争没事?我如何确定我的码头配置是否合适?



谢谢

解决方案

我通过删除码头安装修复了它重新安装它。我把我的WAR放在opt / jetty / webapps中。


I'm trying to deploy my java web site on a Debian online server. For that, I install Jetty (following this : http://zetcode.com/java/jetty/install/)

Jetty seems to be ok on the server because when I enter http://myipaddress:8080. I have the "Welcome to Jetty".

Then, I use Filezilla to upload my war on the server. I compile my war with Eclipse and Maven :

<groupId>com.example</groupId>
<artifactId>test</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>test</name>

I compile it with mvn clean package. I had my war file. And I put it on the server :

I tried to put it in opt/jetty/webapps and opt/web/mam/webapps

But when I tried to access to my web site by doing http://myipaddress/test, I received a 404 error.

And I tried my command line with the curl command, I received an 404 error too.

I know it's basic, but I'm blocked..

How can I be sure that my war is ok? How can I be sure that my jetty configuration is ok?

Thanks

解决方案

I fixed it by deleting the jetty installation and reinstall it. I put my WAR in the opt/jetty/webapps.

这篇关于当我尝试在Debian 9上的Jetty上部署我的战争时出现错误404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆