NutzCN Logo
问答 nutzwk打包war部署线上部署问题
发布于 2278天前 作者 wx_qjsgjl7q0n24nq7ulrab 2038 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

打war 包本地部署,正常

同样的war包 copy 到线上部署,不报错,但是也不加载NutzWK

Using CATALINA_BASE:   /tmp/apache-tomcat-9.0.7
Using CATALINA_HOME:   /tmp/apache-tomcat-9.0.7
Using CATALINA_TMPDIR: /tmp/apache-tomcat-9.0.7/temp
Using JRE_HOME:        /usr/java/jdk
Using CLASSPATH:       /tmp/apache-tomcat-9.0.7/bin/bootstrap.jar:/tmp/apache-tomcat-9.0.7/bin/tomcat-juli.jar
31-Aug-2018 12:24:47.777 SEVERE [main] org.apache.catalina.startup.Catalina.initDirs Cannot find specified temporary folder at [/tmp/apache-tomcat-9.0.7/temp]
31-Aug-2018 12:24:48.168 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/9.0.7
31-Aug-2018 12:24:48.168 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Apr 3 2018 19:53:05 UTC
31-Aug-2018 12:24:48.168 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         9.0.7.0
31-Aug-2018 12:24:48.168 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
31-Aug-2018 12:24:48.169 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            3.10.0-514.26.2.el7.x86_64
31-Aug-2018 12:24:48.169 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
31-Aug-2018 12:24:48.169 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/java/jdk/jre
31-Aug-2018 12:24:48.169 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_161-b12
31-Aug-2018 12:24:48.169 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
31-Aug-2018 12:24:48.169 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /tmp/apache-tomcat-9.0.7
31-Aug-2018 12:24:48.169 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /tmp/apache-tomcat-9.0.7
31-Aug-2018 12:24:48.169 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/tmp/apache-tomcat-9.0.7/conf/logging.properties
31-Aug-2018 12:24:48.170 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
31-Aug-2018 12:24:48.170 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
31-Aug-2018 12:24:48.170 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
31-Aug-2018 12:24:48.170 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
31-Aug-2018 12:24:48.170 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
31-Aug-2018 12:24:48.170 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/tmp/apache-tomcat-9.0.7
31-Aug-2018 12:24:48.170 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/tmp/apache-tomcat-9.0.7
31-Aug-2018 12:24:48.170 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/tmp/apache-tomcat-9.0.7/temp
31-Aug-2018 12:24:48.170 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]
31-Aug-2018 12:24:48.286 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-7755"]
31-Aug-2018 12:24:48.297 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
31-Aug-2018 12:24:48.304 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8019"]
31-Aug-2018 12:24:48.305 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
31-Aug-2018 12:24:48.305 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 528 ms
31-Aug-2018 12:24:48.325 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
31-Aug-2018 12:24:48.325 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.7
31-Aug-2018 12:24:48.343 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/tmp/apache-tomcat-9.0.7/webapps/ROOT.war]
31-Aug-2018 12:24:56.957 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.
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
ERROR StatusLogger LogManager returned an instance of org.apache.logging.log4j.simple.SimpleLoggerContextFactory which does not implement org.apache.logging.log4j.core.impl.Log4jContextFactory. Unable to initialize Log4j.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/tmp/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/slf4j-log4j12-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/tmp/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
31-Aug-2018 12:24:57.059 SEVERE [main] 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-Aug-2018 12:25:02.785 WARNING [main] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [5,724] milliseconds.
31-Aug-2018 12:25:02.786 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
31-Aug-2018 12:25:02.806 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/tmp/apache-tomcat-9.0.7/webapps/ROOT.war] has finished in [14,463] ms
31-Aug-2018 12:25:02.808 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-7755"]
31-Aug-2018 12:25:02.815 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8019"]
31-Aug-2018 12:25:02.818 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 14512 ms


Using CATALINA_BASE: /Users/guoning/Work/tool/apache-tomcat-9.0.7 Using CATALINA_HOME: /Users/guoning/Work/tool/apache-tomcat-9.0.7 Using CATALINA_TMPDIR: /Users/guoning/Work/tool/apache-tomcat-9.0.7/temp Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home Using CLASSPATH: /Users/guoning/Work/tool/apache-tomcat-9.0.7/bin/bootstrap.jar:/Users/guoning/Work/tool/apache-tomcat-9.0.7/bin/tomcat-juli.jar 31-Aug-2018 12:10:35.955 严重 [main] org.apache.catalina.startup.Catalina.initDirs Cannot find specified temporary folder at [/Users/guoning/Work/tool/apache-tomcat-9.0.7/temp] 31-Aug-2018 12:10:36.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/9.0.7 31-Aug-2018 12:10:36.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Apr 3 2018 19:53:05 UTC 31-Aug-2018 12:10:36.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.7.0 31-Aug-2018 12:10:36.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Mac OS X 31-Aug-2018 12:10:36.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.13.6 31-Aug-2018 12:10:36.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86_64 31-Aug-2018 12:10:36.636 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre 31-Aug-2018 12:10:36.636 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_161-b12 31-Aug-2018 12:10:36.636 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 31-Aug-2018 12:10:36.636 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /Users/guoning/Work/tool/apache-tomcat-9.0.7 31-Aug-2018 12:10:36.636 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /Users/guoning/Work/tool/apache-tomcat-9.0.7 31-Aug-2018 12:10:36.637 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Users/guoning/Work/tool/apache-tomcat-9.0.7/conf/logging.properties 31-Aug-2018 12:10:36.637 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 31-Aug-2018 12:10:36.637 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 31-Aug-2018 12:10:36.637 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 31-Aug-2018 12:10:36.637 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 31-Aug-2018 12:10:36.638 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 31-Aug-2018 12:10:36.638 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Users/guoning/Work/tool/apache-tomcat-9.0.7 31-Aug-2018 12:10:36.638 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Users/guoning/Work/tool/apache-tomcat-9.0.7 31-Aug-2018 12:10:36.638 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Users/guoning/Work/tool/apache-tomcat-9.0.7/temp 31-Aug-2018 12:10:36.638 信息 [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: [/Users/guoning/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.] 31-Aug-2018 12:10:36.885 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8081"] 31-Aug-2018 12:10:36.915 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 31-Aug-2018 12:10:36.950 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"] 31-Aug-2018 12:10:36.953 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 31-Aug-2018 12:10:36.955 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1000 ms 31-Aug-2018 12:10:36.995 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 31-Aug-2018 12:10:36.996 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.7 31-Aug-2018 12:10:37.044 信息 [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT.war] 31-Aug-2018 12:10:54.355 信息 [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. ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console... ERROR StatusLogger LogManager returned an instance of org.apache.logging.log4j.simple.SimpleLoggerContextFactory which does not implement org.apache.logging.log4j.core.impl.Log4jContextFactory. Unable to initialize Log4j. SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/slf4j-log4j12-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] 2018-08-31 12:10:55,278 org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:296) INFO - An instance with name 'authc' already exists. Redefining this object as a new instance of type cn.vp.common.shiro.filter.SimpleAuthenticationFilter 2018-08-31 12:10:55,300 org.apache.shiro.config.IniSecurityManagerFactory.isAutoApplyRealms(IniSecurityManagerFactory.java:118) INFO - Realms have been explicitly set on the SecurityManager instance - auto-setting of realms will not occur. 2018-08-31 12:10:55,318 org.nutz.mvc.NutFilter._init(NutFilter.java:81) INFO - NutFilter[nutz] starting ... 2018-08-31 12:10:56,997 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO - Nutz Version : 1.r.60 2018-08-31 12:10:56,997 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO - Nutz.Mvc[nutz] is initializing ... 2018-08-31 12:10:57,075 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [upload.json](config/ioc/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/config/ioc/upload.json) will be override by [upload.json](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:config/ioc/upload.json) 2018-08-31 12:10:57,076 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [ehcache.json](config/ioc/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/config/ioc/ehcache.json) will be override by [ehcache.json](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:config/ioc/ehcache.json) 2018-08-31 12:10:57,076 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [dao.json](config/ioc/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/config/ioc/dao.json) will be override by [dao.json](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:config/ioc/dao.json) 2018-08-31 12:10:57,085 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [mail.json](config/ioc/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/config/ioc/mail.json) will be override by [mail.json](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:config/ioc/mail.json) 2018-08-31 12:10:57,092 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [redis.json](config/ioc/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/config/ioc/redis.json) will be override by [redis.json](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:config/ioc/redis.json) 2018-08-31 12:10:57,894 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) INFO - Found 39 classes in 1 base-packages! beans = ["redisService", "sysMetaController", "sysUserLabelController", "sysLoginController", "dateUtil", "stringUtil", "redis", "qrcodeService", "sysRouteController", "sysUserService", "sysBookmarksService", "sysMetaService", "sysApiService", "sysConfigService", "sysTaskController", "sysLogService", "$aop_syslog", "testController", "sysMenuService", "cacheUtil", "analyzeController", "permission", "sysBookMarkController", "sysMenuController", "sysLogController", "emailService", "sysRouteService", "sLogService", "tokenController", "sysTaskService", "sysApiController", "sysUnitService", "sysRoleController", "sysHomeController", "sysRoleService", "sysUserController", "sysConfController", "testJob", "sysUnitController"] 2018-08-31 12:10:57,905 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) INFO - NutIoc init begin ... 2018-08-31 12:10:57,908 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) INFO - ... NutIoc init complete 2018-08-31 12:10:57,912 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) INFO - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ... 2018-08-31 12:10:58,345 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [redis.properties](config/custom/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/config/custom/redis.properties) will be override by [redis.properties](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:config/custom/redis.properties) 2018-08-31 12:10:58,345 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [db.properties](config/custom/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/config/custom/db.properties) will be override by [db.properties](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:config/custom/db.properties) 2018-08-31 12:10:58,346 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [mail.properties](config/custom/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/config/custom/mail.properties) will be override by [mail.properties](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:config/custom/mail.properties) 2018-08-31 12:10:58,463 com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:715) INFO - {dataSource-1} inited 2018-08-31 12:10:58,519 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:23) INFO - Init file-pool by: /Users/guoning/.nutz/tmp/dao/ [200000] 2018-08-31 12:10:58,522 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:66) INFO - file-pool.cursor: 0 2018-08-31 12:10:58,530 org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:103) INFO - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure 2018-08-31 12:10:59,170 org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:68) WARN - Duplicate @At mapping ? path=/platform/sys/meta/tree 2018-08-31 12:10:59,177 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:23) INFO - Init file-pool by: /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/tmp [2000] 2018-08-31 12:10:59,178 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:66) INFO - file-pool.cursor: 0 2018-08-31 12:10:59,217 org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:68) WARN - Duplicate @At mapping ? path=/platform/sys/log 2018-08-31 12:10:59,217 org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:68) WARN - Duplicate @At mapping ? path=/platform/sys/log/delete 2018-08-31 12:10:59,218 org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:68) WARN - Duplicate @At mapping ? path=/platform/sys/log/data 2018-08-31 12:10:59,251 org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:68) WARN - Duplicate @At mapping ? path=/platform/sys/role/pushuser 2018-08-31 12:10:59,255 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:23) INFO - Init file-pool by: /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/tmp [2000] 2018-08-31 12:10:59,255 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:66) INFO - file-pool.cursor: 0 2018-08-31 12:10:59,258 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:220) INFO - Found 139 module methods 2018-08-31 12:10:59,267 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [en_US/system.properties](locales/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/locales/en_US/system.properties) will be override by [en_US/system.properties](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:locales/en_US/system.properties) 2018-08-31 12:10:59,267 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [en_US/sys/role.properties](locales/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/locales/en_US/sys/role.properties) will be override by [en_US/sys/role.properties](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:locales/en_US/sys/role.properties) 2018-08-31 12:10:59,267 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [en_US/sys/unit.properties](locales/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/locales/en_US/sys/unit.properties) will be override by [en_US/sys/unit.properties](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:locales/en_US/sys/unit.properties) 2018-08-31 12:10:59,267 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [zh_CN/system.properties](locales/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/locales/zh_CN/system.properties) will be override by [zh_CN/system.properties](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:locales/zh_CN/system.properties) 2018-08-31 12:10:59,285 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [zh_CN/sys/role.properties](locales/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/locales/zh_CN/sys/role.properties) will be override by [zh_CN/sys/role.properties](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:locales/zh_CN/sys/role.properties) 2018-08-31 12:10:59,285 org.nutz.resource.Scans.scan(Scans.java:266) INFO - same resource path [zh_CN/sys/unit.properties](locales/ /Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/locales/zh_CN/sys/unit.properties) will be override by [zh_CN/sys/unit.properties](/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/lib/bigdata-vp-1.0-SNAPSHOT.jar:locales/zh_CN/sys/unit.properties) 2018-08-31 12:10:59,292 org.nutz.mvc.impl.NutLoading.createSessionProvider(NutLoading.java:413) INFO - SessionBy --> org.nutz.integration.shiro.ShiroSessionProvider@275350fa 2018-08-31 12:10:59,293 org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274) INFO - Setup application... 2018-08-31 12:11:00,210 org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1172) INFO - Using default implementation for ThreadExecutor 2018-08-31 12:11:00,226 org.quartz.core.SchedulerSignalerImpl.<init>(SchedulerSignalerImpl.java:61) INFO - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl 2018-08-31 12:11:00,226 org.quartz.core.QuartzScheduler.<init>(QuartzScheduler.java:240) INFO - Quartz Scheduler v.2.2.3 created. 2018-08-31 12:11:00,227 org.quartz.simpl.RAMJobStore.initialize(RAMJobStore.java:155) INFO - RAMJobStore initialized. 2018-08-31 12:11:00,227 org.quartz.core.QuartzScheduler.initialize(QuartzScheduler.java:305) INFO - Scheduler meta-data: Quartz Scheduler (v2.2.3) 'NutzwkScheduler' with instanceId 'NON_CLUSTERED' Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. NOT STARTED. Currently in standby mode. Number of jobs executed: 0 Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 2 threads. Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. 2018-08-31 12:11:00,227 org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1327) INFO - Quartz scheduler 'NutzwkScheduler' initialized from default resource file in Quartz package: 'quartz.properties' 2018-08-31 12:11:00,227 org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1331) INFO - Quartz scheduler version: 2.2.3 2018-08-31 12:11:00,229 org.quartz.core.QuartzScheduler.setJobFactory(QuartzScheduler.java:2311) INFO - JobFactory set to: org.nutz.integration.quartz.NutQuartzJobFactory@10112b97 2018-08-31 12:11:00,229 org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:575) INFO - Scheduler NutzwkScheduler_$_NON_CLUSTERED started. 2018-08-31 12:11:00,305 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) INFO - Nutz.Mvc[nutz] is up in 3307ms 2018-08-31 12:11:00,305 org.nutz.mvc.NutFilter._init(NutFilter.java:113) INFO - exclusionsPrefix = ^(/static/|/res/|/druid/|/upload/|/apidoc/) 31-Aug-2018 12:11:00.339 信息 [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/Users/guoning/Work/tool/apache-tomcat-9.0.7/webapps/ROOT.war] has finished in [23,295] ms 31-Aug-2018 12:11:00.342 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8081"] 31-Aug-2018 12:11:00.355 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"] 31-Aug-2018 12:11:00.357 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 23400 ms
21 回复

