I'm trying to get a copy of Xindi set up on one of my development boxes to evaluate it and have bumped into several problems just in getting it set up.
My dev box is running Mac OS X 10.9.5, with Adobe ColdFusion 10 deployed via WAR on Tomcat 7.0.55, and running against Java 1.7.0_67. I should also preface this with the statement that I have never done anything with FW/1 to date, and that may be a part of what I am bumping into.
I downloaded the CFML version of the ZIP archive from
https://github.com/simonbingham/xindi/zipball/master and extracted it to a folder "wiki" off my server's webroot. I have a datasource configured in the CFadmin and the datasource verifies. I modified the ./Application.cfc file's getConfiguration method to specify a name ("wiki" for now) but didn't tweak anything else in there for now.
1. If I browse to just ./wiki/index.cfm, I get the public landing page but all of the other pages linked from there (e.g., ./wiki/index.cfm/design, ./wiki/index.cfm/training, etc.) result in completely blank pages. Looking at the URL format, those looked to me like something related to an SES-friendly URL format, so I changed the "generateSES" setting for FW/1 to false on line 42 of ./Application.cfc and reloaded. After that change, I do get content that appears more like I would expect on most of the links off the landing page and the links are of the form ./wiki/index.cfm?action=home, ./wiki/index.cfm?action=design, etc. This doesn't particularly concern me, as I don't necessarily care about search engine friendliness within the context where I am considering using Xindi. Moving on...
2. The next thing I bump into is that when I try to go to the content admin interface at ./wiki/admin, the application throws an error:
Error Occurred While Processing Request
Provide an application name.
Creation of unnamed applications has been disabled in ColdFusion administrator.
We do in fact run our servers with creation of unnamed applications disabled. At this point in this process, I am not particularly concerned about this setting so I am OK with turning that restriction off in order to move forward. I toggled the setting within the CF admin, reloaded the application, and browse to ./wiki/admin and am redirected to the following URL:
which results in a completely blank page. This again appears to be related to SES URLs, but there's nothing in the ./wiki/admin/Application.cfc to configure this, it appears to just be redirecting to that URL without accounting for whether the application has been configured to run w/o SES URLs.
I'd welcome any thoughts on where I should look or what I might need to do in order to get the admin interface working.
Error Occurred While Processing Request
Java method security exception.
A security exception occurred while invoking Java method on a "java.lang.Class" object. MethodName is GetClass. Possible cause: Either the createobject function and cfobject tag are disabled in the security sandbox or you are trying to create a class in the ColdFusion package and that is disabled.
The error occurred in /Users/ron/Sites/apps/wiki/frameworks/hoth/HothTracker.cfc: line 235
Called from /Users/ron/Sites/apps/wiki/frameworks/hoth/HothTracker.cfc: line 179
Called from /Users/ron/Sites/apps/wiki/frameworks/hoth/HothTracker.cfc: line 61
Called from /Users/ron/Sites/apps/wiki/Application.cfc: line 118
234 : private function GetClassHeirarchy(obj) {
235 : local.thisClass = obj.GetClass();
236 : local.sReturn = thisClass.GetName();
237 :
Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2176.0 Safari/537.36
Remote Address 0:0:0:0:0:0:0:1
Date/Time 03-Oct-14 06:28 AM
Stack Trace
at cfHothTracker2ecfc847514610$funcGETCLASSHEIRARCHY.runFunction(/Users/ron/Sites/apps/wiki/frameworks/hoth/HothTracker.cfc:235) at cfHothTracker2ecfc847514610$funcPARSEEXCEPTION.runFunction(/Users/ron/Sites/apps/wiki/frameworks/hoth/HothTracker.cfc:179) at cfHothTracker2ecfc847514610$funcTRACK.runFunction(/Users/ron/Sites/apps/wiki/frameworks/hoth/HothTracker.cfc:61) at cfApplication2ecfc199238983$funcONERROR.runFunction(/Users/ron/Sites/apps/wiki/Application.cfc:118)
coldfusion.runtime.StructBean$SecurityException: Java method security exception.
at coldfusion.runtime.StructBean.checkPermission(StructBean.java:96)
at coldfusion.runtime.StructBean.invoke(StructBean.java:482)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2465)
(rest of stack trace snipped)
I know that createObject() and cfobject are not disabled, as we use them heavily in our applications which I also have running on this same dev server. I get similar exceptions if I attempt to go the sample pages which are linked off the "Consulting" dropdown menu on the public landing page. Having said that, the "News" page works and going to the sample pages linked from the "News" page works.
If any of you can provide guidance as to where I've gone wrong in setting this up, I would be grateful. If I can provide any additional diagnostics to help troubleshoot, let me know what might help.
Thanks in advance!
--
/ron