Flex2gateway configuration for lucee


Hello Guys,

I have been working on this since last 1 month and not able to resolve this. This flex2gateway used to work flawlessly with ColdFusion but with Lucee i see a lot of changes. I got one solution which make flex2gateway work but that is not the complete solution. I have to download blazeds code and do the configuration in Lucee so that it work but then i get few errors like duplicate sessions and one class can not be created error.

Anyone who made this work?


There is one more error which i could not post in the first post


What version of lucee are you using? We use 4.5 and the flex2gateway works, but we cannot upgrade to version 5 because of the flex2gateway.We reported the bug at https://luceeserver.atlassian.net/browse/LDEV-1333?filter=-3 but it doesn’t look like it will be fixed. I would ask you to open a new ticket at the issue tracker…



Can you tell me the steps to follow so that it works with Lucee 4.5?



We use Apache 2.4 with AJP, so maybe you have to change somethings. It will only work with one virtual host, if you have more hosts, the first one will only work.


<servlet id="MessageBrokerServlet">
  <description>Railo Servlet for Flex Gateway</description>

add to the Apache virtual host:

JkMount /flex2gateway/* ajp13_worker

Check if you have to create the [WEBAPP]\WEB-INF\flex folder, there have to be 4 files:

  • messaging-config.xml
  • proxy-config.xml
  • remoting-config.xml
  • services-config.xml

If you have further questions, please reply, I will check if I can help you.