I'm new to ServiceMix and we're trying to spin up on SM 4 due to the OSGI
support.  So far, it looks like we have been able to get a package deployed
(we're calling it bridge_test) from the service units in
[SM_INSTALL]\examples\bridge (eip, http, jms, and xslt).

We were never able to get locationURI="http://localhost:8192/bridge"; to work
(we never found anything listening on 8192).  We looked in servicemix.log
and it appears that Jetty is running on port 8080, not 8192:

10:27:46,479 | INFO  | guration Updater | jetty |
.service.internal.util.JCLLogger  102 | jetty-6.1.x
10:27:46,491 | INFO  | guration Updater | jetty |
.service.internal.util.JCLLogger  102 | Started
[email protected]:8080

So, we've changed the xbean.xml configuration in the http service unit to:

<http:endpoint service="b:http"
    endpoint="endpoint"
    targetService="b:pipeline"
    role="consumer"
    locationURI="http://localhost:8080/bridge";
    defaultMep="http://www.w3.org/2004/08/wsdl/in-only"; />

We then package up the 4 service units into a OSGI bundle using bnd, and hot
deploy the package into Service Mix 4.  When we do an osgi / list, we see it
deployed as [ACTIVE], but not started.  Trying to run an osgi / start on
it's PID does nothing.

We've changed the client to point to the same URL above.  When we run the
client, we get an exception:

    java.io.FileNotFoundException: http://localhost:8080/bridge
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(
HttpUrlConnection.java:1311 )
at org.apache.servicemix.samples.bridge.Client.sendRequest( Unknown Source )
at org.apache.servicemix.samples.bridge.Client.main( Unknown Source )

Also, we're not using maven, we've opted for Ant/Ivy.

Does anyone have any suggestions on how we can get this running?

Thanks,
Bob
-- 
View this message in context: 
http://old.nabble.com/File-not-found-while-running-example-bridge-client-in-ServiceMix-4-tp27951010p27951010.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to