0

周围有没有人让 Openfaces 3.0 在 WebSphere 7.0 上运行?

我不断收到以下错误:

java.lang.NullPointerException
at javax.faces.application.ResourceWrapper.getRequestPath(ResourceWrapper.java:118)
at org.openfaces.application.OpenFacesResource.getRequestPath(OpenFacesResource.java:36)
at org.openfaces.util.Resources.getInternalURL(Resources.java:133)
at org.openfaces.util.Resources.getUtilJsURL(Resources.java:234)
at org.openfaces.util.UtilPhaseListener.appendHeaderContent(UtilPhaseListener.java:60)
at org.openfaces.application.OpenFacesApplication.headAddedToView(OpenFacesApplication.java:79)

有任何想法吗?提前致谢。

弗洛什顿。

4

1 回答 1

0

我不做 OpenFaces/Websphere,所以我不能详细说明这一点,但考虑到ResourceWrapper#getRequestPath()根据其源代码委托的事实,调用如下

return getWrapped().getRequestPath();

whereResourceWrapper#getWrapped()是由实现者正确实现的抽象方法。鉴于跟踪,org.openfaces.application.OpenFacesResource这是错误地返回nullon getWrapped()

根本原因是什么,尚不清楚,因为我没有直接接触 OpenFaces 源代码。我会首先在他们的论坛和/或问题跟踪器上向 OpenFaces 人员报告这个问题。

于 2011-02-21T17:19:25.343 回答