Hi,
I'm trying to create http-provider (for calling an external service from
servicemix)
I used the "smx-arch su http-provider" command to create the su structure.
The su xbean file is:
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:replaceMe="http://servicemix.apache.org/replaceMe">
<http:endpoint service="ItemOwnerships"
endpoint="ItemOwnershipPort"
role="provider"
locationURI="http://yakovo01:8080/QpassIntegrator/services/ItemOwnership.ItemOwnershipPort"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true" />
</beans>
and used the smx-arch sa to create the sa.
Now, after running the "mvn install jbi:projectDeploy" command, my new
service-assembly is failing to be deployed to service mix.
In the servicemix.log file I can found the following exception:
11:49:59,190 | ERROR | RMI TCP Connection(4)-10.234.9.89 |
AutoDeploymentService | ramework.AutoDeploymentService 367 | Failed to
update Service Assembly: my-http-provider-sa
java.lang.RuntimeException: org.xml.sax.SAXParseException: The value of the
attribute "prefix="xmlns",localpart="ns1",rawname="xmlns:ns1"" is invalid.
Prefixed namespace bindings may not be empty.
and when I'm looking and the jbi.xml file that was generated by maven I can
see the problem that indeed the namespace is empty:
<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
<services binding-component="false" xmlns:ns1=""> -->empty namespace
<provides service-name="ns1:ItemOwnerships"
endpoint-name="ItemOwnershipPort"/>
</services>
</jbi>
What should I do in order for the jbi.xml file to be generated properly?
(I've tried adding <generateJbiDescriptor>false</generateJbiDescriptor> to
the configuration element in the pom.xml file but it didn't help) I'm using
servicemix version 3.2.1
Thanks!
--
View this message in context:
http://www.nabble.com/Getting-SAXParseException-when-trying-to-deploy-HTTP-provider-tp18674885p18674885.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.