java.lang.NoClassDefFoundError When Placing JDBC Driver or Application-Dependent JARs in <DOMAIN_HOME>/lib Directory
(Doc ID 1328300.1)
Last updated on MARCH 12, 2021
Applies to:Oracle WebLogic Server - Version 10.3.3 to 10.3.5
Information in this document applies to any platform.
When initializing application (during deployment phase) or modules like JDBC Datasource, the following error occurs (in this example, it is a database connection initialization of an application using Hibernate that was failing):
The same "NoClassDefFoundError" can occur while initializing applications (other than database/datasource) when those applications are dependent on external jar files that are added to the <DOMAIN_HOME>\lib directory.
Steps to reproduce the issue:
- Have database server running.
- Remove the database driver from the WLS installation (WL_HOME/server/lib).
- Place the driver jar in <MyDomain>/lib directory.
- Start the servers.
- Create a datasource.
- Access to the datasource from an application.
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