Please Ignore. The problem was in the bundle Imports. No need for
systemPackages.
Cheers,
Dutch.
On Thursday, January 17, 2019 at 8:59:11 PM UTC-5, Dutch Dude wrote:
>
> Hi,
>
> This seems like a simple problem, but I am banging my head agains the wall
> for two days now and I can't figure it out.
>
> I am trying to write an integration test with commons-email, which depends
> on javax.activation...
>
> systemPackages("javax.activation", "com.sun.*"),
> ...
> mavenBundle("javax.activation", "javax.activation-api", "1.2.0"),
>
> mavenBundle("com.sun.mail", "javax.mail", "1.5.6"),
>
> mavenBundle("org.apache.commons", "commons-email", "1.5"),
>
> mavenBundle("com.sun.activation", "jakarta.activation", "1.2.1"),
>
> I keep getting this error though:
> [RMI TCP Connection(1)-127.0.0.1] ERROR my.impl - [MyServiceImpl(0)]
> Error during instantiation of the implementation object
> java.lang.NoClassDefFoundError: javax/activation/DataSource
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> ...
>
> If I add javax.activation to the Import-Packes the runtime fails because
> the class cannot be instantiated. I assume because of some interface
> conflict but I don't know that for sure.
>
> It must be something obvious, but I don't see it (anymore).
>
> Any help or insight is greatly appreciated.
>
>
> Pax-Exam: tried versions: 4.10.0 and 4.13.1
> Java 1.8.0_92
>
>
> Kind Regards,
>
> Dutch.
>
>
--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]
---
You received this message because you are subscribed to the Google Groups
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.