Re: [getxindi] Can Xindi be installed on shared hosting?

98 views
Skip to first unread message

John Whish

unread,
Mar 15, 2013, 5:03:37 AM3/15/13
to getx...@googlegroups.com
Hi Tony,

Yes, Xindi can run on shared hosting. That is error is caused by the datasource not being found. 

Two suggestions:

1) Hardcode you datasource name on line 16 of Application.cfc. So where it currently says:

this.datasource = ListLast( this.applicationroot, "\/" );

Change to:

this.datasource = "mydsnname";

2) If that doesn't work, the other things to try on shared hosting is that you might not have permission to CREATE tables in the database via ColdFusion. So you might need to login to the tool your hosts give you and create the tables etc yourself.



On 15 March 2013 08:27, Tony Gray <lost...@gmail.com> wrote:
Hi,

I have successfully installed Xindi on my localhost, however I would like to install it on a shared Coldfusion hosting account.

I get these errors:

Element FRAMEWORK.SUBSYSTEMDELIMITER is undefined in VARIABLES.

Could not create connection to database server. Attempted reconnect 3 times. Giving up.


I created a DSN "xindi". I know there are limits with these types of accounts, if it is not possible I would like to know...spare me the pain ;)
Thanks!

--
You received this message because you are subscribed to the Google Groups "Xindi CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getxindi+u...@googlegroups.com.
To post to this group, send an email to getx...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/getxindi/-/Ukd9lyEeWqEJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Tony Gray

unread,
Mar 15, 2013, 6:22:30 AM3/15/13
to getx...@googlegroups.com
Thanks John,

I had actually done your first suggestion, I will try creating the tables as you suggest.

p.s I purchased your book on ORM, good stuff! Highly recommended!

John Whish

unread,
Mar 15, 2013, 10:06:59 AM3/15/13
to getx...@googlegroups.com
Thanks Tony! :)

--
You received this message because you are subscribed to the Google Groups "Xindi CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getxindi+u...@googlegroups.com.
To post to this group, send an email to getx...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/getxindi/-/rFze7ML736kJ.

Tony Gray

unread,
Mar 16, 2013, 11:53:36 PM3/16/13
to getx...@googlegroups.com
Hello John,

It seems I have a new hurdle. After creating the tables manually I now encounter this:

 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 D:/home/websiteclarity.com.au/wwwroot/xindi/frameworks/hoth/HothTracker.cfc: line 235
Called from D:/home/websiteclarity.com.au/wwwroot/xindi/frameworks/hoth/HothTracker.cfc: line 179
Called from D:/home/websiteclarity.com.au/wwwroot/xindi/frameworks/hoth/HothTracker.cfc: line 61
Called from D:/home/websiteclarity.com.au/wwwroot/xindi/Application.cfc: line 114

233 :     http://fusion.dominicwatson.co.uk/2007/09/coldfusion-objects-are-java-objects.html **/
234 :     private function GetClassHeirarchy(obj) {
235 :         local.thisClass = obj.GetClass();
236 :         local.sReturn = thisClass.GetName();
237 :


I contacted my host and they sent me to a forum article that mentions the following:

This occurs when the application is attempting to make use of coldfusion Java obects (I.E. any object whose "dot path" starts with 'coldfusion' - such as 'coldfusion.server.ServiceFactory'). This applies to the ColdFusion cfscript function "CreateObject()" that is very commonly used to create java objects or CFDUMP which is not a Adobe supported coldfusion tag.

is Hoth an option that can be disabled? or is there a workaround for this?

Thanks,
Tony
Message has been deleted

Jim Priest

unread,
Mar 17, 2013, 10:22:57 AM3/17/13
to getx...@googlegroups.com
"CFDUMP which is not a Adobe supported coldfusion tag." ?? Say what? :)

If you look in application.cfc you'll see:

void function onError( Exception, event ){
if( StructKeyExists( application, "exceptiontracker" ) )
application.exceptiontracker.track( arguments.Exception );
super.onError( arguments.Exception, arguments.event );
}

Comment out the call to the exceptionTracker (hoth)

void function onError( Exception, event ){
// if( StructKeyExists( application, "exceptiontracker" ) )
application.exceptiontracker.track( arguments.Exception );
super.onError( arguments.Exception, arguments.event );
}

And see what happens...

Jim

John Whish

unread,
Mar 17, 2013, 10:51:51 AM3/17/13
to getx...@googlegroups.com

Hoth (ironically) is the error handling mechanism. As Jim said you can comment it out.

If Hoth is being called then there is an error somewhere so you will need to dump that out if you can. It might be best to comment out the whole onerror method.

I've definitely seen Xindi (and hoth) running on shared hosts, so it does sound like your host may be a little over zealous.

- sent by a little green robot powered device

Tony Gray

unread,
Mar 17, 2013, 11:42:52 PM3/17/13
to getx...@googlegroups.com, john....@googlemail.com
Hi Guys,
I have done as you have suggested and the error is coming from here:

Original exception in onRequestStart

The action public:main.default failed.

access denied (java.io.FilePermission D:\home\sellmycardsonline.com\wwwroot\SiteCFC read)

(Security)


What to notice here is that "sellmycardsonline.com" is not me! It seems that FW/1 has gone a little to far beyond my "root".. and is trying to mess around in someone else's business! ;)

So is this something in FW/1 that needs to be known/configured for shared host users? I am just getting started with FW/1 so I am not too sure where to start looking, but it seems obvious that it needs to know that it is on a shared host and should stop at wwwroot within my account.


Thanks,

Tony

