博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
JSF Note
阅读量:6711 次
发布时间:2019-06-25

本文共 1142 字,大约阅读时间需要 3 分钟。

Exception One:
 
InBlock.gifjava.lang.RuntimeException: Cannot find FacesContext 

 
This reason main locate at your web.xml, beacuse jsf will use FacesServlet to connect jsf/faces  and jsp, so when load the jsp directly, it will be show this exception.
 
The resolve main have three ways, in here just talk one of them, which is use another page like home.jsp and in it have the code like
 
<jsp:forward page=
"index.jsf" />
  
and web.xml default file point to home.jsp, in other word, use 
home.jsp to redirect to httpdRequest to jsf or faces.
 
 
Exception Two:
 
Unable to create managed bean
 
It may appear in some eclipse users, at first, please see your .war package, wether the class real exist!! because the exception tell you which not be found.
 
And i guess you are using eclipse and jboss, so take a look at  your JSF project, there are an ant directory, which include bulid.properties and build.xml, so you should use ant to build your project then deploy the war to container.
 
Ok, this time i think everything will be ok, if you still have  problem, tell me by msn:danni-505@hotmail.com
    本文转自danni505 51CTO博客,原文链接:http://blog.51cto.com/danni505/162913,如需转载请自行联系原作者
你可能感兴趣的文章
张家口a货翡翠,梧州a货翡翠
查看>>
JS Object的静态方法汇总( 上 )
查看>>
到手机里面去点击信任就行了。每次都是这样出错。
查看>>
java B2B2C Springcloud多租户电子商城系统-Eureka服务端与客户端常用配置
查看>>
(十一)java版b2b2c社交电商spring cloud分布式微服务-docker部署spring cloud项目
查看>>
jvm疯狂吞占内存,罪魁祸首是谁?
查看>>
表格存储Tablestore权威指南(持续更新)
查看>>
java B2B2C源码电子商城系统-Kafka快速入门
查看>>
Spring Cloud云服务 - HongHu架构common-service 项目构建过程
查看>>
hadoop中hive原理及安装
查看>>
pear默认安装后一个小bug
查看>>
我的友情链接
查看>>
nginx-通过Nginx统计当前每个域名流量
查看>>
家庭电路 功率和负荷
查看>>
SECURITY-Dockerfile写法
查看>>
openGL坐标系
查看>>
vim
查看>>
Intelij idea 不能解析jsp内置对象
查看>>
C中调用C++函数
查看>>
spring boot 1.5.4 之web开发(三)
查看>>