IBM Support

Test Connection for data source failed with "ADMR0104E: Unable to read document named templates/system/jdbc-resource-provider-templates.xml: java.io.IOException: Permission denied"

Troubleshooting


Problem

IBM® WebSphere® Application Server Base and Network Deployment were installed as non-root user. The server or network deployment started without error. JDBC Provider and data source were created successfully. The Test Connection on the data source failed with "Permission denied" error.

Cause

Excerpts of stack trace from SystemOut.log:

    [12/3/05 7:40:25:721 GMT+06:00]   3b4f0e FileDocument  E ADMR0104E: Unable to read document named templates/system/jdbc-resource-provider-templates.xml: java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.checkAndCreate(File.java:1313)
    at java.io.File.createTempFile(File.java:1401)
    at com.ibm.ws.management.repository.FileDocument.createTempFile(FileDocument.java:629)
    at com.ibm.ws.management.repository.FileDocument.read(FileDocument.java:551)
    at com.ibm.ws.management.repository.FileRepository.extractInternal(FileRepository.java:1064)
    at com.ibm.ws.management.repository.FileRepository.extract(FileRepository.java:1030)
    at com.ibm.ws.management.repository.FileRepository.extract(FileRepository.java:996)
    at com.ibm.ws.management.repository.FileRepository.extract(FileRepository.java:984)
    at com.ibm.ws.management.repository.client.LocalConfigRepositoryClient.extract(LocalConfigRepositoryClient.java:141)
    ....
    ....                    

    12/3/05 7:40:25:731 GMT+06:00]   3b4f0e WorkSpaceMast E WKSP0012E: Exception while extracting templates/system/jdbc-resource-provider-templates.xml from ConfigRepository--com.ibm.websphere.management.exception.DocumentIOException: Unable to create temp file for document: templates/system/jdbc-resource-provider-templates.xml
    at com.ibm.ws.management.repository.FileDocument.createTempFile(FileDocument.java:637)
    at com.ibm.ws.management.repository.FileDocument.read(FileDocument.java:551)
    at com.ibm.ws.management.repository.FileRepository.extractInternal(FileRepository.java:1064)
    at com.ibm.ws.management.repository.FileRepository.extract(FileRepository.java:1030)
    at com.ibm.ws.management.repository.FileRepository.extract(FileRepository.java:996)
    at com.ibm.ws.management.repository.FileRepository.extract(FileRepository.java:984)
    at com.ibm.ws.management.repository.client.LocalConfigRepositoryClient.extract(LocalConfigRepositoryClient.java:141)

Resolving The Problem

Ensure the user ID that starts Application Server (or the user ID specified in the Run As User) has the write and read permission for the following directory and all its files and sub-directories:


    InstallRoot/config/temp

For example: You can use the UNIX® command to grant the write and execute permission to everyone on InstallRoot/config/temp:

    $ chmod -R a+wr InstallRoot/config/temp

(Please check with your UNIX System Administrator for more instructions on setting the right permission for your UNIX environment).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"DB Connections\/Connection Pooling","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5.5;8.0;7.0","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21228234