Problem Statement:
Following exception is seen while starting the OHS Server (which has webgate.so included):
"Exception thrown during WebGate initialization"
"Oracle AccessGate API is not initialized"
Issue:
This is surely a configuration related issue. Remember always first doubt the configuration and than the component. That's the thumb rule.
Solution:
1) Usually when we use security mode other than Open i.e. either Simple or Cert mode. We get this type of exception.
Now the question arises why?
Basically there are some steps that we follow to change the security mode.
Like for Simple Mode: http://oracleoam.blogspot.com/2014/08/configure-simple-mode-communication-for.html
- Here say if we don't provide the Global Passphrase Password. And we just apply the rest of the changes. So when we try to start OHS Server or any server using the webgate component. It will throw these exception.
Note:
- Here if you don't provide any password for global passphrase, you still see the field as non-empty but that value is junk. And it needs to be provided a valid password, which could be any. But you have to provide it.
- Basically while doing the SSL handshake with the OAM Server this password is passed with other values. That's why it is important to provide one.
Enjoy :-)