Hi Peter,

Peter Royal wrote:
On Friday, August 8, 2003, at 01:28 PM, Peter Klotz wrote:

So principally the merging works now after I have the right directory structure and naming conventions followed.


Now the question is, do I have to specify the excalibur-configuration:merge="true" for each tag that is the components' name tag and all the config-tags inside? or is it enough to specify it on the topmost element?

I get an ConfigurationException with the message Unable to merge configuration item, multiple matches on child or base [name: server].
So obviously the merging into config.xml is done without considering the component names and I have twice a <server> in <tecadapter> and <omiadapter>. But on the one the key-attribute is "href" and the other one "host" but still I get this exception?


Is there any excalibur-configuration attribute in my files that would be superfluous? E.g. on the top-level component-tags?

what happens when the base is empty e.g. a empty <tecadapter> or one without <server> etc?


Best regards, Peter
<?xml version='1.0'?>
<config>
  <threads>
    <thread-group>
      <name>default</name>
      <!-- normal priority == 5, max-priority = 10 -->
      <priority>5</priority>
      <!-- are threads deamon threads ? -->
      <is-daemon>false</is-daemon>
      <max-threads>40</max-threads>
      <!-- these are ignored at the moment but will be fixed in later revisions -->
      <min-threads>20</min-threads>
      <min-spare-threads>20</min-spare-threads>
    </thread-group>
  </threads>

  <sockets>
    <server-sockets>
      <factory name="plain" class="org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory"/>
    </server-sockets>
    <client-sockets>
      <factory name="plain" class="org.apache.avalon.cornerstone.blocks.sockets.DefaultSocketFactory"/>
    </client-sockets>
  </sockets>

  <caches>
    <cache validate="true">
      <store class="org.apache.excalibur.cache.store.FlipSpacesStore" capacity="1000"/>
      <policy class="org.apache.excalibur.cache.policy.LRUPolicy"/>
      <validator class="org.apache.excalibur.cache.validator.TimeoutValidator" timeout="1000"/>
    </cache>
  </caches>

  <scripting>
    <!--script name="bml" class="org.apache.bsf.engines.jacl." ext="bml" enabled="false"/-->
    <script name="jacl" class="org.apache.bsf.engines.jacl.JaclEngine" ext="jacl" enabled="false"/>
    <script name="java" class="org.apache.bsf.engines.java.JavaEngine" ext="java" enabled="false"/>
    <script name="javaclass" class="org.apache.bsf.engines.java.JavaClassEngine" ext="class" enabled="false"/>
    <script name="javascript" class="org.apache.bsf.engines.javascript.JavascriptEngine" ext="js" enabled="false"/>
    <script name="jpython" class="org.apache.bsf.engines.jpython.JPythonEngine" ext="py" enabled="false"/>
    <script name="jscript" class="org.apache.bsf.engines.activescript.ActivescriptEngine" ext="js" enabled="false"/>
    <script name="jython" class="org.apache.bsf.engines.jython.JythonEngine" ext="py" enabled="false"/>
    <script name="netrexx" class="org.apache.bsf.engines.netrexx.NetRexxEngine" ext="nrx" enabled="false"/>
    <script name="vbscript" class="org.apache.bsf.engines.activescript.ActivescriptEngine" ext="vbs" enabled="false"/>
    <script name="perlscript" class="org.apache.bsf.engines.activescript.ActivescriptEngine" ext="pls" enabled="false"/>
    <script name="xslt" class="org.apache.bsf.engines.xslt.XSLTEngine" ext="xsl" enabled="false"/>
  </scripting>

  <license>
    <holder>blue elephant systems GmbH</holder>
  </license>

  <!-- consumer component config -->
  <omiclient>
    <!--
    <configFile location="/conf/eif.conf"/>
    -->
    <server href="http://araucaria:5555/soap/omi";>
      <username>Administrator</username>
      <password>ED2A441509638F450066A0B1FF9ACDDB</password>
    </server>
  </omiclient>
  <omipoller>
    <!--
    <configFile location="/conf/eif.conf"/>
    -->
    <interval>10000</interval>
    <maxNotificationBatch>10</maxNotificationBatch>
  </omipoller>
  <tecadapter>
    <!--
    <configFile location="/conf/eif.conf"/>
    -->
    <server host="localhost" port="0"/>
    <bufferEvents enable="true">
      <bufferFile location="/etc/Tivoli/tec"/>
      <bufferFlushRate>0</bufferFlushRate>
    </bufferEvents>
    <connectionMode>connection_less</connectionMode>
    <eventMaxSize>4096</eventMaxSize>
    <retryInterval>0</retryInterval>
    <eventSource>OMI</eventSource>
    <eventClass>OMI</eventClass>
    <logging enable="true" level="All">
      <logFile>/tmp/tomi_eif.log</logFile>
    </logging>
    <tracing enable="true" level="All">
      <traceFile>/tmp/tomi_eif.trace</traceFile>
    </tracing>
  </tecadapter>

  <!-- web app container -->
  <jo>
    <configuration>/conf</configuration>
  </jo>

  <altrmi-publisher>
    <port>8666</port>
    <bind>localhost</bind>
    <socketObjectStreamHandler>
      <connectiontimeout>360000</connectiontimeout>
    </socketObjectStreamHandler>
    <socketStreamServerClass>org.apache.altrmi.server.impl.socket.PartialSocketCustomStreamServer</socketStreamServerClass>
    <classRetrieverType>jarFile</classRetrieverType>
    <generatedClassJarURLs>./tomi_altrmiproxy.jar</generatedClassJarURLs>
  </altrmi-publisher>

  <altrmi-authenticator>
  </altrmi-authenticator>

  <altrmification-listener>
    <publisher>altrmi-publisher</publisher>
    <publish block="omiclient" interfaceToPublish="com.bes.itm.comp.omi.IOMIClient" publishAsName="omiclient"/>
    <publish block="scripts" interfaceToPublish="com.bes.itm.comp.bsf.IScriptingManager" publishAsName="scripting"/>
  </altrmification-listener>
</config>
<?xml version='1.0'?>
  <tecadapter excalibur-configuration:merge="true">
    <server host="hooksiel" port="0"  excalibur-configuration:merge="true" excalibur-configuration:key-attribute="host"/>
  </tecadapter>

<?xml version='1.0'?>
  <omiclient excalibur-configuration:merge="true">
    <server href="http://araucaria:5555/soap/omi"; excalibur-configuration:merge="true" excalibur-configuration:key-attribute="href">
      <username excalibur-configuration:merge="true">Administrator</username>
      <password excalibur-configuration:merge="true">ED2A441509638F450066A0B1FF9ACDDB</password>
    </server>
  </omiclient>

<?xml version='1.0'?>
  <omipoller excalibur-configuration:merge="true">
    <interval excalibur-configuration:merge="true">10000</interval>
  </omipoller>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to