Re: Distributed Cache in Coldfusion 9 with Terracotta
Rick, Try this: http://li-ma.blogspot.com/2010/04/run-terracotta-server-as-windows.html HTH, -Carl ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351355 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributed Cache in Coldfusion 9 with Terracotta
> In general, to get Java programs to run as services, you use one of > the many Java service wrappers available. As you mention, there are many. Do you (or anyone else reading) have a recommendation for one that runs well on 64 bit Win2k8? I found several articles on starting terracotta automatically, but they seem to refer to older versionso of windows and software that doesn't seem to exist for 2k8. Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351354 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributed Cache in Coldfusion 9 with Terracotta
> > Perhaps the problem here is that I'm using a version of terracotta > that is too modern for Coldfusion 901's version of ehcache. The jar > file that I copied was "ehcache-terracotta-2.5.2.jar" but the two > sites I found both mention use ehcache-terracotta-2.0.0.jar". > > I know Rob Brooks site talks about upgrading ehcache so I guess maybe > I need to look into this. This was the problem. Rob had written a really nice dzone article that i followed to do the upgrade (though I went to the latest version of ehcache, which was 2.5.2 instead of 2.4.1 as the article discusses) http://java.dzone.com/articles/building-high-performance So I have it all upgraded, and it is working.. now I can focus on getting the configuration all figured out. =) Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351353 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributed Cache in Coldfusion 9 with Terracotta
>I have not, but since CF is talking to a specific IP port for this, >watch out for firewalls, etc. We are running Windows Firewall ... I did check, from a command prompt, if I could telnet to localhost 9510 ... and it allowed me in so I don't think the firewall was affecting it. However, just in case, I added a rule allowing access through to port 9510. I did find the following error message in my jrun4/logs/instancename-out.log (not a place I often look!) java.lang.NoClassDefFoundError: net/sf/ehcache/config/TerracottaClientConfiguration Perhaps the problem here is that I'm using a version of terracotta that is too modern for Coldfusion 901's version of ehcache. The jar file that I copied was "ehcache-terracotta-2.5.2.jar" but the two sites I found both mention use ehcache-terracotta-2.0.0.jar". I know Rob Brooks site talks about upgrading ehcache so I guess maybe I need to look into this. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351352 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributed Cache in Coldfusion 9 with Terracotta
I'd also give these blog posts a review if you haven't already. http://rob.brooks-bilson.com/index.cfm/Terracotta Specifically, there is a webinar link in there that (if the recording is available) might help you out a bit. -Cameron On Mon, May 28, 2012 at 9:44 PM, Rick Root wrote: > > Also, if anyone has any tips on how to set up the terracotta server to > start automatically when windows starts, that'd be appreciated! > > We are running 64 bit Windows Server 2008.. Coldfusion 9.0.1 64 bit > Enterprise Multiserver configuration with 3 instances clustered running our > web site. > > Rick > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351350 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributed Cache in Coldfusion 9 with Terracotta
> So, I am told that you can use ehcache in CF to work as a distributed cache > if you install the open source terracotta server. > > I'm having trouble finding instructions on how to do this. I found the > following article on doing it: > > http://www.coffeesix.com/2010/07/distributed-cache-with-coldfusion-9-0-1/ > > and after following the basic instructions and attempting to test it out... > I get no noticeable error, but my page request seems to abort without error > when calling either the cachePut() or cacheGet() functions. > > At the top of the page, before any output, I see the following: > > "The page cannot be displayed because an internal server error has > occurred." > > But, I cannot trap an error with cftry/cfcatch.. the page just stops > executing. > > Anyone seen this behavior before? I have not, but since CF is talking to a specific IP port for this, watch out for firewalls, etc. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351346 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributed Cache in Coldfusion 9 with Terracotta
> Also, if anyone has any tips on how to set up the terracotta server to start > automatically when windows > starts, that'd be appreciated! In general, to get Java programs to run as services, you use one of the many Java service wrappers available. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351345 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributed Cache in Coldfusion 9 with Terracotta
Also, if anyone has any tips on how to set up the terracotta server to start automatically when windows starts, that'd be appreciated! We are running 64 bit Windows Server 2008.. Coldfusion 9.0.1 64 bit Enterprise Multiserver configuration with 3 instances clustered running our web site. Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351344 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Distributed Cache in Coldfusion 9 with Terracotta
So, I am told that you can use ehcache in CF to work as a distributed cache if you install the open source terracotta server. I'm having trouble finding instructions on how to do this. I found the following article on doing it: http://www.coffeesix.com/2010/07/distributed-cache-with-coldfusion-9-0-1/ and after following the basic instructions and attempting to test it out... I get no noticeable error, but my page request seems to abort without error when calling either the cachePut() or cacheGet() functions. At the top of the page, before any output, I see the following: "The page cannot be displayed because an internal server error has occurred." But, I cannot trap an error with cftry/cfcatch.. the page just stops executing. Anyone seen this behavior before? Rick -- *The beatings will continue until morale improves.* ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351343 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm