ace-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert M. Mather" <robert.mather....@gmail.com>
Subject Can't connect from Agent on Karaf client
Date Sat, 14 Feb 2015 19:23:08 GMT
I'm new to Ace and considering it for a production deployment with a couple
hundred targets that might scale to thousands in the next few months. I'm
assuming it's production ready for that sort of scenario?

At the moment, I'm having trouble connecting from the Agent bundle running
on Karaf (installed via feature.xml generated by the maven-karaf-plugin,
see below).  When installing the Agent feature, I get the startup
confirmation (below), and when I set the discovery+identification System
properties and restart the agent, I see the correct values filled in for
Target ID and Server, but the client never shows up as a registered target
on the server. I know the server is working and that I'm using the right
url, because I can connect and register from the standalone agent included
with the Ace binary distribution by running
java -Dagent.identification.agentid=<my-id>
-Dagent.discovery.serverurls=<my-url> -jar target.jar

The only differences I see are how the two properties get set and the
versions of the agents running on the two. For the Karaf feature, I'm using
the latest from Maven central
org.apache.ace:org.apache.ace.managementagent:0.8.1-incubator
and the target.jar is just the one included with Ace 2.0.1 binary
distribution.

I'd appreciate any guidance on how to debug this! Using Ace would be so
much nicer than rolling my own to do the same thing!

Robert


karaf@root()> feature:install ace.agent
Started management agent.
  Target ID: configuredGatewayID
  Server   : http://localhost:8080
  Sync interval: 2000 ms
  Unaffected bundles will not be stopped during deployment.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.1"
name="ace.agent">
    <feature name="ace.agent" version="0.0.1-SNAPSHOT"
description="ace.agent">
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.managementagent/0.8.1-incubator</bundle>
        <bundle start-level="50">mvn:org.osgi/org.osgi.core/4.2.0</bundle>
        <bundle
start-level="50">mvn:org.osgi/org.osgi.compendium/4.2.0</bundle>
        <bundle
start-level="50">wrap:mvn:javax.servlet/servlet-api/2.4</bundle>
        <bundle
start-level="50">mvn:org.apache.felix/org.apache.felix.configadmin/1.2.8</bundle>
        <bundle
start-level="50">mvn:org.apache.felix/org.apache.felix.eventadmin/1.2.8</bundle>
        <bundle
start-level="50">wrap:mvn:concurrent/concurrent/1.3.4</bundle>
        <bundle
start-level="50">mvn:org.apache.felix/org.apache.felix.dependencymanager/3.0.0</bundle>
        <bundle
start-level="50">mvn:org.apache.felix/org.apache.felix.deploymentadmin/0.9.0</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.log.listener/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.gateway.log/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.scheduler.api/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.gateway.log.store/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.range.api/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.util/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.deployment.provider.api/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.log/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.discovery.api/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.discovery.property/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.identification.api/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.identification.property/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.scheduler/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.deployment.api/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.deployment.deploymentadmin/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.ace/org.apache.ace.deployment.task/0.8.1-incubator</bundle>
        <bundle
start-level="50">mvn:org.apache.logging.log4j/log4j-api/2.1</bundle>
    </feature>
</features>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message