由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - eclipse的jetty服务started但8080口显示404 error
相关主题
用eclipse运行java, 关闭后无相应问题问一个关于Eclipse IDE 的问题
有没有人熟悉tomcat?急!看到一个让我~!@#$%^&*的code
Spring + Jersey 的 REST API, servlet context 能看到 Spring (转载)Java练习题 7
Help with Tomcat for Eclipse v1.03啥时候java spring framework也成了legacy framework了
How does a client find and connect to a specific问个spring问题
anyone use org.gxos package?spring webapplication context initialization hook ?
帮忙看看. Get context variable运行servlet时出现的http status 404问题
我土,怎么得到context root的完整url?初学 Java 的神器 - Eclipse
相关话题的讨论汇总
话题: jetty话题: server话题: 404话题: eclipse话题: error
进入Java版参与讨论
1 (共1页)
g**l
发帖数: 85
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路径或者目录没东西,
但是我不知道怎么配置修改
请教是什么原因
谢谢
t*******e
发帖数: 684
2
Your app failed during deployment stage. If it passed deployment, it could
fail at runtime with 500 error code.
a****i
发帖数: 1182
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.

c*********e
发帖数: 16335
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.

g**l
发帖数: 85
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端口确定没有其它用途?
g**l
发帖数: 85
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 ?

t*******e
发帖数: 684
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路径或者目录没东西,
: 但是我不知道怎么配置修改

g**l
发帖数: 85
8
关键怎么修改呀,很多配置文件的

【在 t*******e 的大作中提到】
: 404code is returned by Jetty.
g*****g
发帖数: 34805
9
The first thing to check is context in your eclipse project configuration.
By default it is /YourApp.
c*********e
发帖数: 16335
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.

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

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

g**l
发帖数: 85
12
去哪里找这个配置呢?关键没有思路

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

c*********e
发帖数: 16335
13
建议重装一次,留心问端口号的地方。

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

1 (共1页)
进入Java版参与讨论
相关主题
初学 Java 的神器 - EclipseHow does a client find and connect to a specific
请教如何学习Javaanyone use org.gxos package?
用惯了glassfish,突然要我用tomcat,真实不习惯。帮忙看看. Get context variable
what is really hard is testing我土,怎么得到context root的完整url?
用eclipse运行java, 关闭后无相应问题问一个关于Eclipse IDE 的问题
有没有人熟悉tomcat?急!看到一个让我~!@#$%^&*的code
Spring + Jersey 的 REST API, servlet context 能看到 Spring (转载)Java练习题 7
Help with Tomcat for Eclipse v1.03啥时候java spring framework也成了legacy framework了
相关话题的讨论汇总
话题: jetty话题: server话题: 404话题: eclipse话题: error