You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Doug Fischer <dg...@dfischer.com> on 2006/01/27 16:48:51 UTC
Spring Client Toolkit example
Hi all,
I have gone through the Spring Client Toolkit page, followed the example to
the letter, generated the installer with the maven plugin using
³maven:generateInstaller², moved the zip file to the install directory, and
then saw the following error in the console:
=====================================================
[WARN] AutoDeploymentService - Directory: install: Automatic install of
../install/myFirstComponent-1.0-jbi-installer.zip failed
<java.lang.RuntimeException: Unable to parse the
jbi.xml>java.lang.RuntimeException: Unable to parse the jbi.xml
at
org.servicemix.client.DescriptorFactory.getDescriptor(DescriptorFactory.java
:61)
at
org.servicemix.client.ClientEndPointRegistry.loadServiceUnitServices(ClientE
ndPointRegistry.java:314)
...
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
Line 3 in XML document from URL
[file://Users/dfischer/Developer/Tools/Versions/servicemix-2.0.2/bin/../wdir
/defaultJBI/components/myFirstComponent/installation/META-INF/jbi.xml] is
invalid; nested exception is org.xml.sax.SAXParseException: Document root
element "jbi", must match DOCTYPE root "null".
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefini
tions(XmlBeanDefinitionReader.java:169)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadB
eanDefinitions(AbstractBeanDefinitionReader.java:125)
...
Caused by: org.xml.sax.SAXParseException: Document root element "jbi", must
match DOCTYPE root "null".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
======================================================
----- The jbi.xml file: ------
======================================================
<?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>myFirstComponent</name>
<description>A new JBI component</description>
</identification>
<component-class-name description="Component
Implementation">org.servicemix.client.SpringComponent</component-class-name>
<component-class-path>
<path-element>lib/myFirstComponent-1.0.jar</path-element>
<path-element>lib/servicemix-client-1.0.jar</path-element>
</component-class-path>
</component><!-- This is where we are able to declare the ins and outs of
the Service as consumes and provides elements, the service-names and
endpoints will be used to activate the JBI endpoints, and we can use the
interface-name to determine which one we want to call and also which bean is
going to receive the actual JBI exchange --> <services
binding-component="false" xmlns:logger="http://tempuri.org/logger">
<consumes interface-name="logger:log" service-name="logger:myLogger"/>
</services></jbi>
======================================================
Could someone please let me know what I am doing wrong?
Thank you,
Doug