Hi,
Sorry for a what late response but here we go.
Daniel Jemiolo wrote:
The first error looks like something related to Tomcat... can you describe
the circumstances leading up to the error? Is it on the first request?
It is on the very first request (and subsequent requests also). Below I
provide the output of the starting Tomcat server. Where my test is
called muse_test(.war).
When going to http://localhost:8080/muse_test/services/WsResource in a
browser it states "Please enable REST support in WEB-INF/conf/axis2.xml
and WEB-INF/web.xml", is that correct?
And something else, the previous error was generated using jre gcj
1.4.2, while with using jre sun java 1.5 generated a somewhat other error.
2nd test driver class error compiled with sun java 1.5.0.0.08
[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://localhost:8080/muse_test/services/WsResource</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:9a3c6e51-0cd1-378e-3404-0d39e2242a85</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:pfx0="http://ws.apache.org/muse/test/wsrf">pfx0:ServerName</wsrf-rp:GetResourceProperty>
</soap:Body>
</soap:Envelope>
org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP
response code: 500 for URL:
http://localhost:8080/muse_test/services/WsResource
at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
at
org.apache.muse.ws.resource.remote.WsResourceClient.getResourceProperty(WsResourceClient.java:134)
at
org.apache.muse.ws.resource.remote.WsResourceClient.getPropertyAsObject(WsResourceClient.java:126)
at
org.apache.ws.muse.test.wsrf.WsResourceProxy.getServerName(Unknown Source)
at MyTestClient.main(MyTestClient.java:30)
Where 500 stands for "The server encountered an unexpected condition
which prevented it from fulfilling the request." as I looked up....
Tomcat startup output:
==> ./logs/catalina.out <==
22/11/2006 12:29:28 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
/usr/lib/j2sdk1.5-sun/jre/lib/i386/client:/usr/lib/j2sdk1.5-sun/jre/lib/i386
22/11/2006 12:29:29 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
22/11/2006 12:29:29 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3203 ms
22/11/2006 12:29:30 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
22/11/2006 12:29:30 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
22/11/2006 12:29:30 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
22/11/2006 12:29:32 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive muse_test.war
22/11/2006 12:29:34 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing
22/11/2006 12:29:34 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : muse-response-action
22/11/2006 12:29:34 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : soapmonitor
22/11/2006 12:29:34 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service muse
22/11/2006 12:29:35 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service version.aar
22/11/2006 12:29:36 org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
22/11/2006 12:29:36 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
22/11/2006 12:29:36 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
22/11/2006 12:29:36 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
22/11/2006 12:29:36 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
--> 11-22-06 12:29:38 INFO [main] WsrfServletContextListener:
Initializing WSRF runtime from within webapp at context Apache WSRF...
--> 11-22-06 12:29:38 INFO [main] WsrfRuntime: Populating WSRF JNDI
context - reading JNDI configuration off classpath from wsrf-config.xml...
--> 11-22-06 12:29:42 INFO [main] SpringJndiPopulator: Binding
org.apache.ws.resource.example.filesystem.FilesystemHome resource home
instance to JNDI name 'wsrf/resource/filesystem'...
22/11/2006 12:29:44 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
22/11/2006 12:29:44 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
22/11/2006 12:29:44 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/72 config=null
22/11/2006 12:29:45 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
22/11/2006 12:29:45 org.apache.catalina.startup.Catalina start
INFO: Server startup in 16146 ms
Regards,
Bertrand
Andrew, can you respond to the second issue (related to the scripts
question from yesterday)?
thanks,
Dan
[EMAIL PROTECTED] wrote on 11/17/2006 08:55:10 AM:
Hi,
I have implemented the test driver that uses the client and am using
eclipse as IDE (just importing all Muse jar files to fix import issues I
had before), but I get an error.
My test driver class is:
/**
*
*/
import java.net.URI;
import org.apache.muse.ws.addressing.EndpointReference;
import org.apache.ws.muse.test.wsrf.WsResourceProxy;
/**
* @author bertrand
*
*/
public class MyTestClient {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
// insert your endpoint's URI here
URI uri =
URI.create("http://localhost:8080/muse_test/services/WsResource");
EndpointReference epr = new EndpointReference(uri);
WsResourceProxy proxy = new WsResourceProxy(epr);
// optional, but useful
proxy.setTrace(true);
// get the ServerName resourceproperty
String serverName = proxy.getServerName();
// invoke the WSN Subscribe operation
URI consumerURI =
URI.create("http://localhost:8080/muse_test/services/WsResource");
EndpointReference consumer = new
EndpointReference(consumerURI);
proxy.subscribe(consumer, null, null);
} catch (Exception e) {
e.printStackTrace();
}
}
}
But I receive the output/error:
[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://localhost:
8080/muse_test/services/WsResource</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:bc1f0683-49e1-b58b-bca8-
a42cbb3c8502</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:pfx0="http://ws.apache.org/muse/test/wsrf">pfx0:ServerName</wsrf-rp:
GetResourceProperty>
</soap:Body>
</soap:Envelope>
org.apache.muse.ws.addressing.soap.SoapFault: Already connected
at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
at
org.apache.muse.ws.resource.remote.WsResourceClient.
getResourceProperty(WsResourceClient.java:134)
at
org.apache.muse.ws.resource.remote.WsResourceClient.
getPropertyAsObject(WsResourceClient.java:126)
at org.apache.ws.muse.test.wsrf.WsResourceProxy.getServerName(Unknown
Source)
at MyTestClient.main(MyTestClient.java:30)
Something else, there are quite some files in the binary distribution
that are in DOS format and all lines end at ^M such as
/lib/axis2/WEB-INF/conf/axis2.xml . On *nix environments that is not
ideal for parsing by engines/shells. It is a bit of a shame to keep
using the dos2unix tool manually to change the files.
I appreciate you time/effort to help.
Best regards,
Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]