从WebSphere迁移到WebLogic

时间:2017-03-30 20:24:48

标签: java spring migration icefaces

我使用JDK 1.6,Spring 2.5.6和iceFaces 1.8.2在WebSphere上运行web应用程序。我需要将该Web应用程序迁移到WebLogic。所以我将JDK更新为1.8,将Spring更新为4.2。 iceFaces框架我没有改变,因为我的源代码有很多变化。 当我部署应用程序时,我得到了以下内容:

com.sun.faces.config.ConfigurationException: Factory 'javax.faces.lifecycle.ClientWindowFactory' was not configured properly.
        at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:330)
        at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:236)
        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:439)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227)
        at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:705)
        Truncated. see log file for complete stacktrace
Caused By: javax.faces.FacesException: com.sun.faces.lifecycle.ClientWindowFactoryImpl
        at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:409)
        at javax.faces.FactoryFinderInstance.getImplementationInstance(FactoryFinderInstance.java:253)
        at javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:549)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:283)
        at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:328)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.UnsupportedOperationException
        at javax.faces.application.Application.subscribeToEvent(Application.java:1797)
        at com.sun.faces.lifecycle.ClientWindowFactoryImpl.<init>(ClientWindowFactoryImpl.java:62)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        Truncated. see log file for complete stacktrace

有没有办法解决这个问题,或者我需要更改我的iceFaces版本?

1 个答案:

答案 0 :(得分:0)

我想我解决了在我的war文件中包含jsf 1.2库的问题。

仍然有另外一个错误,很快我会更新答案,如果它有效。

<强>更新

是的,这解决了我的问题......现在已经成功部署了webapplication。 (打开登录页面时仍然会收到httpError 500)。