[
https://issues.apache.org/jira/browse/KARAF-6019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16696139#comment-16696139
]
Jean-Baptiste Onofré commented on KARAF-6019:
---------------------------------------------
Weird, it works fine for me. Here's my env:
{code}
mvn -v
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3;
2018-10-24T20:41:47+02:00)
Maven home: /opt/apache-maven-3.6.0
Java version: 1.8.0_172, vendor: Oracle Corporation, runtime:
/opt/jdk/1.8.0_172/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-39-generic", arch: "amd64", family: "unix"
{code}
I just did {{mvn clean install}} in the {{karaf-jpa-example}} folder:
{code}
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Karaf :: Examples :: JPA 4.2.2-SNAPSHOT:
[INFO]
[INFO] Apache Karaf :: Examples :: JPA .................... SUCCESS [ 1.129 s]
[INFO] Apache Karaf :: Examples :: JPA :: Provider ........ SUCCESS [ 0.042 s]
[INFO] Apache Karaf :: Examples :: JPA :: Provider :: API . SUCCESS [ 0.923 s]
[INFO] Apache Karaf :: Examples :: JPA :: Provider :: Declarative Service
SUCCESS [ 0.031 s]
[INFO] Apache Karaf :: Examples :: JPA :: Provider :: Declarative Service ::
EclipseLink SUCCESS [ 0.573 s]
[INFO] Apache Karaf :: Examples :: JPA :: Provider :: Declarative Service ::
Hibernate SUCCESS [ 0.324 s]
[INFO] Apache Karaf :: Examples :: JPA :: Provider :: Declarative Service ::
OpenJPA SUCCESS [ 0.325 s]
[INFO] Apache Karaf :: Examples :: JPA :: Provider :: Blueprint SUCCESS [
0.033 s]
[INFO] Apache Karaf :: Examples :: JPA :: Provider :: Blueprint :: EclipseLink
SUCCESS [ 0.287 s]
[INFO] Apache Karaf :: Examples :: JPA :: Provider :: Blueprint :: Hibernate
SUCCESS [ 0.220 s]
[INFO] Apache Karaf :: Examples :: JPA :: Provider :: Blueprint :: OpenJPA
SUCCESS [ 0.202 s]
[INFO] Apache Karaf :: Examples :: JPA :: Command ......... SUCCESS [ 0.988 s]
[INFO] Apache Karaf :: Examples :: JPA :: Features ........ SUCCESS [ 0.138 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.075 s
[INFO] Finished at: 2018-11-22T18:21:25+01:00
[INFO] ------------------------------------------------------------------------
{code}
I'm suspecting something in your {{.m2/settings.xml}}. Anything special there ?
By the way, I would like to propose to you to chat directly (on hangout, skype
or slack) to help you faster. Thought ?
> org.apache.aries.jpa:org.apache.aries.jpa.blueprint:2.3.0 - Can't make run
> --------------------------------------------------------------------------
>
> Key: KARAF-6019
> URL: https://issues.apache.org/jira/browse/KARAF-6019
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.1
> Reporter: Nicolas Duminil
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> Hello,
> I'm following the tutorial here
> ([https://github.com/apache/aries-jpa/tree/master/examples)] to run the
> aries-jpa examples, but unsuccessfully. The README.md file says to performa
> the following operations:
> ~feature:repo-add mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.8.0/xml/features~
> ~feature:install scr transaction pax-jdbc-config pax-jdbc-h2
> pax-jdbc-pool-dbcp2 http-whiteboard jpa hibernate/4.3.6.Final~
> The last command displays the following error message~:~
> ~Error executing command: No matching features for
> hibernate/[4.3.6.Final,4.3.6.Final]~
> So I'm doing just:
> ~feature:install scr transaction pax-jdbc-config pax-jdbc-h2
> pax-jdbc-pool-dbcp2 http-whiteboard jpa hibernate~
> and this works. Looking at the installed features I have:
> ~karaf@root()> feature:list | grep hibernate~
> ~hibernate-orm │ 5.1.13.Final-redhat-1 │
> │ Started │ hibernate-osgi │
> Combines all Hibernate core dependencies and requ~
> ~hibernate-envers │ 5.1.13.Final-redhat-1 │
> │ Uninstalled │ hibernate-osgi │
> Feature for easily adding Envers support to hiber~
> ~hibernate-infinispan │ 5.1.13.Final-redhat-1 │
> │ Uninstalled │ hibernate-osgi │
> Feature for easily adding Infinispan-based cachin~
> ~hibernate-ehcache │ 5.1.13.Final-redhat-1 │
> │ Uninstalled │ hibernate-osgi │~
> ~hibernate-validator │ 5.3.5.Final-redhat-2 │
> │ Uninstalled │ hibernate-validator-osgi-features │~
> ~hibernate-validator-paranamer │ 5.3.5.Final-redhat-2 │
> │ Uninstalled │ hibernate-validator-osgi-features │~
> ~hibernate │ 5.1.13.Final-redhat-1 │
> x │ Started │ enterprise-4.2.0.fuse-710024-redhat-00002 │
> Hibernate JPA engine support~
> ~karaf@root()>~
> After that, the document instructs to do that:
> ~install -s mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint/2.3.0~
> ~install -s
> mvn:org.apache.aries.jpa.example/org.apache.aries.jpa.example.tasklist.model/2.3.0~
> ~install -s
> mvn:org.apache.aries.jpa.example/org.apache.aries.jpa.example.tasklist.blueprint/2.3.0~
> This works as expected but, when I go to [http://localhost:8181/tasklist] I
> get the following in the log:
> ~15:16:06.199 ERROR [Blueprint Extender: 3] Unable to start blueprint
> container for bundle org.apache.aries.jpa.example.tasklist.blueprint/2.3.0
> due to unresolved dependencies
> [(&(osgi.unit.name=tasklist)(objectClass=javax.persistence.EntityManager))]~
> Since this is the official sample supposed to prove that the whole stuff is
> working I would expect it to work as it is, without doing any particular
> thing. But for some reasons it doesn't. I have seen this issues reported
> several times but no solution. Please help.
> Oh, and *the version I'm using is 4.2.0.fuse-710024-redhat-00002*
> Kind regards,
> Nicolas
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)