英文:
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
版本:2020-09 (4.17.0)
构建编号:20200910-1200
现在我在工作环境中遇到了一个糟糕的情况:
之前我已经通过IBM WebSphere Application Server V8.5x Developer Tools插件配置了许多Websphere应用服务器v8.5.5。
我使用的服务器运行时是基于位于Websphere AppServer文件夹中的Java java_1.7.1_64。
我重新安装了插件以恢复其典型功能,它作为与WAS服务器交互的界面(启动、发布、状态),但它似乎不再与当前版本的Eclipse兼容,因此我不能再从Eclipse启动WAS服务器。
在启动Workbench时,我会弹出以下带有错误的弹出窗口:
尝试使用Websphere Application Server特定功能,该功能仅在JRE 6.0、7.0或8.0上受支持。
当我尝试与服务器交互时,我会收到以下错误:
在“启动服务器G2”期间发生了内部错误。
org/omg/CORBA/UserException
如果我双击服务器,打开其配置页面,IDE会打开一个空白、灰色的页面,只有关闭按钮。
如果我尝试使用WAS Runtime创建新服务器,当我点击“新建 > 服务器”时,我会得到这个错误:
发生错误。有关更多细节,请查看错误日志。
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,执行发布操作,了解服务器的状态;这些操作我一直在界面上完成。
提前感谢所有帮助我找到解决方案的人。
英文:
Today trying to solve an error on Eclipse startup, I have found a solution that said to reinstall the new version. So I have installed the new version, with which I opened my previous Workspace.
The actual version is: Eclipse IDE for Enterprise Java Developers
> Version: 2020-09 (4.17.0)
Build id: 20200910-1200
Now I have a bad situation in the environment in which I work:
Previously I had many Websphere application Servers v8.5.5 already configured through the IBM WebSphere Application Server V8.5x Developer Tools plugin.
The Server runtime I used, was based on Java java_1.7.1_64, that is located in the Websphere AppServer folder.
I reinstalled the plugin to recover its typical functionality, which acts as an interface to the WAS server (start, publish, status) but it seems to be no longer compatible with the current version of Eclipse, so I am no longer able to start the WAS servers from Eclipse.
At the Workbech startup I get the following popup with error:
> 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
And when I try to interact with the server I receive the folliwing error:
> An internal error occurred during: "Starting Server G2".
org/omg/CORBA/UserException
If I double click on the server, to open its configuration page, the IDE opens an empty, grey, page with only the X to close it.
If I try to create a new Server with WAS Runtime, when I click on New > Server, I get this error:
> An error has occurred. See error log for more details.
org/omg/CORBA/UserException
The same errors appears if I try to select WebSphere Application Server v8.5 as type of server.
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/
Things I have tried:
-
Recover the previous eclipse version but I can't, I still have the installation folder, but I probably changed something in the eclipse.ini and if I start it now it always launches me the new updated Eclipse instance, it seems as if it has been added or overwritten something in the .p2 folder due to the installation of the new version that I did.
-
I tried to install older versions of Eclipse, but the was plugin doesn't seem to work with those either.
-
I still have all the WAS Profiles configured, Is there an alternative, or a workaround, to continue working on them even without the eclipse plugin? I am quite ignorant on the subject. In the end I just have to start / restart the server, add EARs quickly, do the publish, understand the status of the server; operations for which I have always used the interface.
Thanks in advance to all those who will help me find a solution.
答案1
得分: 4
我在Eclipse 2020-12版本中遇到了相同的问题。不同之处在于,最小的Java版本现在是11,因此您不能使用捆绑在Websphere中的Ibm Java SDK来运行Eclipse。
Eclipse仍然会报错:
尝试使用仅在JRE 6.0、7.0或8.0上受支持的Websphere应用程序服务器特定功能。
但您可以忽略它。安装和调试应用程序是可行的。
以下是我采取的步骤:
- 下载 Eclipse JEE 2020-12 zip
- 在文件系统上解压安装文件
- 下载已移除的JAXB组件并将它们放入 dropins 文件夹
- 下载CORBA实现的JAR包,glassfish-corba-orb,同样放入 dropins 文件夹
- 安装Websphere Developer Tools用于Websphere 8.5的Eclipse插件,并将其指向本地Websphere安装位置
英文:
I had the same problem with Eclipse 2020-12 version. The difference is that minimal Java version is now 11 so you cannot use Ibm Java SDK that comes bundled with Websphere to run Eclipse.
Eclipse still throws:
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.
but you can ignore it. Installing and debugging applications works.
Here are the steps I made:
- download Eclipse JEE 2020-12 zip
- extract installation on filesystem
- download removed JAXB artfacts and put them in dropins folder
- download corba implementation jar, glassfish-corba-orb and also, put in dropins folder
- install Websphere Developer Tools for Websphere 8.5 eclipse plugin and point it to local Websphere installation
答案2
得分: 3
我已经找到了一种解决方法,以便继续在Eclipse和IBM WebSphere Application Server V8.5x开发者工具插件上工作。
我已经安装了先前版本的Eclipse,并创建了一个空工作区
步骤:
- 下载 Eclipse J2ee 2019-09-R 压缩文件(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 开发者工具插件。(URL:http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/2020-09_comp/
) - 现在,我可以使用旧配置文件创建并使用新的 WAS 服务器,而不会出现之前的任何错误。
英文:
I have found a workaround in order to continue to work with Eclipse and IBM WebSphere Application Server V8.5x Developer Tools plugin.
I have installed a previous version of Eclipse with an empty workspace
Steps:
- Download Eclipse J2ee 2019-09-R as Zip file (Eclipse Photon works too)
- Extract in a folder in you file system
- edit eclipse.ini file adding
-vm
on the first line. (It's Java 1.8 located in WebSphere folder)
C:/Users/USER/IBM/WebSphere/AppServer/java/bin - Start Eclipse using an empty workspace
- Download IBM WebSphere Application Server V8.5x Developer Tools plugin via Help > Install new software. (url: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/2020-09_comp/
) - now I'm able to create an use new WAS Servers with my old Profiles without any of the previous error.
答案3
得分: 0
我找到了另一种解决方法:
除了
- 下载Eclipse的Zip文件
- 解压到您文件系统中的一个文件夹
- 编辑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/
英文:
I found another way to solve:
In addition to
- Download Eclipse as Zip file
- Extract in a folder in you file system
- edit eclipse.ini file adding -vm Path/IBM/WebSphere/AppServer/java/bin on the first
line. (It's Java 1.8 located in WebSphere folder)
Access the link below and install the compatible version in your eclipse, this link lists several versions:
http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/
Example:
If your version of eclipse is photon get the link below for installation:
http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/photon/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论