NutzCN Logo
问答 添加shiro后SHIRO INIT报错
发布于 2670天前 作者 qq_5c0bb758 1762 次浏览 复制 上一个帖子 下一个帖子
标签:
八月 31, 2017 5:46:37 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:nutzbook' did not find a matching property.
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/9.0.0.M17
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Jan 10 2017 20:59:20 UTC
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         9.0.0.0
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             C:\jre
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_144-b01
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\eclipsework\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\apache-tomcat-9.0.0.M17
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\eclipsework\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-9.0.0.M17
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\eclipsework\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-9.0.0.M17\endorsed
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
八月 31, 2017 5:46:37 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/jre/bin/server;C:/jre/bin;C:/jre/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MySQL\MySQL Utilities 1.6\;D:\eclipse;;.
八月 31, 2017 5:46:37 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
八月 31, 2017 5:46:37 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
八月 31, 2017 5:46:37 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
八月 31, 2017 5:46:37 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
八月 31, 2017 5:46:37 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 508 ms
八月 31, 2017 5:46:37 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
八月 31, 2017 5:46:37 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/9.0.0.M17
八月 31, 2017 5:46:39 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: 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.
八月 31, 2017 5:46:39 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Shiro environment
log4j:WARN No appenders could be found for logger (org.apache.shiro.web.env.EnvironmentLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
八月 31, 2017 5:46:39 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.apache.shiro.web.env.EnvironmentLoaderListener
org.apache.shiro.config.ConfigurationException: Shiro INI configuration was either not found or discovered to be empty/unconfigured.
	at org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:87)
	at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45)
	at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40)
	at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:221)
	at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:133)
	at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4717)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	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(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

八月 31, 2017 5:46:39 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
八月 31, 2017 5:46:39 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/nutzbook] startup failed due to previous errors
八月 31, 2017 5:46:39 下午 org.apache.catalina.core.ApplicationContext log
信息: Cleaning up Shiro Environment
八月 31, 2017 5:46:39 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [http-nio-8080]
八月 31, 2017 5:46:39 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [ajp-nio-8009]
八月 31, 2017 5:46:39 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1299 ms

2 回复

先把日志搞好

根源在于conf目录下的文件通通找不到?

添加回复
请先登陆
回到顶部