我想在WebSphere 8.5.5部署应用程序 我已经创建了一个共享库包含myfaces 2.2 jar和其他依赖项(如commons-collections)的Websphere。
我还将我的应用程序的类加载器作为PARENT_LAST。
当我部署应用程序,我得到这个异常:抛出:IllegalArgumentException:com.ibm.ws.jsf.config.annotation.WASMyFacesAnnotationProvider没有org.apache.myfaces.spi.AnnotationProvider
An error occured while initializing MyFaces: Class com.ibm.ws.jsf.config.annotation.WASMyFacesAnnotationProvider is no org.apache.myfaces.spi.AnnotationProvider
java.lang.IllegalArgumentException: Class com.ibm.ws.jsf.config.annotation.WASMyFacesAnnotationProvider is no org.apache.myfaces.spi.AnnotationProvider
at org.apache.myfaces.shared.util.ClassUtils.buildApplicationObject(ClassUtils.java:557)
at org.apache.myfaces.shared.util.ClassUtils.buildApplicationObject(ClassUtils.java:524)
上述程序适用于Mojarra 2.2。我正在使用仅包含以下内容的共享库:jsf-api-2.2.4和jsf-impl-2.2.4 –
您如何附加共享库?你是否将它附加到服务器实例或应用程序? – Isaac
环境/共享库/新建 –