Migration from Railo to Lucee: mod_cfml request authentication failed!

1,105 views
Skip to first unread message

Emanuele Cellini

unread,
Aug 27, 2015, 3:35:39 AM8/27/15
to Lucee
Hello,
I have a server Win 2008 + IIS + Railo 4.2 and I would like move to Lucee.

I uninstalled railo and I installed Lucee ( BonCode + mod_cfml ) but my site show this error:
Tomcat Mod_CFML error

mod_cfml request authentication failed!

Can you help me to resolve this issue?

--
Emanuele

Paul Klinkenberg

unread,
Aug 27, 2015, 4:23:24 AM8/27/15
to lu...@googlegroups.com
Hi Emanuele,

The error comes from the "Shared secret key" that is probably misconfigured.
In 2 places, there should be the same setting:

1) Lucee / Tomcat: open {lucee-root}\conf\server.xml (or {lucee-root}\tomcat\conf\server.xml), and scroll down to the section with <Valve className="mod_cfml.core" ...>
Inside that <Valve> tag, there should be an attribute sharedKey="[some key]"
If it isn't there, add it, and change [some key] to ... some secret key.

Make sure the same [some key] is set in "ModCFMLSecret"
You will also need to set EnableHeaderDataSupport=True

Note: make sure you are using the latest and greatest mod_cfml.JAR (Tomcat valve), downloaded from here: http://www.modcfml.org/index.cfm/downloads/

And don't forget to restart the lot :)

Kind regards,

Paul Klinkenberg


--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/b7c28386-6de8-481c-8a70-f4e61de731a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Emanuele Cellini

unread,
Aug 27, 2015, 6:45:53 AM8/27/15
to Lucee
Hi Paul!

I have insert tag:
<ModCFMLSecret>XXXXX</ModCFMLSecret>
on file c:\windows\BonCodeAJP13.settings and now Lucee run correctly!

I also deleted al folder BIN on all sites.

Paul Klinkenberg

unread,
Aug 27, 2015, 8:51:01 AM8/27/15
to lu...@googlegroups.com
Good to hear!

Paul

--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages