NutzCN Logo
问答 Ehcache Linux服务器运行时,到此处一直卡住,无法启动成功
发布于 2378天前 作者 xiejibiao 4336 次浏览 复制 上一个帖子 下一个帖子
标签:
19-Jun-2018 11:50:17.707 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/9.0.8
19-Jun-2018 11:50:17.709 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Apr 27 2018 19:32:00 UTC
19-Jun-2018 11:50:17.709 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         9.0.8.0
19-Jun-2018 11:50:17.709 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
19-Jun-2018 11:50:17.709 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            3.10.0-693.11.1.el7.x86_64
19-Jun-2018 11:50:17.709 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
19-Jun-2018 11:50:17.709 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/local/src/jdk1.8.0_151/jre
19-Jun-2018 11:50:17.710 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_172-b11
19-Jun-2018 11:50:17.710 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
19-Jun-2018 11:50:17.710 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/src/apache-tomcat-8.5.23
19-Jun-2018 11:50:17.710 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/src/apache-tomcat-8.5.23
19-Jun-2018 11:50:17.710 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat//conf/logging.properties
19-Jun-2018 11:50:17.710 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
19-Jun-2018 11:50:17.710 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
19-Jun-2018 11:50:17.711 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
19-Jun-2018 11:50:17.711 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
19-Jun-2018 11:50:17.711 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
19-Jun-2018 11:50:17.711 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat/
19-Jun-2018 11:50:17.711 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/src/apache-tomcat-8.5.23
19-Jun-2018 11:50:17.711 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat//temp
19-Jun-2018 11:50:17.711 INFO [main] 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: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
19-Jun-2018 11:50:17.796 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
19-Jun-2018 11:50:17.805 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
19-Jun-2018 11:50:17.810 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
19-Jun-2018 11:50:17.810 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
19-Jun-2018 11:50:17.811 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 420 ms
19-Jun-2018 11:50:17.826 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
19-Jun-2018 11:50:17.827 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.8
19-Jun-2018 11:50:17.844 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/src/apache-tomcat-8.5.23/webapps/justgo.war]
19-Jun-2018 11:50:19.210 INFO [main] 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.
log4j:ERROR Could not find value for key log4j.appender.file
log4j:ERROR Could not instantiate appender named "file".
[DEBUG] 2018-06-19 11:50:19,270 org.apache.shiro.io.ResourceUtils.loadFromClassPath(ResourceUtils.java:159) - Opening resource from class path [shiro.ini]
[DEBUG] 2018-06-19 11:50:19,275 org.apache.shiro.config.Ini.load(Ini.java:342) - Parsing [main]
[DEBUG] 2018-06-19 11:50:19,281 org.apache.shiro.config.Ini.load(Ini.java:342) - Parsing [urls]
[DEBUG] 2018-06-19 11:50:19,283 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:122) - Creating instance from Ini [sections=main,urls]
[INFO ] 2018-06-19 11:50:19,412 org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:138) - An instance with name 'authc' already exists.  Redefining this object as a new instance of type cn.wizzer.app.web.commons.shiro.filter.PlatformAuthenticationFilter
[DEBUG] 2018-06-19 11:50:19,462 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$cacheManager'.  Looking up object with id 'cacheManager'
[DEBUG] 2018-06-19 11:50:19,463 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$sessionDAO'.  Looking up object with id 'sessionDAO'
[DEBUG] 2018-06-19 11:50:19,474 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$sessionManager'.  Looking up object with id 'sessionManager'
[DEBUG] 2018-06-19 11:50:19,477 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$sessionIdCookie'.  Looking up object with id 'sessionIdCookie'
[DEBUG] 2018-06-19 11:50:19,482 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$rememberMeCookie'.  Looking up object with id 'rememberMeCookie'
[DEBUG] 2018-06-19 11:50:19,493 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$sha256Matcher'.  Looking up object with id 'sha256Matcher'
[DEBUG] 2018-06-19 11:50:19,494 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$shiroDbRealm'.  Looking up object with id 'shiroDbRealm'
[DEBUG] 2018-06-19 11:50:19,494 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$shiroDbRealm'.  Looking up object with id 'shiroDbRealm'
[DEBUG] 2018-06-19 11:50:19,497 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$authcStrategy'.  Looking up object with id 'authcStrategy'
[DEBUG] 2018-06-19 11:50:19,498 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$cacheManager'.  Looking up object with id 'cacheManager'
[DEBUG] 2018-06-19 11:50:19,498 org.apache.shiro.realm.AuthorizingRealm.getAuthorizationCacheLazy(AuthorizingRealm.java:234) - No authorizationCache instance set.  Checking for a cacheManager...
[DEBUG] 2018-06-19 11:50:19,499 org.apache.shiro.realm.AuthorizingRealm.getAuthorizationCacheLazy(AuthorizingRealm.java:242) - CacheManager [org.apache.shiro.cache.ehcache.EhCacheManager@21399e53] has been configured.  Building authorization cache named [shiroDbRealm.authorizationCache]
[DEBUG] 2018-06-19 11:50:19,503 org.apache.shiro.io.ResourceUtils.loadFromClassPath(ResourceUtils.java:159) - Opening resource from class path [ehcache.xml]
[DEBUG] 2018-06-19 11:50:19,734 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) - Encountered object reference '$rememberMeManager'.  Looking up object with id 'rememberMeManager'
[INFO ] 2018-06-19 11:50:19,748 org.apache.shiro.config.IniSecurityManagerFactory.isAutoApplyRealms(IniSecurityManagerFactory.java:112) - Realms have been explicitly set on the SecurityManager instance - auto-setting of realms will not occur.
[DEBUG] 2018-06-19 11:50:19,750 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:122) - Creating instance from Ini [sections=main,urls]

10 回复

没看懂怎样集成进去,我现在使用的是1.R.65版本

不是集成,是看里面的文档 "在linux上shiro初始化很久"

那您的意思是说,只能慢慢等吗?

JAVA_OPTS=-Djava.security.egd=file:/dev/urandom
就配置这段就行了吗?

可是找不到setenv.sh,这个文件

默认是没有的,自己加

为什么加了这段之后就会快很多呢?这段的意思是什么?

谷歌搜java.security.egd

好的,谢谢您

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