Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1284

OSGI ClassNotFoundException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.0
    • None
    • JPA-Module, PartialBean
    • None
    • JDK 8u144, Karaf 4.0.9

    Description

      Hi,
      Karaf with PAX CDI comes with Deltaspike 1.4 but I want a more recent version and I installed Deltaspike 1.8.0 bundles with those commands:

      • bundle:install -s mvn:org.apache.deltaspike.core/deltaspike-core-api/1.8.0
      • bundle:install -s mvn:org.apache.deltaspike.core/deltaspike-core-impl/1.8.0
      • bundle:install -s mvn:org.apache.deltaspike.modules/deltaspike-proxy-module-api/1.8.0
      • bundle:install -s mvn:org.apache.deltaspike.modules/deltaspike-proxy-module-impl-asm5/1.8.0
      • bundle:install -s mvn:org.apache.deltaspike.modules/deltaspike-partial-bean-module-api/1.8.0
      • bundle:install -s mvn:org.apache.deltaspike.modules/deltaspike-partial-bean-module-impl/1.8.0
      • bundle:install -s mvn:org.apache.deltaspike.modules/deltaspike-jpa-module-api/1.8.0
      • bundle:install -s mvn:org.apache.deltaspike.modules/deltaspike-jpa-module-impl/1.8.0
      • bundle:install -s mvn:org.apache.deltaspike.modules/deltaspike-data-module-api/1.8.0
      • bundle:install -s mvn:org.apache.deltaspike.modules/deltaspike-data-module-impl/1.8.0

      In attached log there are 2 errors that happens during install:

      • java.lang.ClassNotFoundException: org.apache.deltaspike.proxy.util.EnableInterceptorsInterceptor not found by org.apache.deltaspike.modules.deltaspike-partial-bean-module-impl
      • java.util.ServiceConfigurationError: org.apache.deltaspike.core.spi.config.ConfigSourceProvider: Provider org.apache.deltaspike.core.impl.config.DefaultConfigSourceProvider not found

      I suspect they're caused by wrong manifest imports, I tried to add an import package for org.apache.deltaspike.proxy.util in deltaspike-partial-bean-module-impl and ClassNotFoundException went away.
      Maybe it's the same in deltaspike-jpa-module-impl that is looking for package org.apache.deltaspike.core.spi.config in deltaspike-core-impl.

      Attachments

        1. log.txt
          25 kB
          Andrea Quintavalle

        Activity

          People

            Unassigned Unassigned
            pentavalle Andrea Quintavalle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: