Re: CF8 Instance hogs cpu

2012-10-02 Thread Paul Kukiel

Client variables being stored in registry?

Paul

On 03/10/2012, at 8:32 AM, Richard  Steele  wrote:

> 
> We have a problem with one of our CF8 Enterprise instances. Almost daily, it 
> hogs the entire cpu of the server and the service has to be restarted.  Over 
> 2.5 gb of memory is dedicated to this instance. It reaches that ceiling 
> within several hours of use. Perhaps garbage collection can't keep up? 
> 
> Is there a way to limit the cpu resources given to an instance?
> How do we troubleshoot what might be causing this? Thanks! 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:352836
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 enterprise runs on 64-bit Red Hat 6?

2012-10-02 Thread Pete Freitag

Dan, I'm pretty sure it is not a supported OS for CF9. I do recall some
folks running into issues getting it to run on RHEL 6, but I think you can
workaround it, I have not tried personally.  I have used CF10 on RHEL 6 and
it works well.

--
Pete Freitag - Adobe Community Professional
http://foundeo.com/ - ColdFusion Consulting & Products
http://petefreitag.com/ - My Blog
http://hackmycf.com - Is your ColdFusion Server Secure?




On Tue, Oct 2, 2012 at 6:57 PM, Dan LeGate  wrote:

>
> I'm trying to find the equivalent ColdFusion 9 page to this CF10 page:
>
> http://www.adobe.com/products/coldfusion-enterprise/tech-specs.html
>
> trying to answer thee question Will ColdFusion 9 Enterprise run on
> 64-bit Red Hat 6?
>
> Any information is greatly appreciated!
>
> Dan
>
> 

~|
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:352835
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8 Instance hogs cpu

2012-10-02 Thread Donnie Bachan (Gmail)

Hi Richard,

I wrote a post a while back about memory leaks in CF8 Ent., although it is
not specifically related to high CPU usage, some of the settings here may
be of help.
http://thinkinglemur.com/index.php/2010/02/memory-leaks-with-coldfusion-8/

The two things that helped the most (aside from refactoring code) was
updating the JVM and using -XX:+AgressiveHeap.

Is this only happening on 1 specific instance? What about the other
instances on the server, are they fine? Do they interact with the instance
that is having issues?

HTH.
Donnie


~|
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:352834
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 enterprise runs on 64-bit Red Hat 6?

2012-10-02 Thread Jordan Michaels

Adobe doesn't sell CF9 on it's own any more, so you probably won't find 
a page like that anywhere. Maybe there's something in the Internet Archive?

http://archive.org/web/web.php

I'd be pretty surprised if RHEL6 was on the list of officially supported 
OS's, but my guess is that it would work just fine. Most of the 
integration is done via the connector and Apache 2.2 is used on both 
versions.

Warm Regards,
Jordan Michaels

On 10/02/2012 03:57 PM, Dan LeGate wrote:
>
> I'm trying to find the equivalent ColdFusion 9 page to this CF10 page:
>
> http://www.adobe.com/products/coldfusion-enterprise/tech-specs.html
>
> trying to answer thee question Will ColdFusion 9 Enterprise run on
> 64-bit Red Hat 6?
>
> Any information is greatly appreciated!
>
> Dan
>
> 

~|
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:352833
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 enterprise runs on 64-bit Red Hat 6?

2012-10-02 Thread Russ Michaels

yes cf9 is 64bit.
you can download the trial edition and test if you want to be sure.

On Tue, Oct 2, 2012 at 11:57 PM, Dan LeGate  wrote:

>
> I'm trying to find the equivalent ColdFusion 9 page to this CF10 page:
>
> http://www.adobe.com/products/coldfusion-enterprise/tech-specs.html
>
> trying to answer thee question Will ColdFusion 9 Enterprise run on
> 64-bit Red Hat 6?
>
> Any information is greatly appreciated!
>
> Dan
>
> 

~|
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:352832
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8 Instance hogs cpu

2012-10-02 Thread Russ Michaels

On Wed, Oct 3, 2012 at 12:03 AM, Richard Steele  wrote:

>
> >look at the request activity graph and activity logs to see what was
> >running at the time the issue occurred.
> Again, F-R can't be viewed during this time as 97% cpu hog prevents
> anything from working.
>

so look at it after you restart cf

>
> >Have you setup crash protection to kill long running requests?
> We had set this up before, but did not have good results. More often than
> not, it wouldn't crash the request, and would just keep it in limbo.
>
> 

~|
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:352831
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Donnie Bachan (Gmail)

Pete and Dave,

I owe both of you a beverage (or ten!) next time I'm in the US or you are
in the UK! It was the BSafe library. I used the code from the forum post to
disable the library and my requests worked. I will have to look into the
compliance issue with disabling the library when making the calls but at
least I know where the problem lies!

Thanks again!
Donnie



On Tue, Oct 2, 2012 at 11:48 PM, Dave Watts  wrote:

>
> > My Guess is that this has something to do with the RSA BSafe crypto-j
> > security provider that CF Enterprise ships with. This API was upgraded in
> > CF10, so you could try that as an option. When you run Java from the
> > command line, you are not using Crypto-J, when you run java within CF you
> > are.
> >
> > Another thing to try would be CF Standard since CF standard uses the
> > default Java security provider.
> >
> > You might also be able to have CF9 Ent run with the default security
> > provider via some JVM options.
>
> Also, you can temporarily disable BSafe, I think, as described by
> Jason Dean here:
>
> http://forums.adobe.com/message/3895416
>
>


~|
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:352830
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8 Instance hogs cpu

2012-10-02 Thread Richard Steele

>look at the request activity graph and activity logs to see what was
>running at the time the issue occurred.
Again, F-R can't be viewed during this time as 97% cpu hog prevents anything 
from working. 

>Have you setup crash protection to kill long running requests?
We had set this up before, but did not have good results. More often than not, 
it wouldn't crash the request, and would just keep it in limbo. 

~|
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:352829
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF9 enterprise runs on 64-bit Red Hat 6?

2012-10-02 Thread Dan LeGate

I'm trying to find the equivalent ColdFusion 9 page to this CF10 page:

http://www.adobe.com/products/coldfusion-enterprise/tech-specs.html

