users@glassfish.java.net

Re: virtualization plugin, dependency injection and OSGI

From: Yamini K B <yamini.k.b_at_oracle.com>
Date: Wed, 07 Mar 2012 20:29:29 +0530

Hi Peter,

> Yamini could you explain a bit how does packing bundles work? I mean I
> understand that I am facing some strange dependency resolving problem but
> why?
I'm also not sure whats happening.
>
> I have some code which uses 4 jars... It compiles in eclipse, it
> builds in
> maven then why it doesn't work at a runtime?
> Can I provide just jars with needed classes without unpacking it in
> maven?
You can try placing the jars in modules directory and try.
>
> Now situation looks like this that when I fill dependencies section with
> needed jars and do not use any class from those jars everything is
> ok... But
> uncommenting single line with only initialization with null random
> class from
> my jars it fails to work.
>
Would it be possible to send me the cut down version of this plugin with
minimal number of classes? I can then try to debug this.
> and finally one last question - do jars in dependencies section of pom
> during
> building glassfish module can be a normal jar? (not a bundle)
>
>
Yes, they can be normal jars.

Thanks,
-Yamini