My Oracle Support Banner

Application Deployment Fails With the Error "java.io.FileNotFoundException: class path resource [<resourceName>] cannot be opened because it does not exist" (Doc ID 2549657.1)

Last updated on NOVEMBER 07, 2023

Applies to:

Oracle WebLogic Server - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms

While deploying an application to Weblogic 12.2.1.3, resources present under Domain_Home/resoreces directory are not picked up and hence deployment fails with the below error when

java.io.FileNotFoundException: class path resource [<resourceName>] cannot be opened because it does not exist

Weblogic Console Shows below errors:

 

Steps to Reproduce:

1. Access Weblogic console using

http://<ADMINHOST>:<ADMINPORT>/console

2. Stop the managed server to which application needs to be deployed

3. Navigate to Domain_Home/resources directory

4. Rename below folders (these are required for application deployment and these are loaded through CLASSPATH)

From:

AM

AUDITSHAREDLIB

To:

AM _orig

AUDITSHAREDLIB_orig

4.Start the managed server

5. In the managed server log confirm Domain_Home/resource directory is set in the CLASSPATH variable

6. Once the managed server is in RUNNING state rename

From:

AM _orig

AUDITSHAREDLIB_orig

To:

AM

AUDITSHAREDLIB

7. Deploy Application and should see above mentioned errors in the console

8. Restart managed server and application gets deployed successfully.

 

The same behavior is not seen in 10.3.6 and application can be deployed without restarting managed server.

 



Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.