CF9 instance in CF8 multiserver - context root problem?
hello fellow cftalkers, i have changed my dev environment to a CF8 multi-server setup, and then installed CF9 as an instance in it. cf8 instance has context root set to /, and cf9 is set to use /cf9 context root. this all is on Win XP with Apache 2.2 as web server. while everything else seems to work fine (so far, at least), one problem i have come across is: trying to use cfmap tag, the script tags cf9 inserts for google maps api and mapiconmaker scripts end up with src looking like src=/cf9http://..; which, obviously, fails to load the scripts. is it some setting in the instance's setup in jrun i am missing, or have incorrect? or something in the instance's administrator i need to change? any other info i need to post here? also, can both my cf8 and cf9 instances have context root set to / ? i have tried changing cf9 instance's context root to /, but if then fails to restart the service it seems... thanks for any help! -- Azadi Saryev ~| 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:329079 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF9 instance in CF8 multiserver - context root problem?
i have changed my dev environment to a CF8 multi-server setup, and then installed CF9 as an instance in it. cf8 instance has context root set to /, and cf9 is set to use /cf9 context root. this all is on Win XP with Apache 2.2 as web server. In general, I would recommend that you install CF 9 as multi-server, and then install CF 8 as an instance in that. This guarantees that you get the latest version of JRun. Honestly, I'm not sure if there are any differences between the version of JRun with CF 8 and with CF 9, but I wouldn't be surprised if there were some small, poorly-documented differences. also, can both my cf8 and cf9 instances have context root set to / ? i have tried changing cf9 instance's context root to /, but if then fails to restart the service it seems... You can't have two J2EE apps with the same context root attached to the same virtual web server. The context root is used by the web server (or more accurately, by the JRun module installed into the web server, I guess) to determine how to route requests. In my own case, I've simply set up multiple virtual web servers - easy enough to do in Apache - and configured my CF instances to point at those web servers. They can then all have the / context root. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:329086 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF9 instance in CF8 multiserver - context root problem?
thanks for your answer, Dave! setting up virtual Apache servers - something tells me it is not the same as vhosts, is it? but google seems to think it is... could you point me to where i can find more info on how to set them up? if it is same as vhosts, then that's how i have it set up, too. i was following Matt Quackenbush's instructions in setting up cf9 with cf8 from here: http://www.quackfuzed.com/index.cfm/2009/10/18/Learning-CF9-Installing-CF9-Alongside-CF8 and, as i said, everything works just fine except the src attribute of external scripts cf inserts into the page ends up prefixed with the instance's context root /cf9... your help is very much appreciated, Dave. Azadi Saryev On 11/12/2009 22:29, Dave Watts wrote: i have changed my dev environment to a CF8 multi-server setup, and then installed CF9 as an instance in it. cf8 instance has context root set to /, and cf9 is set to use /cf9 context root. this all is on Win XP with Apache 2.2 as web server. In general, I would recommend that you install CF 9 as multi-server, and then install CF 8 as an instance in that. This guarantees that you get the latest version of JRun. Honestly, I'm not sure if there are any differences between the version of JRun with CF 8 and with CF 9, but I wouldn't be surprised if there were some small, poorly-documented differences. also, can both my cf8 and cf9 instances have context root set to / ? i have tried changing cf9 instance's context root to /, but if then fails to restart the service it seems... You can't have two J2EE apps with the same context root attached to the same virtual web server. The context root is used by the web server (or more accurately, by the JRun module installed into the web server, I guess) to determine how to route requests. In my own case, I've simply set up multiple virtual web servers - easy enough to do in Apache - and configured my CF instances to point at those web servers. They can then all have the / context root. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:329087 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF9 instance in CF8 multiserver - context root problem?
setting up virtual Apache servers - something tells me it is not the same as vhosts, is it? but google seems to think it is... could you point me to where i can find more info on how to set them up? Yes, it's the same. You have to put the instance-specific JRun directives in each vhost, though. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:329091 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CF9 instance in CF8 multiserver - context root problem?
that's exactly how i have it - a different jrun directive in the cf9 vhost. this is in my httpd.conf: IfModule mod_jrun22.c JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ignoresuffixmap false JRunConfig Serverstore D:/JRun4/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51020 AddHandler jrun-handler .cfm .cfc .cfr /IfModule and this is my vhost def for cf9: VirtualHost 127.0.0.1:80 DocumentRoot D:/Inetpub/cf9root ServerName cf9dev ServerAlias cf9dev Alias /CFIDE/ D:/JRun4/servers/cf9/cfusion-ear/cfusion-war/CFIDE/ JRunConfig Apialloc false JRunConfig Serverstore D:/JRun4/lib/wsconfig/cf9/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51002 Directory D:\JRun4\servers\cf9\cfusion-ear\cfusion-war\CFIDE Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory ErrorLog logs/cf9dev-error.log CustomLog logs/cf9dev-access.log common /VirtualHost i guess something else is at play here... Azadi Saryev On 12/12/2009 00:39, Dave Watts wrote: setting up virtual Apache servers - something tells me it is not the same as vhosts, is it? but google seems to think it is... could you point me to where i can find more info on how to set them up? Yes, it's the same. You have to put the instance-specific JRun directives in each vhost, though. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:329094 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF9 instance in CF8 multiserver - context root problem?
that's exactly how i have it - a different jrun directive in the cf9 vhost. Set up separate vhosts for each. Each should have its own settings. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:329100 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF9 instance in CF8 multiserver - context root problem?
i went and manually edited the context-root setting in the instance's jrun-web.xml and all is good now! trying to set context root to / in JMC did not work, but manually editing jrun-web.xml did the trick. strangely, though, in JMC now the instance's context root appears just empty, not / ... also, i was under the impression that the instance's context root setting was set in cfusion-ear\META-INF\application.xml, but apparently it is not as i had it set to / there all along... bonus - i do not have to use /cf9 in the urls any more either. thanks for your help, Dave! you got me looking into more things and i finally figured it out. jrun's livedocs were surprisingly helpful in pointing me to the context-root in jrun-web.xml Azadi Saryev On 12/12/2009 00:39, Dave Watts wrote: setting up virtual Apache servers - something tells me it is not the same as vhosts, is it? but google seems to think it is... could you point me to where i can find more info on how to set them up? Yes, it's the same. You have to put the instance-specific JRun directives in each vhost, though. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:329101 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF9 instance in CF8 multiserver - context root problem?
yea, i do have a separate named vhost set up for each website. but you do not need separate jrun settings for each vhost - only for those that must use a server instance different from the global one defined in httpd.conf (in my case all my other sites use a cf8 instance; only one uses cf9 for testing/playing) Azadi Saryev On 12/12/2009 02:13, Dave Watts wrote: Set up separate vhosts for each. Each should have its own settings. ~| 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:329103 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4