Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java ICEFaces 1.7.2和Websphere Application Server 7_Java_Icefaces_Websphere 7 - Fatal编程技术网

Java ICEFaces 1.7.2和Websphere Application Server 7

Java ICEFaces 1.7.2和Websphere Application Server 7,java,icefaces,websphere-7,Java,Icefaces,Websphere 7,我们最近从WAS6迁移到了WAS7。我们的一个应用程序在WAS6中运行得非常好,但在WAS7中没有运行,并出现以下错误 java.lang.NoSuchMethodError: com/sun/faces/util/Util.verifyFactoriesAndInitDefaultRenderKit(Ljavax/servlet/ServletContext;)V at com.ibm.faces.context.MultipartFacesContextFactoryImpl.getFace

我们最近从WAS6迁移到了WAS7。我们的一个应用程序在WAS6中运行得非常好,但在WAS7中没有运行,并出现以下错误

java.lang.NoSuchMethodError: com/sun/faces/util/Util.verifyFactoriesAndInitDefaultRenderKit(Ljavax/servlet/ServletContext;)V
at com.ibm.faces.context.MultipartFacesContextFactoryImpl.getFacesContext(MultipartFacesContextFactoryImpl.java:73)  
给出该错误的代码段是

FacesContextFactory contextFactory  = (FacesContextFactory)
             FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
         facesContext = contextFactory.getFacesContext(
             request.getSession().getServletContext(), request, response, lifecycle);
在WAS6和WAS7中调试应用程序时发现这些信息 contextfactory:com.ibm.faces.context.MultipartFacesContextFactoryImpl-JSF-ibm.jar-WAS7 contextfactory:com.icesoft.faces.context.FacesContextFactoryImpl-icefaces.jar-WAS6

我尝试了一些建议,比如创建一个共享库并将其与EAR关联,以及将类装入器方案从最后一个父类更改为第一个父类

但不管我做什么,在WAS7中,我得到的是MultipartFacesContextFactoryImpl作为contextFactory的值

我试图用icefaces.jar和icefaces-comps.jar的1.8版本替换1.7.2。但结果还是一样


请帮忙。如果你需要更多的细节,请告诉我

可能是WAS6使用Java5作为本机,而WAS7使用Java6。尝试用Java6重新编译类