weblogic 部署 项目 报错 无法访问所选应用程序 org.hyperic.sigar.SigarException

Web 专栏收录该内容
9 篇文章 0 订阅

错误 无法访问所选应用程序。
错误 org.hyperic.sigar.SigarException
错误 org.hyperic.sigar.SigarException
错误 org.hyperic.sigar.SigarException

查看日志记录:

C:\Oracle\Middleware\Oracle_Home\user_projects\domains***Domain\servers\AdminServer\logs***Domain.log

关键内容为:

####<2018-8-21 上午083733,151CST> <Warning> <Munger> <sunpeihe00> <AdminServer> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <35576438-6e41-4ece-939b-bed797dfac93-00000018> <1534811853151> <[severity-value: 16] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-2156203> <A version attribute was not found in element "web-app" in the deployment descriptor D:\code\gl_jk_code20160422\TsmMS\WebRoot/WEB-INF/web.xml. A version attribute is required, but this version of the WebLogic Server will assume that the latest version is used. Future versions of WebLogic Server will reject descriptors that do not specify the Java EE version. To eliminate this warning, add an appropriate "version=" to element "web-app" in the deployment descriptor.> 
####<2018-8-21 上午083734,741CST> <Error> <J2EE> <sunpeihe00> <AdminServer> <[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <35576438-6e41-4ece-939b-bed797dfac93-00000019> <1534811854741> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-160248> <Unable to parse class file: zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/TSMDomain/servers/AdminServer/tmp/.appmergegen_1534811838932/WebRoot/tpo1a/war/WEB-INF/lib/db2jcc.jar!/COM/ibm/db2os390/sqlj/custom/DB2SQLJCustomizer.class. > 
####<2018-8-21 上午083734,772CST> <Error> <J2EE> <sunpeihe00> <AdminServer> <[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <35576438-6e41-4ece-939b-bed797dfac93-00000019> <1534811854772> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-160248> <Unable to parse class file: zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/TSMDomain/servers/AdminServer/tmp/.appmergegen_1534811838932/WebRoot/tpo1a/war/WEB-INF/lib/db2jcc.jar!/COM/ibm/db2os390/sqlj/custom/DB2SQLJEntryInfo.class. > 
####<2018-8-21 上午083734,787CST> <Error> <J2EE> <sunpeihe00> <AdminServer> <[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <35576438-6e41-4ece-939b-bed797dfac93-00000019> <1534811854787> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-160248> <Unable to parse class file: zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/TSMDomain/servers/AdminServer/tmp/.appmergegen_1534811838932/WebRoot/tpo1a/war/WEB-INF/lib/db2jcc.jar!/COM/ibm/db2os390/sqlj/custom/DB2SQLJProfile.class. > 
####<2018-8-21 上午083738,375CST> <Error> <J2EE> <sunpeihe00> <AdminServer> <[STANDBY] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <35576438-6e41-4ece-939b-bed797dfac93-0000001a> <1534811858375> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-160248> <Unable to parse class file: zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/TSMDomain/servers/AdminServer/tmp/.appmergegen_1534811838932/WebRoot/tpo1a/war/WEB-INF/lib/db2jcc.jar!/COM/ibm/db2os390/sqlj/custom/DB2SQLJCustomizer.class. > 
####<2018-8-21 上午083738,380CST> <Error> <J2EE> <sunpeihe00> <AdminServer> <[STANDBY] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <35576438-6e41-4ece-939b-bed797dfac93-0000001a> <1534811858380> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-160248> <Unable to parse class file: zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/TSMDomain/servers/AdminServer/tmp/.appmergegen_1534811838932/WebRoot/tpo1a/war/WEB-INF/lib/db2jcc.jar!/COM/ibm/db2os390/sqlj/custom/DB2SQLJEntryInfo.class. > 
####<2018-8-21 上午083738,383CST> <Error> <J2EE> <sunpeihe00> <AdminServer> <[STANDBY] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <35576438-6e41-4ece-939b-bed797dfac93-0000001a> <1534811858383> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-160248> <Unable to parse class file: zip:C:/Oracle/Middleware/Oracle_Home/user_projects/domains/TSMDomain/servers/AdminServer/tmp/.appmergegen_1534811838932/WebRoot/tpo1a/war/WEB-INF/lib/db2jcc.jar!/COM/ibm/db2os390/sqlj/custom/DB2SQLJProfile.class. > 
####<2018-8-21 上午083741,256CST> <Error> <J2EE> <sunpeihe00> <AdminServer> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <35576438-6e41-4ece-939b-bed797dfac93-00000018> <1534811861256> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-160228> <AppMerge failed to merge your application. If you are running AppMerge on the command-line, merge again with the -verbose option for more details. See the error message(s) below.> 

其中一处:

A version attribute was not found in element “web-app” in the deployment descriptor D:\code\project\WebRoot/WEB-INF/web.xml. A version attribute is required, but this version of the WebLogic Server will assume that the latest version is used. Future versions of WebLogic Server will reject descriptors that do not specify the Java EE version. To eliminate this warning, add an appropriate “version=” to element “web-app” in the deployment descriptor.

需要在WebRoot/WEB-INF/web.xml文件中的标签中添加version属性设置。此处虽然级别为Warning,但由于使用较新版本的weblogic,如果不指定version版本的话默认将项目理解为最新版本的Java EE的版本,可能会造成不兼容问题。此处我的项目是旧版本—2.4。

<web-app version="2.4" ...>

另外,注意到最后有一句:

AppMerge failed to merge your application.
这是因为weblogic会缓存每次部署的项目内容,相同项目部署多次会造成无法合并。因此要先清理缓存,再部署项目。
找到缓存目录:
C:\Oracle\Middleware\Oracle_Home\user_projects\domains***Domain\servers\AdminServer\tmp

发现有多个版本,可能是冲突了。
多个版本

因此关掉weblogic,删除tmp下的所有文件,重新部署项目,成功了。

总结:
1.在web.xml中中添加version属性。
2.部署项目前删除temp缓存.

  • 1
    点赞
  • 1
    评论
  • 4
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 技术黑板 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值