关于IBM Websphere报WSVR0703W,com.ibm.ws.runtime.WsServer错误

近日在IBM Websphere的测试机中发现服务器和Node都无法启动,Startserver日志中报以下错误。

Workspace configuration consistency check is disabled

1.trace启动日志后发现报以下错误:

[3/20/19 10:56:02:317 CST] 00000001 RepositoryImp 3 exception
java.lang.Exception: Cannot find BundleContext for service com.ibm.ws.runtime.service.RepositoryImpl
at com.ibm.wsspi.runtime.service.WsServiceRegistry.addService(WsServiceRegistry.java:141)
at com.ibm.ws.runtime.service.RepositoryImpl.(RepositoryImpl.java:74)
at com.ibm.ws.runtime.config.ConfigServiceFactoryImpl.createConfigService(ConfigServiceFactoryImpl.java:46)
at com.ibm.wsspi.runtime.config.ConfigServiceFactory.createConfigService(ConfigServiceFactory.java:66)
at com.ibm.ws.management.tools.WsServerLauncher.initializeRepositoryAndLauncher(WsServerLauncher.java:408)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:279)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:271)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:282)

2.查询native_stdout日志,发现以下报错。

WSVR0703W
com.ibm.ws.runtime.WsServer

3.尝试再试启动Node和服务器,直接报native_stdout日志中相同错误,感觉/bin下面的脚本几乎都失效了,都是报同类型的错误。

WSVR0703W
com.ibm.ws.adminruntime.WsServer

4.查询IBM官网,根据以下步骤清理缓存后再次尝试启动仍然抛出同样问题。
注意,不要在正式环境随意清理缓存。
http://www-01.ibm.com/support/docview.wss?uid=swg21672201
.

  • cd IBM/WebSphere/AppServer/profiles/需要清理缓存的server/bin

  • run ./clearClassCache.sh

  • run ./osgiCfgInit.sh

  • cd /tmp/ to confirm that javasharedresources folder is gone

  • remove the contents of the following directories:

  • profile_root/temp/

  • profile_root/wstemp/

  • profile_root/config/temp/

  • then run ./startNode.sh

经过多次验证发现,发现清理缓存可以解决该问题,但是只需要执行

  • run ./clearClassCache.sh
  • run ./osgiCfgInit.sh
    清理class缓存和osgi缓存就可以了。

*缓存产生原因:如果在was上频繁删除创建server或者cluster,那么该server或者cluster就会容易产生缓存以至于和管理端同步产生问题,所以需要清理缓存才可以正常启动。如果一台服务器上有多台server端,那么可能需要对所有server端清理缓存,但是需要从产生缓存的那一台开始也就是从发生过频繁删除创建的server开始清理缓存。

以上都是自己测试所得,如有错误请指正,谢谢!

  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值