【问题标题】:Cannot start specific WebSphere Application Server无法启动特定 WebSphere Application Server
【发布时间】:2017-10-10 08:34:01
【问题描述】:

我在启动应用程序服务器时收到错误消息。我只在特定的服务器上收到此错误,另一个开始完全正常。我们使用的是 WebSphere 8.0.0.9 版本。我已经分享了下面的日志。我对 WebSphere 系统不熟悉,所以如果您需要此日志之外的其他内容,我会尝试分享。

异常日志:

    class load: org.eclipse.osgi.service.debug.DebugTrace from: file:/opt/IBM/WebSphere/AppServer/plugins/org.eclipse.osgi_.jar
class load: org.osgi.framework.InvalidSyntaxException from: file:/opt/IBM/WebSphere/AppServer/plugins/org.eclipse.osgi_.jar
java.lang.NullPointerException
        at java.security.SecureRandom.nextBytes(SecureRandom.java:292)
        at java.security.SecureRandom.next(SecureRandom.java:311)
        at java.util.Random.nextLong(Random.java:252)
        at java.io.File.generateFile(File.java:1693)
        at java.io.File.createTempFile0(File.java:1736)
        at java.io.File.createTempFile(File.java:1814)
        at org.eclipse.osgi.internal.baseadaptor.AdaptorUtil.canWrite(AdaptorUtil.java:208)
        at org.eclipse.core.runtime.adaptor.LocationManager.canWrite(LocationManager.java:276)
        at org.eclipse.core.runtime.adaptor.LocationManager.buildLocation(LocationManager.java:204)
        at org.eclipse.core.runtime.adaptor.LocationManager.initializeLocations(LocationManager.java:150)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:275)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
        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 org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
        at org.eclipse.core.launcher.Main.run(Main.java:981)
        at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:394)
        at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:157)
class load: java/text/MessageFormat
class load: java/text/FieldPosition
class load: java/util/Date

【问题讨论】:

    标签: java websphere websphere-8


    【解决方案1】:

    请参阅this IBM technote,了解有关将 IBM JVM 特定安全服务类添加到服务器配置的说明,特别是 java.ext.dirs JVM 属性定义。该技术说明适用于 IBM i 平台,根据您上面粘贴的 native_stderr.log 的文件位置,我相信您使用的是 Linux 平台,但该技术说明应该仍然适用。

    【讨论】:

    • 我能够通过链接上的描述解决这个问题。在 Linux jre ext lib 路径中,如下所示。 -Djava.ext.dirs=/opt/IBM/WebSphere/AppServer/java/jre/lib/ext
    • 我在您的状态屏幕截图中看到的一件事是您在核心上出现了一些错误,然后在 core_preprod 上出现了错误。我想知道每个错误是什么,它们是否相关?您在 Node01 上显示了 2 个错误,我怀疑它们是相关的。从日志中,我看到它正在抛出一个 NullPointerException 加载 java 类,并且有一个 InvalidSyntaxException。我会查看 2 个 jar 文件并查找语法错误。如果您没有 Java 方面的经验,请让您的开发团队的人来看看。