在Mac OS上安装WebLogic Server时出现问题

时间:2019-06-03 04:49:20

标签: macos java-ee weblogic weblogic12c java-ee-7

在为安装创建的WebLogic /目录中运行java -jar命令 java -jar fmw_12.2.1.2.0_wls.jar 时,出现以下错误:

 akh@akhs-MacBook-Pro ~/WebLogic: java -jar fmw_12.2.1.2.0_wls.jar
Exception in thread "main" java.util.ServiceConfigurationError: com.oracle.cie.common.dao.DataHandlerSpi: com.oracle.cie.common.dao.jaxb.JaxbDataHandlerSpiImpl Unable to get public no-arg constructor
    at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:581)
    at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:672)
    at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1232)
    at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1264)
    at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1299)
    at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1384)
    at com.oracle.cie.common.dao.DataHandlerSpi.getDataHandlerProvider(DataHandlerSpi.java:81)
    at com.oracle.cie.gdr.helpers.DaoHelper.getDataHandlerProvider(DaoHelper.java:123)
    at com.oracle.cie.gdr.helpers.DaoHelper.parse(DaoHelper.java:170)
    at com.oracle.cie.gdr.helpers.DaoHelper.getRootWrapper(DaoHelper.java:398)
    at com.oracle.cie.nextgen.common.inputs.parser.OptionsParser.getOptionsInfoDao(OptionsParser.java:516)
    at com.oracle.cie.nextgen.common.inputs.parser.OptionsParser.parseOptionsDao(OptionsParser.java:189)
    at com.oracle.cie.nextgen.common.inputs.parser.OptionsParser.<init>(OptionsParser.java:136)
    at com.oracle.cie.nextgen.common.inputs.parser.OptionsParser.getInstance(OptionsParser.java:123)
    at com.oracle.cie.nextgen.common.inputs.impl.OUIOptions.<init>(OUIOptions.java:58)
    at com.oracle.cie.nextgen.common.inputs.impl.InputsImpl.<init>(InputsImpl.java:53)
    at com.oracle.cie.nextgen.common.inputs.impl.InputsImpl.<clinit>(InputsImpl.java:37)
    at com.oracle.cie.nextgen.common.inputs.helpers.InputHandler.getInputs(InputHandler.java:41)
    at com.oracle.cie.nextgen.launcher.Launcher.processCommandLineArgs(Launcher.java:3135)
    at com.oracle.cie.nextgen.launcher.Launcher.execute(Launcher.java:3840)
    at com.oracle.cie.nextgen.launcher.Launcher.main(Launcher.java:3801)
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3138)
    at java.base/java.lang.Class.getConstructor0(Class.java:3343)
    at java.base/java.lang.Class.getConstructor(Class.java:2152)
    at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:659)
    at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:656)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:667)
    ... 19 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 27 more

我已经在.bash_profile中设置了JAVA_HOME。 $ JAVA_HOME的Echo是:“ / Library / Java / JavaVirtualMachines / openjdk-11.0.2.jdk / Contents / Home”。我已经测试并运行“ java --version”,然后得到

openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

我正在macOS Mojave 10.14.5版上运行,我的JDK在路径/ Library / Internet Plug-Ins / JavaAppletPlugin.plugin / Contents / Home / bin / java中为8。 我不知道为什么Java崩溃了,安装程序没有运行。

0 个答案:

没有答案