【问题标题】:Apache Karaf ColorPalette error in windowsWindows中的Apache Karaf ColorPalette错误
【发布时间】:2021-02-16 01:44:33
【问题描述】:

Windows 10 中的 Apache Karaf 4.3.0。 我尝试安装一项功能并收到以下错误,谁能帮我找出可能导致此错误的原因。它也从外壳中出来。之后如果我再次开始,我会得到同样的错误并停止。

...\apache-karaf-4.3.0\bin>karaf
karaf.bat: Ignoring predefined value for KARAF_HOME
karaf.bat: KARAF_LOG doesn't exist: "...\sw\apache-karaf-4.3.0\bin\..\data\log"
karaf.bat: Creating "...\sw\apache-karaf-4.3.0\bin\..\data\log"
karaf.bat: JAVA_HOME not set; results may vary


  Apache Karaf (4.3.0)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> feature:repo-add mvn:org.apache.karaf.examples/karaf-blueprint-example-features/LATEST/xml
Adding feature url mvn:org.apache.karaf.examples/karaf-blueprint-example-features/LATEST/xml
karaf@root()> feature:install karaf-blueprint-example-provider
Error executing command: Method org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; is abstract

【问题讨论】:

  • 我在安装 activemq 后遇到了完全相同的错误。
  • 我在 Mac OS Catalina 上。

标签: apache-karaf


【解决方案1】:

根据https://issues.apache.org/jira/browse/KARAF-6996,您可以尝试将 Karaf 4.3.1-SNAPSHOT 存储库添加到黑名单存储库。

只需添加 etc/org.apache.karaf.features.xml 包含:

<?xml version="1.0" encoding="UTF-8"?>
<featuresProcessing xmlns="http://karaf.apache.org/xmlns/features-processing/v1.0.0">

    <!--
        Licensed to the Apache Software Foundation (ASF) under one or more
        contributor license agreements.  See the NOTICE file distributed with
        this work for additional information regarding copyright ownership.
        The ASF licenses this file to You under the Apache License, Version 2.0
        (the "License"); you may not use this file except in compliance with
        the License.  You may obtain a copy of the License at


            http://www.apache.org/licenses/LICENSE-2.0


        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.
    -->

    <blacklistedRepositories>
        <repository>mvn:org.apache.karaf.features/framework/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/standard/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise-legacy/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring-legacy/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/framework/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/standard/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise-legacy/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring-legacy/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/framework/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/standard/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise-legacy/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring-legacy/4.3.0.RC1/xml/features</repository>
    </blacklistedRepositories>

</featuresProcessing> 

这对我有用。

【讨论】:

    【解决方案2】:

    我在 Karaf 4.2.14 中遇到了错误。 etc/org.apache.karaf.features.xml 包含如上所示的条目。 Sut 仍然收到错误 - Error executing command: Method io/hawt/web/plugin/karaf/terminal/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; is abstract

    【讨论】:

    • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 2019-01-27
    • 2015-07-24
    • 2012-10-08
    • 2012-07-23
    • 2012-10-28
    • 2011-10-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多