Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 在Fuse ESB中安装驼峰码头功能时出错_Apache_Apache Camel_Jetty_Apache Servicemix_Fuseesb - Fatal编程技术网

Apache 在Fuse ESB中安装驼峰码头功能时出错

Apache 在Fuse ESB中安装驼峰码头功能时出错,apache,apache-camel,jetty,apache-servicemix,fuseesb,Apache,Apache Camel,Jetty,Apache Servicemix,Fuseesb,我正在尝试在Windows 7计算机上配置Fuse ESB。这里是配置 配置 JRE 1.6.0_30 MS VC++可再发行-x86 9.0.30729.17 JAVA\u主页设置为“C:\Program Files\JAVA\jre6” Apache ServiceMix 4.4.1-fuse-02-02 启动ServiceMix控制台后,我尝试使用以下命令安装camel jetty 特点:安装驼峰码头 它将失败,并显示以下消息 执行命令时出错:URL[mvn:org.apache.came

我正在尝试在Windows 7计算机上配置Fuse ESB。这里是配置

配置
  • JRE 1.6.0_30
  • MS VC++可再发行-x86 9.0.30729.17
  • JAVA\u主页设置为“C:\Program Files\JAVA\jre6”
  • Apache ServiceMix 4.4.1-fuse-02-02
  • 启动ServiceMix控制台后,我尝试使用以下命令安装camel jetty

    特点:安装驼峰码头

    它将失败,并显示以下消息

    执行命令时出错:URL[mvn:org.apache.camel/camel http/2.8.0-fuse-02-02] 无法解决

    完整日志消息如下所示

    12:37:45,299 | INFO  | l Console Thread | FeaturesServiceImpl              | 39 - org.apache.karaf.features.core - 2.2.2.fuse-03-02 | Installing feature camel-jetty 2.8.0-fuse-02-02
    12:37:45,299 | INFO  | l Console Thread | FeaturesServiceImpl              | 39 - org.apache.karaf.features.core - 2.2.2.fuse-03-02 | Installing feature jetty 7.4.5.fuse20111017
    12:37:45,299 | INFO  | l Console Thread | FeaturesServiceImpl              | 39 - org.apache.karaf.features.core - 2.2.2.fuse-03-02 | Installing feature camel-core 2.8.0-fuse-02-02
    12:37:45,299 | INFO  | l Console Thread | FeaturesServiceImpl              | 39 - org.apache.karaf.features.core - 2.2.2.fuse-03-02 | Installing feature camel-http 2.8.0-fuse-02-02
    12:37:45,299 | INFO  | l Console Thread | FeaturesServiceImpl              | 39 - org.apache.karaf.features.core - 2.2.2.fuse-03-02 | Installing feature camel-core 2.8.0-fuse-02-02
    12:37:58,718 | INFO  | l Console Thread | Console                          | 32 - org.apache.karaf.shell.console - 2.2.2.fuse-03-02 | Exception caught while executing command
    java.lang.RuntimeException: URL [mvn:org.apache.camel/camel-http/2.8.0-fuse-02-02] could not be resolved.
        at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)[2:org.ops4j.pax.url.mvn:1.2.6.fuse-01]
        at org.apache.felix.bundlerepository.impl.FileUtil.openURL(FileUtil.java:203)[6:org.apache.felix.bundlerepository:1.6.4]
        at org.apache.felix.bundlerepository.impl.FileUtil.openURL(FileUtil.java:196)[6:org.apache.felix.bundlerepository:1.6.4]
        at org.apache.felix.bundlerepository.impl.DataModelHelperImpl$2.loadEntry(DataModelHelperImpl.java:452)[6:org.apache.felix.bundlerepository:1.6.4]
        at org.apache.felix.bundlerepository.impl.DataModelHelperImpl$2.<init>(DataModelHelperImpl.java:411)[6:org.apache.felix.bundlerepository:1.6.4]
        at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.createResource(DataModelHelperImpl.java:404)[6:org.apache.felix.bundlerepository:1.6.4]
        at org.apache.karaf.features.obr.internal.ObrResolver.resolve(ObrResolver.java:75)[28:org.apache.karaf.features.obr:2.2.2.fuse-03-02]
        at org.apache.karaf.features.internal.FeaturesServiceImpl.resolve(FeaturesServiceImpl.java:505)[39:org.apache.karaf.features.core:2.2.2.fuse-03-02]
        at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:474)[39:org.apache.karaf.features.core:2.2.2.fuse-03-02]
        at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:453)[39:org.apache.karaf.features.core:2.2.2.fuse-03-02]
        at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:292)[39:org.apache.karaf.features.core:2.2.2.fuse-03-02]
        at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:280)[39:org.apache.karaf.features.core:2.2.2.fuse-03-02]
        at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:276)[39:org.apache.karaf.features.core:2.2.2.fuse-03-02]
        at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)[17:org.apache.karaf.features.command:2.2.2.fuse-03-02]
        at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:39)[17:org.apache.karaf.features.command:2.2.2.fuse-03-02]
        at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[32:org.apache.karaf.shell.console:2.2.2.fuse-03-02]
        at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[32:org.apache.karaf.shell.console:2.2.2.fuse-03-02]
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[32:org.apache.karaf.shell.console:2.2.2.fuse-03-02]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[32:org.apache.karaf.shell.console:2.2.2.fuse-03-02]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[32:org.apache.karaf.shell.console:2.2.2.fuse-03-02]
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[32:org.apache.karaf.shell.console:2.2.2.fuse-03-02]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[32:org.apache.karaf.shell.console:2.2.2.fuse-03-02]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[32:org.apache.karaf.shell.console:2.2.2.fuse-03-02]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[32:org.apache.karaf.shell.console:2.2.2.fuse-03-02]
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:240)[32:org.apache.karaf.shell.console:2.2.2.fuse-03-02]
        at java.lang.Thread.run(Unknown Source)[:1.6.0_30]
    

    此错误意味着Fuse ESB无法从任何可用存储库中找到驼峰http工件

    首先在本地存储库中进行Fuse搜索,然后在配置的远程maven存储库中进行Fuse搜索。 所有配置都在
    \etc\org.ops4j.pax.url.mvn.cfg


    有关如何正确配置的更多详细信息,请参阅。

    在这种特殊情况下,安装程序不应该自动执行此操作吗?如何知道camel http的存储库是否已关闭?这实际上取决于配置是如何完成的。你能提供org.ops4j.pax.url.mvn.cfg文件吗?刚刚添加了这个文件的内容。因为它是工件的-fuse-02-02版本,所以应该托管在fuse存储库上(maven repo只托管apache one的(请参阅,因为公共存储库中似乎没有这些构件。尝试使用以前版本的Fuse ESB会有问题吗?根据发行说明,您的版本已于上周发布(请参阅)
    ################################################################################
    #
    #    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.
    #
    ################################################################################
    
    #
    # If set to true, the following property will not allow any certificate to be used
    # when accessing maven repositories through SSL
    #
    #org.ops4j.pax.url.mvn.certificateCheck=
    
    #
    # Path to the local maven settings file.
    # The repositories defined in this file will be automatically added to the list
    # of default repositories if the 'org.ops4j.pax.url.mvn.repositories' property
    # below is not set.
    # The following locations are checked for the existence of the settings.xml file
    #   * 1. looks for the specified url
    #   * 2. if not found looks for ${user.home}/.m2/settings.xml
    #   * 3. if not found looks for ${maven.home}/conf/settings.xml
    #   * 4. if not found looks for ${M2_HOME}/conf/settings.xml
    #
    #org.ops4j.pax.url.mvn.settings=
    
    #
    # Path to the local maven repository which is used to avoid downloading
    # artifacts when they already exist locally.
    # The value of this property will be extracted from the settings.xml file
    # above, or defaulted to:
    #     System.getProperty( "user.home" ) + "/.m2/repository"
    #
    #org.ops4j.pax.url.mvn.localRepository=
    
    #
    # Default this to false. It's just weird to use undocumented repos
    #
    org.ops4j.pax.url.mvn.useFallbackRepositories=false
    
    #
    # Uncomment if you are behind a web proxy. PAX URL will use the proxy settings
    # from the Maven conf/settings.xml file
    #
    # org.ops4j.pax.url.mvn.proxySupport=true
    
    #
    # Disable aether support by default.  This ensure that the defaultRepositories
    # below will be used
    #
    org.ops4j.pax.url.mvn.disableAether=true
    
    #
    # Comma separated list of repositories scanned when resolving an artifact.
    # Those repositories will be checked before iterating through the
    #    below list of repositories and even before the local repository
    # A repository url can be appended with zero or more of the following flags:
    #    @snapshots  : the repository contains snaphots
    #    @noreleases : the repository does not contain any released artifacts
    #
    # The following property value will add the system folder as a repo.
    #
    org.ops4j.pax.url.mvn.defaultRepositories=file:${karaf.home}/${karaf.default.repository}@snapshots,\
    file:${karaf.home}/local-repo@snapshots
    
    #
    # Comma separated list of repositories scanned when resolving an artifact.
    # The default list includes the following repositories:
    #    http://repo1.maven.org/maven2
    #    http://repository.apache.org/content/groups/snapshots-group
    #    http://svn.apache.org/repos/asf/servicemix/m2-repo
    #    http://repository.springsource.com/maven/bundles/release
    #    http://repository.springsource.com/maven/bundles/external
    # To add repositories to the default ones, prepend '+' to the list of repositories
    # to add.
    # A repository url can be appended with zero or more of the following flags:
    #    @snapshots  : the repository contains snaphots
    #    @noreleases : the repository does not contain any released artifacts
    #
    org.ops4j.pax.url.mvn.repositories= \
        http://repo1.maven.org/maven2, \
        http://repo.fusesource.com/nexus/content/repositories/releases, \
        http://repo.fusesource.com/nexus/content/repositories/snapshots@snapshots@noreleases, \
        http://repository.apache.org/content/groups/snapshots-group@snapshots@noreleases, \
        http://svn.apache.org/repos/asf/servicemix/m2-repo, \
        http://repository.springsource.com/maven/bundles/release, \
        http://repository.springsource.com/maven/bundles/external