Redian新闻
>
eclipse的jetty服务started但8080口显示404 error
avatar
eclipse的jetty服务started但8080口显示404 error# Java - 爪哇娇娃
g*l
1
Error 404 - Not Found.
No context on this server matched or handled this request.
Contexts known to this server are:
确实没有其他地方用8080,
我再terminal在jetty的目录中用命令java -jar start.jar 启动jetty就能正常打开页面
但是在eclipse种的jetty用started启动(其实在eclipse中装jetty server的时候也问
过jetty server的目录) 跟terminal中一个目录,只不过又在eclipse中设置了一下,
就出现打开页面时的 404错误
Error 404 - Not Found.
No context on this server matched or handled this request.
Contexts known to this server are:
好像jetty的服务还是起来了
就是context路径或者目录没东西,
但是我不知道怎么配置修改
请教是什么原因
谢谢
avatar
t*e
2
Your app failed during deployment stage. If it passed deployment, it could
fail at runtime with 500 error code.
avatar
a*i
3
404 I think the first thing need be checked is the URL
is it correctly pointing to your application?
what happens if you type http://localhost:8080 ?

【在 t*******e 的大作中提到】
: Your app failed during deployment stage. If it passed deployment, it could
: fail at runtime with 500 error code.

avatar
c*e
4
8080端口确定没有其它用途?

【在 g**l 的大作中提到】
: Error 404 - Not Found.
: No context on this server matched or handled this request.
: Contexts known to this server are:
: 确实没有其他地方用8080,
: 我再terminal在jetty的目录中用命令java -jar start.jar 启动jetty就能正常打开页面
: 但是在eclipse种的jetty用started启动(其实在eclipse中装jetty server的时候也问
: 过jetty server的目录) 跟terminal中一个目录,只不过又在eclipse中设置了一下,
: 就出现打开页面时的 404错误
: Error 404 - Not Found.
: No context on this server matched or handled this request.

avatar
g*l
5
确实没有其他地方用8080,
我再terminal在jetty的目录中用命令java -jar start.jar 启动jetty就能正常打开页面
但是在eclipse种的jetty用started启动(其实在eclipse中装jetty server的时候也问
过jetty server的目录) 跟terminal中一个目录,只不过又在eclipse中设置了一下,
就出现打开页面时的 404错误
Error 404 - Not Found.
No context on this server matched or handled this request.
Contexts known to this server are:
好像jetty的服务还是起来了
就是context路径或者目录没东西,
但是我不知道怎么配置修改
谢谢

【在 c*********e 的大作中提到】
: 8080端口确定没有其它用途?
avatar
g*l
6
http://localhost:8080就是显示这个结果
Error 404 - Not Found.
No context on this server matched or handled this request.
Contexts known to this server are:
好像jetty的服务还是起来了
就是context路径或者目录没东西,
但是我不知道怎么配置修改

【在 a****i 的大作中提到】
: 404 I think the first thing need be checked is the URL
: is it correctly pointing to your application?
: what happens if you type http://localhost:8080 ?

avatar
t*e
7
404code is returned by Jetty.

【在 g**l 的大作中提到】
: http://localhost:8080就是显示这个结果
: Error 404 - Not Found.
: No context on this server matched or handled this request.
: Contexts known to this server are:
: 好像jetty的服务还是起来了
: 就是context路径或者目录没东西,
: 但是我不知道怎么配置修改

avatar
g*l
8
关键怎么修改呀,很多配置文件的

【在 t*******e 的大作中提到】
: 404code is returned by Jetty.
avatar
g*g
9
The first thing to check is context in your eclipse project configuration.
By default it is /YourApp.
avatar
c*e
10
装jetty server的时候,有没有问过端口号码?

页面

【在 g**l 的大作中提到】
: Error 404 - Not Found.
: No context on this server matched or handled this request.
: Contexts known to this server are:
: 确实没有其他地方用8080,
: 我再terminal在jetty的目录中用命令java -jar start.jar 启动jetty就能正常打开页面
: 但是在eclipse种的jetty用started启动(其实在eclipse中装jetty server的时候也问
: 过jetty server的目录) 跟terminal中一个目录,只不过又在eclipse中设置了一下,
: 就出现打开页面时的 404错误
: Error 404 - Not Found.
: No context on this server matched or handled this request.

avatar
g*l
11
问没问忘了,现在就是不知道主要查哪几个配置文件和目录,没有思路,
端口号是否对怎么查呢?
谢谢

【在 c*********e 的大作中提到】
: 装jetty server的时候,有没有问过端口号码?
:
: 页面

avatar
g*l
12
去哪里找这个配置呢?关键没有思路

【在 g*****g 的大作中提到】
: The first thing to check is context in your eclipse project configuration.
: By default it is /YourApp.

avatar
c*e
13
建议重装一次,留心问端口号的地方。

【在 g**l 的大作中提到】
: 问没问忘了,现在就是不知道主要查哪几个配置文件和目录,没有思路,
: 端口号是否对怎么查呢?
: 谢谢

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。