trying to answer thee question Will ColdFusion 9 Enterprise run on 
64-bit Red Hat 6?

Any information is greatly appreciated!

Dan

~|
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:352828
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8 Instance hogs cpu

2012-10-02 Thread Richard Steele

> Perhaps code is the issue. Perhaps a custom tag is the issue. Details 
> are needed before anyone can give any sort of reasonable answer. 

It's always on the same instance of a multi-instance, load-balanced cf8 server.

> How much traffic is the site getting? requests/second?
We get about 6,000 visitors a day. Not sure about the request/second.

> What is the code processing?
Same code that's been in place for many years.

> What is the code accessing?
SQL Server 2005

> Is the database responding properly?
Yes

Can we isolate / limit cpu usage for this instance? 
Thanks.
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:352827
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8 Instance hogs cpu

2012-10-02 Thread Russ Michaels

look at the request activity graph and activity logs to see what was
running at the time the issue occurred.
Have you setup crash protection to kill long running requests?

On Tue, Oct 2, 2012 at 11:57 PM, Richard Steele  wrote:

>
> >Are you logging long-running requests?
> How do we log these?
>
> >Any requests hanging?
> All requests start to hang at 97% cpu usage.
>
> >Can you correlate the memory/cpu spike with site traffic or spiders?
> We think it may be spider related.
>
> >Like Wil said, it's probably the code in a certain request / page that's
> >using more memory/cycles than it needs to.
> Our code has been in place for years.
>
> >You may need something like FusionReactor to see what's causing issues.
> We have F-R but can't get to it when this occurs as the 97% cpu usage
> freezes everthing.
>
> Is there a way to limit cpu usage for a particular instance?
>
> Thanks.
> 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:352826
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8 Instance hogs cpu

2012-10-02 Thread Richard Steele

>Are you logging long-running requests?
How do we log these?

>Any requests hanging?
All requests start to hang at 97% cpu usage.

>Can you correlate the memory/cpu spike with site traffic or spiders?
We think it may be spider related.

>Like Wil said, it's probably the code in a certain request / page that's 
>using more memory/cycles than it needs to.
Our code has been in place for years.

>You may need something like FusionReactor to see what's causing issues.
We have F-R but can't get to it when this occurs as the 97% cpu usage freezes 
everthing. 

Is there a way to limit cpu usage for a particular instance?

Thanks.
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:352825
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8 Instance hogs cpu

2012-10-02 Thread Russ Michaels

have you tried using the built in server monitor or fusionReactor to
diagnose the issue ?

On Tue, Oct 2, 2012 at 11:32 PM, Richard Steele  wrote:

>
> We have a problem with one of our CF8 Enterprise instances. Almost daily,
> it hogs the entire cpu of the server and the service has to be restarted.
>  Over 2.5 gb of memory is dedicated to this instance. It reaches that
> ceiling within several hours of use. Perhaps garbage collection can't keep
> up?
>
> Is there a way to limit the cpu resources given to an instance?
> How do we troubleshoot what might be causing this? Thanks! 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:352824
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Dave Watts

> My Guess is that this has something to do with the RSA BSafe crypto-j
> security provider that CF Enterprise ships with. This API was upgraded in
> CF10, so you could try that as an option. When you run Java from the
> command line, you are not using Crypto-J, when you run java within CF you
> are.
>
> Another thing to try would be CF Standard since CF standard uses the
> default Java security provider.
>
> You might also be able to have CF9 Ent run with the default security
> provider via some JVM options.

Also, you can temporarily disable BSafe, I think, as described by
Jason Dean here:

http://forums.adobe.com/message/3895416

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:352823
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Dave Watts

> You just pass the location of the key file as a string so I'm just passing
> in C:\wamp\.\ClientKey.pem both in CF and Java class. I've tried using
> Wireshark as well to look at the packets being sent. From Java the request
> is fine, from CF the remote URL never gets called at all so it's not even
> getting to the bit where it makes the request. What I don't understand is
> why it's throwing the same error when I use a wrapper java class that then
> invokes the SDK. Even if I hard code the paths to the files in the java
> wrapper class and all CF does is call the wrapper class I get the same
> error. I'm thinking it may be some sort of permission issue why it can't
> read the key file but I can't figure out what to change. CF and Java and
> Apache all have full permissions on the directories.

Is CF running with a specific user account? If so, what happens if you
log into the console with that account and try to run the same Java
class?

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:352822
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8 Instance hogs cpu

2012-10-02 Thread .jonah

Are you logging long-running requests?

Any requests hanging?

Can you correlate the memory/cpu spike with site traffic or spiders?

Like Wil said, it's probably the code in a certain request / page that's 
using more memory/cycles than it needs to.

You may need something like FusionReactor to see what's causing issues.


On 10/2/12 3:37 PM, Wil Genovese wrote:
> Perhaps code is the issue. Perhaps a custom tag is the issue. Details are 
> needed before anyone can give any sort of reasonable answer.
>
> How much traffic is the site getting? requests/second?
> What is the code processing?
> What is the code accessing?
> Is the database responding properly?
>
> These and many more questions need to be answered.
>
> ColdFusion iteself does not just suck up all your CPU cycles.
>
>
> Wil Genovese
> Sr. Web Application Developer/
> Systems Administrator
> CF Webtools
> www.cfwebtools.com
>
> wilg...@trunkful.com
> www.trunkful.com
>
> On Oct 2, 2012, at 5:32 PM, Richard Steele wrote:
>
>> We have a problem with one of our CF8 Enterprise instances. Almost daily, it 
>> hogs the entire cpu of the server and the service has to be restarted.  Over 
>> 2.5 gb of memory is dedicated to this instance. It reaches that ceiling 
>> within several hours of use. Perhaps garbage collection can't keep up?
>>
>> Is there a way to limit the cpu resources given to an instance?
>> How do we troubleshoot what might be causing this? Thanks! 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:352821
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8 Instance hogs cpu

2012-10-02 Thread Wil Genovese

Perhaps code is the issue. Perhaps a custom tag is the issue. Details are 
needed before anyone can give any sort of reasonable answer. 

How much traffic is the site getting? requests/second?
What is the code processing?
What is the code accessing?
Is the database responding properly?

These and many more questions need to be answered. 

ColdFusion iteself does not just suck up all your CPU cycles.


Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Oct 2, 2012, at 5:32 PM, Richard Steele wrote:

