-- 作者:kimpost
-- 发布时间:4/23/2007 10:46:00 PM
-- [求助]owl-s1.0 里的example中RunService的问题
我是在mindswap里下载的 owl-s 1.0API 但当我运行 它的example中的 runSservice 出错...不知道 那位大大..能帮帮小弟看看哪里出问题了 我把RunService.java也上传了...各位大大帮帮忙,我才刚刚开始研究owl-s 1.0API 其中的 runDictionary() 出错..看了很久都不知道什么问题.. runDictionary()的code 如下 public void runDictionary() throws Exception { URI uri = new URI("http://www.mindswap.org/2004/owl-s/1.0/Dictionary.owl"); service = reader.read(uri); process = service.getProcess(); // initialize the input values to be empty values = OWLSFactory.createValueMap(); inValue = "computer"; values1.setValue(process.getInputs().getParameter("InputString"), inValue); values = exec.execute(process, values1); // get the output using local name outValue = values.getValue(process.getOutputs().getParameter("OutputString")).toString(); // display the results System.out.println("Executed service '" + service + "'"); System.out.println("Input = " + inValue); System.out.println("Output = " + outValue); System.out.println(); } 出错如下 Exception in thread "main" AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (404)/soap/servlet/rpcrouter faultActor: faultNode: faultDetail: {}string: return code: 404 <html><head><title>Apache Tomcat/5.5.9 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /soap/servlet/rpcrouter</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/soap/servlet/rpcrouter</u></p><p><b>description</b> <u>The requested resource (/soap/servlet/rpcrouter) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.9</h3></body></html> (404)/soap/servlet/rpcrouter at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) at org.apache.axis.client.Call.invokeEngine(Call.java:2564) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:1753) at org.mindswap.wsdl.WSDLOperation.invoke(WSDLOperation.java:120) at org.mindswap.owls.grounding.impl.WSDLAtomicGroundingImpl.invoke(WSDLAtomicGroundingImpl.java:139) at org.mindswap.owls.process.execution.impl.ProcessExecutionEngineImpl.executeAtomic(ProcessExecutionEngineImpl.java:117) at org.mindswap.owls.process.execution.impl.ProcessExecutionEngineImpl.execute(ProcessExecutionEngineImpl.java:104) at RunService.runDictionary(RunService.java:354) at RunService.main(RunService.java:427)
|