java.lang.RuntimeException: java.lang.NoClassDefFoundError: Lcom/google/inject/internal/util/$ImmutableList;

Apache's JIRA Issue Tracker | Peerapat | 2 years ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    I tried Shiro with Guice 4.0-SNAPSHOT It does not work, below is stack trace. 27-Aug-2014 09:27:15.957 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener java.lang.RuntimeException: java.lang.NoClassDefFoundError: Lcom/google/inject/internal/util/$ImmutableList; at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:280) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4738) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5158) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:579) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1744) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: Lcom/google/inject/internal/util/$ImmutableList; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2570) at java.lang.Class.getDeclaredFields(Class.java:1903) at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:661) at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366) at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:385) at com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:110) at com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:100) at com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:43) at com.google.inject.multibindings.Multibinder$RealMultibinder.configure(Multibinder.java:269) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:253) at com.google.inject.multibindings.Multibinder.newSetBinder(Multibinder.java:136) at com.google.inject.multibindings.MapBinder.newMapBinder(MapBinder.java:154) at com.google.inject.multibindings.MapBinder.newMapBinder(MapBinder.java:168) at org.apache.shiro.guice.BeanTypeListener.beanTypeMapBinding(BeanTypeListener.java:130) at org.apache.shiro.guice.BeanTypeListener.bindBeanType(BeanTypeListener.java:126) at org.apache.shiro.guice.ShiroModule.bindBeanType(ShiroModule.java:151) at org.apache.shiro.guice.web.ShiroWebModule.configureShiro(ShiroWebModule.java:119) at org.apache.shiro.guice.ShiroModule.configure(ShiroModule.java:73) at com.google.inject.PrivateModule.configure(PrivateModule.java:100) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:253) at com.google.inject.spi.Elements.getElements(Elements.java:108) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:135) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104) at com.google.inject.Guice.createInjector(Guice.java:99) at com.google.inject.Guice.createInjector(Guice.java:73) at com.google.inject.Guice.createInjector(Guice.java:62) at com.thjug.bgile.guice.GuiceInjectorFactory.<clinit>(GuiceInjectorFactory.java:37) at com.thjug.bgile.guice.GuiceInjectionProvider.<clinit>(GuiceInjectionProvider.java:18) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:340) at com.sun.faces.util.Util.loadClass(Util.java:325) at com.sun.faces.spi.InjectionProviderFactory.getProviderInstance(InjectionProviderFactory.java:149) at com.sun.faces.spi.InjectionProviderFactory.createInstance(InjectionProviderFactory.java:117) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:221) ... 13 more Caused by: java.lang.ClassNotFoundException: com.google.inject.internal.util.$ImmutableList at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1132) ... 49 more

    Apache's JIRA Issue Tracker | 2 years ago | Peerapat
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: Lcom/google/inject/internal/util/$ImmutableList;
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.google.inject.internal.util.$ImmutableList

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1132)
    2 frames
  3. Java RT
    Class.getDeclaredFields
    1. java.lang.Class.getDeclaredFields0(Native Method)
    2. java.lang.Class.privateGetDeclaredFields(Class.java:2570)
    3. java.lang.Class.getDeclaredFields(Class.java:1903)
    3 frames
  4. Google Guice - Core Library
    BindingBuilder.toProvider
    1. com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:661)
    2. com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366)
    3. com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:385)
    4. com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:110)
    5. com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:100)
    6. com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:43)
    6 frames
  5. Google Guice - Extensions - MultiBindings
    Multibinder$RealMultibinder.configure
    1. com.google.inject.multibindings.Multibinder$RealMultibinder.configure(Multibinder.java:269)
    1 frame
  6. Google Guice - Core Library
    Elements$RecordingBinder.install
    1. com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:253)
    1 frame
  7. Google Guice - Extensions - MultiBindings
    MapBinder.newMapBinder
    1. com.google.inject.multibindings.Multibinder.newSetBinder(Multibinder.java:136)
    2. com.google.inject.multibindings.MapBinder.newMapBinder(MapBinder.java:154)
    3. com.google.inject.multibindings.MapBinder.newMapBinder(MapBinder.java:168)
    3 frames
  8. Apache Shiro :: Support :: Guice
    ShiroModule.configure
    1. org.apache.shiro.guice.BeanTypeListener.beanTypeMapBinding(BeanTypeListener.java:130)
    2. org.apache.shiro.guice.BeanTypeListener.bindBeanType(BeanTypeListener.java:126)
    3. org.apache.shiro.guice.ShiroModule.bindBeanType(ShiroModule.java:151)
    4. org.apache.shiro.guice.web.ShiroWebModule.configureShiro(ShiroWebModule.java:119)
    5. org.apache.shiro.guice.ShiroModule.configure(ShiroModule.java:73)
    5 frames
  9. Google Guice - Core Library
    Guice.createInjector
    1. com.google.inject.PrivateModule.configure(PrivateModule.java:100)
    2. com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:253)
    3. com.google.inject.spi.Elements.getElements(Elements.java:108)
    4. com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:135)
    5. com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
    6. com.google.inject.Guice.createInjector(Guice.java:99)
    7. com.google.inject.Guice.createInjector(Guice.java:73)
    8. com.google.inject.Guice.createInjector(Guice.java:62)
    8 frames
  10. com.thjug.bgile
    GuiceInjectionProvider.<clinit>
    1. com.thjug.bgile.guice.GuiceInjectorFactory.<clinit>(GuiceInjectorFactory.java:37)
    2. com.thjug.bgile.guice.GuiceInjectionProvider.<clinit>(GuiceInjectionProvider.java:18)
    2 frames
  11. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:340)
    2 frames
  12. JSF
    ConfigureListener.contextInitialized
    1. com.sun.faces.util.Util.loadClass(Util.java:325)
    2. com.sun.faces.spi.InjectionProviderFactory.getProviderInstance(InjectionProviderFactory.java:149)
    3. com.sun.faces.spi.InjectionProviderFactory.createInstance(InjectionProviderFactory.java:117)
    4. com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361)
    5. com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:221)
    5 frames
  13. Glassfish Core
    HostConfig$DeployDescriptor.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4738)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5158)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
    7. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:579)
    8. org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1744)
    8 frames
  14. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames