在 jboss 6.1.1 中出现错误"Exception while calling encodeEnd on component",但在 jboss 4.2 中运行良好



我的项目(jsf1.2与Richfaces 3.3.4)在JBoss 4.2中运行良好,使用以下jar文件.

acegi-security-1.0.6.jar        
activation.jar      
apache-mime4j-0.6.jar       
BPMTest.jar     
commons-beanutils-1.8.3.jar     
commons-codec-1.3.jar       
commons-collections-3.2.jar     
commons-dbcp.jar        
commons-digester-1.8.jar        
commons-discovery-0.4.jar       
commons-el.jar      
commons-fileupload-1.0.jar      
commons-httpclient-3.1.jar      
commons-io-1.0.jar      
commons-io-1.4.jar      
commons-lang-2.4.jar        
commons-logging-1.1.1.jar       
commons-pool-1.2.jar        
iText-2.1.3.jar     
javax.xml.stream-1.0.1.jar      
jaxb-xjc.jar        
jaxrs-api-1.1-RC2.jar       
jaxrs-api-1.1.GA.jar        
jsfExt.jar      
jsp-api.jar     
jsr173_1.0_api.jar      
jsr181-api.jar      
jxl.jar     
mail.jar        
myfaces-api-1.2.12.jar      
myfaces-impl-1.2.12.jar     
oscache-2.3.2.jar       
resolver.jar        
resteasy-jaxb-provider-1.1-RC2.jar      
resteasy-jaxb-provider-1.1.GA.jar       
resteasy-jaxrs-1.1-RC2.jar      
resteasy-jaxrs-1.1.GA.jar       
resteasy-spring-1.1-RC2.jar     
resteasy-spring-1.1.GA.jar      
richfaces-api-3.3.4.Final.jar       
richfaces-impl-3.3.4.Final.jar      
richfaces-ui-3.3.4.Final.jar        
saaj-api.jar        
saaj-impl.jar       
servlet-api-2.5.jar     
sjsxp.jar       
slf4j-api-1.5.8.jar     
slf4j-simple-1.5.8.jar      
spring.jar      
tomahawk.jar        
trinidad-api-1.0.12.jar     
trinidad-impl-1.0.12.jar        
xercesImpl.jar  

但是当我试图在Jboss 6.1.1中运行它时,它会抛出以下错误:

在组件上调用encodeEnd时出现异常:{组件路径:[类:org.ajax4jsf.component.AjaxViewRoot ViewId:/页面/testLogin.jsp][类:javax.faces.component.html.HtmlForm Id:frmTestLogin][类:javax.faces.component.html.HtmlSelectManyListbox, Id: userRegions]}

肇因:java.lang.IllegalArgumentException - UISelectMany的值组件路径:{组件路径:org.ajax4jsf.component.AjaxViewRoot ViewId:/页面/testLogin.jsp][类:javax.faces.component.html.HtmlForm Id:frmTestLogin][类:javax.faces.component.html.HtmlSelectManyListbox,Id: userRegions]}是不是数组或列表类型。

请帮我解决这个问题。任何建议都是高度赞赏的。

谢谢。

我也遇到了同样的问题。在我的例子中,有一个方法表示与SelectManyCheckbox中使用的列表相同的属性。

我改变了列表的属性,它工作了

相关内容

最新更新