Ok I downloaded the new .jars files for the Java Hot Fix for flash remoting. I
have them installed correctly in the lib folder of the WEB-INF. I change my
web.xml file and added and changed the gateway-config.xml file. The server
starts and runs fine.
I have this code in my flash client:
stop();
import mx.remoting.*;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();
NetServices.setDefaultGatewayUrl("http://localhost:8080/flashRemote/gateway");
var gatewayConnection = NetServices.createGatewayConnection();
var service = gatewayConnection.getService("remote.Connect", this);
service.test();
I have the java class named Connect.java in the package remote
Whenever I try to run the flash movie I keep getting the following error:
Service remote.Connect not found.
flashgateway.adapter.NoSuchServiceException: Service remote.Connect not found.
at flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:96)
at
flashgateway.filter.MessageSecurityFilter.invoke(MessageSecurityFilter.java:144)
at flashgateway.filter.ServiceNameFilter.invoke(ServiceNameFilter.java:101)
at flashgateway.filter.EnvelopeFilter.invoke(EnvelopeFilter.java:102)
at flashgateway.filter.SessionFilter.invoke(SessionFilter.java:28)
at flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:57)
at flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:39)
at flashgateway.filter.LogFilter.invoke(LogFilter.java:46)
at flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java:63)
at
flashgateway.filter.PacketSecurityFilter.invoke(PacketSecurityFilter.java:79)
at flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38)
at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:89)
at flashgateway.Gateway.invoke(Gateway.java:217)
at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:90)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:9
9)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:341)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
at com.caucho.util.ThreadPool.run(ThreadPool.java:423)
at java.lang.Thread.run(Thread.java:595)
I can't figure this out. What am I missing????
Thanks!
jt230 - 18 Oct 2005 21:00 GMT
Fixed the problem. Unlike OpenAMF the flash remoting JAR goes only in the WEB-INF/lib folder of the project not of the server.
With OpenAMF the flash remoting JAR goes in both lib folders.