> 
> We have a problem with one of our CF8 Enterprise instances. Almost daily, it 
> hogs the entire cpu of the server and the service has to be restarted.  Over 
> 2.5 gb of memory is dedicated to this instance. It reaches that ceiling 
> within several hours of use. Perhaps garbage collection can't keep up? 
> 
> Is there a way to limit the cpu resources given to an instance?
> How do we troubleshoot what might be causing this? Thanks! 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:352820
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF8 Instance hogs cpu

2012-10-02 Thread Richard Steele

We have a problem with one of our CF8 Enterprise instances. Almost daily, it 
hogs the entire cpu of the server and the service has to be restarted.  Over 
2.5 gb of memory is dedicated to this instance. It reaches that ceiling within 
several hours of use. Perhaps garbage collection can't keep up? 

Is there a way to limit the cpu resources given to an instance?
How do we troubleshoot what might be causing this? Thanks! 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:352819
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) How to match the timestamp in IIS6 logs to server time

2012-10-02 Thread Matt Quackenbush

On Tue, Oct 2, 2012 at 3:58 PM, Kym Kovan wrote:

>
> BTW, GMT is the "correct" time :-)
>


+infinity  :-)


~|
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:352818
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) How to match the timestamp in IIS6 logs to server time

2012-10-02 Thread Kym Kovan

Dave,

IIS logs in GMT by default. Later versions of IIS can be changed to log 
local time, not sure if that is global or by site...

BTW, GMT is the "correct" time :-)


On 3/10/2012 6:13 AM, Dave Hatz wrote:
>
> I am trying to audit IIS6 Web Server logs and 1 of the problems I am having 
> is matching up the TimeStamp in the log files to the server time, seems to be 
> like 8 hours off.
>
> Can someone please point me in the right direction to look to get the IIS6 
> logs in the correct time?
>
> Thanks,
> Dave Hatz
>


-- 

Yours,

Kym Kovan
mbcomms.net.au



~|
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:352817
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


(ot) How to match the timestamp in IIS6 logs to server time

2012-10-02 Thread Dave Hatz

I am trying to audit IIS6 Web Server logs and 1 of the problems I am having is 
matching up the TimeStamp in the log files to the server time, seems to be like 
8 hours off.

Can someone please point me in the right direction to look to get the IIS6 logs 
in the correct time?

Thanks,
Dave Hatz 

~|
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:352816
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Donnie Bachan (Gmail)

Thanks Russ, I've not played with JSP in years, will give it a shot. I'm
willing to even try Pascal at this point!


On Tue, Oct 2, 2012 at 8:37 PM, Russ Michaels  wrote:

>
> Dont forget that you are using jrun which also allows you to use jsp as
> well, perhaps you could try doing this from jsp and see if that works,
> which may save you some head banging as cfm and jsp can happily work
> together.
>
> Regards
> Russ Michaels
> On Oct 2, 2012 6:32 PM, "Pete Freitag"  wrote:
>
> >
> > My Guess is that this has something to do with the RSA BSafe crypto-j
> > security provider that CF Enterprise ships with. This API was upgraded in
> > CF10, so you could try that as an option. When you run Java from the
> > command line, you are not using Crypto-J, when you run java within CF you
> > are.
> >
> > Another thing to try would be CF Standard since CF standard uses the
> > default Java security provider.
> >
> > You might also be able to have CF9 Ent run with the default security
> > provider via some JVM options.
> >
> > Also can you post the full stack trace for the error you are getting in
> CF?
> >
> > --
> > Pete Freitag - Adobe Community Professional
> > http://foundeo.com/ - ColdFusion Consulting & Products
> > http://petefreitag.com/ - My Blog
> > http://hackmycf.com - Is your ColdFusion Server Secure?
> >
> >
> >
> >
> > On Tue, Oct 2, 2012 at 11:01 AM, Donnie Bachan (Gmail) <
> > donnie.bac...@gmail.com> wrote:
> >
> > >
> > > Thanks Dave,
> > >
> > > You just pass the location of the key file as a string so I'm just
> > passing
> > > in C:\wamp\.\ClientKey.pem both in CF and Java class. I've tried
> > using
> > > Wireshark as well to look at the packets being sent. From Java the
> > request
> > > is fine, from CF the remote URL never gets called at all so it's not
> even
> > > getting to the bit where it makes the request. What I don't understand
> is
> > > why it's throwing the same error when I use a wrapper java class that
> > then
> > > invokes the SDK. Even if I hard code the paths to the files in the java
> > > wrapper class and all CF does is call the wrapper class I get the same
> > > error. I'm thinking it may be some sort of permission issue why it
> can't
> > > read the key file but I can't figure out what to change. CF and Java
> and
> > > Apache all have full permissions on the directories.
> > >
> > > Donnie Bachan
> > >
> > > >
> > > > > This returns an error: Cannot get key bytes, not PKCS#8 encoded.
> If,
> > > > > however, I wrap this in a java class and execute from command line
> it
> > > > works
> > > > > just fine. It just refuses to work when called from ColdFusion.
> > > >
> > > > How are you providing the key file to the Java class from within CF?
> > > > Are you just reading it via CFFILE? I suspect that's the problem,
> > > > although I don't know what the solution would be exactly. When you
> > > > execute the Java class from the command line, how are you providing
> > > > the file in that case?
> > > >
> > > >
> > >
> > >
> > >
> >
> >
>
> 

~|
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:352815
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Donnie Bachan (Gmail)

Donnie Bachan
"Nitendo Vinces - By Striving You Shall Conquer"
==
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.

Pete,

Thanks very much. I think your note about RSA BSafe may be the issue since
the symptoms seem to be pointing to something that CF can't handle. I can
test this tomorrow. I'll post the stack trace when I'm back at work.

Best Regards,
Donnie
On Tue, Oct 2, 2012 at 6:32 PM, Pete Freitag  wrote:

>
> My Guess is that this has something to do with the RSA BSafe crypto-j
> security provider that CF Enterprise ships with. This API was upgraded in
> CF10, so you could try that as an option. When you run Java from the
> command line, you are not using Crypto-J, when you run java within CF you
> are.
>
> Another thing to try would be CF Standard since CF standard uses the
> default Java security provider.
>
> You might also be able to have CF9 Ent run with the default security
> provider via some JVM options.
>
> Also can you post the full stack trace for the error you are getting in CF?
>


