Here are the results from the JRun sniffer
when clicking the button that calls my Remote Object: ============== Target Host: 127.0.0.1 ==== Request ==== POST
/OBC/amfgateway/UserAccess HTTP/1.1 Host: 127.0.0.1 User-Agent: Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language:
en-us,en;q=0.5 Accept-Encoding:
gzip,deflate Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie:
JSESSIONID=54A2A7DCDE3B1693FA7C0BE633681996;
JSESSIONID=54A2A7DCDE3B1693FA7C0BE633681996 Content-type:
application/x-amf Content-length: 158 ______amf_server_debug_______ coldfusion___ amfheaders____amf___ ____==== Response ==== HTTP/1.0 200 OK Date: Tue, 18 Oct 2005
23:12:21 GMT Content-Type:
application/x-amf Content-Length: 1631 Server: JRun Web Server _______ at
flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:251) at
flashgateway.filter.SecurityFilter.invoke(SecurityFilter.java:85) at
flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:58) at
flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:44) at
flashgateway.filter.LogFilter.invoke(LogFilter.java:43) at
flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java:63) at
flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38) at
flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:59) at
flashgateway.Gateway.invoke(Gateway.java:194) at
flashgateway.controller.GatewayServlet.service(GatewayServlet.java:56) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252) at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:168) at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451) at
jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) __ ============== From: I think JRun has a sniffer.exe in the main
jrun bin directory that you could use... I think you would have to methodically
track down what URLs are being used at compile time, what URLs are being used
to host the SWF, what URLs are being used to make data requests. Without
detailed info I can't suggest more than that as it seems that what you're doing
in terms of RemoteObject is fine (as per it working on Tomcat). From: Here is the mapping I have for the
AMFGatewayServlet in my flex servers /WEB-INF/web.xml file: <!-- Flash Remoting AMF Gateway URL
--> <servlet-mapping>
<servlet-name>AMFGatewayServlet</servlet-name>
<url-pattern>/amfgateway/*</url-pattern>
</servlet-mapping> As for using a sniffer, NO I haven’t
tried using one. How might I go about it, what program should I
use…? Also, I have since installed Tomcat and
copied the server I had setup on JRun onto it and “magically” it is
working! Now, since we know it is not my code or the flex-config.xml
configuration that it must be JRun and/or a conflict with coldfusion.
I’m not sure how to resolve this issue, and am pretty pissed and
frustrated having found out that everything I needed to do to get my remote
java classes to work was correct. I would like to still figure out what
the issue is with JRun problem. Thanks, Jeremy From: Are you sure that /amfgateway is mapped to
your Flex AMF GatewayServlet in /WEB-INF/web.xml and not a coldfusion one? Have
you used a sniffer to try and watch where your SWF is trying to call - i.e.
tracking down host names, ports, context roots, what have you... From: One more thing that I should mention is
that Flex and Coldfusion are installed on separate JRun server instances. From: Ok, I have again resumed trying to figure out how to get a
call to a Remote Java object working. I posted a previous message on this
topic, but was not able to get a working answer. The PROBLEM: When
calling a java class located in {contextroot}\classes\com\obc I get a response
of Service threw an exception during method invocation: no service named
com.obc.User known to Flash Remoting MX. BACKGROUND: Flex installed
on a Coldfusion MX integrated JRun4 server. The remote-object section of
the flex-config file contains the following <remote-objects>
<amf-gateway>{context.root}/amfgateway</amf-gateway>
<amf-https-gateway>{context.root}/amfgateway</amf-https-gateway>
<allow-url-override>false</allow-url-override> <whitelist>
<!-- whitelist config for unnamed objects -->
<unnamed>
<source>*</source> … MORE BACKGROUND: I can make a successful call to a
coldfusion component as a webservice using <mx:RemoteObject> It seems to me that somehow there is a conflict with the
remoting gateway for coldfusion and the one for flex, but I really am not sure
how to fix it if it is actually what is causing the problem. If anyone has
experienced this problem, or knows of a solution I really appreciate your
suggestions. Thanks, Jeremy
|
- RE: [flexcoders] RemoteObject call to POJO on JRUN Jeremy Crane
- RE: [flexcoders] RemoteObject call to POJO on JRUN Peter Farland