MyFaces 1.2.8导致Tomcat 6在部署时崩溃 [英] MyFaces 1.2.8 causes Tomcat 6 to crash on deployment

查看:102
本文介绍了MyFaces 1.2.8导致Tomcat 6在部署时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用MyFaces 1.2.8,Facelets 1.1.14构建的JSF应用程序,并通过Eclipse Ganymede中的插件使用Tomcat 6构建了它.

I've got a JSF app built with MyFaces 1.2.8, Facelets 1.1.14 and building it with Tomcat 6 through it's plugin in Eclipse Ganymede.

我刚刚安装了上述库的最新版本,并且在构建时,应用程序部署正常,服务器启动,立即得到以下信息:

I've just installed the latest versions of the above libs and on build, the app deploys ok and the server goes to start and immediately I get this:

javax.servlet.ServletException: javax.crypto.BadPaddingException: Given final block not properly padded

对此内容进行谷歌搜索后将我引向

Googling this one points me towards this page the result of which is to disable the error handling of MyFaces and Facelets using this

    <context-param>
  <param-name>org.apache.myfaces.ERROR_HANDLING</param-name>
  <param-value>false</param-value>
 </context-param>
 <context-param>
  <param-name>facelets.DEVELOPMENT</param-name>
  <param-value>false</param-value>
 </context-param>
 <error-page>
  <exception-type>javax.servlet.ServletException</exception-type>
  <location>/error.jsp</location>
 </error-page> 

最重要的是使用它:

org.apache.myfaces.USE_ENCRYPTION

设置为false.我不想这样做,但是没有其他有用的信息.其他人是否知道是否有解决此问题的方法?我只是最近才从mojarra迁移而来,我不想回去.

set to false. I don't want to do this but there's no other useful info. Does anyone else know whether there's a workaround for this problem? I've only recently migrated from mojarra and I don't want to have to go back.

我们认为会降低MyFaces的工作等级吗?我要尝试一下.

Would downgrading MyFaces work do we think? I'm going to try it.

感谢IA.

推荐答案

在寻找之后,我个人的建议是停止在这种情况下使用MyFaces,安装正确的Mojarra运行时以支持您正在做的项目,确保您正确安装所有罐子(我没有),仔细检查您的facelets配置并阅读手册.使用不同的JSF实现可以解决此问题,但确实可行.

After scouting around, my own suggestion is to desist from using MyFaces in this situation, install the right Mojarra runtime to support the project you're doing, ensure you have all the jars installed correctly (which I didn't), double check your facelets configuration and read the manuals. It's a bit of a workaround using a different JSF implementation but it worked.

这篇关于MyFaces 1.2.8导致Tomcat 6在部署时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