Problem: unable to initialize credential store

By W.ZH  Jan 2009



when I migrate a sample project from 10g or 11g to my version 11g jdev, every thing looks fine and project migrated, but when you try to run it, you will see the JDBC connection error in log (password null), and also you will see that if you change or even open the DB connection and then try to save it, get an error of “unable to initialize credential store.”

Possible solutions from OTN forum:


This looks like a corrupted cwallet.sso file. It happens sometimes that this file, which holds the credentials of the connections and roles.

This file is located in the src/META-INF folder. It can be recreated if you close JDev, delete (or rename) the file and start JDev again. Then you have to add the connection to the applications again. This should recreate the cwallet.sso file.(W.Zh: I found there are two sso  and
jps-config.xml files in my project. i think this is a migration issue.)

To my knowledge this should not happen in JD11. This cwallet.sso problem was first discovered in TP4 (frequently), where the file got corrupted when you interrupt starting the embedded server.

This has not happened to me since JDev I just remember this when I saw you error.



I’ve figured a solution for this bug.

– Creating a new application

– Creating a new connection in the app ressources (now it’ll work : no “Unable to initialize credential store”)

– Copying Model and ViewController project from previous application




Hi. I recently got JDev and when I opened my current project, it was migrated from JDev and I got the same problem. I solved this checking
jps-config.xml file, fixing the security context. I don’t know why it was incorrectly set after migration. After I fixed and set up correctly the security context, I just tested my connection, retype password and save. That’s all. I think it doesn’t have relation with cwallet.sso file in this case.

Hope this resolution be usefull for somebody.


W.ZH:  I slove my problem by method 2 (This time OTM forum can have answers ;-)).  Jdev 11g seems need some time to get mature.