Issue with Java 1.6 on OSX

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with Java 1.6 on OSX

Jeroen van der Wal
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
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Java 1.6 on OSX

Scott Gray-2
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


smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Java 1.6 on OSX

Jeroen van der Wal-2
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 <[hidden email]>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
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Java 1.6 on OSX

Scott Gray-2
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  
> <[hidden email]>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
>>>
>>
>>


smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Java 1.6 on OSX

Ruth Hoffman-2
In reply to this post by Jeroen van der Wal-2
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"
[hidden email]

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 <[hidden email]>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
>>>
>>>      
>>    
>
>  
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Java 1.6 on OSX

samhamilton
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"
> [hidden email]
>
> 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
>> <[hidden email]>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
>>>>
>>>>      
>>>    
>>
>>  

Reply | Threaded
Open this post in threaded view
|

Re: Issue with Java 1.6 on OSX

Mick Knutson
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://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---