我們遇到了SAVE按鈕無法在整個應用程序中工作的問題。剩餘的按鈕工作正常。java.lang.ClassNotFoundException:org.apache.myfaces.el.convert.ValueExpressionToValueBinding
我們擁有JSF 2.2,primefaces 5.1和運行於Websphere libertyprofile上的應用程序。
當我點擊保存按鈕,它也會引發異常下面
Causedby:拋出java.lang.ClassNotFoundException: org.apache.myfaces.el.convert.ValueExpressionToValueBinding不能 發現com.ibm .ws.javaee.jsf.2.2_1.0.14.cl160320160831-1555
堆棧跟蹤:
[err] Caused by: javax.faces.FacesException: java.lang.ClassNotFoundException: org.apache.myfaces.el.convert.ValueExpressionToValueBinding cannot be found by com.ibm.ws.javaee.jsf.2.2_1.0.14.cl160320160831-1555
[err] at javax.faces.component._ClassUtils.simpleClassForName(_ClassUtils.java:169)
[err] at [internal classes]
[err] ... 77 more
[err] Caused by: java.lang.ClassNotFoundException: org.apache.myfaces.el.convert.ValueExpressionToValueBinding cannot be found by com.ibm.ws.javaee.jsf.2.2_1.0.14.cl160320160831-1555
[err] at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
[err] at [internal classes]
[err] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[err] at java.lang.Class.forName0(Native Method)
[err] at java.lang.Class.forName(Class.java:274)
[err] at javax.faces.component._ClassUtils.classForName(_ClassUtils.java:145)
[err] at [internal classes]
[err] ... 91 more
任何幫助將不勝感激。
您是使用WebSphere jsf-2.2功能,還是將MyFaces與您的webapp捆綁在一起? – wtlucy
我在Websphere中配置了 jsf-2.2 Liberty server.xml –
user2769377
您是否也在應用程序中捆綁了MyFaces?如果你想使用jsf-2.2功能,你應該從應用程序中刪除MyFaces jsf-api.jar和jsf-impl.jar(WEB-INF/lib) – wtlucy