windows 中的 Apache Karaf ColorPalette 错误
Apache Karaf ColorPalette error in windows
windows10 中的 Apache Karaf 4.3.0。
我尝试安装一个功能并出现以下错误,谁能帮我找出导致此错误的原因。它也出现了 shell。在那之后,如果我再次开始,我会得到同样的错误并停止。
...\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
根据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>
这对我有用。
我在 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
windows10 中的 Apache Karaf 4.3.0。 我尝试安装一个功能并出现以下错误,谁能帮我找出导致此错误的原因。它也出现了 shell。在那之后,如果我再次开始,我会得到同样的错误并停止。
...\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
根据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>
这对我有用。
我在 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