`
zhangjunbao
  • 浏览: 92040 次
  • 性别: Icon_minigender_1
  • 来自: 核桃博客
社区版块
存档分类
最新评论

GAE-修改index.html为index.jsp后遇到http 403错误

阅读更多
作者: 核桃博客  |

网址:http://www.hetaoblog.com/gae-http-403-index-html-to-jsp/

本博客所有文章全部原创,欢迎转载,

但必须以超链接形式标明文章原始出处和作者信息及版权声明

昨天早上将核桃博客GAE站上线后,http://hetaoblog.appspot.com/, 晚上回来继续开发,

其中有一步将war目录下的index.html改成index.jsp以后,

访问http://localhost:8888/

遇到了HTTP 403错误,

HTTP ERROR 403

Problem accessing /. Reason:

FORBIDDEN
Powered by Jetty://

其实问题很简单,web.xml里面的welcome-file-list里面只包含index.html,

<welcome-file-list>

<welcome-file>index.html</welcome-file>

</welcome-file-list>

所以访问http://localhost:8888/index.jsp是可以成功的,

很多时候建项目的时候原来默认的web.xml里面就包含了index.jsp,所以可能有些同学会觉得有点奇怪;

所以,将web.xml改成如下,将index.jsp加进去,记得重启服务器:)

<welcome-file-list>

<welcome-file>index.html</welcome-file>

<welcome-file>index.jsp</welcome-file>

</welcome-file-list>
0
1
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics