Did you use the installer to get Railo on your Mac? Just wondering if you are running it on Tomcat vs Resin. You may need to add or uncomment some lines in Tomcat's web.xml file to enable removing:
<!--
<servlet>
<servlet-name>MessageBrokerServlet</servlet-name>
<servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
<init-param>
<param-name>services.configuration.file</param-name>
<param-value>/WEB-INF/flex/services-config.xml</param-value>
</init-param>
<init-param>
<param-name>messageBrokerId</param-name>
<param-value>MessageBroker</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
-->
Someone else can chime in on where exactly the web.xml lives on Mac OS, in Ubuntu it's /opt/railo/tomcat/conf/web.xml.
Restart Tomcat after you make the change.
That is actually not the file you are looking for. Is there a /Applications/Railo/tomcat/conf/web.xml?
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.io.EOFException java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323) org.openamf.io.AMFDeserializer.readHeaders(AMFDeserializer.java:98) org.openamf.io.AMFDeserializer.<init>(AMFDeserializer.java:80) railo.runtime.engine.AMFEngine.deserializeAMFMessage(AMFEngine.java:62) railo.runtime.engine.AMFEngine.service(AMFEngine.java:48) railo.runtime.engine.CFMLEngineImpl.serviceAMF(CFMLEngineImpl.java:364) railo.loader.servlet.AMFServlet.service(AMFServlet.java:34) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.
> /Applications/Railo/tomcat/webapps/ROOT/WEB-INF/web.xml
On a few setups with Flash Remoting, Railo / Tomcat I found the need
to add a ProxyPassMatch to the apache httpd.conf in order to properly
route amf calls. Tend to install from jars and mainly focus on Linux,
so not quite sure if this isn't covered by your installer or if it
directly applies. Have Railo running on Snow leopard for dev, forget
if I needed this tweak there.
ProxyPreserveHost On
ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ ajp://localhost:8009/$1$2
ProxyPassMatch ^/flashservices/gateway(/.*)?$ ajp://localhost:8009/flashservices/gateway/$1$2
HTH. Cheers.
On Dec 8, 12:43 pm, Vicente Maciel Junior <macie...@gmail.com> wrote:
> Hi people,
>
> I have Railo running OK on my Mac OS X Lion machine, but can't find a way
> to enable the "Flash Remoting / BlazeDS / AMF" to work.
>
> Sorry if I missed something, but prior to posting here I did a lot of
> searches (Google/Groups previous messages) but coudnt find something to
> help me out, so I hope to be able to find here someone that had this
> experience before me and had successfully putted it to work.
>
> All the contents I've found had some references that doesn't matches what I
> have on my installation here. But also, none of them seemed to be written
> for the Mac OS X install and/or referencing the 3.3.1 Railo's version.
>
> I'm running it locally on port 8080 for development purposes.
>
> Thanks a lot for any help.
>
> (and for the Railo team: Congratulations for the great job! 13 years using
> another CFML engine and now I feel very confortable using Railo)
>
> Vicente Maciel Junior - @macieljr
> ========================================
> Engenheiro de Software / Consultor
> --------------------------------------------------------------------------- ------
> +55 21 8087-8506 MSN: macie...@gmail.com
> --------------------------------------------------------------------------- ------
Did you try openamf/gateway instead of the other options you
mentioned?
I believe Apache is still in the mix on the installer version of Mac
and is proxying to Tomcat. Could be off on that. You httpd.conf
should be in /etc/apache2 on Mac.
On Dec 8, 3:26 pm, Vicente Maciel Junior <macie...@gmail.com> wrote:
> Hi Koofka!
>
> Maybe it really doesn't applies to my current installation because I wasn't
> able to find the "httpd.conf" anywhere inside the Railo's installation
> folder.
>
> I'm aware it applies to the Apache's web server, but I think Tomcat has its
> own web-server implementation that doesn't uses "httpd.conf" and at this
> time, I'm using exactly the configuration present on the latest installer
> available for Mac that delivers me only the Tomcat and Railo.war already
> configured/deployed (but unfortunately, without Flash Remoting running
> out-of-the-box as well).
>
> But I was never usual to the Apache/Tomcat world, so please correct me if
> I'm wrong, ok?
>
> Thanks
>
> Vicente Maciel Junior - @macieljr
> ========================================
> Engenheiro de Software / Consultor
Best of luck.
Generally the gateway setup should be in the tomcat config xml files
On Dec 12, 8:32 am, Vicente Maciel Junior <macie...@gmail.com> wrote:
> Do you mean install openamf apart? No I didn't... I would like to be able
> to use what Railo says it offers inside the package as I think it would be
> the best integration possible... But, if I can't, sure I'll try another way
> like that you mentioned.
>
> Regarding Apache, I really don't have it on my machine... :(
>
> It's very hard to assume there's no one already running Mac OS X Lion
> (10.7) together with Railo (3.3.1) and with Flash Remoting running as
> well. I thought this was a common situation...
>
> Is there someone from the Railo's team here to add something on this
> discussion?
>
> Vicente Maciel Junior - @macieljr
> ========================================
> Engenheiro de Software / Consultor