Switchyard Netty feature forces web services to use port 8080 instead of 8181. When you restart container, web services will use port 8181.
features:install -v switchyard-netty
|
features:install switchyard-quickstart-bean-service
|
cd $FUSE_HOME/switchyard/bean-service
|
mvn clean install exec:java -Pkaraf
|
Output:
<html><body>No service was found.</body></html>
|
Try to restart server and run test again:
Output:
<title>Error 500 Server Error</title>
|
</head>
|
<body><h2>HTTP ERROR 500</h2>
|
<p>Problem accessing /cxf/quickstart-bean/OrderService. Reason:
|
<pre> Server Error</pre></p><h3>Caused by:</h3><pre>java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/SOAPVersionMismatchException
|
...
|
Caused by: java.lang.ClassNotFoundException: Unable to load class 'com.sun.xml.messaging.saaj.soap.SOAPVersionMismatchException' because the bundle wiring for org.apache.servicemix.bundles.saaj-impl is no longer valid.
|
...
|
Take clean JBoss Fuse and install quickstart. You will get proper output now:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope"/><soap:Body><orders:submitOrderResponse xmlns:orders="urn:switchyard-quickstart:bean-service:1.0"><orderAck><orderId>PO-19838-XYZ</orderId><accepted>true</accepted><status>Order Accepted [intercepted]</status></orderAck></orders:submitOrderResponse></soap:Body></soap:Envelope>
|
|