hi,
i have a problem about loan-broker-bpel examples..(i counldn't run it, but i
run bpel-bpe ships servicemix-3.0-M1 successful.)
i want to run it from a web page(via http bc?), instead of using jmsclient
from console..
now i make a http bc service unit for the loan-broker-bpel, but i don't know
where to send the request..
below is the fold structure of loan-broker-http-su i made.
C:\OPT\APACHE-SERVICEMIX-3.1-INCUBATING\EXAMPLES\LOAN-BROKER-BPEL-SAMPLE\LOAN-BROKER-HTTP-SU
│ pom.xml
│
├─src
│ └─main
│ └─resources
│ xbean.xml
│
└─target
│ loan-broker-http-su-3.1-incubating.jar
│ loan-broker-http-su-3.1-incubating.zip
│
├─classes
│ │ xbean.xml
│ │
│ └─META-INF
│ DISCLAIMER
│ jbi.xml
│ LICENSE
│ NOTICE
│
└─loan-broker-http-su-3.1-incubating-installer
│ xbean.xml
│
└─META-INF
DISCLAIMER
jbi.xml
LICENSE
NOTICE
and i made the xbean.xml like this:
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:lb="urn:logicblaze:soa:loanbroker">
<http:endpoint service="lb:LoanBrokerService"
endpoint="endpoint"
role="consumer"
locationURI="http://0.0.0.0:8192/bpel/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
/>
</beans>
then i start servicemix at standalone, and i use "mvn install
jbi:projectDeploy" to build and install it, and it works successfully.
but when i inovke it from web page(i use client.html ships with wsdl-first
:), i get status:500, and error
below:
javax.jbi.messaging.MessagingException: Could not find route for exchange:
InOut[
id: ID:ngofcl0223-5439-1180514729265-4:0
status: Active
role: provider
service: {http://servicemix.apache.org/samples/wsdl-first}bpel
in: <?xml version="1.0" encoding="UTF-8"?><env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://servicemix.apache.org/samples/wsdl-first/types">
<env:Body>
<tns:GetPerson>
<tns:personId>worlds</tns:personId>
</tns:GetPerson>
</env:Body>
</env:Envelope>
] for service: {http://servicemix.apache.org/samples/wsdl-first}bpel and
interface: null
at
org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:295)
at
org.apache.servicemix.jbi.security.SecuredBroker.sendExchangePacket(SecuredBroker.java:80)
at
org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:793)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:381)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:417)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.sendConsumerExchange(AsyncBaseLifeCycle.java:546)
at
org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:183)
at
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:356)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
at org.mortbay.jetty.Server.handle(Server.java:269)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:701)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
at
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
anyone have ideas ? thanks.
--
View this message in context:
http://www.nabble.com/How-use-servicemix-http-to-bind-loan-broker-bpel-from-a-web-page--tf3839052s12049.html#a10869800
Sent from the ServiceMix - User mailing list archive at Nabble.com.