users@glassfish.java.net

Re: Anybody using hybrid (EE+OSGi) applications in production?

From: <glassfish_at_javadesktop.org>
Date: Fri, 15 Oct 2010 07:47:25 PDT

Indeed, I copied the bundles used by OPS4J PAX and put them into \glassfish\modules\myModules . I removed some duplicated modules (like the Felix console)
And I have this error message:

Anyway, I just saw build 24 and will try your method

[#|2010-10-15T16:24:53.326+0200|INFO|glassfish3.1|null|_ThreadID=85;_ThreadName=Thread-37;|Problem while attempting to install admin console!
org.jvnet.hk2.component.ComponentException: Failed to create class org.glassfish.weld.WeldSniffer
        at com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:72)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:67)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:59)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:136)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:73)
        at org.jvnet.hk2.component.Habitat$5.get(Habitat.java:687)
        at java.util.AbstractList$Itr.next(AbstractList.java:345)
        at java.util.AbstractCollection.toArray(AbstractCollection.java:124)
        at java.util.ArrayList.addAll(ArrayList.java:472)
        at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:87)
        at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffer(SnifferManagerImpl.java:115)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.getSniffersFromApp(ApplicationLifecycle.java:1996)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:351)
        at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:309)
        at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:118)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.glassfish.weld.WeldSniffer
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:66)
        ... 14 more
[Message sent by forum member 'brunov']

http://forums.java.net/jive/thread.jspa?messageID=485300