Re: CFMX7, Ubuntu, Virtual Hosts, and a weird CFLOCK issue

2009-07-22 Thread Tom Chiverton

On Wednesday 22 Jul 2009, Rob Barthle wrote:
> > Wasn't Application.cfc introduced in CF8, not 7 ?
> If that were the case, then I'd be having bigger problems... ;-)

Coffee failure, oops.

-- 
Helping to proactively compete essential cross-platform systems as part of the 
IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324801
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFMX7, Ubuntu, Virtual Hosts, and a weird CFLOCK issue

2009-07-22 Thread Rob Barthle

> Wasn't Application.cfc introduced in CF8, not 7 ?
> 

If that were the case, then I'd be having bigger problems... ;-) 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324791
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFMX7, Ubuntu, Virtual Hosts, and a weird CFLOCK issue

2009-07-22 Thread Tom Chiverton

On Tuesday 21 Jul 2009, Rob Barthle wrote:
> Background: I have a local CFMX7 
...
> The Application.cfc file has things set up properly:

Wasn't Application.cfc introduced in CF8, not 7 ?

-- 
Helping to professionally entrench open-source convergence as part of the IT 
team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324788
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFMX7, Ubuntu, Virtual Hosts, and a weird CFLOCK issue

2009-07-21 Thread Rob Barthle

>Perhaps with the direct domain name, you remove the ability to 
>traverse up the directory tree to get at the application.cfc?
>Is the application.cfc in the same directory as the page you are calling?
>
>

Al, you are the man.

I set up the site directory name wrong compared to the working server. The 
first letter should have been capitalized. That little fix there (and in the 
virtual hosts setup) fixed everything. Thank you for making me step back 
through the setup with your suggestion! 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324779
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFMX7, Ubuntu, Virtual Hosts, and a weird CFLOCK issue

2009-07-21 Thread Rob Barthle

>Perhaps with the direct domain name, you remove the ability to 
>traverse up the directory tree to get at the application.cfc?
>Is the application.cfc in the same directory as the page you are calling?
>
>

Yes it is. As I said before, this exact setup works properly on another server 
(only that is a Solaris box, not Ubuntu). Because of that, I am thinking that 
it has to be in how I set up the virtual host somehow, or maybe it's because 
it's on Ubuntu (which was not supported for CFMX7)? I am by no means a Unix 
guru, I followed a blog post to get the virtual site set up.

The error is in onError(), I'd like to see the root error that caused this 
(assuming there is one here). Mayeb that will give some insight. Just an odd 
thing to have session management set up but have it act like it's not? 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324778
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFMX7, Ubuntu, Virtual Hosts, and a weird CFLOCK issue

2009-07-21 Thread Al Musella, DPM

Perhaps with the direct domain name, you remove the ability to 
traverse up the directory tree to get at the application.cfc?
Is the application.cfc in the same directory as the page you are calling?


>Background: I have a local CFMX7 development server running on 
>Ubuntu 8.0.4 and Apache 2.2. For most of my sites I have a domain 
>name that is specific to that server, and sites that run off of 
>subdirectories (ex: http://www.devbox.com/CFAPPS/sitename/) without a problem.
>
>Today I was having to set up a site to use a vanity domain name 
>(http://www.mydomain.com) which points to a subdirectory of 
>/www/CFAPPS/ on my server (like the other sites that work do), and I 
>added a virtual host to Apache. It seems to have set up fine there, 
>but I get a weird error when I try to access the site:
>
>==
>  Cannot lock SESSION scope.
>CFLock cannot be used to lock the application or session shared 
>scopes without these scopes being established through the use of the 
>CFApplication tag. If you want to use the session scope you need to 
>enable session management. Application and/or Session variables must 
>also be enabled in the ColdFusion Administrator.
>
>The error occurred in /var/www/CFAPPS/[site name removed for 
>privacy]/Application.cfc: line 278
>
>276 :   
>277 :   
>278 :   type="EXCLUSIVE" scope="SESSION">
>279 :   
>280 :   
>
>==
>
>The Application.cfc file has things set up properly:
>
>==
>
>
>
>
>
>
>
>
>
>
>==
>
>And I checked the CFAdmin settings and it's fine, J2EE session 
>variables, Enable Application variables, and Enable session 
>variables are all checked. I also know this because the other sites 
>that don't use a vanity domain name are working fine.
>
>I have no idea at this point why this might be erroring. Anyone have ideas?
>
>
>

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324774
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFMX7, Ubuntu, Virtual Hosts, and a weird CFLOCK issue

2009-07-21 Thread Rob Barthle

I should add that this code works fine on the team's dev server. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324769
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFMX7, Ubuntu, Virtual Hosts, and a weird CFLOCK issue

2009-07-21 Thread Rob Barthle

Background: I have a local CFMX7 development server running on Ubuntu 8.0.4 and 
Apache 2.2. For most of my sites I have a domain name that is specific to that 
server, and sites that run off of subdirectories (ex: 
http://www.devbox.com/CFAPPS/sitename/) without a problem.

Today I was having to set up a site to use a vanity domain name 
(http://www.mydomain.com) which points to a subdirectory of /www/CFAPPS/ on my 
server (like the other sites that work do), and I added a virtual host to 
Apache. It seems to have set up fine there, but I get a weird error when I try 
to access the site:

==
 Cannot lock SESSION scope.
CFLock cannot be used to lock the application or session shared scopes without 
these scopes being established through the use of the CFApplication tag. If you 
want to use the session scope you need to enable session management. 
Application and/or Session variables must also be enabled in the ColdFusion 
Administrator.
 
The error occurred in /var/www/CFAPPS/[site name removed for 
privacy]/Application.cfc: line 278

276 :   
277 :   
278 :   
279 :   
280 :   

==

The Application.cfc file has things set up properly:

==










==

And I checked the CFAdmin settings and it's fine, J2EE session variables, 
Enable Application variables, and Enable session variables are all checked. I 
also know this because the other sites that don't use a vanity domain name are 
working fine.

I have no idea at this point why this might be erroring. Anyone have ideas?


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324767
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4