Date
1 - 1 of 1
[E] Re: [ODL Discuss] ClassNotFoundException thrown even after correct bundle exists
Baskar, Vinoth <vinoth.baskar@...>
Hi JB, Thanks for the help and ideas.. I have tried the import-package options as follow, <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <Import-Package> * </Import-Package> </instructions> </configuration> </plugin> Eventhough, I got the same issue while accessing the io.grpc.Context class. Also, I have used the "dynamic-import" option and loaded the io.grpc.Context bundle. But the issue still exists. I have cleaned all the code and just added below one line logger code to test the bundle issue. LOGGER.debug("Context class {}", io.grpc.Context.class); This particular line does not produce any issue if I have added only grpc-context related dependency in the pom.xml. <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-context</artifactId> <version>1.38.0</version> </dependency> But If I have added grpc-protobuf jar (which have the grpc-context jar dependency internally), It producing NoClassDefFoundErrror for the io.grpc.Context class <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-context</artifactId> <version>1.38.0</version> </dependency> <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-protobuf</artifactId> <version>1.38.0</version> <scope>compile</scope> <exclusions> <exclusion> <groupId>io.grpc</groupId> <artifactId>grpc-context</artifactId> </exclusion></exclusions> </dependency> Any Idea to resolve this bundle related issue, would be helpful to get rid of this error? Regards, Vinoth B On Mon, Jun 28, 2021 at 5:59 PM Jean-Baptiste Onofre <jb@...> wrote:
|
|