Hi all,

I have the soap-binding example working correctly . I tried to modify the
example
to use the xbean config file : servicemix.xml like its done for other
examples and use the embedded ServiceMix and not deploy it the "jbi" way..

I am getting the following error : The xml file follows after that...
Can any one point out what could be the cause of the problem ?
( I tried this in 3.0M2 also)

===
Caught: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jbi'
 defined in file
[D:\servicemix\incubating-servicemix-3.0-SNAPSHOT\examples\smsoap-binding\servicemi
x.xml]: Initialization of bean failed; nested exception is
javax.jbi.JBIException: Error calling ini
t
javax.jbi.JBIException: Error calling init
        at
org.apache.servicemix.common.BaseLifeCycle.init(BaseLifeCycle.java:115)
        at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(ComponentMBeanImpl.java:192)
        at
org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1025
)
        at
org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:987)
....................

Caused by: org.codehaus.xfire.XFireRuntimeException: Could not create wsdl
builder. Nested exception
 is org.jdom.IllegalNameException: The name "" is not legal for JDOM/XML
namespaces: Namespace URIs
must be non-null and non-empty Strings.
        at
org.codehaus.xfire.wsdl11.builder.DefaultWSDLBuilderFactory.createWSDLBuilder(DefaultWSDL
BuilderFactory.java:33)
        at
org.codehaus.xfire.wsdl11.builder.WSDLBuilderAdapter.write(WSDLBuilderAdapter.java:40)
        at
org.codehaus.xfire.DefaultXFire.generateWSDL(DefaultXFire.java:116)
        at
org.apache.servicemix.jsr181.Jsr181Endpoint.generateWsdl(Jsr181Endpoint.java:328)
====

Servicemix.xml :
<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns:sm="http://servicemix.apache.org/config/1.0"; 
       xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";
       xmlns:http="http://servicemix.apache.org/http/1.0";>
 
  <sm:container id="jbi"
                useMBeanServer="true"
                createMBeanServer="true"
                dumpStats="true"
                monitorInstallationDirectory="false" 
                monitorDeploymentDirectory="false" 
                statsInterval="1">
                
        <sm:activationSpecs>
        
                <sm:activationSpec>
                  <sm:component>
                    <http:component>
                      <http:endpoints>
                        <http:endpoint service="demo:simple-service"
                                       endpoint="simple-service"
                                       role="consumer" 
                                       
locationURI="http://localhost:8192/Service/";
                                       
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"; 
                                       soap="true" />                 
                      </http:endpoints>
                    </http:component>
                  </sm:component>
                </sm:activationSpec>

                <sm:activationSpec>
                  <sm:component>
                      <jsr181:component>
                        <jsr181:endpoints>
                          <jsr181:endpoint pojoClass="soap.SimpleService"
                                           annotations="none"
                                           service="demo:simple-service"
                                           endpoint="simple-service" />         
        
                        </jsr181:endpoints>
                      </jsr181:component>
                  </sm:component>
                </sm:activationSpec>
                
                
       </sm:activationSpecs>
 
 </sm:container>

</beans>

-- 
View this message in context: 
http://www.nabble.com/Namespace-URI-jdom-Error-from-the-%28modified%29-soap-binding-example..-tf1906151.html#a5216430
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to