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: JPS-01514: The default context is missing in jps-config.xml.

and by /Oracle/Middleware/user_projects/domains/OSBDomainBasic/./config/jps-config.xml (No such file or directory)

googling around I found this: has being filled with %DOMAIN_HOME%/config/fmwconfig/jps-config.xml ok ?

(at )

In fact, in $DOMAIN_HOME/bin/ there is:${DOMAIN_HOME}/config/fmwconfig/jps-config.xml

Make sure that your $DOMAIN_HOME/ 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

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: