updateschema.sh may fail if OpenSSO install path is not "opensso" (Doc ID 1675390.1)

Last updated on MAY 26, 2014

Applies to:

Oracle OpenSSO - Version 8.0 and later
Information in this document applies to any platform.


[Product] OpenSSO8.0Update2patch5
[OS] Solaris 10 SPARC

When upgrading from OpenSSO8.0U2p4 to 8.0U2p5, updateschema.sh script could fail if the OpenSSO install path is different from the default "/opensso" but different one - e.g., "/amserver_opensso".

[Test case]

<OK pattern>
1. Install OpenSSO8.0U2p4 on Solaris 10. Install path is "/opensso".
2. Extract OpenSSO8.0U2p5 install binary and setup ssoadm command.
3. Run updateschema.sh. It is completed successfully.

<NG pattern>
1. Install OpenSSO8.0U2p4 on Solaris 10. Install path is "/amserver_opensso".
2. Extract OpenSSO8.0U2p5 install binary and setup ssoadm command.   
3. Run updateschema.sh. It fails with the following error.

  bash-3.2# ./updateschema.sh
  Path of ssoadm tool: /amserver_opensso/ssoadmu5/amserver_opensso/bin
  amadmin password:
  /amserver_opensso/ssoadmu5/amserver_opensso/bin/ssoadm list-server-cfg -s default -u amadmin -f ssoadm.pw.file -O
  Exception in thread "main" java.lang.ExceptionInInitializerError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at com.sun.identity.cli.SubCommand.execute(SubCommand.java:289)
         at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:230)
         at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:139)
         at com.sun.identity.cli.CommandManager.serviceRequestQueue(CommandManager.java:585)
         at com.sun.identity.cli.CommandManager.<init>(CommandManager.java:181)
         at com.sun.identity.cli.CommandManager.main(CommandManager.java:145)
  Caused by: com.sun.identity.security.AMSecurityPropertiesException: AdminTokenAction:  FATAL ERROR: Cannot obtain Application SSO token.
  Check AMConfig.properties for the following properties
         at com.sun.identity.security.AdminTokenAction.run(AdminTokenAction.java:258)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.identity.cli.AuthenticatedCommand.<clinit>(AuthenticatedCommand.java:64)
         ... 8 more
  Your input is invalid, error code is 1, please try again
  amadmin password:

# Note this environment does not have LB or site configuration. So this is not the same as known issue 5801 described in the following release notes.

  * Sun OpenSSO Enterprise 8.0 Release Notes
    5801: During upgrade, updateschema.sh fails while executing ssoadm in a site configuration


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms