在flex+java的时候,运行出现这种错误:
[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8889/WebRoot/messagebroker/amf'"]
解决办法:
1:
最简单的
在<mx:RemoteObject> 里面的属性加上
endpoint="http://localhost:8889/testApp/messagebroker/amf"
2:
[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404:
url: 'http://localhost:8080/WebRoot/messagebroker/amf'"]
当我看到url时发现工程名是'a',但信息提示成了WebRoot,故在工程属性对话框-->Flex Server中的
Root Url -->http://localhost:8080/a
Context Root-->WebRoot 故把WebRoot改成'a',重新编译运行即可。
原因是myeclipse没有把用户某些设置更新过去。
3:
[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8089/cargps/messagebroker/amf'"]
自己的解决:tomcat配置的虚拟目录错误:
在Tomcat\conf目录下,打开server.xml,在</Host> 之前加上
<Context path="/pro" docBase="工程本地路径\工程名\WebRoot" debug="0" reloadable="true" crossContext="true">
</Context>
path 表示在浏览器中输入http://localhost:8080/pro
docBase表示你的程序包的物理绝对路径,默认的绝对路径是$Tomcat_Home$/webapps
分享到:
相关推荐
flex与 java 通信常见错误: [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: ...
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.reflect.InvocationTargetException faultActor: faultNode: faultDetail: {...
Alert.show(event.fault.faultString, event.fault.faultCode); } ]]> <mx:HTTPService id="service" url="data/slideshow.xml" result="resultHandler(event)" fault="faultHandler(event)...
Alert.show(event.fault.faultString, event.fault.faultCode); } ]]> <mx:HTTPService id="service" url="data/slideshow.xml" result="resultHandler(event)" fault="faultHandler(event)...
Faultcode故障代码[参照].pdf
。。。
。。。
FLEX ;Unable to access UserTransaction in DataService 解决配置问题
根据WSDL文件生成客户端代码与创建客户端工程 注意小细节:在根据对方提供的... 否则报:WSDLException (at /html): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.:
org.codehaus.xfire.fault.XFireFault: Couldn't send message. at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89) at org.codehaus.xfire.handler.OutMessageSender.invoke...
Faultcode故障代码
Android之Webservice详解与调用天气预报Webservice完整实例
java.lang.runtimeexception unexpected subelement
STM32 HardFault的诊断.pdf STM32 Hard Fault STM32 HardFault的诊断.pdf STM32 Hard Fault STM32 HardFault的诊断.pdf STM32 Hard Fault STM32 HardFault的诊断.pdf STM32 Hard Fault STM32 HardFault的诊断.pdf ...
。。。
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped g++/gcc都不能编译了,一直抱ld的问题。网上找了很多方法都不行,弄了好久终于搞定了
system:Sun OS hosts required: 3; Note: Need to modify the host names in client and server.(Search "host") Compile Server1: cc –o server1 bk_server1...Client: cc –o client bk_client.c bk_clnt.c bk_xdr.c
unanticpated fault detection code: simulation model:TEP OC MODEL Hybrid model