NutzCN Logo
问答 打包build后,wkcache包不包含,导致运行报错!大牛指点一下!
发布于 26天前 作者 shuxinyun 152 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

打包过程都没有问题,就会运行网站的时候,出现错误,体会wkcache找不到!

31 回复

贴报错信息

ework.util.RSAUtil
[DEBUG] 2017-07-25 20:55:18,052 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class cn.wizzer.framework.util.Code128Util
[DEBUG] 2017-07-25 20:55:18,055 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class cn.wizzer.framework.util.ShiroUtil
[INFO ] 2017-07-25 20:55:18,058 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:52) - Found 191 classes in 1 base-packages!
beans = ["docTemplateServiceImpl", "wxTplListController", "uploadController", "wxReplyTxtServiceImpl", "docReceiveRelationServiceImpl", "wxReplyNewsServiceImpl", "sysLoginController", "wxTplLogServiceImpl", "docSettingPartServiceImpl", "sysUserServiceImpl", "dateUtil", "sysRoleServiceImpl", "qrcodeService", "sysRouteController", "docSendBodyController", "idcardUtil", "docReceiveHandleServiceImpl", "docTemplateNodesController", "docSendHandleServiceImpl", "docNodeEmployeeServiceImpl", "docSettingPlaceController", "docSendController", "utils", "docUnitServiceImpl", "docHandleController", "docSendHandleCommentServiceImpl", "cmsController", "cmsChannelServiceImpl", "docNodeConfigServiceImpl", "docReceiveHandleProcServiceImpl", "codebar", "cmsArticleController", "wxMenuController", "interfaceServiceImpl", "docUnitController", "docSendTargetServiceImpl", "docDocumentServiceImpl", "weixinController", "docReceiveFilesController", "orgEmployeeServiceImpl", "code128Util", "docSettingRuleServiceImpl", "wxMsgReplyServiceImpl", "docDocumentRepayingServiceImpl", "docReceiveHandleResultServiceImpl", "cmsLinkClassController", "docUnitSignServiceImpl", "docSendHandleController", "docSettingPlaceServiceImpl", "cmsArticleServiceImpl", "docSendHandleProcServiceImpl", "orgEmployeeUserController", "docSendHandleCommentController", "docPackageDocumentController", "docLetterSendServiceImpl", "docUnitEmployeeController", "wxReplyController", "docSendBodyServiceImpl", "docSendTargetController", "sysConfigServiceImpl", "docLetterSendController", "cookieUtil", "engineController", "docReceiveHandleController", "wxMsgServiceImpl", "docPackageDocumentServiceImpl", "docTemplateNodesServiceImpl", "wxPayBackController", "wxReplyServiceImpl", "currUser", "bdController", "redisIdGenerator", "sysTaskController", "cmsSiteController", "docSettingIdentityController", "sysDictServiceImpl", "docDocumentRelationController", "wxConfigServiceImpl", "docLetterReceiveServiceImpl", "apiTestController", "sysMenuController", "docReceiveHandleProcController", "cmsSiteServiceImpl", "docNodeSignServiceImpl", "orgDeptController", "cmsLinkController", "docNodeServiceImpl", "modelServiceImpl", "docDocumentRelationServiceImpl", "docNodeStatController", "sysRoleController", "docFlowServiceImpl", "orgDeptEmployeeServiceImpl", "docReceiveHandleResultController", "wechatController", "sysUnitController", "docUnitConfigServiceImpl", "wxMsgUserController", "docTemplateController", "sysDictController", "wxMassSendServiceImpl", "docUnitSignController", "docReceiveServiceImpl", "rSAUtil", "docReceiveFilesServiceImpl", "docPackageServiceImpl", "wxConfigController", "stringUtil", "docReceiveRelationController", "wxTplListServiceImpl", "tplService", "orgEmployeeUserServiceImpl", "sysPluginServiceImpl", "docNodeSignController", "wxUserServiceImpl", "docHandleServiceImpl", "docSendRelationServiceImpl", "docNodeEmployeeController", "docSendServiceImpl", "docDocumentController", "dynamicInterceptor", "nutShiroMethodInterceptor", "orgDeptEmployeeController", "sysLogController", "wxMassController", "emailService", "docSettingPartController", "wxMenuServiceImpl", "docNodeStatServiceImpl", "wxReplyNewsController", "cmsLinkClassServiceImpl", "sysRouteServiceImpl", "docReceiveHandleCommentServiceImpl", "sysHomeController", "docSettingIdentityServiceImpl", "docSendFilesController", "docLetterReceiveController", "wxMassNewsServiceImpl", "wxMassServiceImpl", "docSendHandleResultServiceImpl", "docPackageController", "docUnitConfigController", "sysMenuServiceImpl", "orgDeptServiceImpl", "wxHandler", "cmsChannelController", "wxController", "docSendHandleResultController", "docNodeConfigController", "docSettingRuleController", "docSettingWhiteServiceImpl", "docNodeController", "sysTaskServiceImpl", "rabbitProducer", "flowEngine", "sysLogServiceImpl", "docSendHandleProcController", "wxTplIdServiceImpl", "docSendFilesServiceImpl", "orgEmployeeController", "shiroUtil", "$aop_syslog", "docSettingWhiteController", "wxReplyTxtController", "docNodeAlertController", "sysPluginController", "httpRes", "docNodeAlertServiceImpl", "docDocumentRepayingController", "docUnitEmployeeServiceImpl", "wxTplLogController", "sysApiServiceImpl", "wxUserController", "docReceiveHandleCommentController", "wxPayTestController", "sLogService", "tokenController", "sysApiController", "cmsLinkServiceImpl", "docSendRelationController", "sysUnitServiceImpl", "wxTplIdController", "docDocumentCopyServiceImpl", "docDocumentCopyController", "docReceiveController", "sysUserController", "platformAuthorizingRealm", "sysConfController", "pluginMaster", "testJob", "$aop_1_plugin"]
[DEBUG] 2017-07-25 20:55:18,061 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:110) - found jedis -- org.nutz.integration.jedis.JedisIocLoader
[DEBUG] 2017-07-25 20:55:18,066 org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( org/nutz/integration/jedis/jedis.js ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 2017-07-25 20:55:18,067 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [org/nutz/integration/jedis/jedis.js]
[DEBUG] 2017-07-25 20:55:18,069 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 9 bean define from path=[org/nutz/integration/jedis/jedis.js] --> [redisService, jedisCluster, jedisClusterNodes, jedisClusterWrapper, pubSubService, jedisPoolConfig, jedisPool, jedisAgent, redis]
[DEBUG] 2017-07-25 20:55:18,079 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:40) - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
[DEBUG] 2017-07-25 20:55:18,084 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:110) - found quartz -- org.nutz.integration.quartz.QuartzIocLoader
[DEBUG] 2017-07-25 20:55:18,088 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 0 bean define from path=[] --> []
[DEBUG] 2017-07-25 20:55:18,113 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
[DEBUG] 2017-07-25 20:55:18,117 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:110) - found rabbitmq -- org.nutz.integration.rabbitmq.RabbitmqIocLoader
[DEBUG] 2017-07-25 20:55:18,120 org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( org/nutz/integration/rabbitmq/rabbitmq.js ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 2017-07-25 20:55:18,121 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [org/nutz/integration/rabbitmq/rabbitmq.js]
[DEBUG] 2017-07-25 20:55:18,122 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 2 bean define from path=[org/nutz/integration/rabbitmq/rabbitmq.js] --> [rabbitmq, rabbitmq_cf]
[ERROR] 2017-07-25 20:55:18,129 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:125) - Error happend during start serivce!
java.lang.RuntimeException: java.lang.ClassNotFoundException: wkcache
        at org.nutz.lang.Lang.wrapThrow(Lang.java:184)
        at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:23)
        at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:381)
        at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:103)
        at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
        at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
        at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
        at org.eclipse.jetty.servlet.FilterHolder.initialize(Unknown Source)
        at org.eclipse.jetty.servlet.ServletHandler.initialize(Unknown Source)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.startWebapp(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(Unknown Source)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(Unknown Source)
        at org.eclipse.jetty.servlet.ServletContextHandler.doStart(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(Unknown Source)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(Unknown Source)
        at org.eclipse.jetty.server.Server.start(Unknown Source)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(Unknown Source)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(Unknown Source)
        at org.eclipse.jetty.server.Server.doStart(Unknown Source)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
        at org.nutz.web.WebServer.run(Unknown Source)
        at org.nutz.web.WebLauncher.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: wkcache
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.nutz.lang.Lang.loadClass(Lang.java:2063)
        at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:116)
        at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:92)
        at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:20)
        ... 22 more
