org.jvnet.hk2.component.ComponentException

Failed to create class org.glassfish.weld.WeldSniffer

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web898

  • via Unknown by 392 Guest,
  • via Stack Overflow by Feras Odeh
    ,
  • Stack trace

    • 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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitor2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    53 more bugmates