NutzCN Logo
问答 nutz quartz 没有执行
发布于 236天前 作者 qq_29e88355 264 次浏览 复制 上一个帖子 下一个帖子
标签:

2018-04-17 13:04:31,878 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:128) INFO - Starting Shiro environment initialization.
2018-04-17 13:04:31,910 org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:76) DEBUG - Checking any specified config locations.
2018-04-17 13:04:31,910 org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:81) DEBUG - No INI instance or config locations specified. Trying default config locations.
2018-04-17 13:04:31,915 org.apache.shiro.io.ResourceUtils.loadFromClassPath(ResourceUtils.java:159) DEBUG - Opening resource from class path [shiro.ini]
2018-04-17 13:04:31,919 org.apache.shiro.config.Ini.load(Ini.java:351) DEBUG - Parsing [main]
2018-04-17 13:04:31,919 org.apache.shiro.config.Ini.load(Ini.java:351) DEBUG - Parsing [urls]
2018-04-17 13:04:31,921 org.apache.shiro.web.env.IniWebEnvironment.getDefaultIni(IniWebEnvironment.java:136) DEBUG - Discovered non-empty INI configuration at location 'classpath:shiro.ini'. Using for configuration.
2018-04-17 13:04:31,926 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:122) DEBUG - Creating instance from Ini [sections=urls]
2018-04-17 13:04:32,106 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:122) DEBUG - Creating instance from Ini [sections=urls]
2018-04-17 13:04:32,109 org.apache.shiro.web.filter.mgt.DefaultFilterChainManager.createChain(DefaultFilterChainManager.java:127) DEBUG - Creating chain [/*] from String definition [anon]
2018-04-17 13:04:32,110 org.apache.shiro.web.filter.mgt.DefaultFilterChainManager.applyChainConfig(DefaultFilterChainManager.java:278) DEBUG - Attempting to apply path [/*] to filter [anon] with config [null]
2018-04-17 13:04:32,111 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:136) DEBUG - Published WebEnvironment as ServletContext attribute with name [org.apache.shiro.web.env.EnvironmentLoader.ENVIRONMENT_ATTRIBUTE_KEY]
2018-04-17 13:04:32,111 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:141) INFO - Shiro environment initialized in 224 ms.
2018-04-17 13:04:32,141 org.nutz.mvc.NutFilter._init(NutFilter.java:85) INFO - NutFilter[nutz] starting ...
2018-04-17 13:04:32,154 org.nutz.resource.Scans.printLocations(Scans.java:521) DEBUG - Locations count=5 time use 5ms
2018-04-17 13:04:32,158 org.nutz.resource.Scans.printLocations(Scans.java:521) DEBUG - Locations count=14 time use 3ms
2018-04-17 13:04:32,219 org.nutz.castor.Castors.reload(Castors.java:115) DEBUG - Using 95 castor for Castors
2018-04-17 13:04:32,242 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2018-04-17 13:04:32,245 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO - Nutz Version : 1.r.62
2018-04-17 13:04:32,245 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO - Nutz.Mvc[nutz] is initializing ...
2018-04-17 13:04:32,245 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG - - Default Charset : GBK
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG - - Current . path : D:\Work\Genuitec.
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG - - Java Version : 1.7.0_80
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG - - File separator : \
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG - - Timezone : Asia/Shanghai
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG - - OS : Windows 8.1 amd64
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG - - ServerInfo : Apache Tomcat/8.5.9
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG - - Servlet API : 3.1
2018-04-17 13:04:32,248 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG - - ContextPath : /nutzbook
2018-04-17 13:04:32,248 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG - - context.tempdir : D:\Work\Workspaces2017.metadata.me_tcat85\work\Catalina\localhost\nutzbook
2018-04-17 13:04:32,248 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG - - MainModule : net.wendal.nutzbook.MainModule
2018-04-17 13:04:32,249 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:235) DEBUG - >> app.root = D:/Work/Workspaces2017/.metadata/.me_tcat85/webapps/nutzbook
2018-04-17 13:04:32,251 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:376) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*org.nutz.integration.quartz.QuartzIocLoader"],init=[])
2018-04-17 13:04:32,308 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2018-04-17 13:04:32,309 org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:49) DEBUG - loading [dao.js]
2018-04-17 13:04:32,315 org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:57) DEBUG - Loaded 3 bean define from path=[ioc/] --> [dataSource, dao, conf]
2018-04-17 13:04:32,322 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 10 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2018-04-17 13:04:32,341 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class net.wendal.nutzbook.module.UserModule
2018-04-17 13:04:32,351 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class net.wendal.nutzbook.quartz.job.CleanNonActiveUserJob
2018-04-17 13:04:32,355 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class net.wendal.nutzbook.quartz.NutQuartzJobFactory
2018-04-17 13:04:32,359 org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:52) INFO - Found 3 classes in 1 base-packages!
beans = ["cleanNonActiveUserJob", "userModule", "nutQuartzJobFactory"]
2018-04-17 13:04:32,366 org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:40) DEBUG - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txREAD_COMMITTED, txNONE, txSERIALIZABLE, txREAD_UNCOMMITTED]
2018-04-17 13:04:32,372 org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:57) DEBUG - Loaded 0 bean define from path=[] --> []
2018-04-17 13:04:32,374 org.nutz.integration.quartz.QuartzIocLoader.(QuartzIocLoader.java:35) DEBUG - Quartz Ioc Define as:
{
"scheduler": {
"type": "org.quartz.Scheduler",
"factory": "org.quartz.impl.StdSchedulerFactory#getDefaultScheduler",
"events": {
"create": "start",
"depose": "shutdown"
},
"fields": {
"jobFactory": {
"refer": "jobFactory"
}
}
},
"jobFactory": {
"type": "org.nutz.integration.quartz.NutQuartzJobFactory",
"args": [{
"refer": "$ioc"
}]
},
"nutQuartzCronJobFactory": {
"type": "org.nutz.integration.quartz.NutQuartzCronJobFactory",
"events": {
"create": "init"
},
"fields": {
"scheduler": {
"refer": "scheduler"
},
"conf": {
"refer": "conf"
}
}
}
}
2018-04-17 13:04:32,375 org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:40) DEBUG - Loaded 3 bean define from reader --
[scheduler, nutQuartzCronJobFactory, jobFactory]
2018-04-17 13:04:32,378 org.nutz.ioc.impl.NutIoc.(NutIoc.java:98) INFO - NutIoc init begin ...
2018-04-17 13:04:32,382 org.nutz.ioc.impl.NutIoc.(NutIoc.java:115) INFO - ... NutIoc init complete
2018-04-17 13:04:32,386 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) INFO - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2018-04-17 13:04:32,390 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:366) DEBUG - @Views(DefaultViewMaker.class)
2018-04-17 13:04:32,399 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( mvc/nutzbook-mvc-chain.js ) , regex( ^(.+[.])(js|json)$ )
2018-04-17 13:04:32,402 org.nutz.mvc.impl.chainconfig.JsonActionChainMakerConfiguretion.(JsonActionChainMakerConfiguretion.java:37) DEBUG - ActionChain Config:
{
"default": {
"ps": ["net.wendal.nutzbook.mvc.LogTimeProcessor", "org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor", "org.nutz.mvc.impl.processor.EncodingProcessor", "org.nutz.mvc.impl.processor.ModuleProcessor", "org.nutz.mvc.impl.processor.ActionFiltersProcessor", "org.nutz.mvc.impl.processor.AdaptorProcessor", "org.nutz.mvc.impl.processor.MethodInvokeProcessor", "org.nutz.mvc.impl.processor.ViewProcessor"],
"error": "org.nutz.mvc.impl.processor.FailProcessor"
}
}
2018-04-17 13:04:32,402 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:263) DEBUG - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2018-04-17 13:04:32,406 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) DEBUG - module class location 'file:/D:/Work/Workspaces2017/.metadata/.me_tcat85/webapps/nutzbook/WEB-INF/classes/'
2018-04-17 13:04:32,407 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) DEBUG - > scan 'net.wendal.nutzbook'
2018-04-17 13:04:32,408 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 10 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2018-04-17 13:04:32,409 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG - >> add 'net.wendal.nutzbook.module.UserModule'
2018-04-17 13:04:32,509 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/error' >> (UserModule.java:137).error : void | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(jsp:jsp.500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,523 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/add' >> (UserModule.java:55).add : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,524 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/count' >> (UserModule.java:32).count : int | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,525 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/' >> (UserModule.java:100).index : void | @Ok(jsp:jsp.user.list) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,529 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/delete' >> (UserModule.java:80).delete : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,530 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/update' >> (UserModule.java:66).update : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,536 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/query' >> (UserModule.java:89).query : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,537 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/login' >> (UserModule.java:38).login : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,538 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/logout' >> (UserModule.java:50).logout : void | @Ok(>>:/ ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,539 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:217) INFO - Found 9 module methods
2018-04-17 13:04:32,539 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:303) DEBUG - Localization: org.nutz.mvc.impl.NutMessageLoader('msg/') dft
2018-04-17 13:04:32,542 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( msg/ ) , regex( ^.+[.]properties$ )
2018-04-17 13:04:32,543 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:27) DEBUG - Load Messages in 1 resource : [[File[D:\Work\Workspaces2017.metadata.me_tcat85\webapps\nutzbook\WEB-INF\classes\msg\zh-CN\user.properties]]]
2018-04-17 13:04:32,544 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:95) DEBUG - Message Loaded, size = 2
2018-04-17 13:04:32,547 org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:271) INFO - Setup application...
2018-04-17 13:04:32,550 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'nutQuartzJobFactory'<class net.wendal.nutzbook.quartz.NutQuartzJobFactory>
2018-04-17 13:04:32,553 org.nutz.ioc.aop.SimpleAopMaker.(SimpleAopMaker.java:79) DEBUG - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2018-04-17 13:04:32,554 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - >> Load definition name=nutQuartzJobFactory
2018-04-17 13:04:32,554 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(nutQuartzJobFactory) in AnnotationIocLoader(packages=[net.wendal.nutzbook])
2018-04-17 13:04:32,555 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - >> Make...'nutQuartzJobFactory'<class net.wendal.nutzbook.quartz.NutQuartzJobFactory>
2018-04-17 13:04:32,555 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class net.wendal.nutzbook.quartz.NutQuartzJobFactory without AOP
2018-04-17 13:04:32,556 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'nutQuartzJobFactory' to [app]
2018-04-17 13:04:32,561 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) INFO - Nutz.Mvc[nutz] is up in 313ms
四月 17, 2018 1:04:32 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Work\Workspaces2017.metadata.me_tcat85\webapps\nutzbook has finished in 2,625 ms
四月 17, 2018 1:04:32 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Work\Workspaces2017.metadata.me_tcat85\webapps\ROOT
四月 17, 2018 1:04:34 下午 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.
四月 17, 2018 1:04:34 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Work\Workspaces2017.metadata.me_tcat85\webapps\ROOT has finished in 1,552 ms
四月 17, 2018 1:04:34 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [http-nio-8080]
四月 17, 2018 1:04:34 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [ajp-nio-8009]
四月 17, 2018 1:04:34 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 8327 ms

12 回复

cron.properties没写对吧

编码信息也没改好

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 3 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
这么写就启动不起来
import org.nutz.integration.quartz.NutQuartzJobFactory;
import org.nutz.ioc.Ioc;
import org.nutz.mvc.NutConfig;
import org.nutz.mvc.Setup;

public class MainSetup implements Setup {

public void init(NutConfig conf) {
    Ioc ioc = conf.getIoc();

// ioc.get(Scheduler.class);
ioc.get(NutQuartzJobFactory.class);
}

public void destroy(NutConfig conf) {
}

}

commons-beanutils-1.6.1.jar
commons-logging-1.1.1.jar
log4j-1.2.17.jar
nutz-1.r.62.jar
nutz-integration-quartz-1.r.60.r2.jar
quartz-2.2.3.jar
shiro-all-1.3.2.jar
shiro-core-1.3.2.jar
slf4j-api-1.7.24.jar
slf4j-log4j12-1.7.24.jar

看到 "插入代码" 按钮没?

import org.nutz.dao.Dao;
import org.nutz.dao.util.Daos;
import org.nutz.ioc.Ioc;
import org.nutz.mvc.NutConfig;
import org.nutz.mvc.Setup;
import org.quartz.Scheduler;

public class MainSetup implements Setup {

	public void init(NutConfig conf) {
		Ioc ioc = conf.getIoc();
		
		
		// 鑾峰彇quartz鐨凷cheduler,杩欐牱灏辫嚜鍔ㄨЕ鍙戜簡璁″垝浠诲姟鐨勫惎鍔�
		ioc.get(Scheduler.class);
	}
	
	public void destroy(NutConfig conf) {
	}

}

上面这么写没问题
写成下面这样就没启动

import org.nutz.integration.quartz.NutQuartzJobFactory;
import org.nutz.ioc.Ioc;
import org.nutz.mvc.NutConfig;
import org.nutz.mvc.Setup;
import org.quartz.Scheduler;

public class MainSetup implements Setup {

	public void init(NutConfig conf) {
		Ioc ioc = conf.getIoc();
		
		
		// 鑾峰彇quartz鐨凷cheduler,杩欐牱灏辫嚜鍔ㄨЕ鍙戜簡璁″垝浠诲姟鐨勫惎鍔�
//		ioc.get(Scheduler.class);
		ioc.get(NutQuartzJobFactory.class);
	}
	
	public void destroy(NutConfig conf) {
	}

}

没问题?? 什么没问题??

第一段只是获取quartz的Schedule对象,并无触发nutz的集成代码,不知道你说的"没问题"是啥意思


2018-04-17 14:06:07,679 org.quartz.core.QuartzScheduler.initialize(QuartzScheduler.java:305) INFO - Scheduler meta-data: Quartz Scheduler (v2.2.3) 'NutzbookScheduler' 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 3 threads. Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. 2018-04-17 14:06:07,679 org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1327) INFO - Quartz scheduler 'NutzbookScheduler' initialized from default resource file in Quartz package: 'quartz.properties' 2018-04-17 14:06:07,679 org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1331) INFO - Quartz scheduler version: 2.2.3

这是正常启动的日志

我的意思是上面的代码可以正常启动
改成下面的就无法启动是什么原因,我跟着教程做的

贴无法启动时的日志

2018-04-17 13:04:31,878 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:128) INFO - Starting Shiro environment initialization.
2018-04-17 13:04:31,910 org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:76) DEBUG - Checking any specified config locations.
2018-04-17 13:04:31,910 org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:81) DEBUG - No INI instance or config locations specified. Trying default config locations.
2018-04-17 13:04:31,915 org.apache.shiro.io.ResourceUtils.loadFromClassPath(ResourceUtils.java:159) DEBUG - Opening resource from class path [shiro.ini]
2018-04-17 13:04:31,919 org.apache.shiro.config.Ini.load(Ini.java:351) DEBUG - Parsing [main]
2018-04-17 13:04:31,919 org.apache.shiro.config.Ini.load(Ini.java:351) DEBUG - Parsing [urls]
2018-04-17 13:04:31,921 org.apache.shiro.web.env.IniWebEnvironment.getDefaultIni(IniWebEnvironment.java:136) DEBUG - Discovered non-empty INI configuration at location 'classpath:shiro.ini'. Using for configuration.
2018-04-17 13:04:31,926 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:122) DEBUG - Creating instance from Ini [sections=urls]
2018-04-17 13:04:32,106 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:122) DEBUG - Creating instance from Ini [sections=urls]
2018-04-17 13:04:32,109 org.apache.shiro.web.filter.mgt.DefaultFilterChainManager.createChain(DefaultFilterChainManager.java:127) DEBUG - Creating chain [/*] from String definition [anon]
2018-04-17 13:04:32,110 org.apache.shiro.web.filter.mgt.DefaultFilterChainManager.applyChainConfig(DefaultFilterChainManager.java:278) DEBUG - Attempting to apply path [/*] to filter [anon] with config [null]
2018-04-17 13:04:32,111 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:136) DEBUG - Published WebEnvironment as ServletContext attribute with name [org.apache.shiro.web.env.EnvironmentLoader.ENVIRONMENT_ATTRIBUTE_KEY]
2018-04-17 13:04:32,111 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:141) INFO - Shiro environment initialized in 224 ms.
2018-04-17 13:04:32,141 org.nutz.mvc.NutFilter._init(NutFilter.java:85) INFO - NutFilter[nutz] starting ...
2018-04-17 13:04:32,154 org.nutz.resource.Scans.printLocations(Scans.java:521) DEBUG - Locations count=5 time use 5ms
2018-04-17 13:04:32,158 org.nutz.resource.Scans.printLocations(Scans.java:521) DEBUG - Locations count=14 time use 3ms
2018-04-17 13:04:32,219 org.nutz.castor.Castors.reload(Castors.java:115) DEBUG - Using 95 castor for Castors
2018-04-17 13:04:32,242 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2018-04-17 13:04:32,245 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO - Nutz Version : 1.r.62
2018-04-17 13:04:32,245 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO - Nutz.Mvc[nutz] is initializing ...
2018-04-17 13:04:32,245 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG - - Default Charset : GBK
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG - - Current . path : D:\Work\Genuitec.
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG - - Java Version : 1.7.0_80
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG - - File separator : \
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG - - Timezone : Asia/Shanghai
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG - - OS : Windows 8.1 amd64
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG - - ServerInfo : Apache Tomcat/8.5.9
2018-04-17 13:04:32,247 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG - - Servlet API : 3.1
2018-04-17 13:04:32,248 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG - - ContextPath : /nutzbook
2018-04-17 13:04:32,248 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG - - context.tempdir : D:\Work\Workspaces2017.metadata.me_tcat85\work\Catalina\localhost\nutzbook
2018-04-17 13:04:32,248 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG - - MainModule : net.wendal.nutzbook.MainModule
2018-04-17 13:04:32,249 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:235) DEBUG - >> app.root = D:/Work/Workspaces2017/.metadata/.me_tcat85/webapps/nutzbook
2018-04-17 13:04:32,251 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:376) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*org.nutz.integration.quartz.QuartzIocLoader"],init=[])
2018-04-17 13:04:32,308 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2018-04-17 13:04:32,309 org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:49) DEBUG - loading [dao.js]
2018-04-17 13:04:32,315 org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:57) DEBUG - Loaded 3 bean define from path=[ioc/] --> [dataSource, dao, conf]
2018-04-17 13:04:32,322 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 10 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2018-04-17 13:04:32,341 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class net.wendal.nutzbook.module.UserModule
2018-04-17 13:04:32,351 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class net.wendal.nutzbook.quartz.job.CleanNonActiveUserJob
2018-04-17 13:04:32,355 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class net.wendal.nutzbook.quartz.NutQuartzJobFactory
2018-04-17 13:04:32,359 org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:52) INFO - Found 3 classes in 1 base-packages!
beans = ["cleanNonActiveUserJob", "userModule", "nutQuartzJobFactory"]
2018-04-17 13:04:32,366 org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:40) DEBUG - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txREAD_COMMITTED, txNONE, txSERIALIZABLE, txREAD_UNCOMMITTED]
2018-04-17 13:04:32,372 org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:57) DEBUG - Loaded 0 bean define from path=[] --> []
2018-04-17 13:04:32,374 org.nutz.integration.quartz.QuartzIocLoader.(QuartzIocLoader.java:35) DEBUG - Quartz Ioc Define as:
{
 "scheduler": {
 "type": "org.quartz.Scheduler",
 "factory": "org.quartz.impl.StdSchedulerFactory#getDefaultScheduler",
 "events": {
 "create": "start",
 "depose": "shutdown"
 },
 "fields": {
 "jobFactory": {
 "refer": "jobFactory"
 }
 }
 },
 "jobFactory": {
 "type": "org.nutz.integration.quartz.NutQuartzJobFactory",
 "args": [{
 "refer": "$ioc"
 }]
 },
 "nutQuartzCronJobFactory": {
 "type": "org.nutz.integration.quartz.NutQuartzCronJobFactory",
 "events": {
 "create": "init"
 },
 "fields": {
 "scheduler": {
 "refer": "scheduler"
 },
 "conf": {
 "refer": "conf"
 }
 }
 }
}
2018-04-17 13:04:32,375 org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:40) DEBUG - Loaded 3 bean define from reader --
[scheduler, nutQuartzCronJobFactory, jobFactory]
2018-04-17 13:04:32,378 org.nutz.ioc.impl.NutIoc.(NutIoc.java:98) INFO - NutIoc init begin ...
2018-04-17 13:04:32,382 org.nutz.ioc.impl.NutIoc.(NutIoc.java:115) INFO - ... NutIoc init complete
2018-04-17 13:04:32,386 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) INFO - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2018-04-17 13:04:32,390 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:366) DEBUG - @Views(DefaultViewMaker.class)
2018-04-17 13:04:32,399 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( mvc/nutzbook-mvc-chain.js ) , regex( ^(.+[.])(js|json)$ )
2018-04-17 13:04:32,402 org.nutz.mvc.impl.chainconfig.JsonActionChainMakerConfiguretion.(JsonActionChainMakerConfiguretion.java:37) DEBUG - ActionChain Config:
{
 "default": {
 "ps": ["net.wendal.nutzbook.mvc.LogTimeProcessor", "org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor", "org.nutz.mvc.impl.processor.EncodingProcessor", "org.nutz.mvc.impl.processor.ModuleProcessor", "org.nutz.mvc.impl.processor.ActionFiltersProcessor", "org.nutz.mvc.impl.processor.AdaptorProcessor", "org.nutz.mvc.impl.processor.MethodInvokeProcessor", "org.nutz.mvc.impl.processor.ViewProcessor"],
 "error": "org.nutz.mvc.impl.processor.FailProcessor"
 }
}
2018-04-17 13:04:32,402 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:263) DEBUG - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2018-04-17 13:04:32,406 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) DEBUG - module class location 'file:/D:/Work/Workspaces2017/.metadata/.me_tcat85/webapps/nutzbook/WEB-INF/classes/'
2018-04-17 13:04:32,407 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) DEBUG - > scan 'net.wendal.nutzbook'
2018-04-17 13:04:32,408 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 10 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2018-04-17 13:04:32,409 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG - >> add 'net.wendal.nutzbook.module.UserModule'
2018-04-17 13:04:32,509 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/error' >> (UserModule.java:137).error : void | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(jsp:jsp.500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,523 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/add' >> (UserModule.java:55).add : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,524 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/count' >> (UserModule.java:32).count : int | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,525 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/' >> (UserModule.java:100).index : void | @Ok(jsp:jsp.user.list) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,529 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/delete' >> (UserModule.java:80).delete : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,530 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/update' >> (UserModule.java:66).update : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,536 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/query' >> (UserModule.java:89).query : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,537 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/login' >> (UserModule.java:38).login : Object | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,538 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG - '/user/logout' >> (UserModule.java:50).logout : void | @Ok(>>:/ ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-04-17 13:04:32,539 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:217) INFO - Found 9 module methods
2018-04-17 13:04:32,539 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:303) DEBUG - Localization: org.nutz.mvc.impl.NutMessageLoader('msg/') dft
2018-04-17 13:04:32,542 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( msg/ ) , regex( ^.+[.]properties$ )
2018-04-17 13:04:32,543 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:27) DEBUG - Load Messages in 1 resource : [[File[D:\Work\Workspaces2017.metadata.me_tcat85\webapps\nutzbook\WEB-INF\classes\msg\zh-CN\user.properties]]]
2018-04-17 13:04:32,544 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:95) DEBUG - Message Loaded, size = 2
2018-04-17 13:04:32,547 org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:271) INFO - Setup application...
2018-04-17 13:04:32,550 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'nutQuartzJobFactory'<class net.wendal.nutzbook.quartz.NutQuartzJobFactory>
2018-04-17 13:04:32,553 org.nutz.ioc.aop.SimpleAopMaker.(SimpleAopMaker.java:79) DEBUG - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2018-04-17 13:04:32,554 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - >> Load definition name=nutQuartzJobFactory
2018-04-17 13:04:32,554 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(nutQuartzJobFactory) in AnnotationIocLoader(packages=[net.wendal.nutzbook])
2018-04-17 13:04:32,555 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - >> Make...'nutQuartzJobFactory'<class net.wendal.nutzbook.quartz.NutQuartzJobFactory>
2018-04-17 13:04:32,555 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class net.wendal.nutzbook.quartz.NutQuartzJobFactory without AOP
2018-04-17 13:04:32,556 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'nutQuartzJobFactory' to [app]
2018-04-17 13:04:32,561 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) INFO - Nutz.Mvc[nutz] is up in 313ms
四月 17, 2018 1:04:32 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Work\Workspaces2017.metadata.me_tcat85\webapps\nutzbook has finished in 2,625 ms
四月 17, 2018 1:04:32 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Work\Workspaces2017.metadata.me_tcat85\webapps\ROOT
四月 17, 2018 1:04:34 下午 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.
四月 17, 2018 1:04:34 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Work\Workspaces2017.metadata.me_tcat85\webapps\ROOT has finished in 1,552 ms
四月 17, 2018 1:04:34 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [http-nio-8080]
四月 17, 2018 1:04:34 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [ajp-nio-8009]
四月 17, 2018 1:04:34 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 8327 ms

信息: Deployment of web application directory D:\Work\Workspaces2017.metadata.me_tcat85\webapps\nutzbook has finished in 2,625 ms

这是启动成功了,为啥你说无法启动?

正如我开头说的,检查cron.properties

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