Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java EE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 让jsf运行在resin上--需要你的关注
linux_china



版主


发贴: 752
积分: 240
于 2004-04-02 20:18 user profilesend a private message to usersend email to linux_chinasearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
JavaServer Faces v1.0 Reference Implementation 已经发布啦,在JWSDP可以成功实践通过,但是一直想在resin进行测试开发,毕竟resin比较方便(个人感觉)。但是jsf带的example一直在resin下无法运行。 我自己琢磨了一下,以下方法可以通过,但还是有点问题,大侠们得帮我看看啦! Smile
以下是我的实施步骤:
1 下载jsf的参考实现 http://java.sun.com/j2ee/javaserverfaces/download.html
2 修改resin的lib目录下resin.jar文件,对resin.jar中的/META-INF/services下的文件进行相应的修改。
javax.xml.parsers.SAXParserFactory 文件内容为 org.apache.xerces.jaxp.SAXParserFactoryImpl
javax.xml.parsers.DocumentBuilderFactory 文件内容为 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
3 将jsf的应用的web.xml文件中添加:

<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>

4 去除jsf应用中lib目录下的jstl.jar和standard.jar(没有用啦,resin有啦),留着还会报错 Smile
5 将apache的xerces的开发包拷贝到resin的lib目录下,运行你的jsf的应用吧。
以上的步骤在resin-3.0.7下成功运行jsf-guessNumber,不过还有个问题,当jsp页面中包含commandButton时,会有错误。错误代码如下:
Validation error. "h:commandButton" must have value or image attributes.
希望大家试用一下帮忙解决最后这个错误。 Smile


linux_china edited on 2004-04-03 19:45

作者 Re:让jsf运行在resin上--需要你的关注 [Re:linux_china]
阿熊



发贴: 0
积分: 0
于 2004-04-06 09:33 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这个可以到resin官方看看
好象还没有解决



作者 Re:让jsf运行在resin上--需要你的关注 [Re:zua]
linux_china



版主


发贴: 752
积分: 240
于 2004-04-06 10:02 user profilesend a private message to usersend email to linux_chinasearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
resin的官方网站好像也没结果。
昨天下载了jsf 1.0的源码,想参考一下查询原因,好像jsf的源码不够完善,有些代码没有,如CommandButton,有空在想想啦,再去resin上查查! Smile




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923