~|
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:352814
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Russ Michaels

Dont forget that you are using jrun which also allows you to use jsp as
well, perhaps you could try doing this from jsp and see if that works,
which may save you some head banging as cfm and jsp can happily work
together.

Regards
Russ Michaels
On Oct 2, 2012 6:32 PM, "Pete Freitag"  wrote:

>
> My Guess is that this has something to do with the RSA BSafe crypto-j
> security provider that CF Enterprise ships with. This API was upgraded in
> CF10, so you could try that as an option. When you run Java from the
> command line, you are not using Crypto-J, when you run java within CF you
> are.
>
> Another thing to try would be CF Standard since CF standard uses the
> default Java security provider.
>
> You might also be able to have CF9 Ent run with the default security
> provider via some JVM options.
>
> Also can you post the full stack trace for the error you are getting in CF?
>
> --
> Pete Freitag - Adobe Community Professional
> http://foundeo.com/ - ColdFusion Consulting & Products
> http://petefreitag.com/ - My Blog
> http://hackmycf.com - Is your ColdFusion Server Secure?
>
>
>
>
> On Tue, Oct 2, 2012 at 11:01 AM, Donnie Bachan (Gmail) <
> donnie.bac...@gmail.com> wrote:
>
> >
> > Thanks Dave,
> >
> > You just pass the location of the key file as a string so I'm just
> passing
> > in C:\wamp\.\ClientKey.pem both in CF and Java class. I've tried
> using
> > Wireshark as well to look at the packets being sent. From Java the
> request
> > is fine, from CF the remote URL never gets called at all so it's not even
> > getting to the bit where it makes the request. What I don't understand is
> > why it's throwing the same error when I use a wrapper java class that
> then
> > invokes the SDK. Even if I hard code the paths to the files in the java
> > wrapper class and all CF does is call the wrapper class I get the same
> > error. I'm thinking it may be some sort of permission issue why it can't
> > read the key file but I can't figure out what to change. CF and Java and
> > Apache all have full permissions on the directories.
> >
> > Donnie Bachan
> >
> > >
> > > > This returns an error: Cannot get key bytes, not PKCS#8 encoded. If,
> > > > however, I wrap this in a java class and execute from command line it
> > > works
> > > > just fine. It just refuses to work when called from ColdFusion.
> > >
> > > How are you providing the key file to the Java class from within CF?
> > > Are you just reading it via CFFILE? I suspect that's the problem,
> > > although I don't know what the solution would be exactly. When you
> > > execute the Java class from the command line, how are you providing
> > > the file in that case?
> > >
> > >
> >
> >
> >
>
> 

~|
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:352813
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Localisation - file or database?

2012-10-02 Thread Paul Hastings

On 10/2/2012 7:25 PM, Edward Chanter wrote:
>
> currency formats etc but the calendar issue you raised is one I hadn't
> considered, and the L2R and R2L issue is also something I need to work out.

uh, i18n folks like their abbreviations, their standards as well as their 
numeronyms. its LTR (left-to-right writing system) & RTL (right-to-left writing 
system). don't go making up your own.

icu4j is your best friend for serious i18n cf/java work.


~|
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:352812
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Pete Freitag

My Guess is that this has something to do with the RSA BSafe crypto-j
security provider that CF Enterprise ships with. This API was upgraded in
CF10, so you could try that as an option. When you run Java from the
command line, you are not using Crypto-J, when you run java within CF you
are.

Another thing to try would be CF Standard since CF standard uses the
default Java security provider.

You might also be able to have CF9 Ent run with the default security
provider via some JVM options.

Also can you post the full stack trace for the error you are getting in CF?

--
Pete Freitag - Adobe Community Professional
http://foundeo.com/ - ColdFusion Consulting & Products
http://petefreitag.com/ - My Blog
http://hackmycf.com - Is your ColdFusion Server Secure?




On Tue, Oct 2, 2012 at 11:01 AM, Donnie Bachan (Gmail) <
donnie.bac...@gmail.com> wrote:

>
> Thanks Dave,
>
> You just pass the location of the key file as a string so I'm just passing
> in C:\wamp\.\ClientKey.pem both in CF and Java class. I've tried using
> Wireshark as well to look at the packets being sent. From Java the request
> is fine, from CF the remote URL never gets called at all so it's not even
> getting to the bit where it makes the request. What I don't understand is
> why it's throwing the same error when I use a wrapper java class that then
> invokes the SDK. Even if I hard code the paths to the files in the java
> wrapper class and all CF does is call the wrapper class I get the same
> error. I'm thinking it may be some sort of permission issue why it can't
> read the key file but I can't figure out what to change. CF and Java and
> Apache all have full permissions on the directories.
>
> Donnie Bachan
>
> >
> > > This returns an error: Cannot get key bytes, not PKCS#8 encoded. If,
> > > however, I wrap this in a java class and execute from command line it
> > works
> > > just fine. It just refuses to work when called from ColdFusion.
> >
> > How are you providing the key file to the Java class from within CF?
> > Are you just reading it via CFFILE? I suspect that's the problem,
> > although I don't know what the solution would be exactly. When you
> > execute the Java class from the command line, how are you providing
> > the file in that case?
> >
> >
>
>
> 

~|
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:352811
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Donnie Bachan (Gmail)

Thanks Dave,

You just pass the location of the key file as a string so I'm just passing
in C:\wamp\.\ClientKey.pem both in CF and Java class. I've tried using
Wireshark as well to look at the packets being sent. From Java the request
is fine, from CF the remote URL never gets called at all so it's not even
getting to the bit where it makes the request. What I don't understand is
why it's throwing the same error when I use a wrapper java class that then
invokes the SDK. Even if I hard code the paths to the files in the java
wrapper class and all CF does is call the wrapper class I get the same
error. I'm thinking it may be some sort of permission issue why it can't
read the key file but I can't figure out what to change. CF and Java and
Apache all have full permissions on the directories.

Donnie Bachan

