嗨我正在尝试将我的应用程序从WAS 6.0迁移到WAS 8.5,并且代码更改最少。我的应用程序是用WAS8.5不支持的JSF 1.1编写的。我也写过它的getter和setter。此应用程序在WAS6.0/6.1中运行正常,但在WAS8.5中运行时显示异常。所有Jars我必须添加在我的项目中,以便它能够工作。我收到以下例外情况:javax.el.PropertyNotFoundException:找不到类型为com.ui.InfoTemplate的属性'InfoController'
javax.el.ELException: Property 'InfoController' not found on type com.ui.InfoTemplate javax.faces.el.EvaluationException: javax.el.ELException: Property 'InfoController' not found on type com.ui.InfoTemplate
at org.apache.myfaces.el.convert.ValueExpressionToValueBinding.getValue(ValueExpressionToValueBinding.java:169)
at com.utilities.JsfUtility.getManagedBean(JsfUtility.java:107)
at com.ui.LandingPageController.getInfo(LandingPageController.java:92)
Caused by: javax.el.ELException: Property 'InfoController' not found on type com.ui.InfoTemplate
at org.apache.myfaces.el.convert.VariableResolverToELResolver.getValue(VariableResolverToELResolver.java:127)
Caused by: javax.faces.el.EvaluationException: Property 'InfoController' not found on type com.ui.InfoTemplate
at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:80)
Caused by: javax.el.PropertyNotFoundException: Property 'InfoController' not found on type com.ui.InfoTemplate
at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:232)
at javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:209)
可以在堆栈跟踪中对包/类名称进行混淆处理,但只要你还是新来的东西,因此在编辑它们的时候很容易就可以毫不留情地引入新的错误,那么你绝对应该在空白沙箱项目,以便您可以将代码/堆栈跟踪**未修改**复制到问题中。堆栈跟踪本身就代表了整个答案(我们只需要通俗地翻译堆栈跟踪)。如果您在代码或堆栈中编辑一个小东西但却未经实际测试就以错误的方式进行跟踪,那么答案可能会完全消失。 – BalusC 2014-08-27 12:29:52