Jim Priest

unread,
Mar 18, 2013, 8:45:33 AM3/18/13
to getx...@googlegroups.com
Weird. I just looked through the source files for both Xindi and FW/1
and didn't see any references to "sellmycardsonline"

Not sure how your shared hosting is setup but I'd wager it's possible
someone else's site was compromised and the server is spewing this
out... :(

Jim

Simon Bingham

unread,
Mar 18, 2013, 2:21:01 PM3/18/13
to getx...@googlegroups.com
Yes, it sounds like a hosting issue to me.
--
You received this message because you are subscribed to the Google Groups "Xindi CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getxindi+u...@googlegroups.com.
To post to this group, send an email to getx...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




--

Xindi - a completely free, open source CFML content management system.

Tony Gray

unread,
Mar 18, 2013, 5:52:35 PM3/18/13
to getx...@googlegroups.com
I will put it to the hosting company and see what they say.

Tony

Tony Gray

unread,
Mar 18, 2013, 6:15:32 PM3/18/13
to getx...@googlegroups.com
I have made an enquiry to the hosting company and awaiting their reply, I probably should, however, give you all this clue:

at cfframework2ecfc1225322147$funcCACHEDFILEEXISTS.runFunction(D:\home\websiteclarity.com.au\wwwroot\xindi\frameworks\org\corfield\framework.cfc:1109)

...this is where FW/1 went rogue and jumped into the another account.. (line 1258)

} else if ( cachedFileExists( cfcFilePath( request.cfcbase ) & subsystemDir & types & '/' & section & '.cfc' ) ) {

So, has subsystemDir landed us in the neighbours backyard?

Tony

Muhammad Tariq

unread,
Jan 22, 2014, 9:24:36 AM1/22/14
to getx...@googlegroups.com, john....@googlemail.com

// ------------------------ CALLED WHEN EXCEPTION OCCURS ------------------------ //   
   
    void function onError( Exception, event ){   
        //if( StructKeyExists( application, "exceptiontracker" ) )
        application.exceptiontracker.track( arguments.Exception );
        super.onError( arguments.Exception, arguments.event );
    }   

I have comment the code as mention above the post and i have still get error.


 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.
 


233 :     http://fusion.dominicwatson.co.uk/2007/09/coldfusion-objects-are-java-objects.html **/
234 :     private function GetClassHeirarchy(obj) {
235 :         local.thisClass = obj.GetClass();
236 :         local.sReturn = thisClass.GetName();




Muhammad Tariq

unread,
Jan 22, 2014, 9:28:57 AM1/22/14
to getx...@googlegroups.com, john....@googlemail.com
Also i comments all the code then i have get another error

Oops!

An error has occurred and the site administrator has been notified.


// ------------------------ CALLED WHEN EXCEPTION OCCURS ------------------------ //   
   
    /*void function onError( Exception, event ){   
        if( StructKeyExists( application, "exceptiontracker" ) )
        application.exceptiontracker.track( arguments.Exception );
        super.onError( arguments.Exception, arguments.event );
    } */  


On Sunday, 17 March 2013 19:51:51 UTC+5, John Whish wrote:

Simon Bingham

unread,
Jan 22, 2014, 10:29:57 AM1/22/14
to getx...@googlegroups.com, john....@googlemail.com
Your hosting company should be able to answer this question. It looks like they've disabled createobject.

John Whish

unread,
Jan 22, 2014, 2:58:42 PM1/22/14
to getx...@googlegroups.com
I agree with what Simon's said. 

You could always change the error handler to dump out the actual error to give you some more info to go to your hosting company with. Something like:

void function onError( Exception, event ){    
  writeDump( arguments.Exception );
}

That should help you diagnose the issue.


--
You received this message because you are subscribed to the Google Groups "Xindi CMS CFML" group.

To unsubscribe from this group and stop receiving emails from it, send an email to getxindi+u...@googlegroups.com.
To post to this group, send an email to getx...@googlegroups.com.

Muhammad Tariq

unread,
Jan 24, 2014, 8:08:54 AM1/24/14
to getx...@googlegroups.com, john....@googlemail.com
My hosting company give me this response.

========================
Tariq,

For security reasons, we could enable access to internal ColdFusion Java Components on a shared server. Our team will continue looking into a workaround for this issue. We will keep you advised of our progress.


Thanks,

Andrew Gade
Hostek Support
========================

Simon Bingham

unread,
Jan 24, 2014, 11:20:11 AM1/24/14
to getx...@googlegroups.com, john....@googlemail.com
That's annoying. You might want to take a look at http://www.hostmedia.co.uk/.

Muhammad Tariq

unread,
Jan 24, 2014, 11:32:03 AM1/24/14
to getx...@googlegroups.com, john....@googlemail.com
Thanks for reply,

I have comment the hoth

//this.mappings[ "/hoth" ] = this.applicationroot & "frameworks/hoth/";
and also use your code for display error

// ------------------------ CALLED WHEN EXCEPTION OCCURS ------------------------ //   
   
    /*void function onError( Exception, event ){   
        if( StructKeyExists( application, "exceptiontracker" ) )
        application.exceptiontracker.track( arguments.Exception );
        super.onError( arguments.Exception, arguments.event );
    }*/

void function onError( Exception, event ){   
  writeDump( arguments.Exception );
}


I have received below error

http://hhf.raheem.com.pk/index.cfm/user/addUser

Regards,

Tariq


On Thursday, 23 January 2014 00:58:42 UTC+5, John Whish wrote:
Reply all
Reply to author
Forward
0 new messages