>
> > This returns an error: Cannot get key bytes, not PKCS#8 encoded. If,
> > however, I wrap this in a java class and execute from command line it
> works
> > just fine. It just refuses to work when called from ColdFusion.
>
> How are you providing the key file to the Java class from within CF?
> Are you just reading it via CFFILE? I suspect that's the problem,
> although I don't know what the solution would be exactly. When you
> execute the Java class from the command line, how are you providing
> the file in that case?
>
>


~|
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:352810
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Dave Watts

> The following code illustrates the call from ColdFusion to the SDK:
> var serverInfo = createObject("java",
> "com.arcot.xfms.XFMS_Java_API$ServerInfo").init(
> VARIABLES.clientOptions.host,
> VARIABLES.clientOptions.port,
> VARIABLES.clientOptions.transport,
>  30,  5, 8,  4,
>
> VARIABLES.clientOptions.TrustedCACertFile,
>
> VARIABLES.clientOptions.ClientCertFile,
>
> VARIABLES.clientOptions.ClientKeyFile);
>
> This returns an error: Cannot get key bytes, not PKCS#8 encoded. If,
> however, I wrap this in a java class and execute from command line it works
> just fine. It just refuses to work when called from ColdFusion.

How are you providing the key file to the Java class from within CF?
Are you just reading it via CFFILE? I suspect that's the problem,
although I don't know what the solution would be exactly. When you
execute the Java class from the command line, how are you providing
the file in that case?

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:352809
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfhttp ignore SSL error

2012-10-02 Thread John M Bliss

Workaround ended up being to add a line to server's hosts file:

[IP of download.vendor.com]vendor.com

...and then cfhttp to https://vendor.com


On Sun, Sep 23, 2012 at 12:10 PM, John M Bliss  wrote:

> CFX_HTTP returns "An error occurred in the secure channel support."
>
> Any other ideas?
>
>
> On Tue, Sep 11, 2012 at 12:56 PM, Dave Watts  wrote:
>
>>
>> > Suggestion as to which one...?
>> >
>> > http://ultrahttp.riaforge.org/
>> > http://cflib.org/udf/HTTPGet
>>
>> Well, the second one just uses java.net.URL, it looks like, so I don't
>> think it'll behave any differently. I don't know about the first one.
>> There's a Windows binary, CFX_HTTP, you could try that if you're on
>> Windows.
>>
>> 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:352808
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Localisation - file or database?

2012-10-02 Thread Edward Chanter

Thanks Paul, I'm currently trying to answer all the questions you put in
there. Right now I'm keeping things simple but you're right that it's not
just the globs of text that need translating, I'd already thought of
currency formats etc but the calendar issue you raised is one I hadn't
considered, and the L2R and R2L issue is also something I need to work out.

Fun times!

Thanks again for everyone who responded, you've all given me lots to think
about.

On 2 October 2012 12:31, Paul Hastings  wrote:

> i think the question should be "what's the best way manage all that data"?
> typically, this won't be a one off, you'll need to manage translations for
> a
> growing number of locales & the stuff being translated is likely to grow in
> complexity (if its not already).
>
> who's doing the translations (hint, unless its an app about IT, it really
> shouldn't be your developers)? dealing w/professional translators,
> especially
> for "exotic" subjects, is often a "herding cats" exercise. you'll need
> something
> to keep track of what's been translated, when & by whom.
>
> will the translated resources need to be shared w/other platforms?
>
> for java, which has had i18n bits since forever, it's normal practice to
> use
> resource bundles (rb) & manage these w/one of the popular rb tools like
> rbManager or Attesoro.
>
> that's not to say can't mix database supplied text & rb. massive amounts
> of text
> probably should be in some sort of database but you'll need the same kind
> of
> tracking mechanism as "regular" rb tools.
>
>
> and just to make sure its clear, localizing an app isn't the 1st step. its
> internationalization (i18n)--besides the text, your app will need to handle
> date,time,number & currency formatting per locale. maybe calendars (not
> everybody uses gregorian calendars) as well as timezones. layout (LTR vs
> RTL
> locales), colors & even graphics all play a role in localization.
>
>
>
> 

~|
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:352807
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Localisation - file or database?

2012-10-02 Thread Paul Hastings

On 10/2/2012 4:01 PM, Edward Chanter wrote:
> We're about to embark on a project for which locallisation is a requirement
> and it's the first time I've done this. I understand the basic concepts
> about having data containing the words and phrases needed on a website
> stored with versions for each language but I'm trying to figure something
> out: what's the best way to store the data?

i think the question should be "what's the best way manage all that data"? 
typically, this won't be a one off, you'll need to manage translations for a 
growing number of locales & the stuff being translated is likely to grow in 
complexity (if its not already).

who's doing the translations (hint, unless its an app about IT, it really 
shouldn't be your developers)? dealing w/professional translators, especially 
for "exotic" subjects, is often a "herding cats" exercise. you'll need 
something 
to keep track of what's been translated, when & by whom.

will the translated resources need to be shared w/other platforms?

for java, which has had i18n bits since forever, it's normal practice to use 
resource bundles (rb) & manage these w/one of the popular rb tools like 
rbManager or Attesoro.

that's not to say can't mix database supplied text & rb. massive amounts of 
text 
probably should be in some sort of database but you'll need the same kind of 
tracking mechanism as "regular" rb tools.


and just to make sure its clear, localizing an app isn't the 1st step. its 
internationalization (i18n)--besides the text, your app will need to handle 
date,time,number & currency formatting per locale. maybe calendars (not 
everybody uses gregorian calendars) as well as timezones. layout (LTR vs RTL 
locales), colors & even graphics all play a role in localization.



~|
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:352806
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Donnie Bachan (Gmail)

>
> Hi Paul,
>
> Thanks for this, it's odd we use Cardinal when we call Paypal Pro (we use
> them as a back up processor if Barclays ever goes down) and that works fine
> on 64 bit. What's even more odd is the fact that they all use Arcot at the
> core because Arcot developed the system.
>
> Best Regards
>
>
>
>
> On Tue, Oct 2, 2012 at 11:29 AM, Paul Kukiel  wrote:
>
>>
>> Unsure if its an option be we use 3d secure with cardinal commerce who
>> support ColdFusion and 64 bit.
>>
>> Paul
>>
>>


~|
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:352805
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Localisation - file or database?

2012-10-02 Thread Andrew Scott

