Eclipse 2020-09:org/omg/CORBA/UserException 尝试使用插件 运行 WebSphere AS 8.5 服务器时

Eclipse 2020-09: org/omg/CORBA/UserException when trying to run WebSphere AS 8.5 Servers using Plugin

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

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

Version: 2020-09 (4.17.0) Build id: 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 启动时,我收到以下错误弹出窗口:

An attempt was made to Use a Websphere Application Server specific function, which is only supported on JRE 6.0, 7.0, or 8.0

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

An internal error occurred during: "Starting Server G2". org/omg/CORBA/UserException

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

如果我尝试使用 WAS 运行时创建新服务器,当我单击“新建”>“服务器”时,出现此错误:

An error has occurred. See error log for more details. org/omg/CORBA/UserException

如果我尝试 select 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 和 IBM WebSphere Application Server V8.5x Developer Tools 插件。

我安装了以前版本的 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
  • 通过“帮助”>“安装新软件”下载 IBM WebSphere Application Server V8.5x Developer Tools 插件。 (url: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/2020-09_comp/ )
  • 现在我可以使用我的旧配置文件创建新的 WAS 服务器,而不会出现之前的任何错误。

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

Eclipse 仍然抛出:

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

但你可以忽略它。安装和调试应用程序有效。

以下是我的步骤:

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

除了

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

访问下面的 link 并在您的 eclipse 中安装兼容版本,此 link 列出了几个版本:

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

示例:

如果您的 eclipse 版本是 photon,请获取下面的 link 进行安装:

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