"java.io.IOException: Permission denied" on Application Server start up with Application containing Web Services
 Technote (troubleshooting)
 
Problem(Abstract)
Getting "Permission denied" error when starting WebSphere® Application Server that has a Web Service enabled Enterprise Application (EAR) installed.
 
Cause
Excerpt of the errors from SystemOut.log


[9/22/05 8:12:24:896 EDT] 1b32627 FileDocument E ADMR0104E: Unable to
read document named
cells/MyNode/applications/MyEAR.ear/deployments/MyEAR/deployment.xml: java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1314)
at java.io.File.createTempFile(File.java:1402)

[9/22/05 8:12:25:068 EDT] 1b32627 WorkSpaceMast E WKSP0012E: Exception
while extracting
cells/MyNode/applications/MyEAR.ear/deployments/MyEAR/deployment.xml from
ConfigRepository--com.ibm.websphere.management.exception.DocumentIOExcep
tion: Unable to create temp file for document:
cells/MyNode/applications/MyEAR.ear/deployments/MyEAR/deployment.xml

at
com.ibm.ws.management.repository.FileDocument.createTempFile(FileDocumen
t.java:637)

...

Caused by: java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1314)
at java.io.File.createTempFile(File.java:1402)
at com.ibm.ws.management.repository.FileDocument.createTempFile(FileDocument.java:652)
...


During the start up of Web Services enabled applications, WebSphere Application Server will read the deployment.xml of the EAR. This is by design.

If you use the wsinstance command to create multiple configuration instances of one initial installation of the product for different users, it is likely that you will run into this problem because the permission to some of the directories are not granted properly.


Note: This error message does not appear for other EAR files that do not have Web Services.

 
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: Use the UNIX® command to grant the write and execute permission to everyone on InstallRoot/config/temp:

chmod -R a+wr InstallRoot/config/temp

(Check with your UNIX System Administrator for more instructions on setting the right permission for the UNIX environment).
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Web Services (for example: SOAP or UDDI or WSGW or WSIF)
Operating system(s): Solaris
Software version: 5.1
Software edition:
Reference #: 1221447
IBM Group: Software Group
Modified date: Aug 23, 2007