情况如图,jdk是1.8,tomcat是9,mysql是5.7.eclipse是Oxygen Release (4.7.0)
程序台是:
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server.服务器版本: Apache Tomcat/9.0.37
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 服务器构建: Jun 30 2020 20:09:49 UTC
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 服务器版本号(: 9.0.37.0
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 操作系统名称: Windows 10
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS.版本: 10.0
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 架构: amd64
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java 环境变量: D:\Program Files\Java\jre1.8.0_161
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java虚拟机版本: 1.8.0_161-b12
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM.供应商: Oracle Corporation
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\Program Files\Java\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\Program Files (x86)\apache-tomcat-9.0.37\apache-tomcat-9.0.37
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 命令行参数:-Dcatalina.base=D:\Program Files\Java\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 命令行参数:-Dcatalina.home=D:\Program Files (x86)\apache-tomcat-9.0.37\apache-tomcat-9.0.37
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 命令行参数:-Dwtp.deploy=D:\Program Files\Java\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 命令行参数:-Djava.endorsed.dirs=D:\Program Files (x86)\apache-tomcat-9.0.37\apache-tomcat-9.0.37\endorsed
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 命令行参数:-Dfile.encoding=UTF-8
七月 13, 2020 2:18:09 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: 在java.library.path:[D:\Program Files\Java\jre1.8.0_161\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Program Files/Java/jre1.8.0_161/bin/server;D:/Program Files/Java/jre1.8.0_161/bin;D:/Program Files/Java/jre1.8.0_161/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;D:\Program Files\Calibre2\;C:\Users\1429116969\AppData\Local\Microsoft\WindowsApps;D:\Program Files\Bandizip\;D:\Program Files\Java\jdk1.8.0_161\bin;D:\Program Files\Java\jdk1.8.0_161\jre\bin;D:\Program Files\MySQL\MySQL Server 5.1\bin;D:\Program Files (x86)\mysql-5.7.30-winx64\bin;D:\Program Files\Java\jdk1.8.0_161;%JRE_HOME%;C:\Users\1429116969\AppData\Local\Microsoft\WindowsApps;D:\Program Files\Bandizip\;D:\Program Files (x86)\eclipse-jee-oxygen-R-win32-x86_64\eclipse;;.]上找不到基于APR的Apache Tomcat本机库,该库允许在生产环境中获得最佳性能
七月 13, 2020 2:18:09 下午 org.apache.coyote.AbstractProtocol init
信息: 初始化协议处理器 ["http-nio-8080"]
七月 13, 2020 2:18:09 下午 org.apache.catalina.startup.Catalina load
信息: 服务器在[1332]毫秒内初始化
七月 13, 2020 2:18:10 下午 org.apache.catalina.core.StandardService startInternal
信息: 正在启动服务[Catalina]
七月 13, 2020 2:18:10 下午 org.apache.catalina.core.StandardEngine startInternal
信息: 正在启动 Servlet 引擎:[Apache Tomcat/9.0.37]
七月 13, 2020 2:18:16 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。
七月 13, 2020 2:18:17 下午 org.apache.catalina.core.ApplicationContext log
信息: Spring WebApplicationInitializers detected on classpath: [com.mrkj.ygl.config.SpringWebInitializer@17734113]
七月 13, 2020 2:18:17 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
七月 13, 2020 2:18:20 下午 org.apache.catalina.core.StandardContext listenerStart
严重: 异常将上下文初始化事件发送到类的侦听器实例.[org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [com/mrkj/ygl/config/spring-pz-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [com/mrkj/ygl/config/spring-pz-shiro.xml]: Cannot resolve reference to bean 'jdbcRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdbcRealm' defined in class path resource [com/mrkj/ygl/config/spring-pz-shiro.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [com/mrkj/ygl/config/spring-pz-shiro.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com.mysql.jdbc.Driver]
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:240)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:687)
at org.s