JSF 2 和 Websphere 7.0 不想运行
我在使用 JSF2 和 websphere 7.0 时遇到一些问题。我在互联网上搜索过但一无所获。事情看起来是 websphere 放置了它的 1.2 库并覆盖了我的 2.0 库。该应用程序在 apache-tomcat 中工作正常
最重要的是,当我尝试获取 xhtml 页面(使用简单的 html 应用程序可以工作,问题出在 jsf)时,服务器显示错误:
找不到工厂:javax.faces。 context.FacesContextFactory
我读到我必须在类加载器部分使用“父级最后”选项,但它不起作用。然后我转到Web模块属性上的jsp和jsf选项,在那里我可以在Sun参考实现1.2和MyFaces 1.2之间进行选择,选择了sun,所以我选择了myfaces,现在错误是另一个:如果我尝试去到“something.xhtml”,它重定向到“something.jsf”,它不存在..
有什么想法吗?
谢谢!
I am having some trouble with JSF2 and websphere 7.0. I have searched in the internet but nothing. The thing looks to be that websphere puts its 1.2 libraries and override my 2.0 libs. The app is working fine in apache-tomcat
Thirst of all, when i try to get an xhtml page (with simple html the app works, the problem is with jsf) the server shows the error:
could not find factory: javax.faces.context.FacesContextFactory
i've read that i had to use the "parent last" option in the class loader section, but it didn't worked. Then i went to jsp and jsf options on the web module properties, and there i can choose between Sun reference implementation 1.2 and MyFaces 1.2, the sun was selected, so i choose myfaces and now the error is another one: if i try to go to "something.xhtml", it redirects to "something.jsf", which doesn't exists..
any idea?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您似乎没有在类路径中包含 JSF 实现。
我是这样解决的。
使用以下库:javax.faces-2.1.7.jar
如果您使用的是 PrimeFaces 3.1:primefaces-3.1.1.jar
应用程序服务器实例:Class正在加载 - 父级最后
企业应用程序实例(war 模块):类加载 - 父级最后
确保删除所有 Servlet 容器库,例如 Tomcat 所需的库。
It seems that you didn't include the JSF implementation on your classpath.
Here's how I solved it.
Use the following library: javax.faces-2.1.7.jar
If you are on PrimeFaces 3.1: primefaces-3.1.1.jar
Application Server instance: Class Loading - Parent Last
Enterprise Application instance (war Module): Class Loading - Parent Last
Make sure to remove all Servlet Container libraries such as those needed by Tomcat.