Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

  2. ,
    Expert tip

    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Solutions on the web

via Stack Overflow by Mançaux Pierre-Alexandre
, 1 year ago
Unable to initialize bean connectionFactory1
via redhat.com by Unknown author, 2 years ago
via karaf-user by Michael Täschner, 2 years ago
via The OpenNMS Issue Tracker by Alejandro Galue, 1 year ago
via Stack Overflow by grozandrei
, 2 years ago
Unable to initialize bean helloService
via karaf-user by Christian Lutz, 2 years ago
Unable to initialize bean publicAPI
java.lang.ClassNotFoundException: fr.dyade.aaa.jndi2.client.NamingContextFactory	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)	at java.security.AccessController.doPrivileged(Native Method)	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)	at java.lang.Class.forName0(Native Method)	at java.lang.Class.forName(Class.java:274)	at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:72)	at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:61)	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)	at javax.naming.InitialContext.init(InitialContext.java:242)	at javax.naming.InitialContext.(InitialContext.java:216)	at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:136)	at org.springframework.jndi.JndiTemplate.getContext(JndiTemplate.java:103)	at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)	at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)	at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)	at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:231)	at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:217)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)	at java.util.concurrent.FutureTask.run(FutureTask.java:262)	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:682)	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:377)	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1127)	at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)	at org.apache.felix.framework.Felix.startBundle(Felix.java:2100)	at org.apache.felix.framework.Felix.updateBundle(Felix.java:2412)	at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:994)	at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:981)	at org.apache.karaf.shell.osgi.UpdateBundle.doExecute(UpdateBundle.java:37)	at org.apache.karaf.shell.osgi.BundleCommand.doExecute(BundleCommand.java:41)	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)	at org.apache.karaf.shell.console.jline.Console.run(Console.java:195)	at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)