Reputation: 807
I have configured "hibernate-core-4.3.6.Final.jar" in pom.xml as below.
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.6.Final</version>
<scope>system</scope>
<systemPath>G:/Setups/hibernate-release-4.3.6.Final/hibernate-release-4.3.6.Final/lib/required/hibernate-core-4.3.6.Final.jar</systemPath>
</dependency>
When i try to inject hibernate DAO class in service layer i am getting this exception.
Upvotes: 0
Views: 3398
Reputation: 2525
Delete the scope and systemPath part and build the project again. The dependencies will be taken care by maven.
Upvotes: 3