【问题标题】:Eclipse 2020-09: org/omg/CORBA/UserException when trying to run WebSphere AS 8.5 Servers using PluginEclipse 2020-09:尝试使用插件运行 WebSphere AS 8.5 服务器时出现 org/omg/CORBA/UserException
【发布时间】:2021-01-10 04:31:17
【问题描述】:

今天尝试解决Eclipse启动时出现错误,我找到了一个解决方案,说要重新安装新版本。所以我安装了新版本,我用它打开了我以前的工作区。

实际版本是:Eclipse IDE for Enterprise Java Developers

版本:2020-09 (4.17.0) 版本号:20200910-1200

现在我工作的环境很糟糕: 以前我已经通过 IBM WebSphere Application Server V8.5x Developer Tools 插件配置了许多 Websphere application Servers v8.5.5。

我使用的服务器运行时基于 Java java_1.7.1_64,它位于 Websphere AppServer 文件夹中。

我重新安装了插件以恢复其典型功能,它充当 WAS 服务器的接口(启动、发布、状态),但它似乎不再与当前版本的 Eclipse 兼容,所以我不再能够从 Eclipse 启动 WAS 服务器。

在 Workbech 启动时,我收到以下弹出错误消息:

尝试使用 Websphere Application Server 特定功能,该功能仅在 JRE 6.0、7.0 或 8.0 上受支持

当我尝试与服务器交互时,我收到以下错误:

在“启动服务器 G2”期间发生内部错误。 org/omg/CORBA/UserException

如果我双击服务器以打开其配置页面,IDE 会打开一个空白的灰色页面,只有 X 用于关闭它。

如果我尝试使用 WAS 运行时创建新服务器,当我单击新建 > 服务器时,我会收到以下错误:

发生了错误。有关详细信息,请参阅错误日志。 org/omg/CORBA/UserException

如果我尝试选择 WebSphere Application Server v8.5 作为服务器类型,则会出现相同的错误。

eclipse.ini:

-startup
plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar
--launcher.library
C:\Users\USER\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1300.v20200819-0940
-product
org.eclipse.epp.package.jee.product
-showsplash
C:\Users\USER\.p2\pool\plugins\org.eclipse.epp.package.common_4.17.0.20200910-1200
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:/Users/USER/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932/jre/bin
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/

我尝试过的事情:

  • 恢复以前的 Eclipse 版本,但我不能,我仍然有安装文件夹,但我可能在 eclipse.ini 中更改了一些内容,如果我现在启动它,它总是会启动新的更新的 Eclipse 实例,看起来像如果由于我安装的新版本而在 .p2 文件夹中添加或覆盖了某些内容。

  • 我尝试安装旧版本的 Eclipse,但 was 插件似乎也不适用于这些版本。

  • 我仍然配置了所有 WAS 配置文件,是否有替代方案或解决方法,即使没有 eclipse 插件也可以继续处理它们?我对这个问题很无知。最后我只需要启动/重启服务器,快速添加 EAR,发布,了解服务器的状态;我一直使用该接口的操作。

提前感谢所有帮助我找到解决方案的人。

【问题讨论】:

  • 我面临同样的问题,这发生在最近升级 Eclipse 的 websphere 工具中。我试图恢复到 Eclipse 日它工作正常。但我现在被这个错误困住了。
  • 尝试下载以前版本的eclipse(不是安装程序)的zip文件,例如。 Eclipse Photon 或 2019-09-R,并在空工作区上运行 Eclipse。您可以尝试按照我的答案中的步骤进行操作。
  • 我们是否可以向 IBM 团队提出这个问题?
  • 我们是否可以向 IBM 团队提出这个问题?

标签: java eclipse plugins websphere corba


【解决方案1】:

我找到了另一种解决方法:

除了

  1. 将 Eclipse 下载为 Zip 文件
  2. 解压到文件系统的文件夹中
  3. 编辑eclipse.ini文件在第一个添加-vm Path/IBM/WebSphere/AppServer/java/bin 线。 (它是位于 WebSphere 文件夹中的 Java 1.8)

访问下面的链接并在你的eclipse中安装兼容的版本,这个链接列出了几个版本:

http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/

示例:

如果你的 eclipse 版本是 photon,请获取以下链接进行安装:

http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/photon/

【讨论】:

    【解决方案2】:

    我在 Eclipse 2020-12 版本中遇到了同样的问题。不同之处在于最低 Java 版本现在是 11,因此您不能使用与 Websphere 捆绑在一起的 Ibm Java SDK 来运行 Eclipse。

    Eclipse 仍然抛出:

    已尝试使用 Websphere Application Server 特定功能,该功能仅在 JRE 6.0、7.0 或 8.0 上受支持。

    但你可以忽略它。安装和调试应用程序工作正常。

    这是我做的步骤:

    【讨论】:

      【解决方案3】:

      我找到了一种解决方法,以便继续使用 Eclipse 和 IBM WebSphere Application Server V8.5x 开发人员工具插件。

      我安装了旧版 Eclipse,但工作区为空

      步骤:

      • 将 Eclipse J2ee 2019-09-R 下载为 Zip 文件(Eclipse Photon 也可以)
      • 解压到文件系统的文件夹中
      • 编辑 eclipse.ini 文件,在第一行添加-vm C:/Users/USER/IBM/WebSphere/AppServer/java/bin。 (它是位于 WebSphere 文件夹中的 Java 1.8)
      • 使用空工作区启动 Eclipse
      • 通过 Help > Install new software 下载 IBM WebSphere Application Server V8.5x Developer Tools 插件。 (网址:http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/2020-09_comp/ )
      • 现在我可以使用旧配置文件创建一个使用新的 WAS 服务器,而不会出现任何以前的错误。

      【讨论】:

        猜你喜欢
        • 2012-11-11
        • 1970-01-01
        • 2014-04-29
        • 1970-01-01
        • 2023-03-23
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-02-25
        相关资源
        最近更新 更多