Not sure to be honest, never looked at a database option. The thing is what
is easier to translate and worth with quicker, for me at least any way.

Google ColdFusion il8n I am sure there will be a lot out there, if you use
a framework like ColdBox support might be built in.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: 
http://plus.google.com/113032480415921517411



On Tue, Oct 2, 2012 at 8:50 PM, Edward Chanter  wrote:

>
> Thanks for the tip Andy, I've heard the term mentioned but haven't looked
> into it at all. Do you know of any good resources that explain using it in
> a CF context? What are the advantages of this method over the database
> method that Russ outlined above? I'm new to all of this so please bear with
> my noobish questions.
>
> On 2 October 2012 11:31, Andrew Scott  wrote:
>
> >
> > I actually prefer to use il8n from Java.
> >
> >
>
>
> 

~|
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:352804
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Donnie Bachan (Gmail)

Hi Paul,

Thanks for this, it's odd we use Cardinal when we call Paypal Pro (we use
them as a back up processor if Barclays ever goes down) and that works fine
on 64 bit. What's even more odd is the fact that they all use Arcot at the
core because Arcot developed the system.

Best Regards
Donnie Bachan
"Nitendo Vinces - By Striving You Shall Conquer"
==
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.


On Tue, Oct 2, 2012 at 11:29 AM, Paul Kukiel  wrote:

>
> Unsure if its an option be we use 3d secure with cardinal commerce who
> support ColdFusion and 64 bit.
>
> Paul
>
> On 02/10/2012, at 8:26 PM, "Donnie Bachan (Gmail)" <
> donnie.bac...@gmail.com> wrote:
>
> >
> > Hi All,
> >
> > I've run into an issue on CF9 Enterprise 64 bit on Windows (7/2003/2008)
> > with using client authentication when invoking a java component.
> >
> > Background:
> > We are attempting to implement 3D Secure (Verified By Visa) on the
> > Barclay's EPDQ system using the Arcot SDK. We have this working using the
> > COM api on windows 32 bit but our shiny new servers running Windows 2008
> > doesn't support COM. I've attempted to use .NET thinking that it should
> be
> > a fairly straight swap between the COM and .NET systems but was I wrong.
> > The Java SDK requires you to pass in 3 SSL files. A CA certificate, a
> > client certificate and a client key file.  The following code illustrates
> > the call from ColdFusion to the SDK:
> > var serverInfo = createObject("java",
> > "com.arcot.xfms.XFMS_Java_API$ServerInfo").init(
> > VARIABLES.clientOptions.host,
> > VARIABLES.clientOptions.port,
> > VARIABLES.clientOptions.transport,
> > 30,  5, 8,  4,
> >
> > VARIABLES.clientOptions.TrustedCACertFile,
> >
> > VARIABLES.clientOptions.ClientCertFile,
> >
> > VARIABLES.clientOptions.ClientKeyFile);
> >
> > This returns an error: Cannot get key bytes, not PKCS#8 encoded. If,
> > however, I wrap this in a java class and execute from command line it
> works
> > just fine. It just refuses to work when called from ColdFusion.
> >
> > Attempted Fixes:
> > 1. I've imported the certificates into every keystore on the server!
> > 2. Created a jks keystore that includes the CA, Client Certificate and
> > Client Key file and passed that in
> > 3. Created a wrapper class in java that then instantiates and calls the
> SDK
> > - this again works from command line but not from CF
> > 4. Updated the JRE to Java6 R35 and tested both the command line and CF
> > versions, pure java works, CF doesn't
> > 5. Enabled SSL between JRUN and Apache (in dev environment) and still
> > nothing
> > 6. Contacted Barclays and Arcot and the official position is they neither
> > officially support 64 bit Windows (which is INSANE!) or ColdFusion and
> > can't really offer much advice. They suggested that it could be a problem
> > with access the SDK from Coldfusion but I've moved the SDK to the same
> > directory as the web root and still nothing.
> >
> >
> > Has anyone had any experience with this? Any thoughts, suggestions,
> > criticisms? I can provide more code if necessary.
> >
> > Thanks very much.
> >
> >
> > Best Regards,
> > Donnie Bachan
> > "Nitendo Vinces - By Striving You Shall Conquer"
> > ==
> > The information transmitted is intended only for the person or entity to
> > which it is addressed and may contain confidential and/or privileged
> > material. Any review, retransmission, dissemination or other use of, or
> > taking of any action in reliance upon, this information by persons or
> > entities other than the intended recipient is prohibited. If you received
> > this in error, please contact the sender and delete the material from any
> > computer.
> >
> >
> >
>
> 

~|
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:352803
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Localisation - file or database?

2012-10-02 Thread Edward Chanter

Thanks for the tip Andy, I've heard the term mentioned but haven't looked
into it at all. Do you know of any good resources that explain using it in
a CF context? What are the advantages of this method over the database
method that Russ outlined above? I'm new to all of this so please bear with
my noobish questions.

On 2 October 2012 11:31, Andrew Scott  wrote:

>
> I actually prefer to use il8n from Java.
>
>


~|
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:352802
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Localisation - file or database?

2012-10-02 Thread Andrew Scott

I actually prefer to use il8n from Java.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: 
http://plus.google.com/113032480415921517411


On Tue, Oct 2, 2012 at 8:14 PM, Edward Chanter  wrote:

>
> Thanks guys, Russ especially for taking the time to put all that together,
> most appreciated :)
>
> I hadn't thought of the QofQ idea, that is a great suggestion. I think I
> will go with that as I like the idea of having everything stored in the
> database :)
>
> Thanks again
>
>


~|
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:352801
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Paul Kukiel

Unsure if its an option be we use 3d secure with cardinal commerce who support 
ColdFusion and 64 bit.

Paul 

On 02/10/2012, at 8:26 PM, "Donnie Bachan (Gmail)"  
wrote:

