Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5015

Aries JPA unable inject jpa context in blueprint

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.3
    • Fix Version/s: jboss-fuse-6.3
    • Component/s: Aries
    • Labels:
      None
    • Environment:

      Fuse build 630015

    • Sprint:
      6.3 Sprint 4 (Mar 28 - Apr 29)
    • Steps to Reproduce:
      Hide
      1. Download and unzip reproducer from ENTESB-4447
      2. start mariadb: docker run -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=shailendra -p 3306:3306 -dit mariadb:latest
      3. Instruction in "Steps_to_reproduce.txt"
      Show
      Download and unzip reproducer from ENTESB-4447 start mariadb: docker run -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=shailendra -p 3306:3306 -dit mariadb:latest Instruction in "Steps_to_reproduce.txt"

      Description

      Unnable deploy blueprint application which uses Aries JPA to inject jpa context .

      Blueprint:

      <bean id="employeeService" class="services.EmployeeServiceImpl" init-method="startUp" activation="eager">
             <jpa:context unitname="EmployeeJPA" property="entityManager"/>
             <tx:transaction method="*" value="Required"/>
      </bean>
      

      Reproducers is waiting for dependencies osgi:list:

      [ 321] [Active     ] [Created     ] [       ] [   80] mariadb-datasource-service (1.0.0)
      [ 322] [Active     ] [GracePeriod ] [       ] [   80] hibernate employee jpa (1.0.0)
      

      Console log:

      2016-02-23 14:23:51,725 | INFO  | l Console Thread | container                        | 307 - org.apache.aries.jpa.container - 1.0.3 | The org.osgi.service.jdbc package is unavailable. As a result the Aries JPA container will not offer any DataSourceFactory integration.
      2016-02-23 14:23:51,810 | INFO  | pool-25-thread-1 | Version                          | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
      2016-02-23 14:23:51,813 | INFO  | pool-25-thread-1 | Version                          | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000412: Hibernate Core {4.2.22.Final-redhat-1}
      2016-02-23 14:23:51,814 | INFO  | pool-25-thread-1 | Environment                      | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000206: hibernate.properties not found
      2016-02-23 14:23:51,816 | INFO  | pool-25-thread-1 | Environment                      | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000021: Bytecode provider name : javassist
      2016-02-23 14:23:51,829 | INFO  | pool-25-thread-1 | Ejb3Configuration                | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000204: Processing PersistenceUnitInfo [
      	name: EmployeeJPA
      	...]
      2016-02-23 14:23:51,867 | INFO  | pool-25-thread-1 | ConnectionProviderInitiator      | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      2016-02-23 14:23:51,963 | INFO  | pool-25-thread-1 | Dialect                          | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
      2016-02-23 14:23:52,071 | INFO  | pool-25-thread-1 | TransactionFactoryInitiator      | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory
      2016-02-23 14:23:52,074 | INFO  | pool-25-thread-1 | ASTQueryTranslatorFactory        | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000397: Using ASTQueryTranslatorFactory
      2016-02-23 14:23:52,252 | INFO  | pool-25-thread-1 | SchemaExport                     | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000227: Running hbm2ddl schema export
      2016-02-23 14:23:52,291 | INFO  | pool-25-thread-1 | SchemaExport                     | 314 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000230: Schema export complete
      2016-02-23 14:23:52,347 | ERROR | l Console Thread | aries                            | 308 - org.apache.aries.jpa.blueprint.aries - 1.0.4 | No org.apache.aries.jpa.container.sync.Synchronization service registered.
      2016-02-23 14:23:52,349 | INFO  | l Console Thread | BlueprintContainerImpl           | 23 - org.apache.aries.blueprint.core - 1.4.4 | Bundle Employee_Hibernate_JPA/1.0.0 is waiting for dependencies [(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=EmployeeJPA))(objectClass=javax.persistence.EntityManagerFactory))]
      2016-02-23 14:23:52,350 | INFO  | l Console Thread | bundle                           | 104 - org.apache.aries.spifly.dynamic.bundle - 1.0.6 | Bundle Considered for SPI providers: Employee_Hibernate_JPA
      2016-02-23 14:23:52,350 | INFO  | l Console Thread | bundle                           | 104 - org.apache.aries.spifly.dynamic.bundle - 1.0.6 | No 'SPI-Provider' Manifest header. Skipping bundle: Employee_Hibernate_JPA
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  grgrzybek Grzegorz Grzybek
                  Reporter:
                  tturek Tomas Turek
                  Tester:
                  Tomas Turek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: