RAD runAnt.sh 失败
RAD runAnt.sh failed
我已经全新安装了 Rational Application Developer(RAD) v9.7 和 Websphere Application Server(WAS) Traditional for Developers v8.5.5.15。我正在尝试使用 runAnt.sh 脚本导出 EAR 文件无头模式。尽管我按照 knowledge center 上的步骤操作,但在 RAD 的“.log”文件中出现以下错误。如果你知道哪里出了问题,请告诉我。
!SESSION 2019-07-13 02:37:18.785
----------------------------------------------- eclipse.buildId=unknown java.fullversion=8.0.5.30 - pxa6480sr5fp30-20190207_01(SR5 FP30) JRE 1.8.0 Linux amd64-64-Bit Compressed References 20190124_408237 (JIT enabled, AOT enabled) OpenJ9 - 9c77d86 OMR - dad8ba7 IBM - e2996d1 BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments: -product com.ibm.rational.rbu.product.v97.rbu -buildfile /opt/IBM/SDP/samples/AutoBuild/AdderBuild.xml importAndBuildEverything Command-line arguments: -product com.ibm.rational.rbu.product.v97.rbu
-data /tmp/ws -os linux -ws gtk -buildfile /opt/IBM/SDP/samples/AutoBuild/AdderBuild.xml importAndBuildEverything
!ENTRY org.eclipse.equinox.app 0 0 2019-07-13 02:37:20.092 !MESSAGE Product com.ibm.rational.rbu.product.v97.rbu could not be found.
!ENTRY org.eclipse.jetty.plus 2 0 2019-07-13 02:37:20.465 !MESSAGE Could not resolve module: org.eclipse.jetty.plus [2158] Bundle was not resolved because of a uses contraint violation. org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.eclipse.jetty.plus [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.plus"] because it is exposed to package 'org.eclipse.jetty.util.log' from resources org.eclipse.jetty.util [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.util"] and org.eclipse.jetty.util [osgi.identity; type="osgi.bundle"; version:Version="9.4.11.v20180605"; osgi.identity="org.eclipse.jetty.util"] via two dependency chains.
Chain 1: org.eclipse.jetty.plus [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.plus"]
import: (&(osgi.wiring.package=org.eclipse.jetty.util.log)(&(version>=9.4.8)(!(version>=9.4.9))))
|
export: osgi.wiring.package: org.eclipse.jetty.util.log org.eclipse.jetty.util [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.util"]
Chain 2: org.eclipse.jetty.plus [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.plus"]
import: (&(osgi.wiring.package=org.eclipse.jetty.jndi)(&(version>=9.4.8)(!(version>=9.4.9))))
|
export: osgi.wiring.package=org.eclipse.jetty.jndi; uses:=org.eclipse.jetty.util.log org.eclipse.jetty.jndi [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.jndi"]
import: (&(osgi.wiring.package=org.eclipse.jetty.util.log)(&(version>=9.4.0)(!(version>=10.0.0))))
|
export: osgi.wiring.package: org.eclipse.jetty.util.log org.eclipse.jetty.util [osgi.identity; type="osgi.bundle"; version:Version="9.4.11.v20180605"; osgi.identity="org.eclipse.jetty.util"]
!ENTRY org.eclipse.osgi 4 0 2019-07-13 02:37:20.466 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
我把答案写在这里,以防有一天有人遇到这个错误。
如所述 here 临时修复:Rational-RAD-PH06298ifix-ifix 解决了问题。
我已经全新安装了 Rational Application Developer(RAD) v9.7 和 Websphere Application Server(WAS) Traditional for Developers v8.5.5.15。我正在尝试使用 runAnt.sh 脚本导出 EAR 文件无头模式。尽管我按照 knowledge center 上的步骤操作,但在 RAD 的“.log”文件中出现以下错误。如果你知道哪里出了问题,请告诉我。
!SESSION 2019-07-13 02:37:18.785
----------------------------------------------- eclipse.buildId=unknown java.fullversion=8.0.5.30 - pxa6480sr5fp30-20190207_01(SR5 FP30) JRE 1.8.0 Linux amd64-64-Bit Compressed References 20190124_408237 (JIT enabled, AOT enabled) OpenJ9 - 9c77d86 OMR - dad8ba7 IBM - e2996d1 BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments: -product com.ibm.rational.rbu.product.v97.rbu -buildfile /opt/IBM/SDP/samples/AutoBuild/AdderBuild.xml importAndBuildEverything Command-line arguments: -product com.ibm.rational.rbu.product.v97.rbu
-data /tmp/ws -os linux -ws gtk -buildfile /opt/IBM/SDP/samples/AutoBuild/AdderBuild.xml importAndBuildEverything
!ENTRY org.eclipse.equinox.app 0 0 2019-07-13 02:37:20.092 !MESSAGE Product com.ibm.rational.rbu.product.v97.rbu could not be found.
!ENTRY org.eclipse.jetty.plus 2 0 2019-07-13 02:37:20.465 !MESSAGE Could not resolve module: org.eclipse.jetty.plus [2158] Bundle was not resolved because of a uses contraint violation. org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.eclipse.jetty.plus [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.plus"] because it is exposed to package 'org.eclipse.jetty.util.log' from resources org.eclipse.jetty.util [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.util"] and org.eclipse.jetty.util [osgi.identity; type="osgi.bundle"; version:Version="9.4.11.v20180605"; osgi.identity="org.eclipse.jetty.util"] via two dependency chains.
Chain 1: org.eclipse.jetty.plus [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.plus"]
import: (&(osgi.wiring.package=org.eclipse.jetty.util.log)(&(version>=9.4.8)(!(version>=9.4.9))))
|
export: osgi.wiring.package: org.eclipse.jetty.util.log org.eclipse.jetty.util [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.util"]
Chain 2: org.eclipse.jetty.plus [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.plus"]
import: (&(osgi.wiring.package=org.eclipse.jetty.jndi)(&(version>=9.4.8)(!(version>=9.4.9))))
|
export: osgi.wiring.package=org.eclipse.jetty.jndi; uses:=org.eclipse.jetty.util.log org.eclipse.jetty.jndi [osgi.identity; type="osgi.bundle"; version:Version="9.4.8.v20171121"; osgi.identity="org.eclipse.jetty.jndi"]
import: (&(osgi.wiring.package=org.eclipse.jetty.util.log)(&(version>=9.4.0)(!(version>=10.0.0))))
|
export: osgi.wiring.package: org.eclipse.jetty.util.log org.eclipse.jetty.util [osgi.identity; type="osgi.bundle"; version:Version="9.4.11.v20180605"; osgi.identity="org.eclipse.jetty.util"]
!ENTRY org.eclipse.osgi 4 0 2019-07-13 02:37:20.466 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
我把答案写在这里,以防有一天有人遇到这个错误。 如所述 here 临时修复:Rational-RAD-PH06298ifix-ifix 解决了问题。