You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jeroen van der Wal <je...@stromboli.it> on 2009/12/07 21:17:28 UTC
Issue with Java 1.6 on OSX
When you run Ofbiz on OSX using the latest Java 1.6 update you will get this
exception:
Exception: java.io.IOException
Message: Keystore was tampered with, or password was incorrect
According to another ML Apple changed the password of the keystore from
"changeit" to "changeme":
http://www.igniterealtime.org/community/message/198636;jsessionid=412F0FABBD127068FC5E0FD1C5942383
Apple is already aware of this issue:
http://lists.apple.com/archives/java-dev/2009/Dec/msg00105.html
There's probably a workaround, I could figure out how to change the
password, but I quit for today and see tomorrow. Just wanted to let you
know...
-Jeroen
BTW If you're not able to compile create a symbolic link from
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK to
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
Re: Issue with Java 1.6 on OSX
Posted by Mick Knutson <mi...@gmail.com>.
This solution worked great for me on Mac. Much appreciated.
---
Thank You…
Mick Knutson, President
BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233
Website: http://www.baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---
-----
---
Thank You…
Mick Knutson, President
BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233
Website: http://baselogic.com http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com http://tahoe.baselogic.com
---
--
View this message in context: http://n4.nabble.com/Issue-with-Java-1-6-on-OSX-tp954733p1472029.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.
Re: Issue with Java 1.6 on OSX
Posted by Sam Hamilton <sa...@sh81.com>.
Just tried Jeroen's fix and it worked perfectly!
thanks Joroen!
Sam
Ruth Hoffman wrote:
> Hi Jeroen:
> I use Apple for development and deployment. Love it!
> Ruth
> ----------------------------------------------------
> Find me on the web at http://www.myofbiz.com or Google keyword "myofbiz"
> ruth.hoffman@myofbiz.com
>
> Jeroen van der Wal wrote:
>> Thanks Scott,
>>
>> There's one but: keytool creates the new keystore in the source
>> folder so
>> the mv commands in your script fail. I found a shortcut to simply
>> change the
>> password:
>> sudo keytool -keystore
>> "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts"
>>
>> -storepasswd -new "changeit"
>> Enter password: <your sudo password>
>> Enter password: changeme
>>
>> Good to see that there are more Apple users on this list :-)
>>
>> -Jeroen
>>
>> On Mon, Dec 7, 2009 at 9:26 PM, Scott Gray
>> <sc...@hotwaxmedia.com>wrote:
>>
>>
>>> Hi Jeroen,
>>>
>>> I encountered this as well and ended up fixing it by making a fresh
>>> copy of
>>> the keystore:
>>> cd /Users/<yourusername>
>>> keytool -importkeystore -srckeystore
>>> /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts
>>>
>>> -destkeystore newcacerts
>>> Enter destination keystore password: changeit
>>> Re-enter new password: changeit
>>> Enter source keystore password: <leave empty>
>>> sudo mv newcacerts
>>> /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security
>>>
>>> sudo mv cacerts oldcacerts
>>> sudo mv newcacerts cacerts
>>>
>>> Hope that helps.
>>>
>>> Regards
>>> Scott
>>>
>>> HotWax Media
>>> http://www.hotwaxmedia.com
>>>
>>>
>>> On 8/12/2009, at 9:17 AM, Jeroen van der Wal wrote:
>>>
>>> When you run Ofbiz on OSX using the latest Java 1.6 update you will
>>> get
>>>
>>>> this
>>>> exception:
>>>> Exception: java.io.IOException
>>>> Message: Keystore was tampered with, or password was incorrect
>>>> According to another ML Apple changed the password of the keystore
>>>> from
>>>> "changeit" to "changeme":
>>>>
>>>> http://www.igniterealtime.org/community/message/198636;jsessionid=412F0FABBD127068FC5E0FD1C5942383
>>>>
>>>> Apple is already aware of this issue:
>>>> http://lists.apple.com/archives/java-dev/2009/Dec/msg00105.html
>>>> There's probably a workaround, I could figure out how to change the
>>>> password, but I quit for today and see tomorrow. Just wanted to let
>>>> you
>>>> know...
>>>>
>>>> -Jeroen
>>>> BTW If you're not able to compile create a symbolic link from
>>>> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK to
>>>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
>>>>
>>>>
>>>
>>
>>
Re: Issue with Java 1.6 on OSX
Posted by Ruth Hoffman <rh...@aesolves.com>.
Hi Jeroen:
I use Apple for development and deployment. Love it!
Ruth
----------------------------------------------------
Find me on the web at http://www.myofbiz.com or Google keyword "myofbiz"
ruth.hoffman@myofbiz.com
Jeroen van der Wal wrote:
> Thanks Scott,
>
> There's one but: keytool creates the new keystore in the source folder so
> the mv commands in your script fail. I found a shortcut to simply change the
> password:
> sudo keytool -keystore
> "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts"
> -storepasswd -new "changeit"
> Enter password: <your sudo password>
> Enter password: changeme
>
> Good to see that there are more Apple users on this list :-)
>
> -Jeroen
>
> On Mon, Dec 7, 2009 at 9:26 PM, Scott Gray <sc...@hotwaxmedia.com>wrote:
>
>
>> Hi Jeroen,
>>
>> I encountered this as well and ended up fixing it by making a fresh copy of
>> the keystore:
>> cd /Users/<yourusername>
>> keytool -importkeystore -srckeystore
>> /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts
>> -destkeystore newcacerts
>> Enter destination keystore password: changeit
>> Re-enter new password: changeit
>> Enter source keystore password: <leave empty>
>> sudo mv newcacerts
>> /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security
>> sudo mv cacerts oldcacerts
>> sudo mv newcacerts cacerts
>>
>> Hope that helps.
>>
>> Regards
>> Scott
>>
>> HotWax Media
>> http://www.hotwaxmedia.com
>>
>>
>> On 8/12/2009, at 9:17 AM, Jeroen van der Wal wrote:
>>
>> When you run Ofbiz on OSX using the latest Java 1.6 update you will get
>>
>>> this
>>> exception:
>>> Exception: java.io.IOException
>>> Message: Keystore was tampered with, or password was incorrect
>>> According to another ML Apple changed the password of the keystore from
>>> "changeit" to "changeme":
>>>
>>> http://www.igniterealtime.org/community/message/198636;jsessionid=412F0FABBD127068FC5E0FD1C5942383
>>> Apple is already aware of this issue:
>>> http://lists.apple.com/archives/java-dev/2009/Dec/msg00105.html
>>> There's probably a workaround, I could figure out how to change the
>>> password, but I quit for today and see tomorrow. Just wanted to let you
>>> know...
>>>
>>> -Jeroen
>>> BTW If you're not able to compile create a symbolic link from
>>> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK to
>>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
>>>
>>>
>>
>
>
Re: Issue with Java 1.6 on OSX
Posted by Scott Gray <sc...@hotwaxmedia.com>.
That looks a lot easier to me :-)
I did try that approach but for some reason I couldn't get it to work,
it didn't seem to want to accept the old keystore password IIRC.
BTW the first mv command was shifting the new keystore into the
correct spot.
Regards
Scott
On 8/12/2009, at 9:48 AM, Jeroen van der Wal wrote:
> Thanks Scott,
>
> There's one but: keytool creates the new keystore in the source
> folder so
> the mv commands in your script fail. I found a shortcut to simply
> change the
> password:
> sudo keytool -keystore
> "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/
> Deploy.bundle/Contents/Home/lib/security/cacerts"
> -storepasswd -new "changeit"
> Enter password: <your sudo password>
> Enter password: changeme
>
> Good to see that there are more Apple users on this list :-)
>
> -Jeroen
>
> On Mon, Dec 7, 2009 at 9:26 PM, Scott Gray
> <sc...@hotwaxmedia.com>wrote:
>
>> Hi Jeroen,
>>
>> I encountered this as well and ended up fixing it by making a fresh
>> copy of
>> the keystore:
>> cd /Users/<yourusername>
>> keytool -importkeystore -srckeystore
>> /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/
>> Deploy.bundle/Contents/Home/lib/security/cacerts
>> -destkeystore newcacerts
>> Enter destination keystore password: changeit
>> Re-enter new password: changeit
>> Enter source keystore password: <leave empty>
>> sudo mv newcacerts
>> /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/
>> Deploy.bundle/Contents/Home/lib/security
>> sudo mv cacerts oldcacerts
>> sudo mv newcacerts cacerts
>>
>> Hope that helps.
>>
>> Regards
>> Scott
>>
>> HotWax Media
>> http://www.hotwaxmedia.com
>>
>>
>> On 8/12/2009, at 9:17 AM, Jeroen van der Wal wrote:
>>
>> When you run Ofbiz on OSX using the latest Java 1.6 update you will
>> get
>>> this
>>> exception:
>>> Exception: java.io.IOException
>>> Message: Keystore was tampered with, or password was incorrect
>>> According to another ML Apple changed the password of the keystore
>>> from
>>> "changeit" to "changeme":
>>>
>>> http://www.igniterealtime.org/community/message/198636;jsessionid=412F0FABBD127068FC5E0FD1C5942383
>>> Apple is already aware of this issue:
>>> http://lists.apple.com/archives/java-dev/2009/Dec/msg00105.html
>>> There's probably a workaround, I could figure out how to change the
>>> password, but I quit for today and see tomorrow. Just wanted to
>>> let you
>>> know...
>>>
>>> -Jeroen
>>> BTW If you're not able to compile create a symbolic link from
>>> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK to
>>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
>>>
>>
>>
Re: Issue with Java 1.6 on OSX
Posted by Jeroen van der Wal <jv...@stromboli.it>.
Thanks Scott,
There's one but: keytool creates the new keystore in the source folder so
the mv commands in your script fail. I found a shortcut to simply change the
password:
sudo keytool -keystore
"/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts"
-storepasswd -new "changeit"
Enter password: <your sudo password>
Enter password: changeme
Good to see that there are more Apple users on this list :-)
-Jeroen
On Mon, Dec 7, 2009 at 9:26 PM, Scott Gray <sc...@hotwaxmedia.com>wrote:
> Hi Jeroen,
>
> I encountered this as well and ended up fixing it by making a fresh copy of
> the keystore:
> cd /Users/<yourusername>
> keytool -importkeystore -srckeystore
> /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts
> -destkeystore newcacerts
> Enter destination keystore password: changeit
> Re-enter new password: changeit
> Enter source keystore password: <leave empty>
> sudo mv newcacerts
> /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security
> sudo mv cacerts oldcacerts
> sudo mv newcacerts cacerts
>
> Hope that helps.
>
> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
>
>
> On 8/12/2009, at 9:17 AM, Jeroen van der Wal wrote:
>
> When you run Ofbiz on OSX using the latest Java 1.6 update you will get
>> this
>> exception:
>> Exception: java.io.IOException
>> Message: Keystore was tampered with, or password was incorrect
>> According to another ML Apple changed the password of the keystore from
>> "changeit" to "changeme":
>>
>> http://www.igniterealtime.org/community/message/198636;jsessionid=412F0FABBD127068FC5E0FD1C5942383
>> Apple is already aware of this issue:
>> http://lists.apple.com/archives/java-dev/2009/Dec/msg00105.html
>> There's probably a workaround, I could figure out how to change the
>> password, but I quit for today and see tomorrow. Just wanted to let you
>> know...
>>
>> -Jeroen
>> BTW If you're not able to compile create a symbolic link from
>> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK to
>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
>>
>
>
Re: Issue with Java 1.6 on OSX
Posted by Scott Gray <sc...@hotwaxmedia.com>.
Hi Jeroen,
I encountered this as well and ended up fixing it by making a fresh
copy of the keystore:
cd /Users/<yourusername>
keytool -importkeystore -srckeystore /System/Library/Frameworks/
JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/
security/cacerts -destkeystore newcacerts
Enter destination keystore password: changeit
Re-enter new password: changeit
Enter source keystore password: <leave empty>
sudo mv newcacerts /System/Library/Frameworks/JavaVM.framework/
Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security
sudo mv cacerts oldcacerts
sudo mv newcacerts cacerts
Hope that helps.
Regards
Scott
HotWax Media
http://www.hotwaxmedia.com
On 8/12/2009, at 9:17 AM, Jeroen van der Wal wrote:
> When you run Ofbiz on OSX using the latest Java 1.6 update you will
> get this
> exception:
> Exception: java.io.IOException
> Message: Keystore was tampered with, or password was incorrect
> According to another ML Apple changed the password of the keystore
> from
> "changeit" to "changeme":
> http://www.igniterealtime.org/community/message/198636;jsessionid=412F0FABBD127068FC5E0FD1C5942383
> Apple is already aware of this issue:
> http://lists.apple.com/archives/java-dev/2009/Dec/msg00105.html
> There's probably a workaround, I could figure out how to change the
> password, but I quit for today and see tomorrow. Just wanted to let
> you
> know...
>
> -Jeroen
> BTW If you're not able to compile create a symbolic link from
> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK to
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0