The configure.sh script fails when merging Identity Manager and SSPR configurations

  • 7024827
  • 17-Sep-2020
  • 21-Sep-2020

Environment

Identity Manager 4.7
Red Hat Linux 7.8

Situation

Running the configure.sh script fails with the following error if /tmp is mounted with the noexec flag:

Merging the default Identity Manager settings with the SSPR configuration
Exception in thread "main" java.io.FileNotFoundException: /opt/netiq/idm/apps/sspr/sspr_data/SSPRConfiguration.xml (No such file or directory)
                at java.io.FileInputStream.open0(Native Method)
                at java.io.FileInputStream.open(FileInputStream.java:195)
                at java.io.FileInputStream.<init>(FileInputStream.java:138)
                at java.io.FileInputStream.<init>(FileInputStream.java:93)
                at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
                at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
                at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:623)
                at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148)
                at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:806)
                at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
                at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
                at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
                at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
                at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:177)
                at com.netiq.installer.sspr.MergeDefaultIDMSettings.main(MergeDefaultIDMSettings.java:44)

 

Resolution

This error is usually seen when the temporary directory is mounted using the 'noexec' flag.  This flag prevents anything from being executed under that mount point and is set by the operating system.  Sample output from the mount command showing /tmp mounted 'noexec' is shown below:

/dev/sda2 on /tmp type ext3 (rw,noexec,nosuid,nodev)

The easiest way to resolve this is to mount the partition with the noexec flag.  The following command, which requires 'root' privileges, can be used to remount /tmp with the noexec flag:

mount -o remount,exec /tmp