Hi!

When I try to install zip deployment unit generated with maven JBI plugin I get 
ClassNotFoundException: org.servicemix.demo.QuartzComponent
Quartz component is in example-client-quartz-1.0.jar

My jbi.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>

<jbi xmlns="http://java.sun.com/xml/ns/jbi"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/jbi"; version="1.0">
  <component type="service-engine">
    <identification>
      <name>example-client-quartz</name>
      <description>This is an example of a simple quartz scheduler component 
written using the ServiceMix Client infrastructure</description>
    </identification>
    <component-class-name description="Component 
Implementation">org.servicemix.client.SpringComponent</component-class-name>
    <component-class-path>
      <path-element>lib/example-client-quartz-1.0.jar</path-element>
      <path-element>lib/servicemix-client-2.1-SNAPSHOT.jar</path-element>
      <path-element>lib/quartz-1.4.0.jar</path-element>
    </component-class-path>
  </component><services binding-component="false" 
xmlns:quartz="http://tempuri.org/quartz"; 
xmlns:logger="http://tempuri.org/logger.wsdl";> <consumes interface-
name="quartz:triggeredNotification" service-name="logger:example" /> 
</services></jbi>



debug nippet:

INFO - XmlBeanDefinitionReader.loadBeanDefinitions(163) | Loading XML bean defin
itions from file [D:\servicemix-2.1-SNAPSHOT\wdir\defaultJBI\components\example-
client-quartz\version_1\installation\META-INF\jbi-spring.xml]
ERROR - InstallationService.install(345) | Failed to start Component: example-cl
ient-quartz
javax.jbi.JBIException: Could not initialize component
        at org.servicemix.client.SpringComponentLifeCycle.init(SpringComponentLi
feCycle.java:139)
        at org.servicemix.jbi.framework.LocalComponentConnector.init(LocalCompon
entConnector.java:230)
        at org.servicemix.jbi.framework.ComponentMBeanImpl.doStart(ComponentMBea
nImpl.java:125)
        at org.servicemix.jbi.framework.ComponentMBeanImpl.start(ComponentMBeanI
mpl.java:93)
        at org.servicemix.jbi.framework.InstallationService.install(Installation
Service.java:336)
        at org.servicemix.jbi.framework.AutoDeploymentService.updateArchive(Auto
DeploymentService.java:204)
        at org.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDeployme
ntService.java:485)
        at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.ja
va:291)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown So
urce)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Error
 registering bean with name 'myQuartzService' defined in file [D:\servicemix-2.1
-SNAPSHOT\wdir\defaultJBI\components\example-client-quartz\version_1\installatio
n\META-INF\jbi-spring.xml]: Bean class [org.servicemix.demo.QuartzComponent] not
 found; nested exception is java.lang.ClassNotFoundException: org.servicemix.dem
o.QuartzComponent
...
Cheers, Simon


Reply via email to