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

时间:2024-03-14 17:54:58

近日在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/Dmgr01/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

5.尝试修复Websphere。
进入/was/IBM/InstallationManager/eclipse文件夹下,执行IBMIM,启动安装管理。

./IBMIM

6.选择Modify
关于IBM Websphere报WSVR0703W,com.ibm.ws.runtime.WsServer错误
7.点击下一步,点击下一步,勾选任意没有安装的组件,例如“Sample…”组件。
注意需要运行在该服务器上的节点全部都处于停止状态才可以更改组件。

8.等待安装完成后,再次尝试启动Node和Server,正常,问题居然神奇的解决了。

关于原因,目前本人仍然没有找到是什么原因导致该问题,如有大神知道烦请不吝赐教。