> 
> Hi All,
> 
> I've run into an issue on CF9 Enterprise 64 bit on Windows (7/2003/2008)
> with using client authentication when invoking a java component.
> 
> Background:
> We are attempting to implement 3D Secure (Verified By Visa) on the
> Barclay's EPDQ system using the Arcot SDK. We have this working using the
> COM api on windows 32 bit but our shiny new servers running Windows 2008
> doesn't support COM. I've attempted to use .NET thinking that it should be
> a fairly straight swap between the COM and .NET systems but was I wrong.
> The Java SDK requires you to pass in 3 SSL files. A CA certificate, a
> client certificate and a client key file.  The following code illustrates
> the call from ColdFusion to the SDK:
> var serverInfo = createObject("java",
> "com.arcot.xfms.XFMS_Java_API$ServerInfo").init(
> VARIABLES.clientOptions.host,
> VARIABLES.clientOptions.port,
> VARIABLES.clientOptions.transport,
> 30,  5, 8,  4,
> 
> VARIABLES.clientOptions.TrustedCACertFile,
> 
> VARIABLES.clientOptions.ClientCertFile,
> 
> VARIABLES.clientOptions.ClientKeyFile);
> 
> This returns an error: Cannot get key bytes, not PKCS#8 encoded. If,
> however, I wrap this in a java class and execute from command line it works
> just fine. It just refuses to work when called from ColdFusion.
> 
> Attempted Fixes:
> 1. I've imported the certificates into every keystore on the server!
> 2. Created a jks keystore that includes the CA, Client Certificate and
> Client Key file and passed that in
> 3. Created a wrapper class in java that then instantiates and calls the SDK
> - this again works from command line but not from CF
> 4. Updated the JRE to Java6 R35 and tested both the command line and CF
> versions, pure java works, CF doesn't
> 5. Enabled SSL between JRUN and Apache (in dev environment) and still
> nothing
> 6. Contacted Barclays and Arcot and the official position is they neither
> officially support 64 bit Windows (which is INSANE!) or ColdFusion and
> can't really offer much advice. They suggested that it could be a problem
> with access the SDK from Coldfusion but I've moved the SDK to the same
> directory as the web root and still nothing.
> 
> 
> Has anyone had any experience with this? Any thoughts, suggestions,
> criticisms? I can provide more code if necessary.
> 
> Thanks very much.
> 
> 
> Best Regards,
> Donnie Bachan
> "Nitendo Vinces - By Striving You Shall Conquer"
> ==
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material from any
> computer.
> 
> 
> 

~|
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:352800
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Invoking Java component that sends SSL Client Key in CF9 Ent

2012-10-02 Thread Donnie Bachan (Gmail)

Hi All,

I've run into an issue on CF9 Enterprise 64 bit on Windows (7/2003/2008)
with using client authentication when invoking a java component.

Background:
We are attempting to implement 3D Secure (Verified By Visa) on the
Barclay's EPDQ system using the Arcot SDK. We have this working using the
COM api on windows 32 bit but our shiny new servers running Windows 2008
doesn't support COM. I've attempted to use .NET thinking that it should be
a fairly straight swap between the COM and .NET systems but was I wrong.
The Java SDK requires you to pass in 3 SSL files. A CA certificate, a
client certificate and a client key file.  The following code illustrates
the call from ColdFusion to the SDK:
var serverInfo = createObject("java",
"com.arcot.xfms.XFMS_Java_API$ServerInfo").init(
VARIABLES.clientOptions.host,
VARIABLES.clientOptions.port,
VARIABLES.clientOptions.transport,
 30,  5, 8,  4,

VARIABLES.clientOptions.TrustedCACertFile,

VARIABLES.clientOptions.ClientCertFile,

VARIABLES.clientOptions.ClientKeyFile);

This returns an error: Cannot get key bytes, not PKCS#8 encoded. If,
however, I wrap this in a java class and execute from command line it works
just fine. It just refuses to work when called from ColdFusion.

Attempted Fixes:
1. I've imported the certificates into every keystore on the server!
2. Created a jks keystore that includes the CA, Client Certificate and
Client Key file and passed that in
3. Created a wrapper class in java that then instantiates and calls the SDK
- this again works from command line but not from CF
4. Updated the JRE to Java6 R35 and tested both the command line and CF
versions, pure java works, CF doesn't
5. Enabled SSL between JRUN and Apache (in dev environment) and still
nothing
6. Contacted Barclays and Arcot and the official position is they neither
officially support 64 bit Windows (which is INSANE!) or ColdFusion and
can't really offer much advice. They suggested that it could be a problem
with access the SDK from Coldfusion but I've moved the SDK to the same
directory as the web root and still nothing.


Has anyone had any experience with this? Any thoughts, suggestions,
criticisms? I can provide more code if necessary.

Thanks very much.


Best Regards,
Donnie Bachan
"Nitendo Vinces - By Striving You Shall Conquer"
==
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.


~|
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:352799
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Localisation - file or database?

2012-10-02 Thread Edward Chanter

Thanks guys, Russ especially for taking the time to put all that together,
most appreciated :)

I hadn't thought of the QofQ idea, that is a great suggestion. I think I
will go with that as I like the idea of having everything stored in the
database :)

Thanks again

On 2 October 2012 10:58, Russ Michaels  wrote:

