SAP Knowledge Base Article - Preview

2898533 - FileNotFoundException: The system cannot find the path specified- AS Java deployment fails

Symptom

Deployment in SAP NetWeaver Application Server Java (AS Java) fails. deploy.<x>.trc in instance work directory "\usr\sap\<SID>\<instnr>\work" shows the following exception:

[...]
Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception in operation [update] with application [<...>].
[...]
Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception while [downloading files of application <...>].
[...]
Caused by: com.sap.engine.services.servlets_jsp.server.exceptions.WebDeploymentException: Cannot download the information about application [<...>] from the database.
[...]
Caused by: com.sap.engine.services.servlets_jsp.server.exceptions.WebDeploymentException: Cannot extract war file [temp_<...>.war] of application [<...>].
[...]
Caused by: java.io.FileNotFoundException: F:\\usr\\sap\\<SID>\\<instnr>\\j2ee\\cluster\\apps\\sap.com\\<...>\\<...>\\<...>.class (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:201)
at java.io.FileOutputStream.<init>(FileOutputStream.java:151)
at com.sap.engine.services.servlets_jsp.server.deploy.ActionBase.extractFile(ActionBase.java:2916)
at com.sap.engine.services.servlets_jsp.server.deploy.ActionBase.extractJar(ActionBase.java:2841)
at com.sap.engine.services.servlets_jsp.server.deploy.ActionBase.extractWar(ActionBase.java:1459)
... 35 more

Another example:

[...]
com.sap.engine.services.dc.cm.deploy.DeploymentException: ASJ.dpl_dc.001085 Operation [deploy] of [<name of the application>] failed
[...]
Caused by: com.sap.engine.services.deploy.server.utils.DSRemoteException: <...>
[...]
Caused by: com.sap.engine.services.deploy.container.rtgen.GenerationException: Cannot detect persistence unit modules in 'client.jar' under '/usr/sap/<SID>/<instnr>/j2ee/cluster/server<x>/temp/deploy/<...>.sda<...>'
[...]
Caused by: java.io.FileNotFoundException: /usr/sap/<SID>/<instnr>/j2ee/cluster/server<x>/temp/deploy/<...>.sda<...>/client.jar (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:244)
at java.util.zip.ZipFile.<init>(ZipFile.java:171)
at java.util.jar.JarFile.<init>(JarFile.java:166)
at java.util.jar.JarFile.<init>(JarFile.java:130)
[...]

However, the folders including the files and its classes are present in the Operation System's (OS) filesystem.


Read more...

Environment

SAP NetWeaver Application Server Java all versions

Product

SAP NetWeaver Application Server for Java all versions

Keywords

Unable to create temporary directory for webservices needs, Unable to create temporary directory, The system cannot find the path specified , KBA , BC-JAS-DPL , Deployment , BC-OP-AS4 , IBM AS/400 , BC-OP-NT , Windows , BC-OP-LNX , Linux , BC-OP-AIX , IBM AIX , BC-OP-SUN , SUN Solaris , BC-OP-HPX , HP-UX , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.