直接上日志吧,不清楚的再补:
这是eclipse中的运行日志:
19:50:56.081 [main] DEBUG org.nutz.resource.Scans - Found 28 resource by src( config/ ) , regex( ^.+[.]js$ )
19:50:56.081 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/server/monitor.js
19:50:56.081 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/storage-cas.js
19:50:56.082 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/afp/indexds.js
19:50:56.082 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/monitor.js
19:50:56.082 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/handler.js
19:50:56.082 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/afp/util.js
19:50:56.082 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/loader.js
19:50:56.082 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/server/util.js
19:50:56.082 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/afp/launch.js
19:50:56.082 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/datasource.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/storage.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/storage-config.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/runner.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/server/indexds.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/server/data.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/job.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/taskflow.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/server/index.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/afp/index.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/task.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/server/launch.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/server/datasource.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/comm.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/server/service.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/server/comm.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/afp/service.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/afp/data.js
19:50:56.083 [main] DEBUG org.nutz.ioc.ObjectFactory - 获取配置文件:config/aff/util.js
这是打包出来运行的日志:
2017-01-06 20:06:23,052 DEBUG [main] o.n.r.Scans#log [84] Locations for Scans:
[JarResourceLocation [jarPath=lib\seas-timer-1.0.0-SNAPSHOT.jar], JarResourceLocation [jarPath=lib\afp-service-3.3.0.jar], JarResourceLocation [jarPath=lib\aff-store-config-3.3.0.jar], JarResourceLocation [jarPath=lib\slf4j-api-1.6.2.jar], JarResourceLocation [jarPath=lib\gtp-1.0.0-SNAPSHOT.jar], JarResourceLocation [jarPath=lib\nutz-core-1.48.2-SNAPSHOT.jar], JarResourceLocation [jarPath=lib\sigar-1.6.4.jar], JarResourceLocation [jarPath=lib\ucs-adapter-1.1.0.jar], JarResourceLocation [jarPath=lib\afp-api-model-3.3.0.jar], JarResourceLocation [jarPath=lib\aff-client-3.3.0.jar], JarResourceLocation [jarPath=lib\common-util-1.1.0-SNAPSHOT.jar], JarResourceLocation [jarPath=lib\aff-plugin-base-3.3.0.jar], FileSystemResourceLocation [root=D:\aff-server-3.3.0\config], JarResourceLocation [jarPath=lib\aff-afpproxy-3.3.0.jar], JarResourceLocation [jarPath=lib\log4j-1.2.15.jar], JarResourceLocation [jarPath=lib\jdbc-driver-14.jar], JarResourceLocation [jarPath=lib\monitor-1.0.0-SNAPSHOT.jar], JarResourceLocation [jarPath=lib\aff-server-3.3.0.jar], JarResourceLocation [jarPath=lib\afp-data-3.3.0.jar], JarResourceLocation [jarPath=lib\druid-0.2.19.jar], JarResourceLocation [jarPath=lib\aff-plugin-3.3.0.jar], JarResourceLocation [jarPath=lib\afp-model-3.3.0.jar], JarResourceLocation [jarPath=lib\afp-api-3.3.0.jar], JarResourceLocation [jarPath=lib\logback-classic-0.9.30.jar], JarResourceLocation [jarPath=lib\aff-store-cas-1.2.0-SNAPSHOT.jar], JarResourceLocation [jarPath=file:/D:/aff-server-3.3.0/lib/nutz-core-1.48.2-SNAPSHOT.jar], JarResourceLocation [jarPath=lib\junit-4.8.1.jar], JarResourceLocation [jarPath=lib\common-pa-1.0.0-SNAPSHOT.jar], JarResourceLocation [jarPath=lib\lucene-core-3.5.0.jar], JarResourceLocation [jarPath=lib\aff-store-3.3.0.jar], JarResourceLocation [jarPath=lib\sdts-client-2831.jar], JarResourceLocation [jarPath=lib\logback-core-0.9.30.jar], FileSystemResourceLocation [root=D:\aff-server-3.3.0], JarResourceLocation [jarPath=lib\p2000-api-1.1.0.jar], JarResourceLocation [jarPath=lib\afp-server-3.3.0.jar], JarResourceLocation [jarPath=lib\jdom-1.1.jar], JarResourceLocation [jarPath=lib\xstream-1.4.3.jar], JarResourceLocation [jarPath=lib\xpp3_min-1.1.4c.jar], JarResourceLocation [jarPath=lib\nutz-dao-1.48.2-SNAPSHOT.jar], JarResourceLocation [jarPath=lib\xmlpull-1.1.3.1.jar], JarResourceLocation [jarPath=lib\afp-index-3.3.0.jar], JarResourceLocation [jarPath=lib\gcf-1.3.0-SNAPSHOT.jar]]
2017-01-06 20:06:23,090 DEBUG [main] o.n.r.Scans#log [84] Found 47 resource by src( config/ ) , regex( ^.+[.]js$ )
2017-01-06 20:06:23,092 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/task.js
2017-01-06 20:06:23,095 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/storage-cas.js
2017-01-06 20:06:23,097 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/handler.js
2017-01-06 20:06:23,100 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/task.js
2017-01-06 20:06:23,103 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/indexds.js
2017-01-06 20:06:23,106 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/index.js
2017-01-06 20:06:23,109 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/service.js
2017-01-06 20:06:23,111 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/taskflow.js
2017-01-06 20:06:23,114 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/taskflow.js
2017-01-06 20:06:23,117 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/service.js
2017-01-06 20:06:23,120 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/datasource.js
2017-01-06 20:06:23,123 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/storage-cas.js
2017-01-06 20:06:23,126 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/storage-config.js
2017-01-06 20:06:23,129 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/comm.js
2017-01-06 20:06:23,132 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/loader.js
2017-01-06 20:06:23,135 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/job.js
2017-01-06 20:06:23,138 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/data.js
2017-01-06 20:06:23,140 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/server/monitor.js
2017-01-06 20:06:23,143 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/storage.js
2017-01-06 20:06:23,146 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/util.js
2017-01-06 20:06:23,149 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/server/util.js
2017-01-06 20:06:23,152 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/launch.js
2017-01-06 20:06:23,155 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/storage.js
2017-01-06 20:06:23,157 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/server/index.js
2017-01-06 20:06:23,160 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/server/service.js
2017-01-06 20:06:23,163 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/loader.js
2017-01-06 20:06:23,166 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/server/indexds.js
2017-01-06 20:06:23,169 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/server/data.js
2017-01-06 20:06:23,172 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/server/datasource.js
2017-01-06 20:06:23,175 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/monitor.js
2017-01-06 20:06:23,177 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/indexds.js
2017-01-06 20:06:23,180 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/launch.js
2017-01-06 20:06:23,183 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/job.js
2017-01-06 20:06:23,186 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/index.js
2017-01-06 20:06:23,188 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/server/comm.js
2017-01-06 20:06:23,191 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/server/launch.js
2017-01-06 20:06:23,194 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/data.js
2017-01-06 20:06:23,197 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/handler.js
2017-01-06 20:06:23,199 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/runner.js
2017-01-06 20:06:23,202 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/monitor.js
2017-01-06 20:06:23,205 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/runner.js
2017-01-06 20:06:23,208 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/storage-config.js
2017-01-06 20:06:23,210 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/datasource.js
2017-01-06 20:06:23,213 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/util.js
2017-01-06 20:06:23,216 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/util.js
2017-01-06 20:06:23,219 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/aff/comm.js
2017-01-06 20:06:23,222 DEBUG [main] o.n.i.ObjectFactory#log [84] 获取配置文件:config/afp/util.js
----------------------------------------------------
扫描的配置文件个数都不一样...eclipse里边是正确的,程序能正常运行