用的是log4j12 还是log4j2 作为日志输出

那把slf4j-log4j12-1.7.21.jar删掉

这个怎么回复指定楼层呢?

盖楼?你更关心盖楼?

木有木有~ 还是不行~~

发当前日志

sing CATALINA_BASE:   /tmp/apache-tomcat-9.0.7
Using CATALINA_HOME:   /tmp/apache-tomcat-9.0.7
Using CATALINA_TMPDIR: /tmp/apache-tomcat-9.0.7/temp
Using JRE_HOME:        /usr/java/jdk
Using CLASSPATH:       /tmp/apache-tomcat-9.0.7/bin/bootstrap.jar:/tmp/apache-tomcat-9.0.7/bin/tomcat-juli.jar
31-Aug-2018 12:40:39.009 SEVERE [main] org.apache.catalina.startup.Catalina.initDirs Cannot find specified temporary folder at [/tmp/apache-tomcat-9.0.7/temp]
31-Aug-2018 12:40:39.383 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/9.0.7
31-Aug-2018 12:40:39.383 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Apr 3 2018 19:53:05 UTC
31-Aug-2018 12:40:39.383 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         9.0.7.0
31-Aug-2018 12:40:39.383 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
31-Aug-2018 12:40:39.383 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            3.10.0-514.26.2.el7.x86_64
31-Aug-2018 12:40:39.383 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
31-Aug-2018 12:40:39.383 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/java/jdk/jre
31-Aug-2018 12:40:39.383 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_161-b12
31-Aug-2018 12:40:39.384 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
31-Aug-2018 12:40:39.384 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /tmp/apache-tomcat-9.0.7
31-Aug-2018 12:40:39.384 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /tmp/apache-tomcat-9.0.7
31-Aug-2018 12:40:39.384 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/tmp/apache-tomcat-9.0.7/conf/logging.properties
31-Aug-2018 12:40:39.384 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
31-Aug-2018 12:40:39.384 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
31-Aug-2018 12:40:39.384 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
31-Aug-2018 12:40:39.384 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
31-Aug-2018 12:40:39.384 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
31-Aug-2018 12:40:39.384 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/tmp/apache-tomcat-9.0.7
31-Aug-2018 12:40:39.385 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/tmp/apache-tomcat-9.0.7
31-Aug-2018 12:40:39.385 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/tmp/apache-tomcat-9.0.7/temp
31-Aug-2018 12:40:39.385 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]
31-Aug-2018 12:40:39.497 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-7755"]
31-Aug-2018 12:40:39.508 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
31-Aug-2018 12:40:39.513 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8019"]
31-Aug-2018 12:40:39.514 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
31-Aug-2018 12:40:39.515 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 506 ms
31-Aug-2018 12:40:39.534 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
31-Aug-2018 12:40:39.534 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.7
31-Aug-2018 12:40:39.551 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/tmp/apache-tomcat-9.0.7/webapps/ROOT.war]
31-Aug-2018 12:40:48.076 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.
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
ERROR StatusLogger LogManager returned an instance of org.apache.logging.log4j.simple.SimpleLoggerContextFactory which does not implement org.apache.logging.log4j.core.impl.Log4jContextFactory. Unable to initialize Log4j.
31-Aug-2018 12:40:48.172 SEVERE [main] 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-Aug-2018 12:40:53.711 WARNING [main] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [5,538] milliseconds.
31-Aug-2018 12:40:53.712 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
31-Aug-2018 12:40:53.731 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/tmp/apache-tomcat-9.0.7/webapps/ROOT.war] has finished in [14,181] ms
31-Aug-2018 12:40:53.733 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-7755"]
31-Aug-2018 12:40:53.740 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8019"]
31-Aug-2018 12:40:53.743 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 14228 ms

删了一个,还是两个都删了?

这是第一次部署?

一个,嗯嗯 第一次

有没有log4j2.xml没?

当前只是解决日志的问题, 日志解决了才能看到真正的错误, 通常是数据库配置错误

SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file

嗯 好,我先解决这个

<dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.21</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.21</version>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </dependency>

log4j.properties

log4j.rootLogger=INFO,Console

log4j.logger.org.apache.commons.beanutils=error
log4j.logger.org.quartz.core.QuartzSchedulerThread=info
log4j.logger.org.apache.shiro.web=error
log4j.logger.net.sf.ehcache.statistics=error
log4j.logger.net.sf.ehcache=error
log4j.logger.org.apache.shiro.session=error
log4j.logger.org.apache.shiro.mgt=error
log4j.logger.org.apache.shiro.cache.ehcache=error
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d %l %-5p - %m%n


?? 之前你不是说用的是log4j2吗?

那得把log4j2相关的依赖去掉

可以了 果然是 log 的问题

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