Closed ywjno closed 6 years ago
出错logger内容如下,如果使用 jar 方式运行项目的话运行正常
[INFO ] 11:45:51.379 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:301) - org.nutz.ioc.impl.NutIoc@16703819 is deposed. startup date [18-05-24 15:29:34.352] 28-May-2018 11:45:51.425 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"] 28-May-2018 11:45:51.432 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"] 28-May-2018 11:45:51.436 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"] 28-May-2018 11:45:51.438 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"] 28-May-2018 11:45:59.773 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/9.0.8 28-May-2018 11:45:59.780 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Apr 27 2018 19:32:00 UTC 28-May-2018 11:45:59.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.8.0 28-May-2018 11:45:59.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 28-May-2018 11:45:59.782 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.14.34-v7+ 28-May-2018 11:45:59.782 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: arm 28-May-2018 11:45:59.783 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /home/pi/opt/jdk1.8.0_161/jre 28-May-2018 11:45:59.783 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_161-b12 28-May-2018 11:45:59.783 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 28-May-2018 11:45:59.784 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/pi/opt/tomcat-9.0.8 28-May-2018 11:45:59.784 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /home/pi/opt/tomcat-9.0.8 28-May-2018 11:45:59.785 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/pi/opt/tomcat-9.0.8/conf/logging.properties 28-May-2018 11:45:59.786 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 28-May-2018 11:45:59.786 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 28-May-2018 11:45:59.787 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 28-May-2018 11:45:59.787 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 28-May-2018 11:45:59.788 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 28-May-2018 11:45:59.788 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/pi/opt/tomcat-9.0.8 28-May-2018 11:45:59.789 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/home/pi/opt/tomcat-9.0.8 28-May-2018 11:45:59.789 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/pi/opt/tomcat-9.0.8/temp 28-May-2018 11:45:59.790 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/arm:/lib:/usr/lib] 28-May-2018 11:46:00.224 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 28-May-2018 11:46:00.264 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 28-May-2018 11:46:00.289 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"] 28-May-2018 11:46:00.293 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 28-May-2018 11:46:00.295 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1878 ms 28-May-2018 11:46:00.380 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 28-May-2018 11:46:00.380 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.8 28-May-2018 11:46:00.464 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/pi/opt/tomcat-9.0.8/apps/pm25.war] [INFO ] 11:46:06.898 org.nutz.boot.starter.servlet3.NbServletContextListener.contextInitialized(NbServletContextListener.java:52) - Running at war mode!!! mainClass=com.fatepress.pm25.MainLauncher [INFO ] 11:46:07.838 org.nutz.boot.banner.SimpleBannerPrinter.printBanner(SimpleBannerPrinter.java:34) - _ _ ______ ___ | \ | || ___ \ ______ ______ ______ ______ ______| \ \ | \| || |_/ / |______|______|______|______|______| |\ \ | . ` || ___ \ ______ ______ ______ ______ ______| | > > | |\ || |_/ / |______|______|______|______|______| |/ / \_| \_/\____/ |_/_/ :: Nutz Boot :: (2.2-SNAPSHOT) [DEBUG] 11:46:07.926 org.nutz.resource.Scans.printLocations(Scans.java:527) - Locations count=4 time use 27ms [DEBUG] 11:46:07.947 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ ) [DEBUG] 11:46:07.949 org.nutz.ioc.impl.PropertiesProxy.setPaths(PropertiesProxy.java:114) - load properties from File[/home/pi/opt/tomcat-9.0.8/apps/pm25/WEB-INF/classes/custom/emtry.properties] [DEBUG] 11:46:07.953 org.nutz.boot.config.impl.PropertiesConfigureLoader.init(PropertiesConfigureLoader.java:40) - load /home/pi/opt/tomcat-9.0.8/apps/pm25/WEB-INF/classes/application.properties [DEBUG] 11:46:08.061 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ ) [DEBUG] 11:46:08.064 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [emtry.json] [DEBUG] 11:46:08.068 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 0 bean define from path=[ioc/] --> [] [DEBUG] 11:46:08.387 org.nutz.castor.Castors.reload(Castors.java:116) - Using 101 castor for Castors [DEBUG] 11:46:08.479 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader [INFO ] 11:46:08.522 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) - > scan 'com.fatepress.pm25' [DEBUG] 11:46:08.539 org.nutz.resource.Scans.scan(Scans.java:280) - Found 11 resource by src( com/fatepress/pm25/ ) , regex( ^.+[.]class$ ) [INFO ] 11:46:08.612 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) - > add 'timeModule ' - com.fatepress.pm25.module.TimeModule [INFO ] 11:46:08.716 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) - > add 'zipDataJob ' - com.fatepress.pm25.job.ZipDataJob [INFO ] 11:46:08.727 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) - > add 'pm25DataJob ' - com.fatepress.pm25.job.PM25DataJob [INFO ] 11:46:08.737 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) - > add 'deleteDataJob ' - com.fatepress.pm25.job.DeleteDataJob [INFO ] 11:46:08.741 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) - > add 'mainLauncher ' - com.fatepress.pm25.MainLauncher [INFO ] 11:46:08.745 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) - > scan 'org.nutz.boot.starter' [DEBUG] 11:46:08.768 org.nutz.resource.Scans.scan(Scans.java:280) - Found 16 resource by src( org/nutz/boot/starter/ ) , regex( ^.+[.]class$ ) [INFO ] 11:46:08.825 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) - > add 'nutFilterStarter ' - org.nutz.boot.starter.nutz.mvc.NutFilterStarter [DEBUG] 11:46:08.838 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutFilterStarter.createNutFilter(...) define as name=nutFilter [INFO ] 11:46:08.844 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) - > add 'whaleFilterStarter ' - org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter [DEBUG] 11:46:08.852 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : WhaleFilterStarter.createNutFilter(...) define as name=whaleFilter [INFO ] 11:46:08.854 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) - > add 'nbServletContextListener ' - org.nutz.boot.starter.servlet3.NbServletContextListener [INFO ] 11:46:08.858 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) - > add 'quartzStarter ' - org.nutz.boot.starter.quartz.QuartzStarter [INFO ] 11:46:08.866 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) - > add 'swaggerServletStarter ' - org.nutz.boot.starter.swagger.SwaggerServletStarter [DEBUG] 11:46:08.881 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : SwaggerServletStarter.createSwagger(...) define as name=swagger [DEBUG] 11:46:08.883 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : SwaggerServletStarter.createSwaggerInfo(...) define as name=swaggerInfo [INFO ] 11:46:08.937 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:130) - ... NutIoc init complete [DEBUG] 11:46:08.943 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'appContext' to [app] [DEBUG] 11:46:08.945 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'conf' to [app] [DEBUG] 11:46:08.947 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'nbApp' to [app] [DEBUG] 11:46:08.954 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'counterService' to [app] [DEBUG] 11:46:09.011 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'quartzStarter'<interface org.nutz.boot.starter.ServerFace> [DEBUG] 11:46:09.014 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration> [DEBUG] 11:46:09.019 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - >> Load definition name=$aop_async [DEBUG] 11:46:09.021 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject($aop_async) in AsyncAopIocLoader@16943134 [DEBUG] 11:46:09.023 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration> [DEBUG] 11:46:09.028 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object '$aop_async' to [app] [DEBUG] 11:46:09.062 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration [DEBUG] 11:46:09.064 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - >> Load definition name=quartzStarter [DEBUG] 11:46:09.066 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(quartzStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.068 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'quartzStarter'<interface org.nutz.boot.starter.ServerFace> [DEBUG] 11:46:09.069 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'quartzStarter' to [app] [DEBUG] 11:46:09.071 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.boot.starter.quartz.QuartzStarter without AOP [DEBUG] 11:46:09.150 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy> [DEBUG] 11:46:09.154 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'appContext'<class org.nutz.boot.AppContext> [DEBUG] 11:46:09.156 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) - name=scheduler not found, search for type=org.quartz.Scheduler [DEBUG] 11:46:09.158 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(txREPEATABLE_READ) in TransIocLoader@18982732 [DEBUG] 11:46:09.160 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(txSERIALIZABLE) in TransIocLoader@18982732 [DEBUG] 11:46:09.162 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(txNONE) in TransIocLoader@18982732 [DEBUG] 11:46:09.164 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(txREAD_UNCOMMITTED) in TransIocLoader@18982732 [DEBUG] 11:46:09.166 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(txREAD_COMMITTED) in TransIocLoader@18982732 [DEBUG] 11:46:09.167 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject($aop_async) in AsyncAopIocLoader@16943134 [DEBUG] 11:46:09.169 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(zipDataJob) in AnnotationIocLoader(packages=[com.fatepress.pm25]) [DEBUG] 11:46:09.170 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(mainLauncher) in AnnotationIocLoader(packages=[com.fatepress.pm25]) [DEBUG] 11:46:09.172 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(timeModule) in AnnotationIocLoader(packages=[com.fatepress.pm25]) [DEBUG] 11:46:09.174 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(deleteDataJob) in AnnotationIocLoader(packages=[com.fatepress.pm25]) [DEBUG] 11:46:09.176 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(pm25DataJob) in AnnotationIocLoader(packages=[com.fatepress.pm25]) [DEBUG] 11:46:09.178 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(nbServletContextListener) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.179 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(swaggerInfo) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.181 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(nutFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.183 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(whaleFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.184 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(swaggerServletStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.186 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(nutFilterStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.187 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(whaleFilterStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.189 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(quartzStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.191 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(swagger) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.195 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'quartzStarter' from [app] [ERROR] 11:46:09.199 org.nutz.boot.NbApp.execute(NbApp.java:218) - something happen!! org.nutz.ioc.IocException: IocBean[quartzStarter] throw Exception when creating at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152) at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241) at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271) at org.nutz.boot.AppContext.getBeans(AppContext.java:330) at org.nutz.boot.AppContext.startServers(AppContext.java:304) at org.nutz.boot.NbApp.execute(NbApp.java:204) at org.nutz.boot.starter.servlet3.NbServletContextListener.contextInitialized(NbServletContextListener.java:55) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4627) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5091) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1858) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:772) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:426) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:966) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.startup.Catalina.start(Catalina.java:682) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492) Caused by: java.lang.RuntimeException: IocBean[quartzStarter] fail at field=[scheduler] at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40) at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67) at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138) ... 47 more Caused by: org.nutz.ioc.IocException: IocBean[class:org.quartz.Scheduler] none ioc bean match class=org.quartz.Scheduler at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:461) at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66) at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32) ... 49 more [DEBUG] 11:46:09.224 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'swaggerServletStarter'<interface org.nutz.boot.starter.WebServletFace> [DEBUG] 11:46:09.226 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - >> Load definition name=swaggerServletStarter [DEBUG] 11:46:09.228 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(swaggerServletStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.229 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'swaggerServletStarter'<interface org.nutz.boot.starter.WebServletFace> [DEBUG] 11:46:09.231 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'swaggerServletStarter' to [app] [DEBUG] 11:46:09.238 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.boot.starter.swagger.SwaggerServletStarter without AOP [DEBUG] 11:46:09.351 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy> [DEBUG] 11:46:09.353 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'appContext'<class org.nutz.boot.AppContext> [DEBUG] 11:46:09.371 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'nutFilterStarter'<interface org.nutz.boot.starter.WebFilterFace> [DEBUG] 11:46:09.372 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - >> Load definition name=nutFilterStarter [DEBUG] 11:46:09.374 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(nutFilterStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.375 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'nutFilterStarter'<interface org.nutz.boot.starter.WebFilterFace> [DEBUG] 11:46:09.377 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'nutFilterStarter' to [app] [DEBUG] 11:46:09.379 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.boot.starter.nutz.mvc.NutFilterStarter without AOP [DEBUG] 11:46:09.422 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy> [DEBUG] 11:46:09.424 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'appContext'<class org.nutz.boot.AppContext> [DEBUG] 11:46:09.426 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'whaleFilterStarter'<interface org.nutz.boot.starter.WebFilterFace> [DEBUG] 11:46:09.427 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - >> Load definition name=whaleFilterStarter [DEBUG] 11:46:09.429 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(whaleFilterStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.431 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'whaleFilterStarter'<interface org.nutz.boot.starter.WebFilterFace> [DEBUG] 11:46:09.433 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'whaleFilterStarter' to [app] [DEBUG] 11:46:09.435 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter without AOP [DEBUG] 11:46:09.475 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy> [DEBUG] 11:46:09.494 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter> [DEBUG] 11:46:09.495 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - >> Load definition name=whaleFilter [DEBUG] 11:46:09.497 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(whaleFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.498 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'whaleFilter'<class org.nutz.mvc.WhaleFilter> [DEBUG] 11:46:09.500 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'whaleFilter' to [app] [DEBUG] 11:46:09.512 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.mvc.WhaleFilter without AOP [DEBUG] 11:46:09.514 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'whaleFilterStarter'<> [DEBUG] 11:46:09.528 org.nutz.boot.starter.servlet3.NbServletContextListener.lambda$contextInitialized$2(NbServletContextListener.java:90) - add filter name=whale pathSpec=/* [DEBUG] 11:46:09.530 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter> [DEBUG] 11:46:09.533 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'nutFilter'<class org.nutz.mvc.NutFilter> [DEBUG] 11:46:09.534 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - >> Load definition name=nutFilter [DEBUG] 11:46:09.536 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(nutFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter]) [DEBUG] 11:46:09.537 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'nutFilter'<class org.nutz.mvc.NutFilter> [DEBUG] 11:46:09.539 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'nutFilter' to [app] [DEBUG] 11:46:09.546 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.mvc.NutFilter without AOP [DEBUG] 11:46:09.547 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'nutFilterStarter'<> [DEBUG] 11:46:09.549 org.nutz.boot.starter.servlet3.NbServletContextListener.lambda$contextInitialized$2(NbServletContextListener.java:90) - add filter name=nutz pathSpec=/* [DEBUG] 11:46:09.551 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'nutFilter'<class org.nutz.mvc.NutFilter> [DEBUG] 11:46:09.554 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'swaggerServletStarter'<interface org.nutz.boot.starter.WebServletFace> [INFO ] 11:46:09.599 org.nutz.mvc.NutFilter._init(NutFilter.java:85) - NutFilter[nutz] starting ... [DEBUG] 11:46:09.610 org.nutz.resource.Scans.printLocations(Scans.java:527) - Locations count=4 time use 1ms [DEBUG] 11:46:09.616 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:66) - Loading by class org.nutz.boot.starter.nutz.mvc.NbMvcLoading [INFO ] 11:46:09.635 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) - Nutz Version : 1.r.66-SNAPSHOT [INFO ] 11:46:09.636 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) - Nutz.Mvc[nutz] is initializing ... [DEBUG] 11:46:09.637 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) - Web Container Information: [DEBUG] 11:46:09.638 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) - - Default Charset : UTF-8 [DEBUG] 11:46:09.639 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) - - Current . path : /home/pi/opt/tomcat-9.0.8/bin/. [DEBUG] 11:46:09.640 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) - - Java Version : 1.8.0_161 [DEBUG] 11:46:09.641 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) - - File separator : / [DEBUG] 11:46:09.642 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) - - Timezone : Asia/Shanghai [DEBUG] 11:46:09.643 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) - - OS : Linux arm [DEBUG] 11:46:09.644 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) - - ServerInfo : Apache Tomcat/9.0.8 [DEBUG] 11:46:09.644 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) - - Servlet API : 4.0 [DEBUG] 11:46:09.645 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) - - ContextPath : /pm25 [DEBUG] 11:46:09.646 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) - - context.tempdir : /home/pi/opt/tomcat-9.0.8/work/Catalina/localhost/pm25 [DEBUG] 11:46:09.647 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) - - MainModule : com.fatepress.pm25.MainLauncher [DEBUG] 11:46:09.648 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:239) - >> app.root = /home/pi/opt/tomcat-9.0.8/apps/pm25 [INFO ] 11:46:09.659 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ... [DEBUG] 11:46:09.665 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:369) - @Views(DefaultViewMaker.class) [DEBUG] 11:46:09.679 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:267) - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker) [DEBUG] 11:46:09.700 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:155) - module class location 'file:/home/pi/opt/tomcat-9.0.8/apps/pm25/WEB-INF/classes/' [DEBUG] 11:46:09.701 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:185) - > scan 'com.fatepress.pm25' [DEBUG] 11:46:09.708 org.nutz.resource.Scans.scan(Scans.java:280) - Found 11 resource by src( com/fatepress/pm25/ ) , regex( ^.+[.]class$ ) [DEBUG] 11:46:09.714 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:204) - >> add 'com.fatepress.pm25.module.TimeModule' [DEBUG] 11:46:09.721 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:204) - >> add 'com.fatepress.pm25.MainLauncher' [DEBUG] 11:46:09.723 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:196) - Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer [INFO ] 11:46:09.768 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) - Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor [INFO ] 11:46:09.799 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) - Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor [DEBUG] 11:46:09.854 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) - '/' >> (MainLauncher.java:16).index : void | @Ok(->:/index.html) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8) [DEBUG] 11:46:09.863 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) - '/time/now' >> (TimeModule.java:22).now : long | @Ok(raw ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8) [INFO ] 11:46:09.865 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:221) - Found 2 module methods [DEBUG] 11:46:09.866 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:307) - Localization: org.nutz.mvc.impl.NutMessageLoader('locales/') dft<> [DEBUG] 11:46:09.875 org.nutz.resource.Scans.scan(Scans.java:280) - Found 0 resource by src( locales/ ) , regex( ^.+[.]properties$ ) [DEBUG] 11:46:09.876 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:27) - Load Messages in 0 resource : [[]] [DEBUG] 11:46:09.877 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:95) - Message Loaded, size = 0 [INFO ] 11:46:09.881 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) - Nutz.Mvc[nutz] is up in 234ms [INFO ] 11:46:09.882 org.nutz.mvc.NutFilter._init(NutFilter.java:125) - exclusionsPath = [/swagger/swagger.json] 28-May-2018 11:46:09.944 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/pi/opt/tomcat-9.0.8/apps/pm25.war] has finished in [9,479] ms 28-May-2018 11:46:09.953 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] 28-May-2018 11:46:09.980 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"] 28-May-2018 11:46:09.985 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 9689 ms
搞定
出错logger内容如下,如果使用 jar 方式运行项目的话运行正常