You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Andrea Quintavalle (JIRA)" <ji...@apache.org> on 2017/08/17 09:52:00 UTC

[jira] [Created] (DELTASPIKE-1284) OSGI ClassNotFoundException

Andrea Quintavalle created DELTASPIKE-1284:
----------------------------------------------

             Summary: OSGI ClassNotFoundException
                 Key: DELTASPIKE-1284
                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1284
             Project: DeltaSpike
          Issue Type: Bug
          Components: JPA-Module, PartialBean
    Affects Versions: 1.8.0
         Environment: JDK 8u144, Karaf 4.0.9
            Reporter: Andrea Quintavalle
         Attachments: log.txt

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.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)