当前位置: 首页 > 知识库问答 >
问题:

在Weblogic服务器上部署JSF应用程序时出错

柳宏深
2023-03-14

我有一个使用Tomcat服务器部署的JSF应用程序,它在Tomcat 7中完美运行。但是现在我需要部署非常应用程序Weblogic我将其部署到weblogic,但是在显示主页后,我尝试打开的任何链接我都会在我的应用程序中显示错误页面。

我使用JPA作为我的持久性API来连接到数据库。

Weblogic堆栈跟踪

[EL Warning]: 2017-03-01 17:27:39.135--No partition instance associated with cur
rent SessionManager instance.
<Mar 1, 2017, 5:27:40,136 PM IST> <Warning> <netuix> <BEA-423420> <Redirect is e
xecuted in begin or refresh action. Redirect url is /console/console.portal?_nfp
b=true&_pageLabel=AppDeploymentsControlPage.>
Mar 01, 2017 5:28:50 PM org.primefaces.webapp.PostConstructApplicationEventListe
ner processEvent
INFO: Running on PrimeFaces 5.1
[EL Info]: 2017-03-01 17:30:00.619--ServerSession(3660206)--EclipseLink, version
: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:00.625--ServerSession(3660206)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:01.31--ServerSession(3660206)--/file:D:/weblogic/wls
12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashboa
rdchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:01.349--ServerSession(3660206)--/file:D:/weblogic/wl
s12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashbo
ardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:01.35--No partition instance associated with curr
ent SessionManager instance.
[EL Info]: 2017-03-01 17:30:01.371--ServerSession(1037899)--EclipseLink, version
: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:01.371--ServerSession(1037899)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:01.645--ServerSession(1037899)--/file:D:/weblogic/wl
s12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashbo
ardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:01.658--ServerSession(1037899)--/file:D:/weblogic/wl
s12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashbo
ardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:01.658--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:01.704--ServerSession(27423138)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:01.704--ServerSession(27423138)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:02.036--ServerSession(27423138)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:02.056--ServerSession(27423138)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:02.062--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:02.087--ServerSession(26245990)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:02.092--ServerSession(26245990)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:02.316--ServerSession(26245990)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:02.337--ServerSession(26245990)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:02.341--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:02.371--ServerSession(22959691)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:02.376--ServerSession(22959691)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:02.595--ServerSession(22959691)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:02.615--ServerSession(22959691)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:02.624--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:02.659--ServerSession(14950913)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:02.667--ServerSession(14950913)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:02.894--ServerSession(14950913)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:02.916--ServerSession(14950913)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:02.921--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:02.947--ServerSession(30389212)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:02.952--ServerSession(30389212)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:03.157--ServerSession(30389212)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:03.202--ServerSession(30389212)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:03.206--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:03.233--ServerSession(23849302)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:03.238--ServerSession(23849302)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:03.532--ServerSession(23849302)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:03.549--ServerSession(23849302)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:03.556--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:07.447--ServerSession(18058513)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:07.447--ServerSession(18058513)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:07.693--ServerSession(18058513)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:07.712--ServerSession(18058513)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:07.715--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:07.743--ServerSession(22199458)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:07.743--ServerSession(22199458)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:08.14--ServerSession(22199458)--/file:D:/weblogic/wl
s12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashbo
ardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:08.153--ServerSession(22199458)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:08.154--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:08.173--ServerSession(20468286)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:08.175--ServerSession(20468286)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:08.428--ServerSession(20468286)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:08.47--ServerSession(20468286)--/file:D:/weblogic/wl
s12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashbo
ardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:08.476--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:08.513--ServerSession(6774559)--EclipseLink, version
: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:08.516--ServerSession(6774559)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:08.689--ServerSession(6774559)--/file:D:/weblogic/wl
s12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashbo
ardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:08.721--ServerSession(6774559)--/file:D:/weblogic/wl
s12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashbo
ardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:08.726--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:08.757--ServerSession(3757333)--EclipseLink, version
: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:08.76--ServerSession(3757333)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:08.947--ServerSession(3757333)--/file:D:/weblogic/wl
s12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashbo
ardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:08.966--ServerSession(3757333)--/file:D:/weblogic/wl
s12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashbo
ardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:08.972--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:09.09--ServerSession(16566590)--EclipseLink, version
: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:09.095--ServerSession(16566590)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:09.327--ServerSession(16566590)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:09.345--ServerSession(16566590)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:09.349--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:09.374--ServerSession(14747886)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:09.377--ServerSession(14747886)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:09.626--ServerSession(14747886)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:09.647--ServerSession(14747886)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:09.652--No partition instance associated with cur
rent SessionManager instance.
[EL Info]: 2017-03-01 17:30:09.685--ServerSession(30423762)--EclipseLink, versio
n: Eclipse Persistence Services - 2.6.4.v20160829-44060b6
[EL Info]: 2017-03-01 17:30:09.689--ServerSession(30423762)--Server: 12.2.1.2.0
[EL Info]: 2017-03-01 17:30:09.914--ServerSession(30423762)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test login successful
[EL Info]: 2017-03-01 17:30:09.933--ServerSession(30423762)--/file:D:/weblogic/w
ls12212/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/Dashb
oardchartv1.0/x8ws98/war/WEB-INF/lib/_wl_cls_gen.jar_Test logout successful
[EL Warning]: 2017-03-01 17:30:09.939--No partition instance associated with cur
rent SessionManager instance.
<Mar 1, 2017, 5:30:10,15 PM IST> <Error> <HTTP> <BEA-101017> <[ServletContext@10
895055[app:Dashboardchartv1.0 module:Dashboardchartv1.0.war path:null spec-versi
on:3.1], request: weblogic.servlet.internal.ServletRequestImpl@12f66ad[
POST /Dashboardchartv1.0/home.xhtml HTTP/1.1
Connection: keep-alive
Content-Length: 112
Cache-Control: max-age=0
Origin: http://localhost:7001
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/52.0.2743.82 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0
.8
Referer: http://localhost:7001/Dashboardchartv1.0/
Accept-Encoding: gzip, deflate
Accept-Language: en-IN,en-GB;q=0.8,en-US;q=0.6,en;q=0.4

]] Root cause of ServletException.
javax.faces.application.ViewExpiredException: viewId:/home.xhtml - View /home.xh
tml could not be restored.
        at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.jav
a:212)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.jav
a:123)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:650)
        Truncated. see log file for complete stacktrace

我无法理解我是weblogic的新手请帮忙

共有1个答案

丁德义
2023-03-14

这是因为jsf无法定位home视图。基于会话中视图状态id的xhtml。

 类似资料:
  • 由于我在Spring Boot项目中添加了Hateoas依赖项并部署在weblogic Server12c上,因此我面临这个问题 启动ApplicationContext时出错。若要显示条件报告,请在启用“调试”的情况下重新运行应用程序。2020-01-09 14:18:53,591错误org.springframework.boot.diagnostics.loggingfailureanaly

  • 我在服务器上运行应用程序时出错,它在本地正常工作,我只需输入Run(npm start)并在本地正常运行。但和我在服务器上做的一样,我得到了下面给出的错误。请有人帮帮我。 {“name”:“chakde11”,“version”:“1.0.0”,“private”:false,“homepage”:http://chakde11.com/“,”依赖项“{bootstrap:“4.1.1”,“cha

  • 我的weblogic 10.3服务器上已经部署了一个EAR应用程序。现在,我做了一些修改,重新创建了EAR文件,并尝试重新部署应用程序。但我得到的错误是:

  • 我正在尝试在weblogic application server 10.3中部署一个web应用程序 部署后,当我尝试激活更改时,我收到以下异常 我知道包含以下类org/apache/Commons/digester/Digester的jar文件在服务器运行时中丢失。 我在$DOMAIN/lib中添加了这个jar,并重新启动了weblogic服务器。部署后,我收到了相同的错误。 请告知。

  • 我曾经在Glassfish服务器上毫不费力地部署了JSF Primefaces应用程序。最近我升级了我的NetBeans版本。在那之后,我的大部分申请都没有出现任何问题。但是当我尝试使用其中一个进行部署时,它失败了,错误消息如下: 部署期间发生错误:加载应用程序时出现异常:java.lang.IllegalStateException:ContainerBase.addChild:start:or

  • 我正试图在tomcat服务器上部署spring boot应用程序,但遇到严重错误[http-nio-8080-exec-5]org.apache.catalina.startup.hostconfig.deploywar部署web应用程序存档时出错