<html><head><title>Apache Tomcat/8.0.0-RC1 - Error report</title><style><!--H1 {... 解决
2017-04-13 13:23
567 查看
maven/Java/web/bootstrapQQ群:566862629。希望更多人一起帮助我学习。
1.报错:<html><head><title>Apache Tomcat/8.0.0-RC1 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /richer/getOnLineRicherCount</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/richer/getOnLineRicherCount</u></p><p><b>description</b>
<u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/8.0.0-RC1</h3></body></html>
2. 用jetty 就可以运行,用tomcat就报这个错
jetty是默认访问的根路径,请求不用写工程名,而tomcat是默认带上工程名,是我的请求访问路径错了,我把工程名加上就OK了。
当然,我想把tomcat 也设置为请求不带工程名访问也是可以解决这个问题的吧。
2)参数不对:
我的第2种情况是:参数不对,参数要求一定要2个,我只传了1个。
1.报错:<html><head><title>Apache Tomcat/8.0.0-RC1 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /richer/getOnLineRicherCount</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/richer/getOnLineRicherCount</u></p><p><b>description</b>
<u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/8.0.0-RC1</h3></body></html>
2. 用jetty 就可以运行,用tomcat就报这个错
3. 原因和解决:
1)请求访问路径错了:jetty是默认访问的根路径,请求不用写工程名,而tomcat是默认带上工程名,是我的请求访问路径错了,我把工程名加上就OK了。
当然,我想把tomcat 也设置为请求不带工程名访问也是可以解决这个问题的吧。
2)参数不对:
我的第2种情况是:参数不对,参数要求一定要2个,我只传了1个。
相关文章推荐
- comet4j集成项目报错JSON转换异常:html><head><title>Apache ....问题的解决
- HTML文件基本标记(一)-<head>、<title>、<meta>
- HTML 头标签的 <title> <base> <meta> <link> <script> 的内容意思
- 在JS里面,取struts的<html:form>标签里面的<html:text property="title"/>值
- Android中出现Error:In <declare-styleable> FontFamilyFont, unable to find attribute android:font 解决办法
- <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing异常解决
- 苹果iPhone连接wifi就进去www.apple.com主页 下边显示 <HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>Success</BODY>
- ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing异常解决
- 苹果iPhone连接wifi就进去www.apple.com主页 下边显示 <HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>Success</BODY>
- JavaScript写在Html页面的<head></head>中
- android项目报错 org.JSONException:Value<html><head><title>Apache of type java.lang.String.
- 优化网站提高搜索:首页html代码的<head>和</head>之间的内容
- 关于html中charset与<title>位置不同页面空白的问题及解决方法
- asp.net页面间传值的几种方法 表单提交 传送页面代码 复制代码 <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server
- <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>js考试</title> </head> <script t
- 解决struts中<html:form>提交中文时乱码问题
- mvc3 在后台添加html时 如何让html中的<a></a> 链接点击有效果
- Binary XML file line : Error inflating class <unknown> 解决