Class Not Found Walaupun Ia Ada
Puaslah Tedi mencari apa masalah "java.lang.ClassNotFoundException: my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor" ni padahal terang tang tang lagi bahawa kelas tersebut ada dalam kod.
Lastly Tedi cuma clean kod tersebut dan rebuild dan tiba-tiba sahaja semuanya okay macam tiada apa-apa.
Mar 12, 2018 1:37:06 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
Mar 12, 2018 1:37:06 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:{your_system_name}' did not find a matching property.
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.5.24
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Nov 27 2017 13:05:30 UTC
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.5.24.0
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Architecture: amd64Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Java Home: C:\Program Files\Java\jdk1.8.0_162\jreMar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener logINFO: JVM Version: 1.8.0_162-b12
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener logINFO: CATALINA_BASE: F:\sts-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\apache-tomcat-8.5.24
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Command line argument: -Dcatalina.base=F:\sts-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener logINFO: Command line argument: -Dcatalina.home=C:\apache-tomcat-8.5.24Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=F:\sts-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebappsMar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\apache-tomcat-8.5.24\endorsed
Mar 12, 2018 1:37:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Mar 12, 2018 1:37:06 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_162\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.8.0_162/bin/../jre/bin/server;C:/Program Files/Java/jdk1.8.0_162/bin/../jre/bin;C:/Program Files/Java/jdk1.8.0_162/bin/../jre/lib/amd64;C:\Program Files\Java\jdk1.8.0_162\bin;C:\apache-tomcat-8.5.24\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Gradle\gradle-4.5.1\bin;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Program Files\SlikSvn\bin;C:\Program Files\PuTTY\;C:\Users\TTA\AppData\Local\Microsoft\WindowsApps;;C:\sts-3.9.2.RELEASE;;.]Mar 12, 2018 1:37:06 PM org.apache.coyote.AbstractProtocol initINFO: Initializing ProtocolHandler ["http-nio-8888"]Mar 12, 2018 1:37:07 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelectorINFO: Using a shared selector for servlet write/readMar 12, 2018 1:37:07 PM org.apache.coyote.AbstractProtocol initINFO: Initializing ProtocolHandler ["ajp-nio-8009"]Mar 12, 2018 1:37:07 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelectorINFO: Using a shared selector for servlet write/readMar 12, 2018 1:37:07 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 805 msMar 12, 2018 1:37:07 PM org.apache.catalina.core.StandardService startInternalINFO: Starting service [Catalina]Mar 12, 2018 1:37:07 PM org.apache.catalina.core.StandardEngine startInternalINFO: Starting Servlet Engine: Apache Tomcat/8.5.24Mar 12, 2018 1:37:10 PM org.apache.jasper.servlet.TldScanner scanJarsINFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.Mar 12, 2018 1:37:17 PM org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstanceWARNING: Name = SystemName Property maxActive is not used in DBCP2, use maxTotal instead. maxTotal default value is 8. You have set value of "20" for "maxActive" property, which is being ignored.Mar 12, 2018 1:37:17 PM org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstanceWARNING: Name = SystemName Property maxWait is not used in DBCP2 , use maxWaitMillis instead. maxWaitMillis default value is -1. You have set value of "-1" for "maxWait" property, which is being ignored.Mar 12, 2018 1:37:17 PM org.apache.jasper.servlet.TldScanner scanJarsINFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.Mar 12, 2018 1:37:17 PM org.apache.catalina.core.ApplicationContext logINFO: No Spring WebApplicationInitializer types detected on classpathMar 12, 2018 1:37:17 PM org.apache.catalina.core.ApplicationContext logINFO: Initializing Spring root WebApplicationContext2018-03-12 13:37:18,779 [localhost-startStop-1] ERROR org.springframework.web.context.ContextLoader - Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationProcessor': Cannot resolve reference to bean 'exceptionHandlingTaskExecutor' while setting bean property 'executor'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor] for bean with name 'exceptionHandlingTaskExecutor' defined in file [F:\sts-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\{your_system_name}\WEB-INF\classes\META-INF\spring\applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:228) at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:697) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:526) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor] for bean with name 'exceptionHandlingTaskExecutor' defined in file [F:\sts-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\{your_system_name}\WEB-INF\classes\META-INF\spring\applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1357) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 24 moreCaused by: java.lang.ClassNotFoundException: my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1291) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at org.springframework.util.ClassUtils.forName(ClassUtils.java:250) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:394) at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1402) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1349) ... 30 moreMar 12, 2018 1:37:18 PM org.apache.catalina.core.StandardContext listenerStartSEVERE: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationProcessor': Cannot resolve reference to bean 'exceptionHandlingTaskExecutor' while setting bean property 'executor'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor] for bean with name 'exceptionHandlingTaskExecutor' defined in file [F:\sts-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\{your_system_name}\WEB-INF\classes\META-INF\spring\applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:228) at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:697) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:526) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor] for bean with name 'exceptionHandlingTaskExecutor' defined in file [F:\sts-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\{your_system_name}\WEB-INF\classes\META-INF\spring\applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1357) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 24 moreCaused by: java.lang.ClassNotFoundException: my.appzz.util.async.ExceptionHandlingAsyncTaskExecutor at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1291) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at org.springframework.util.ClassUtils.forName(ClassUtils.java:250) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:394) at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1402) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1349) ... 30 more
Mar 12, 2018 1:37:18 PM org.apache.catalina.core.StandardContext startInternalSEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log fileMar 12, 2018 1:37:18 PM org.apache.catalina.core.StandardContext startInternalSEVERE: Context [/vurfin2] startup failed due to previous errorsMar 12, 2018 1:37:18 PM org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContextMar 12, 2018 1:37:18 PM org.apache.coyote.AbstractProtocol startINFO: Starting ProtocolHandler ["http-nio-8888"]Mar 12, 2018 1:37:18 PM org.apache.coyote.AbstractProtocol startINFO: Starting ProtocolHandler ["ajp-nio-8009"]Mar 12, 2018 1:37:18 PM org.apache.catalina.startup.Catalina startINFO: Server startup in 11715 ms
20180312
Artikel ini hanyalah simpanan cache dari url asal penulis yang berkebarangkalian sudah terlalu lama atau sudah dibuang :
http://www.interpretzz.com/2018/03/class-not-found-walaupun-ia-ada.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Interpretzz+%28interpretZZ%29