2017-07-25 20:55:18.193:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@5a8e6209{/,[file:///D:/git/Distributed/dst/tmp/webinf/, jar:file:///D:/git/Distributed/dst/nutzwk.jar!/],UNAVAILABLE}{/D:/git/Distributed/dst/nutzwk.jar}
org.nutz.mvc.LoadingException: java.lang.RuntimeException: java.lang.ClassNotFoundException: wkcache
        at org.nutz.mvc.LoadingException$FC$9a86caf9ff5d3b587784fcdf555a4a7d.invoke(LoadingException.java)
        at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
        at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
        at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
        at org.nutz.lang.Mirror.born(Mirror.java:990)
        at org.nutz.lang.Lang.wrapThrow(Lang.java:200)
        at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
        at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
        at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
        at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
        at org.eclipse.jetty.servlet.FilterHolder.initialize(Unknown Source)
        at org.eclipse.jetty.servlet.ServletHandler.initialize(Unknown Source)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.startWebapp(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(Unknown Source)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(Unknown Source)
        at org.eclipse.jetty.servlet.ServletContextHandler.doStart(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(Unknown Source)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(Unknown Source)
        at org.eclipse.jetty.server.Server.start(Unknown Source)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(Unknown Source)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(Unknown Source)
        at org.eclipse.jetty.server.Server.doStart(Unknown Source)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
        at org.nutz.web.WebServer.run(Unknown Source)
        at org.nutz.web.WebLauncher.main(Unknown Source)
Caused by:
java.lang.RuntimeException: java.lang.ClassNotFoundException: wkcache
        at org.nutz.lang.Lang.wrapThrow(Lang.java:184)
        at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:23)
        at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:381)
        at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:103)
        at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
        at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
        at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
        at org.eclipse.jetty.servlet.FilterHolder.initialize(Unknown Source)
        at org.eclipse.jetty.servlet.ServletHandler.initialize(Unknown Source)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.startWebapp(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(Unknown Source)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(Unknown Source)
        at org.eclipse.jetty.servlet.ServletContextHandler.doStart(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(Unknown Source)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(Unknown Source)
        at org.eclipse.jetty.server.Server.start(Unknown Source)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(Unknown Source)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(Unknown Source)
        at org.eclipse.jetty.server.Server.doStart(Unknown Source)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
        at org.nutz.web.WebServer.run(Unknown Source)
        at org.nutz.web.WebLauncher.main(Unknown Source)
Caused by:
java.lang.ClassNotFoundException: wkcache
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.nutz.lang.Lang.loadClass(Lang.java:2063)
        at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:116)
        at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:92)
        at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:20)
        at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:381)
        at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:103)
        at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
        at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
        at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
        at org.eclipse.jetty.servlet.FilterHolder.initialize(Unknown Source)
        at org.eclipse.jetty.servlet.ServletHandler.initialize(Unknown Source)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.startWebapp(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(Unknown Source)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(Unknown Source)
        at org.eclipse.jetty.servlet.ServletContextHandler.doStart(Unknown Source)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(Unknown Source)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(Unknown Source)
        at org.eclipse.jetty.server.Server.start(Unknown Source)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(Unknown Source)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(Unknown Source)
        at org.eclipse.jetty.server.Server.doStart(Unknown Source)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
        at org.nutz.web.WebServer.run(Unknown Source)
        at org.nutz.web.WebLauncher.main(Unknown Source)
17-07-25 20:55:18.197 WARN [main] Unknow error
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(Unknown Source)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.doStart(Unknown Source)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
        at org.eclipse.jetty.server.Server.doStart(Unknown Source)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
        at org.nutz.web.WebServer.run(Unknown Source)
        at org.nutz.web.WebLauncher.main(Unknown Source)

检查一下pom.xml里面wkcache的声明

 <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutz-integration-jedis</artifactId>
            <version>${nutz-version}</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutz-plugins-wkcache</artifactId>
            <version>${nutz-version}</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzwx</artifactId>
            <version>${nutz-version}</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutz-plugins-views</artifactId>
            <version>${nutz-version}</version>
            <exclusions>

这个pom.xml是刚下载下来的!

编译后WEB-INF\lib目录下就没有这个jar

如何打包的?

[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: d:\git\Distributed\wk-starter\target\wk-starter-4.0.1-SNAPS
HOT.jar
[INFO]
[INFO] --- maven-assembly-plugin:3.0.0:single (default-cli) @ wk-starter ---
[INFO] Building jar: d:\git\Distributed\wk-starter\target\wk-starter-4.0.1-SNAPS
HOT-jar-with-dependencies.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.926 s
[INFO] Finished at: 2017-07-25T20:40:55+08:00
[INFO] Final Memory: 30M/154M
[INFO] ------------------------------------------------------------------------
17-07-25 20:40:56.146 INFO [main] Select SystemLog as Nutz.Log implement
17-07-25 20:40:56.289 DEBUG [main] Using 95 castor for Castors
17-07-25 20:40:56.294 DEBUG [main] ["-inject", "ROOT.war", "-output", "nutzwk.ja
r"]

d:\git\Distributed>build.py
Traceback (most recent call last):
  File "D:\git\Distributed\build.py", line 7, in <module>
    shutil.rmtree("dst")
  File "C:\Users\shufu_000\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 494, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\Users\shufu_000\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 393, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\Users\shufu_000\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 391, in _rmtree_unsafe
    os.rmdir(path)
PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'dst'

d:\git\Distributed>build.py
Traceback (most recent call last):
  File "D:\git\Distributed\build.py", line 7, in <module>
    shutil.rmtree("dst")
  File "C:\Users\shufu_000\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 494, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\Users\shufu_000\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 393, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\Users\shufu_000\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 391, in _rmtree_unsafe
    os.rmdir(path)
PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'dst'

d:\git\Distributed>build.py
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] wk-app
[INFO] wk-web
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wk-app 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ wk-app ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ wk-app ---
[INFO] Installing d:\git\Distributed\wk-app\pom.xml to C:\Users\shufu_000\.m2\repository\cn\wizzer\app\wk-app\4.0.1-SNAPSHOT\wk-app-4.0.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wk-web 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ wk-web ---
[INFO] Deleting D:\git\Distributed\wk-app\wk-web\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ wk-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 74 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ wk-web ---
[INFO] Compiling 371 source files to D:\git\Distributed\wk-app\wk-web\target\classes
[INFO] /D:/git/Distributed/wk-app/wk-web/src/main/java/cn/wizzer/app/doc/modules/services/impl/DocReceiveHandleServiceImpl.java: 某些输入文件使用了未经检查或不 安全的操作。
[INFO] /D:/git/Distributed/wk-app/wk-web/src/main/java/cn/wizzer/app/doc/modules/services/impl/DocReceiveHandleServiceImpl.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ wk-web ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ wk-web ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ wk-web ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default) @ wk-web ---
[INFO] Building jar: D:\git\Distributed\wk-app\wk-web\target\nutzwk.jar
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ wk-web ---
[INFO] Packaging webapp
[INFO] Assembling webapp [wk-web] in [D:\git\Distributed\wk-app\wk-web\target\nutzwk]
[INFO] Processing war project
[INFO] Copying webapp webResources [D:\git\Distributed\wk-app\wk-web\src/main/resources] to [D:\git\Distributed\wk-app\wk-web\target\nutzwk]
[INFO] Copying webapp resources [D:\git\Distributed\wk-app\wk-web\src\main\webapp]
[INFO] Building jar: D:\git\Distributed\wk-app\wk-web\target\nutzwk\WEB-INF\lib\wk-web-4.0.1-SNAPSHOT.jar
[INFO] Webapp assembled in [3612 msecs]
[INFO] Building war: D:\git\Distributed\wk-app\wk-web\target\nutzwk.war
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ wk-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 74 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ wk-web ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ wk-web ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ wk-web ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ wk-web ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default) @ wk-web ---
[INFO] Building jar: D:\git\Distributed\wk-app\wk-web\target\nutzwk.jar
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ wk-web ---
[INFO] Packaging webapp
[INFO] Assembling webapp [wk-web] in [D:\git\Distributed\wk-app\wk-web\target\nutzwk]
[INFO] Processing war project
[INFO] Copying webapp webResources [D:\git\Distributed\wk-app\wk-web\src/main/resources] to [D:\git\Distributed\wk-app\wk-web\target\nutzwk]
[INFO] Copying webapp resources [D:\git\Distributed\wk-app\wk-web\src\main\webapp]
[INFO] Building jar: D:\git\Distributed\wk-app\wk-web\target\nutzwk\WEB-INF\lib\wk-web-4.0.1-SNAPSHOT.jar
[INFO] Webapp assembled in [2383 msecs]
[INFO] Building war: D:\git\Distributed\wk-app\wk-web\target\nutzwk.war
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ wk-web ---
[INFO] Installing D:\git\Distributed\wk-app\wk-web\target\nutzwk.war to C:\Users\shufu_000\.m2\repository\cn\wizzer\app\wk-web\4.0.1-SNAPSHOT\wk-web-4.0.1-SNAPSHOT.war
[INFO] Installing D:\git\Distributed\wk-app\wk-web\pom.xml to C:\Users\shufu_000\.m2\repository\cn\wizzer\app\wk-web\4.0.1-SNAPSHOT\wk-web-4.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] wk-app ............................................. SUCCESS [  0.380 s]
[INFO] wk-web ............................................. SUCCESS [ 25.445 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.977 s
[INFO] Finished at: 2017-07-25T20:57:08+08:00
[INFO] Final Memory: 24M/97M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wk-framework 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ wk-framework ---
[INFO] Deleting d:\git\Distributed\wk-framework\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ wk-framework ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory d:\git\Distributed\wk-framework\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ wk-framework ---
[INFO] Compiling 36 source files to d:\git\Distributed\wk-framework\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ wk-framework ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ wk-framework ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ wk-framework ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ wk-framework ---
[INFO] Building jar: d:\git\Distributed\wk-framework\target\wk-framework-4.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ wk-framework ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory d:\git\Distributed\wk-framework\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ wk-framework ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ wk-framework ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ wk-framework ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ wk-framework ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ wk-framework ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ wk-framework ---
[INFO] Installing d:\git\Distributed\wk-framework\target\wk-framework-4.0.1-SNAPSHOT.jar to C:\Users\shufu_000\.m2\repository\cn\wizzer\wk-framework\4.0.1-SNAPSHOT\wk-framework-4.0.1-SNAPSHOT.jar
[INFO] Installing d:\git\Distributed\wk-framework\pom.xml to C:\Users\shufu_000\.m2\repository\cn\wizzer\wk-framework\4.0.1-SNAPSHOT\wk-framework-4.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.346 s
[INFO] Finished at: 2017-07-25T20:57:14+08:00
[INFO] Final Memory: 19M/74M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wk-starter 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://jfrog.nutz.cn/artifactory/jcenter/org/nutz/nutz/1.r.61-SNAPSHOT/maven-metadata.xml
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.61-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.61-SNAPSHOT/maven-metadata.xml (967 B at 2.6 kB/s)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ wk-starter ---
[INFO] Deleting d:\git\Distributed\wk-starter\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ wk-starter ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory d:\git\Distributed\wk-starter\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ wk-starter ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ wk-starter ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ wk-starter ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ wk-starter ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ wk-starter ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: d:\git\Distributed\wk-starter\target\wk-starter-4.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-assembly-plugin:3.0.0:single (default-cli) @ wk-starter ---
[INFO] Building jar: d:\git\Distributed\wk-starter\target\wk-starter-4.0.1-SNAPSHOT-jar-with-dependencies.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.877 s
[INFO] Finished at: 2017-07-25T20:57:25+08:00
[INFO] Final Memory: 27M/125M
[INFO] ------------------------------------------------------------------------
17-07-25 20:57:26.381 INFO [main] Select SystemLog as Nutz.Log implement
17-07-25 20:57:26.489 DEBUG [main] Using 95 castor for Castors
17-07-25 20:57:26.492 DEBUG [main] ["-inject", "ROOT.war", "-output", "nutzwk.jar"]

d:\git\Distributed>

昨天请教你的这个问题,现在能build成功,就会运行不起来!

打开ROOT.war看看nutz-plugins-wkcache.jar是否存在

我解开了,看了里面没有!

我不打包,直接运行项目也没有这个包

wk-app和wk-web的pom.xml都打开看看,可能有两个wkcache依赖项

wk-app:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>wk-parent</artifactId>
        <groupId>cn.wizzer</groupId>
        <version>4.0.1-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <packaging>pom</packaging>
    <modules>
        <module>wk-web</module>
    </modules>
    <groupId>cn.wizzer.app</groupId>
    <artifactId>wk-app</artifactId>


</project>

wk-web

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>wk-app</artifactId>
        <groupId>cn.wizzer.app</groupId>
        <version>4.0.1-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <packaging>war</packaging>
    <artifactId>wk-web</artifactId>
    <dependencies>
        <dependency>
            <groupId>cn.wizzer</groupId>
            <artifactId>wk-framework</artifactId>
            <version>4.0.1-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>cn.wizzer</groupId>
            <artifactId>wk-code-generator</artifactId>
            <version>4.0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <build>
        <sourceDirectory>src/main/java</sourceDirectory>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*</include>
                </includes>
                <filtering>true</filtering>
            </resource>
        </resources>
        <finalName>nutzwk</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.0.2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <phase>prepare-package</phase>
                        <configuration>
                            <excludes>
                                <exclude>src/main/resources/**</exclude>
                            </excludes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <archiveClasses>true</archiveClasses>
                    <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
                    <warSourceExcludes>WEB-INF/classes/cn/**</warSourceExcludes>
                    <webResources>
                        <resource>
                            <directory>src/main/resources</directory>
                            <targetPath>WEB-INF/classes</targetPath>
                            <includes>
                                <include>**</include>
                            </includes>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>${jetty-version}</version>
                <configuration>
                    <httpConnector>
                        <port>8080</port>
                    </httpConnector>
                    <stopKey>shutdown</stopKey>
                    <stopPort>9966</stopPort>
                    <scanIntervalSeconds>5</scanIntervalSeconds>
                    <dumpOnStart>true</dumpOnStart>
                    <webApp>
                        <contextPath>/</contextPath>
                        <!--
                        <resourceBases>
                          <resourceBase>${project.basedir}/src/main/webapp</resourceBase>
                          <resourceBase>${project.basedir}/commons</resourceBase>
                        </resourceBases>
                        -->
                    </webApp>
                    <requestLog implementation="org.eclipse.jetty.server.NCSARequestLog">
                        <filename>target/access-yyyy_mm_dd.log</filename>
                        <filenameDateFormat>yyyy_MM_dd</filenameDateFormat>
                        <logDateFormat>yyyy-MM-dd HH:mm:ss</logDateFormat>
                        <logTimeZone>GMT+8:00</logTimeZone>
                        <append>true</append>
                        <logServer>true</logServer>
                        <retainDays>120</retainDays>
                        <logCookies>true</logCookies>
                    </requestLog>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

wk-starter

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
    <groupId>cn.wizzer</groupId>
    <artifactId>wk-starter</artifactId>
    <version>4.0.1-SNAPSHOT</version>
	<dependencies>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutz-web</artifactId>
			<version>1.r.61-SNAPSHOT</version>
			<exclusions>
				<exclusion>
					<groupId>org.ow2.asm</groupId>
					<artifactId>asm-commons</artifactId>
				</exclusion>
				<exclusion>
					<groupId>javax.annotation</groupId>
					<artifactId>javax.annotation-api</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.glassfish.web</groupId>
					<artifactId>javax.servlet.jsp</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.eclipse.jetty</groupId>
					<artifactId>jetty-jsp</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.glassfish</groupId>
					<artifactId>javax.el</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.eclipse.jetty.aggregate</groupId>
					<artifactId>jetty-all</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.ow2.asm</groupId>
					<artifactId>asm</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-webapp</artifactId>
			<version>9.4.2.v20170220</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jetty.websocket</groupId>
			<artifactId>javax-websocket-server-impl</artifactId>
			<version>9.4.2.v20170220</version>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutz</artifactId>
			<version>1.r.61-SNAPSHOT</version>
		</dependency>
	</dependencies>
	<build>
		<plugins>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
					<useIncrementalCompilation>false</useIncrementalCompilation>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>3.0.0</version>
				<configuration>
					<descriptorRefs>
						<descriptorRef>jar-with-dependencies</descriptorRef>
					</descriptorRefs>
					<archive>
						<manifest>
							<mainClass>org.nutz.web.WebLauncher</mainClass>
						</manifest>
					</archive>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>

wk-starter
这里会否要换成1.r.62

不要改东西.

先跟nutzwk根目录执行一次 mvn install, 然后python build.py

@wendal 非常感谢,这关过了!
执行后出现如下信息:

DEBUG] 2017-07-25 21:37:29,662 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) - Get 'dao'<interface org.nutz.dao.Dao>
TEMPLATE_LOAD_ERROR
        at org.beetl.core.resource.FileResource.openReader(FileResource.java:45)
        at org.beetl.core.GroupTemplate.loadTemplate(GroupTemplate.java:612)
        at org.beetl.core.GroupTemplate.getTemplateByLoader(GroupTemplate.java:562)
        at org.beetl.core.GroupTemplate.getTemplate(GroupTemplate.java:526)
        at org.beetl.ext.web.WebRender.render(WebRender.java:85)
        at org.beetl.ext.nutz.BeetlView.render(BeetlView.java:28)
        at org.nutz.mvc.view.ViewZone.render(ViewZone.java:53)
        at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:60)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at cn.wizzer.app.web.commons.processor.XssSqlFilterProcessor.process(XssSqlFilterProcessor.java:35)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at cn.wizzer.app.web.commons.processor.NutShiroProcessor.process(NutShiroProcessor.java:52)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at cn.wizzer.app.web.commons.processor.GlobalsSettingProcessor.process(GlobalsSettingProcessor.java:42)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:21)
        at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
        at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
        at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
        at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Unknown Source)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Unknown Source)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(Unknown Source)
        at org.eclipse.jetty.security.SecurityHandler.handle(Unknown Source)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(Unknown Source)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(Unknown Source)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(Unknown Source)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(Unknown Source)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(Unknown Source)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(Unknown Source)
        at org.eclipse.jetty.server.Dispatcher.forward(Unknown Source)
        at org.eclipse.jetty.server.Dispatcher.forward(Unknown Source)
        at cn.wizzer.app.web.commons.filter.RouteFilter.doFilter(RouteFilter.java:26)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Unknown Source)
        at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
        at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
        at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Unknown Source)
        at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(Unknown Source)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Unknown Source)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(Unknown Source)
        at org.eclipse.jetty.security.SecurityHandler.handle(Unknown Source)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(Unknown Source)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(Unknown Source)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(Unknown Source)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(Unknown Source)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(Unknown Source)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(Unknown Source)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(Unknown Source)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(Unknown Source)
        at org.eclipse.jetty.server.Server.handle(Unknown Source)
        at org.eclipse.jetty.server.HttpChannel.handle(Unknown Source)
        at org.eclipse.jetty.server.HttpConnection.onFillable(Unknown Source)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(Unknown Source)
        at org.eclipse.jetty.io.FillInterest.fillable(Unknown Source)
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(Unknown Source)
        at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Unknown Source)
        at org.eclipse.jetty.util.thread.strategy.ExecutingExecutionStrategy.invoke(Unknown Source)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(Unknown Source)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(Unknown Source)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(Unknown Source)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[DEBUG] 2017-07-25 21:37:30,103 org.beetl.ext.nutz.LogErrorHandler.processExcption(LogErrorHandler.java:32) -  妯℃澘鏍圭洰褰曚负 D:\git\Distributed\dst\tmp\webinf\WEB-INF\views
>>09:37:30:閿欐壘涓嶅埌鎸囧畾妯℃澘鎴栬€呭姞杞介敊(TEMPLATE_LOAD_ERROR): 浣嶄簬0琛?璧勬簮:/platform/sys/login.html 妯℃澘鏍圭洰褰曚负 D:\git\Distributed\dst\tmp\webinf\WEB-INF\views

[DEBUG] 2017-07-25 21:37:30,104 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/login 598ms
17-07-25 21:37:30.114 INFO [main] Server is up!
17-07-25 21:37:30.115 INFO [main] Create admin port at 8081
17-07-25 21:37:30.120 INFO [main] Local socket is up at :8081 with 1 action ready
17-07-25 21:37:30.133 DEBUG [main] Waiting for new socket

这个关于模板的错误,不知如何解决!导致views目录不存在,我复制过去了,这个网站一运行也会被删除!

这个我见过,写nutzcn的build.py的时候

beetl的WebAppResourceLoader并不能从war中取文件,导致打包成war而且不解压的时候就报错

这个得 @Wizzercn 来改一下才行了

再次谢谢 @wendal ,你的解答非常及时。

打包及启动命令

mvn -U clean install
python build.py
cd dst
java -Dfile.encoding=UTF-8 -jar nutzwk.jar

代码已更新

更新后,已经完美解决!谢谢了!

@wendal 经测试,非打包模式下,
RESOURCE_LOADER=org.beetl.core.resource.WebAppResourceLoader 才可以正常跑系统!

那就是WebAppResourceLoader2还没做对

@wendal 应该是如此的!现在只有手工切换一下了!

已提交修改,两种模式就测试了一下是ok的, 等10分钟更新一下maven快照库就行了

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