Chinaunix首页 | 论坛 | 博客
  • 博客访问: 76730
  • 博文数量: 17
  • 博客积分: 570
  • 博客等级: 中士
  • 技术积分: 180
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-15 20:08
文章分类

全部博文(17)

文章存档

2009年(4)

2008年(3)

2007年(2)

2006年(8)

我的朋友

分类: Java

2007-02-28 10:43:20

    最近在看 <>,同时在学用NetBean5.5(我已经受不了Eclipse了,呵呵)!
第一个HelloWorld程序就给我了个下马威:
java.lang.IllegalStateException: No FacesContext is available to process this request. This is most likely due to the request being sent to the wrong path.
 
google了一下,很容易就解决了问题!
JSF默认的Servlet mapping 是/faces/*, 但是默认的welcome page是index.jsp,把welcome page 改成 /faces/index.jsp
或者在index.jsp文件里就写这么一行 : 

阅读(852) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~