Sunday, August 1, 2010

JPS-01538: The default policy provider was not found

All of a sudden I am getting this message when starting OSB on Fedora...
it is accompanied by:

oracle.security.jps.JpsException: JPS-01514: The default context is missing in jps-config.xml.

and by

oracle.security.jps.config.JpsConfigurationException: /Oracle/Middleware/user_projects/domains/OSBDomainBasic/./config/jps-config.xml (No such file or directory)


googling around I found this:

-Doracle.security.jps.config has being filled with %DOMAIN_HOME%/config/fmwconfig/jps-config.xml ok ?

(at http://forums.oracle.com/forums/thread.jspa?threadID=1072870&tstart=90 )



In fact, in $DOMAIN_HOME/bin/setDomainEnv.sh there is:

-Doracle.security.jps.config=${DOMAIN_HOME}/config/fmwconfig/jps-config.xml


Make sure that your $DOMAIN_HOME/startWebLogic.sh contains at the beginning:

export DOMAIN_HOME="/Oracle/Middleware/user_projects/domains/OSBDomainBasic"


(make sure "export" is there...)

and make sure you have not messed up the
EXTRA_JAVA_PROPERTIES and the JAVA_PROPERTIES and the JAVA_OPTIONS variable assignments in the setDomainEnv.sh

And, of course, verify that the jps-config.xml file is actually where it's supposed to be and with the right read access.

In fact, in my case I had forgotten to correctly put a " in the JAVA_OPTIONS.

Unfortunately shell scripts can be very nasty to debug. This is a good reason to keep their complexity to a bare minumum, and use Groovy or other languages.

No comments: