Ok, so two completely separate items really. Sorry to confuse the two.
First, this:
java -jar hotfix_005.jar -i silent -f properties.txt
I have to do this because I need a way to update CF 10 with the
appropriate hotfixes on Solaris. It's a DoD server under strict control.
Could I use a remote X session to blow back the GUI to my desktop using
Cygwin or something? I suppose, but it seems like overkill does it not?
So double clicking on the jar file to execute it is out of the question.
I can't remember where, but I found some Adobe documentation regarding
the patching of CF 10. They did mention this java command above. Here is
what I put in the properties.txt file BTW:
INSTALLER_UI=SILENT
USER_INSTALL_DIR=/web/cf10
DOC_ROOT=/web/cf10/cfusion/wwwroot
I'd be willing to bet $10 that is how the CF Administrator actually
installs the hotfixes as well.
The second issue is the end of line character. *nix and Windows do it
differently. I forget the specifics, but if I'm not mistaken, Windows
uses two different characters and *nix uses one. So, I wrote the
properties.txt file on my Windows 7 workstation in notepad and scp'd it
over to the Solaris box. It borked the hotfix install because the
installer wasn't applying the patches to the correct directories. It was
adding what looked like a "space" character to the end of the path, so
the actual path looked like:
/web/cf10 /cfusion/wwwroot
That was bad :) Running dos2unix on Solaris fixed it up and I'm now good
to go.
On 12/6/2012 11:37 AM, Charlie Arehart wrote:
OK, I'll continue to play dumb, since this use of "--f" on the "java
--jar" command is entirely new to me. What is it in the properties.txt
that you were passing, Mike? And is it then that, Dawn, which you're
referring to? Are you aware of what he may be passing in? Or were you
just referring to a generic issue of passing text files?
I did google some for this "--f", but came up empty. Even on the
Oracle page on the jars:
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jar.html
it's not clear what it would have to do with running the updates.
That's all I'm really trying to understand, in case it may help
others. Thanks to you both.
/charlie
*From:*ad...@acfug.org [mailto:ad...@acfug.org] *On Behalf Of *Dawn
Hoagland
*Sent:* Thursday, December 06, 2012 9:32 AM
*To:* discussion@acfug.org
*Subject:* Re: [ACFUG Discuss] ColdFusion 10 updates Offline
Formatting problems when passing text files between Windows and 'nix
have been around since anyone needed to pass text files between
Windows and 'nix. Windows implements a different method of the
linefeed character.
Notepad *should* always be safe. But I've occasionally had problems
there as well.....
On Wed, Dec 5, 2012 at 11:10 PM, Charlie Arehart <char...@carehart.org
<mailto:char...@carehart.org>> wrote:
Glad to hear it helped.
As for the properties file, that's the first I've ever heard of using that
(in Windows or Unix). Since you seem to indicate its use with Windows,
what's it for? (I could google it, sure, but I'd like to hear your
perspective, such as what led you to use it at all. I've never seen it
mentioned, though of course I've seen mention of the command line java
-jar
approach.)
As for the cookie thing, I've not heard anyone else talk about it yet, and
since I've not had time to analyze it to really identify the nature of the
problem (and whether anything in CF controls or influences it), I have not
yet filed any bug report.
/charlie
-----Original Message-----
From: ad...@acfug.org <mailto:ad...@acfug.org> [mailto:ad...@acfug.org
<mailto:ad...@acfug.org>] On Behalf Of Mike Staver
Sent: Wednesday, December 05, 2012 7:08 PM
To: discussion@acfug.org <mailto:discussion@acfug.org>
Subject: Re: [ACFUG Discuss] ColdFusion 10 updates Offline
Thanks Charlie. I was able to download the jar files from the XML you
pointed out, and then run the command line update. Since this is on
Solaris
and I don't have a GUI, I had to use the silent option like so:
java -jar hotfix_005.jar -i silent -f properties.txt
What tripped me up on that command is that if you create a properties file
on Windows, and then transfer it over to the Solaris machine, it won't
work.
The Windows vs Unix end of line character will bite you. The update
appeared
to run fine, but when I'd log back into CF Admin, it would still show the
old version. Running dos2unix or just editing the properties file in your
editor of choice would correct the issue.
I'm interested in hear more about the reason we have to clear cookies
to get
back into CF Admin. Hopefully they can correct that with a hot fix if they
haven't already.
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------
--
Dawn
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink <http://www.fusionlink.com>
-------------------------------------------------------------
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------