>
> If you are talking about the content, then yes this is normally stored in
> the database and is handled by a CMS system. You would then have a separate
> version of the content for each language, and load the appropriate version
> depending on which language the logged in user has chosen.
>
> If you are are referring to the language of the site, menus, interface etc,
> then this really comes down more to preference, some folks use XML/JSON,
> some store in a database.
> Personally I would store it in the database, because form there you can
> easily generate both XML and JSON anyway plus you have ability to easily
> save revisions whenever something is edited and roll back if required.
> The reason a lot of apps use a flat file is because it allows the community
> to then produce language files for the project.
>
> What you can then do is create a TERM in English and store the various
> other language equivalents.
>
> e.g.
>
> Table: TermRefs
> TermRefID (primary key):
> Reference (varchar)
>
> Table TERMS
> TermID (primary key):
> TermRefID (foreign key):
> Term (varchar):
> LanguageID (foreign key)
>
> Table: Languages
> LanguageId (primary key)
> Language (varchar)
> DisplayText (varchar)
>
> sample data
> ==
>
> TERMREFS
>
> 1   ContactMenuText
> 2   ProductsMenuText
> 3   SupportMenuText
>
> LANGUAGES
>
> 1   English
> 2   French
> 3   German
>
> TERMS
> 1   1   "Contact Us" 1
> 2   1   "contactez-nous" 2
> 3   1  "kontaktieren Sie uns" 3
>
> You would only need to query this lot once and then cache it and use QofQ
> of get your references, so no load on database.
>
> The TermRefs.reference is a simple understandable reference that you would
> use to contain the text and output it on to the site.
>
> e.g.
> #getterm("ContactMenuText")#
>
> You would use the LANGUAGES table on your site in a dropdown list or
> whatever to give the user the language selector. Most people tend to put
> this in English, which must be annoying for the non English visitors, thus
> the "DisplayText" field, so you can actually display the Language names in
> that language.
>
> HTH
>
> On Tue, Oct 2, 2012 at 10:01 AM, Edward Chanter 
> wrote:
>
> >
> > We're about to embark on a project for which locallisation is a
> requirement
> > and it's the first time I've done this. I understand the basic concepts
> > about having data containing the words and phrases needed on a website
> > stored with versions for each language but I'm trying to figure something
> > out: what's the best way to store the data?
> >
> > I see a lot of sites using flat JSON/XML/Whatever files with the
> different
> > translations but is this something that would work well coming from a
> > database? Is it more efficient to use a flat file or simply have a
> database
> > store the words and phrases in columns with a new row for each language?
> > One advantage I can see with a database option is that it makes adding
> new
> > languages a little easier for people with no access to the file system on
> > the server. It could also be managed with web forms which seems easier
> than
> > having a massive flat file with loads of XML or JSON data structures.
> >
> > The purpose of this question is to see how you all do it and whether
> there
> > are any pit-falls I should watch out for?
> >
> > Thanks ;-)
> >
> >
> >
>
> 

~|
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:352798
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Localisation - file or database?

2012-10-02 Thread Russ Michaels

If you are talking about the content, then yes this is normally stored in
the database and is handled by a CMS system. You would then have a separate
version of the content for each language, and load the appropriate version
depending on which language the logged in user has chosen.

If you are are referring to the language of the site, menus, interface etc,
then this really comes down more to preference, some folks use XML/JSON,
some store in a database.
Personally I would store it in the database, because form there you can
easily generate both XML and JSON anyway plus you have ability to easily
save revisions whenever something is edited and roll back if required.
The reason a lot of apps use a flat file is because it allows the community
to then produce language files for the project.

What you can then do is create a TERM in English and store the various
other language equivalents.

e.g.

Table: TermRefs
TermRefID (primary key):
Reference (varchar)

Table TERMS
TermID (primary key):
TermRefID (foreign key):
Term (varchar):
LanguageID (foreign key)

Table: Languages
LanguageId (primary key)
Language (varchar)
DisplayText (varchar)

sample data
==

TERMREFS

1   ContactMenuText
2   ProductsMenuText
3   SupportMenuText

LANGUAGES

1   English
2   French
3   German

TERMS
1   1   "Contact Us" 1
2   1   "contactez-nous" 2
3   1  "kontaktieren Sie uns" 3

You would only need to query this lot once and then cache it and use QofQ
of get your references, so no load on database.

The TermRefs.reference is a simple understandable reference that you would
use to contain the text and output it on to the site.

e.g.
#getterm("ContactMenuText")#

You would use the LANGUAGES table on your site in a dropdown list or
whatever to give the user the language selector. Most people tend to put
this in English, which must be annoying for the non English visitors, thus
the "DisplayText" field, so you can actually display the Language names in
that language.

HTH

On Tue, Oct 2, 2012 at 10:01 AM, Edward Chanter  wrote:

>
> We're about to embark on a project for which locallisation is a requirement
> and it's the first time I've done this. I understand the basic concepts
> about having data containing the words and phrases needed on a website
> stored with versions for each language but I'm trying to figure something
> out: what's the best way to store the data?
>
> I see a lot of sites using flat JSON/XML/Whatever files with the different
> translations but is this something that would work well coming from a
> database? Is it more efficient to use a flat file or simply have a database
> store the words and phrases in columns with a new row for each language?
> One advantage I can see with a database option is that it makes adding new
> languages a little easier for people with no access to the file system on
> the server. It could also be managed with web forms which seems easier than
> having a massive flat file with loads of XML or JSON data structures.
>
> The purpose of this question is to see how you all do it and whether there
> are any pit-falls I should watch out for?
>
> Thanks ;-)
>
>
> 

~|
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:352797
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Localisation - file or database?

2012-10-02 Thread .jonah

Either way you'll want to cache all (or at least the majority of the) 
the strings in memory on application load.

If you're making an admin tool to edit the strings, whether it writes to 
a flat file or to the DB wouldn't really matter that much.

The resource bundle pattern is pretty well used these days.

On 10/2/12 2:01 AM, Edward Chanter wrote:
> We're about to embark on a project for which locallisation is a requirement
> and it's the first time I've done this. I understand the basic concepts
> about having data containing the words and phrases needed on a website
> stored with versions for each language but I'm trying to figure something
> out: what's the best way to store the data?
>
> I see a lot of sites using flat JSON/XML/Whatever files with the different
> translations but is this something that would work well coming from a
> database? Is it more efficient to use a flat file or simply have a database
> store the words and phrases in columns with a new row for each language?
> One advantage I can see with a database option is that it makes adding new
> languages a little easier for people with no access to the file system on
> the server. It could also be managed with web forms which seems easier than
> having a massive flat file with loads of XML or JSON data structures.
>
> The purpose of this question is to see how you all do it and whether there
> are any pit-falls I should watch out for?
>
> Thanks ;-)
>
>
> 

~|
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:352796
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Localisation - file or database?

2012-10-02 Thread Edward Chanter

We're about to embark on a project for which locallisation is a requirement
and it's the first time I've done this. I understand the basic concepts
about having data containing the words and phrases needed on a website
stored with versions for each language but I'm trying to figure something
out: what's the best way to store the data?

I see a lot of sites using flat JSON/XML/Whatever files with the different
translations but is this something that would work well coming from a
database? Is it more efficient to use a flat file or simply have a database
store the words and phrases in columns with a new row for each language?
One advantage I can see with a database option is that it makes adding new
languages a little easier for people with no access to the file system on
the server. It could also be managed with web forms which seems easier than
having a massive flat file with loads of XML or JSON data structures.

The purpose of this question is to see how you all do it and whether there
are any pit-falls I should watch out for?

Thanks ;-)


~|
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:352795
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm