Try adding a name attribute to the component definition.
   <http:component name="servicemix-http">

On Thu, May 29, 2008 at 11:23 AM, Bjorn Bength <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to use an embedded configuration of servicemix 3.2.1 and
> reading http://servicemix.apache.org/embedding.html
> gives the illusion that its possible to make a simpler configuration
> using only <sm:endpoints> rather than the old way of listing endpoints
> in components.
>
> however, I need to customize my <http:component> with an
> <http:configuration> using the method described.
>
> like:
>
>    <sm:components>
>      <http:component configuration="#myHttpConfig"/>
>    </sm:components>
>    <sm:endpoints>
>      <http:endpoint
>          service="test:Hello"
>          endpoint="testService"
>          role="consumer"
>          defaultOperation="echo"
>          locationURI="http://localhost:8194/Service/";
>          soap="true" />
>    </sm:endpoints>
>
>
>
> and all it says when it's starting up the container is:
>
> Caused by: java.lang.RuntimeException: No key defined for map entry property
>        at 
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseCustomMapElement(XBeanNamespaceHandler.java:664)
>        at 
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseNestedPropertyViaIntrospection(XBeanNamespaceHandler.java:581)
>        at 
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.tryParseNestedPropertyViaIntrospection(XBeanNamespaceHandler.java:552)
>        at 
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addNestedPropertyElements(XBeanNamespaceHandler.java:521)
>        at 
> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:217)
>
>
> etc etc.
>
>
> Whats wrong, me or the documentation?
>
>
> /Björn
> --
> Bjorn Bength <[EMAIL PROTECTED]>
> Curalia AB
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to