Has anyone been able
to get this example running successfully? If so, can you list the
steps in detail starting from the download? I've been trying to
follow the email trail, but it gets tangled.
I did the following
steps, but get errors when running the client:
1) Downloaded and
installed http://ws.apache.org/muse/nightly/bin/muse-2.1.0-SNAPSHOT-bin.zip
3) Ran the
update-install.bat script to recreate the /lib dir.
4) Updated
build.xml. Pointed MUSE_HOME to my /muse-2.1.0-SNAPSHOT-bin program
dir.
5) Updated muse.xml.
Updated the "httpd-install-dir" param value in the capabilities section to point
to my Apache2.2 program dir.
5) Ran "ant" to
create the war file.
6) Deployed the war
file to Tomcat.
7) Create an Eclipse
project and copied over the source code so that I can test the
client.
8) Add the
following jars to the project:
\muse-2.1.0-SNAPSHOT-bin\modules\ws-fx-api\*.jar
\muse-2.1.0-SNAPSHOT-bin\modules\ws-fx-impl\*.jar
\muse-2.1.0-SNAPSHOT-bin\modules\core\*.jar
\muse-2.1.0-SNAPSHOT-bin\lib\axis2\WEB-INF\lib\wsdl4j-1.6.1.jar
\muse-2.1.0-SNAPSHOT-bin\lib\common\xalan-2.7.0.jar
\muse-2.1.0-SNAPSHOT-bin\lib\common\xercesImpl-2.8.0.jar
\muse-2.1.0-SNAPSHOT-bin\lib\common\xml-apis-1.3.03.jar
\muse-2.1.0-SNAPSHOT-bin\lib\common\xstream-1.1.2.jar
The build runs
fine. Most of the client test works, except one error that I'm
getting. It's the NullPointerException when trying to check
the response of the operation that gets the "SupportedLanguage"
property.
The last error
is because it can't stop the http server, but I can ignore this because I don't
have PSKill installed.
Attached is the console output when running the
client. Any help is appreciated, thanks!
-Vinh
[CLIENT TRACE] SOAP envelope contents (outgoing): <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Header> <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://171.69.154.215:8080/apache-httpd/services/http-server</wsa:To> <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/http-server/Start</wsa:Action> <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:47267b3a-f1ba-4827-d083-090605ccf9d0</wsa:MessageID> <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing"> <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address> </wsa:From> </soap:Header> <soap:Body> <http:Start xmlns:http="http://ws.apache.org/muse/test/http-server"/> </soap:Body> </soap:Envelope>
[CLIENT TRACE] SOAP envelope contents (incoming):
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header>
<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:0FEC8E765E4919DCD711624979822822</wsa:MessageID>
<wsa:Action>http://ws.apache.org/muse/test/http-server/Start</wsa:Action>
<wsa:RelatesTo
wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:47267b3a-f1ba-4827-d083-090605ccf9d0</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<muse-op:StartResponse
xmlns:muse-op="http://ws.apache.org/muse/test/http-server"
xmlns:tns="http://ws.apache.org/axis2"/>
</soapenv:Body>
</soapenv:Envelope>
[CLIENT TRACE] SOAP envelope contents (outgoing):
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://171.69.154.215:8080/apache-httpd/services/http-server</wsa:To>
<wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
<wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2b7d360d-1d0f-f3c3-3d3e-b61c98259b91</wsa:MessageID>
<wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
</wsa:From>
</soap:Header>
<soap:Body>
<wsrf-rp:GetResourceProperty
xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
xmlns:http="http://ws.apache.org/muse/test/http-server">http:Name</wsrf-rp:GetResourceProperty>
</soap:Body>
</soap:Envelope>
[CLIENT TRACE] SOAP envelope contents (incoming):
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header>
<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:0FEC8E765E4919DCD711624979846264</wsa:MessageID>
<wsa:Action>http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
<wsa:RelatesTo
wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2b7d360d-1d0f-f3c3-3d3e-b61c98259b91</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<wsrf-rp:GetResourcePropertyResponse
xmlns:tns="http://ws.apache.org/axis2"
xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2">
<http:Name
xmlns:http="http://ws.apache.org/muse/test/http-server">vinguye2-wxp01.amer.cisco.com</http:Name>
</wsrf-rp:GetResourcePropertyResponse>
</soapenv:Body>
</soapenv:Envelope>
[CLIENT TRACE] SOAP envelope contents (outgoing):
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://171.69.154.215:8080/apache-httpd/services/http-server</wsa:To>
<wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
<wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:4478d173-ba3b-4ec4-708c-f710cbe9a523</wsa:MessageID>
<wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
</wsa:From>
</soap:Header>
<soap:Body>
<wsrf-rp:GetResourceProperty
xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
xmlns:http="http://ws.apache.org/muse/test/http-server">http:Port</wsrf-rp:GetResourceProperty>
</soap:Body>
</soap:Envelope>
[CLIENT TRACE] SOAP envelope contents (incoming):
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header>
<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:0FEC8E765E4919DCD711624979847356</wsa:MessageID>
<wsa:Action>http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
<wsa:RelatesTo
wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:4478d173-ba3b-4ec4-708c-f710cbe9a523</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<wsrf-rp:GetResourcePropertyResponse
xmlns:tns="http://ws.apache.org/axis2"
xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2">
<http:Port
xmlns:http="http://ws.apache.org/muse/test/http-server">80</http:Port>
</wsrf-rp:GetResourcePropertyResponse>
</soapenv:Body>
</soapenv:Envelope>
[CLIENT TRACE] SOAP envelope contents (outgoing):
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://171.69.154.215:8080/apache-httpd/services/http-server</wsa:To>
<wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
<wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:9e568aad-b8f4-3dea-045c-d14b14974ac8</wsa:MessageID>
<wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
</wsa:From>
</soap:Header>
<soap:Body>
<wsrf-rp:GetResourceProperty
xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
xmlns:http="http://ws.apache.org/muse/test/http-server">http:SupportedLanguage</wsrf-rp:GetResourceProperty>
</soap:Body>
</soap:Envelope>
[CLIENT TRACE] SOAP envelope contents (incoming):
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header>
<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:0FEC8E765E4919DCD711624979847828</wsa:MessageID>
<wsa:Action>http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
<wsa:RelatesTo
wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:9e568aad-b8f4-3dea-045c-d14b14974ac8</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<wsrf-rp:GetResourcePropertyResponse
xmlns:tns="http://ws.apache.org/axis2"
xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2">
<http:SupportedLanguage
xmlns:http="http://ws.apache.org/muse/test/http-server">
<http:FileSuffix>en</http:FileSuffix>
<http:LangCode>en</http:LangCode>
</http:SupportedLanguage>
</wsrf-rp:GetResourcePropertyResponse>
</soapenv:Body>
</soapenv:Envelope>
java.lang.NullPointerException
at
org.apache.muse.core.serializer.xstream.XStreamSerializer$JavaFieldConverter.realClass(XStreamSerializer.java:211)
at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
at
com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:28)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:95)
at
com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:12)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:521)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:500)
at
org.apache.muse.core.serializer.xstream.XStreamSerializer.fromXML(XStreamSerializer.java:125)
at
org.apache.muse.ws.resource.properties.impl.WsrpUtils.convertToObjects(WsrpUtils.java:128)
at
org.apache.muse.ws.resource.remote.WsResourceClient.getPropertyAsObject(WsResourceClient.java:127)
at
org.apache.muse.test.http.remote.HttpServerClient.getSupportedLanguage(HttpServerClient.java:86)
at
org.apache.muse.test.http.testapp.HttpServerTestApp.main(HttpServerTestApp.java:91)
[CLIENT TRACE] SOAP envelope contents (outgoing):
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://171.69.154.215:8080/apache-httpd/services/http-server</wsa:To>
<wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/http-server/Stop</wsa:Action>
<wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:644ae579-3692-78dd-cfdd-57d69c0f49a7</wsa:MessageID>
<wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
</wsa:From>
</soap:Header>
<soap:Body>
<http:Stop xmlns:http="http://ws.apache.org/muse/test/http-server"/>
</soap:Body>
</soap:Envelope>
[CLIENT TRACE] SOAP envelope contents (incoming):
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header>
<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:0FEC8E765E4919DCD7116249798484510</wsa:MessageID>
<wsa:Action>http://ws.apache.org/muse/test/http-server/Stop</wsa:Action>
<wsa:RelatesTo
wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:644ae579-3692-78dd-cfdd-57d69c0f49a7</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<soap:Fault xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:tns="http://ws.apache.org/axis2">
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text>The httpd process failed to stop.</soap:Text>
</soap:Reason>
<soap:Detail>
<http:StopFailedFault
xmlns:http="http://ws.apache.org/muse/test/http-server">The httpd process
failed to stop.</http:StopFailedFault>
</soap:Detail>
</soap:Fault>
</soapenv:Body>
</soapenv:Envelope>
org.apache.muse.ws.addressing.soap.SoapFault: The httpd process failed to stop.
at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:213)
at
org.apache.muse.test.http.remote.HttpServerClient.stop(HttpServerClient.java:111)
at
org.apache.muse.test.http.testapp.HttpServerTestApp.main(HttpServerTestApp.java:112)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
