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. ,

    This is thrown when the JVM tries to load a particular class and the specified class cannot be found in the classpath. Make sure Apache commons-lang library jar is added to your project's build path and you are using commons-lang3-3.0.jar or greater.

  2. ,

    Make sure to add org.springframework.core-3.1.0.M2.jar to your project libraries so that org.springframework.core.env.EnvironmentCapable will be loaded.

java.lang.ClassNotFoundException: jdk.Profile+Annotation	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332)	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166)	at org.springframework.core.type.classreading.RecursiveAnnotationAttributesVisitor.visitEnd(AnnotationAttributesReadingVisitor.java:167)	at org.springframework.asm.ClassReader.a(Unknown Source)	at org.springframework.asm.ClassReader.accept(Unknown Source)	at org.springframework.asm.ClassReader.accept(Unknown Source)	at org.springframework.core.type.classreading.SimpleMetadataReader.(SimpleMetadataReader.java:54)	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)	at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)	at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:257)	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:149)	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:126)	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:263)	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:203)	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:617)	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446)	at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)	at javax.servlet.GenericServlet.init(GenericServlet.java:158)	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1231)	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1144)	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1031)	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4914)	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5201)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:586)	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1750)	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)