Could you post the log using -debug.


Quick question - do you really need cornerstone-threads-impl and excaliobur-thread in your classloader?

Cheers, Steve.


Jim Alateras wrote:


Hi,

I am  trying to configure a composite component to include the thread
pool block using the 'include' directive in my block.xml, which is shown
below

<container name="pep">
    <classloader>
      <classpath>
        <repository>
          <!-- Avalon resources -->
          <resource id="avalon-framework:avalon-framework-api"
version="4.1.5"/>
          <resource id="avalon-framework:avalon-framework-impl"
version="4.1.5"/>
          <resource id="commons-logging:commons-logging"
version="1.0.3"/>

          <!-- ChoreoWorks Server Application Platform -->
          <resource id="choreoworks-sap:sap-logger" version="1.0"/>
          <resource id="choreoworks-sap:sap-uuid-spi" version="1.0"/>
          <resource id="choreoworks-sap:sap-uuid-tyrex" version="1.0"/>
          <resource id="choreoworks-sap:sap-scheduler-spi"
version="1.0"/>
          <resource id="choreoworks-sap:sap-scheduler-quartz"
version="1.0"/>
          <resource id="choreoworks-sap:sap-queue-spi" version="1.0"/>
          <resource id="choreoworks-sap:sap-queue-openjms"
version="1.0"/>

          <!-- Logger Components -->
          <resource id="log4j:log4j" version="1.2.8"/>

          <!-- Job Scheduler Component -->
          <resource id="quartz:quartz" version="1.2.3"/>

          <!-- Cornerstone Components -->
          <resource id="cornerstone-threads:cornerstone-threads-api"
version="1.0"/>
          <resource id="cornerstone-threads:cornerstone-threads-impl"
version="1.0"/>

<!-- Excalibur Components -->
<resource id="excalibur-thread:excalibur-thread"
version="1.1.1"/>
<!-- JMS Components -->
<resource id="jndi:jndi" version="1.2.1"/>
<resource id="jms:jms" version="1.0.2a"/>
<resource id="openjms:openjms-client" version="0.7.6-rc2"/>
<resource id="openjms:exolabcore" version="0.3.6"/>
</repository>
</classpath>
</classloader>



<include name="thread-manager" id="cornerstone-threads:cornerstone-threads-impl" version="1.0" />

<component name="log4j-logger"
class="com.choreoworks.sap.logger.log4j.Log4JLogger"
activation="startup"/>
<component name="tyrex-uuid"
class="com.choreoworks.sap.uuid.tyrex.TyrexUUIDGenerator"
activation="startup"/>
<component name="quartz-scheduler"
class="com.choreoworks.sap.scheduler.quartz.QuartzJobScheduler"
activation="startup"/>
<component name="openjms-queue"
class="com.choreoworks.sap.queue.openjms.OpenJMSQueueManager"
activation="startup"/>
<component name="version"
class="com.choreoworks.pep.loader.PlatformVersion"
activation="startup"/>
<component name="pep-loader"
class="com.choreoworks.pep.loader.PEPLoader" activation="startup" />
</container>



When I attempt to run the composite block I get the following error.



Internal error during kernel instantiation.



---- report -------------------------------------------------------


Exception: org.apache.avalon.merlin.kernel.KernelException
Message: Block install failure:
file:/C:/applications/merlin/repository/choreoworks-pep/jars/pep-loader-
0.1.jar

Cause: org.apache.avalon.composition.model.ModelException
Message: Unable to create block from embedded descriptor
[jar:file:/C:/applications/merlin/repository/choreoworks-pep/jars/pep-lo
ade
r-0.1.jar!/BLOCK-INF/block.xml] in the containmment model [/] due to a
build related error.

Cause: org.apache.avalon.composition.model.ModelException
Message: Unable to create block from embedded descriptor
[jar:file:/c:/applications/merlin/repository/cornerstone-threads/jars/co
rne
rstone-threads-impl-1.0.jar!/BLOCK-INF/block.xml] in the containmment
model [/pep] due to a build related error.

Cause: org.apache.avalon.composition.model.ModelException
Message: Unable to create a nested deployment model: manager in the
containment model /pep/.

Cause: org.apache.avalon.composition.model.TypeUnknownException
Message: Unable to locate a component type descriptor for the component
class [org.apache.avalon.cornerstone.blocks.threads.DefaultT
hreadManager] in the classloader.  Please verify that the component
classname is correct and that a component type descriptor is inc
luded in a jar file available within the container classloader.

-------------------------------------------------------------------

I had a look at the tutorial and I cannot see what I am doing wrong.


Cheers </jima>

BTW I am using Merlin v3.0


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





--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]




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



Reply via email to