Mach-ii on a shared hosting and shared SSL environment not working

7 views
Skip to first unread message

vegiecat

unread,
Dec 9, 2009, 12:25:29 PM12/9/09
to Mach-II for CFML
Hi All,

We are using Mach-ii on a shared hosting environment. We are also
using a shared SSL connection.

We're running into the problem where the application runs fine on its
regular domain (i.e.. www.mydomain.com), but running into an error
when its under the shared SSL connection (i.e. https://www.xyz.com/mydomain/)

In particular, the error is

Could not find the ColdFusion Component or Interface
MachII.util.Utils.
Ensure that the name is correct and that the component or interface
exists.

The error occurred in C:\Websites\200121ar8\webroot\MachII\framework
\AppFactory.cfc: line 105
Called from C:\Websites\200121ar8\webroot\MachII\framework
\AppLoader.cfc: line 136
Called from C:\Websites\200121ar8\webroot\MachII\mach-ii.cfc: line 138
Called from C:\Websites\200121ar8\webroot\MachII\mach-ii.cfc: line 75

103 : <cfset logFactory = arguments.parentAppManager.getLogFactory
() />
104 : <cfelse>
105 : <cfset utils = CreateObject("component",
"MachII.util.Utils").init() />
106 : <cfset expressionEvaluator = CreateObject("component",
"MachII.util.ExpressionEvaluator").init() />

The application is placed in the site root folder. Would anyone have
any insight on this problem?

addition notes:
- we have only have MachII folder, application.cfc and index.cfm in
webroot folder
- we are using mapping in application.cfc to
- <cfset MACHII_CONFIG_PATH = ExpandPath("/../appName/config/
appName.xml") />

Thank you all!

Jimmy

Matthew Woodward

unread,
Dec 9, 2009, 12:32:55 PM12/9/09
to mach-ii-for...@googlegroups.com
On Wed, Dec 9, 2009 at 9:25 AM, vegiecat <vegi...@gmail.com> wrote:
Hi All,

We are using Mach-ii on a shared hosting environment.  We are also
using a shared SSL connection.

We're running into the problem where the application runs fine on its
regular domain (i.e.. www.mydomain.com), but running into an error
when its under the shared SSL connection (i.e. https://www.xyz.com/mydomain/)

That's because the pathing is different between those two domains. In the first example, "MachII." will get you to the right place if MachII is in your webroot.

In the second example, your "MachII." references would have to become "mydomain.MachII." in order to get to Mach-II.

Maybe some other folks will have different ideas, but I think your only options are to create a mapping or update the Mach-II code so it has the right references. We absolutely don't recommend the latter unless it's your only option.

My real recommendation would be to work with a different hosting company, but I realize that may not be feasible.

Just so it's clear, this specific problem has nothing to do with the SSL certificate itself. The paths just aren't the same between those two URLs. You'd have this same issue between those two URLs regardless of whether or not it's https.

--
Matthew Woodward
ma...@mattwoodward.com
http://mpwoodward.posterous.com
identi.ca/Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

Peter J. Farrell

unread,
Dec 9, 2009, 12:46:27 PM12/9/09
to mach-ii-for...@googlegroups.com
Matthew Woodward said the following on 12/09/2009 11:32 AM:
> My real recommendation would be to work with a different hosting
> company, but I realize that may not be feasible.

You can get a nice VPS at Viviotech.net using OpenBD (as the CFML
engine) for as low as $19.95 unmanaged or $29.95 managed. Most shared
CFML hosting runs about $20/month so I definitely would look into this.

.Peter

Jimmy Chen

unread,
Dec 9, 2009, 1:04:43 PM12/9/09
to mach-ii-for...@googlegroups.com
Thank you Matt and Peter,

So how would you create a mapping to get around this issue?

yours,

Jimmy



--
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to mach-ii-for...@googlegroups.com
To unsubscribe from this group, send email to mach-ii-for-coldf...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/

Matthew Woodward

unread,
Dec 9, 2009, 1:15:58 PM12/9/09
to mach-ii-for...@googlegroups.com
On Wed, Dec 9, 2009 at 10:04 AM, Jimmy Chen <vegi...@gmail.com> wrote:
Thank you Matt and Peter,

So how would you create a mapping to get around this issue?



If your host lets you do it, you're creating a mapping at the CFML engine level to point to the MachII directory. You'd have to contact your host to see if they even let you do that.

Jimmy Chen

unread,
Dec 9, 2009, 1:42:40 PM12/9/09
to mach-ii-for...@googlegroups.com
Thanks again Matt,

I'm not that familiar with mapping at CFML engine level, so here is my dumb question...  what exactly should I ask my host to change or add to the mapping if they let us do it?

And why wouldn't just application wide mapping work?

yours,

Jimmy




--

Matthew Woodward

unread,
Dec 9, 2009, 1:44:57 PM12/9/09
to mach-ii-for...@googlegroups.com
On Wed, Dec 9, 2009 at 10:42 AM, Jimmy Chen <vegi...@gmail.com> wrote:
I'm not that familiar with mapping at CFML engine level, so here is my dumb question...  what exactly should I ask my host to change or add to the mapping if they let us do it?

Ask the if they allow "coldfusion mappings." If they don't know what that means, run to another host quickly.
 

And why wouldn't just application wide mapping work?



In theory it should--sorry, should have mentioned that as an option. Personally I just don't use application-specific mappings enough to know why that wouldn't work, but have you tried doing that?

Jimmy Chen

unread,
Dec 9, 2009, 2:20:35 PM12/9/09
to mach-ii-for...@googlegroups.com
Hi Matt,

I'm trying to do it in application mapping, and this is what I'm trying to use:

<cfset this.mappings["/MachII"] = expandPath("/MachII/") />

and apparently its incorrect because I get the error of:

Could not find the ColdFusion Component or Interface MachII.mach-ii.

so, any tips on how to do the mapping?

Jimmy




--

Peter J. Farrell

unread,
Dec 9, 2009, 2:31:06 PM12/9/09
to mach-ii-for...@googlegroups.com

Jimmy Chen

unread,
Dec 9, 2009, 2:34:25 PM12/9/09
to mach-ii-for...@googlegroups.com
its working now, thank you!  you are life savers!

Jimmy
Reply all
Reply to author
Forward
0 new messages