You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "steven.tian (JIRA)" <ji...@apache.org> on 2018/06/27 10:25:00 UTC
[jira] [Created] (KARAF-5795) ClassNotFoundException occurred even
the required jar imported.
steven.tian created KARAF-5795:
----------------------------------
Summary: ClassNotFoundException occurred even the required jar imported.
Key: KARAF-5795
URL: https://issues.apache.org/jira/browse/KARAF-5795
Project: Karaf
Issue Type: Bug
Affects Versions: 4.2.0
Environment: JDK1.8
Karaf 4.2.0
Reporter: steven.tian
I tried to query table via JPA's CriteriaQuery feature, but I got following exception in runtime:
*java.lang.ClassNotFoundException: javax.persistence.criteria.Selection not found by database [409] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:16*
below is my maven dependencies:
{code:java}
<dependency>
<groupId>org.apache.aries.jpa</groupId>
<artifactId>org.apache.aries.jpa.api</artifactId>
<version>2.7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>5.2.9.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-osgi</artifactId>
<version>5.2.9.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.2.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<version>2.2</version>
<scope>provided</scope>
</dependency>
{code}
I am quite sure that these jar files are existed either by feature:install or directly put them into the deploy folder.
Please help me resolve this issue.
Thank you very much.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)