NutzCN Logo
问答 wk-nb-web-platform打成war包放到Tomcat启动报错Not running on Jetty, JSR-356 support unavailable
发布于 2040天前 作者 qq_0245abab 2353 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

错误日志:

 javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable
	at org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer.onStartup(WebSocketServerContainerInitializer.java:200)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5178)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

看过之前的解决方案说删除nutz-web依赖,但是我没找到这个依赖,刚接触这个框架,求指教,谢谢

33 回复

确保 MySql、Redis、Zookeeper 默认端口配置并已启动好
MySql 创建名为 nutzwk_nb 的空数据库,在每个NB(nutzboot缩写)模块启动时会自动建表,同时初始化数据
项目根目录执行 mvn clean install -Dmaven.test.skip=true
在单个NB模块下执行 mvn compile nutzboot:run 运行或 mvn package nutzboot:shade 生成可执行jar包
在项目根目录执行 mvn -Dnutzboot.dst=E:/dst clean package nutzboot:shade 可将所有可运行jar包生成到指定位置
启动顺序是 sys --> cms[可选] --> wx[可选] --> task[可选] --> web-platform 或 web-vue --> web-api[可选]
正常启动后访问 http://127.0.0.1:8080/sysadmin 用户名 superadmin 密码 1
框架详细介绍及代码生成器的使用等内容请仔细阅读 wk-wiki
若觉得项目复杂上手较难,可以从最简单的一个NB项目学起 wizzer.cn 源码
项目部署
内置配置文件启动 nohup java -jar wk-nb-service-sys.jar & 带参数 -Dnutz.profiles.active=prod 可加载 application-prod.properties 文件
外置配置文件启动 nohup java -Dnutz.boot.configure.properties.dir=/data/nutzwk/sys/ -jar wk-nb-service-sys.jar & 此时加载文件夹所有 *.properties 配置文件
生产环境可以使用 PythonWk 进行部署,登陆后台运维中心可在线更新jar包及配置文件等

https://github.com/Wizzercn/NutzWk

好的,我再检查一下环境配置

部署到tomcat的话, 要用starter-tomcat替代starter-jetty

好的,我试一下,谢谢您

我用starter-tomcat替代starter-jetty之后WkWebSocket.java里边报错无法导包,

用回jetty,用最新maven plugin快照版打包试试

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project wk-nb-web-platform: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

又报这个错,这里边不是没有web.xml么

待我重现一下

等等, 你用了war:war打包??

要用 nutzboot:war 呀

您指的是哪里, 我是把这个改成warwar,然后有那个问题,

刚才那个写错了,是这个

 <packaging>war</packaging>

不能改packaging

不能用war:war, 必须用clean package nutzboot:shade nutzboot:war

现在可以打包了,tomcat启动成功,但是访问不了,路径是这样写的http://localhost:8080/sysadmin

放在 webapps/ROOT.war 就是部署在根

不然还得加context path

放到ROOT目录下吗,这样没有解压啊

webapps目录下

是在这里边放着,刚才就是这样,也启动成功了,就是访问不了

日志贴一下看看

贴多最近的一点,太多了,键入http://localhost:8080/sysadmin的时候没有日志

[DEBUG] 15:28:11.934 [localhost-startStop-1] org.nutz.mvc.impl.UrlMappingImpl -    '/platform/cms/article/add/?' >> (CmsArticleController.java:111).add   : void       | @Ok(beetl:/platform/cms/article/add.html) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 15:28:11.934 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroUtil'<class cn.wizzer.app.web.commons.utils.ShiroUtil>
[DEBUG] 15:28:11.934 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'dateUtil'<class cn.wizzer.app.web.commons.utils.DateUtil>
[DEBUG] 15:28:11.934 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'stringUtil'<class cn.wizzer.app.web.commons.utils.StringUtil>
[DEBUG] 15:28:11.934 [localhost-startStop-1] org.nutz.mvc.impl.UrlMappingImpl -    '/platform/cms/article/delete/?', '/platform/cms/article/delete' >> (CmsArticleController.java:207).delete : Object     | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 15:28:11.934 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroUtil'<class cn.wizzer.app.web.commons.utils.ShiroUtil>
[DEBUG] 15:28:11.934 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'dateUtil'<class cn.wizzer.app.web.commons.utils.DateUtil>
[DEBUG] 15:28:11.935 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'stringUtil'<class cn.wizzer.app.web.commons.utils.StringUtil>
[DEBUG] 15:28:11.935 [localhost-startStop-1] org.nutz.mvc.impl.UrlMappingImpl -    '/platform/cms/article/tree/?' >> (CmsArticleController.java:73).tree   : Object     | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 15:28:11.935 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroUtil'<class cn.wizzer.app.web.commons.utils.ShiroUtil>
[DEBUG] 15:28:11.935 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'dateUtil'<class cn.wizzer.app.web.commons.utils.DateUtil>
[DEBUG] 15:28:11.935 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'stringUtil'<class cn.wizzer.app.web.commons.utils.StringUtil>
[DEBUG] 15:28:11.935 [localhost-startStop-1] org.nutz.mvc.impl.UrlMappingImpl -    '/platform/cms/article/data/?' >> (CmsArticleController.java:96).data   : Object     | @Ok(json:full) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 15:28:11.935 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroUtil'<class cn.wizzer.app.web.commons.utils.ShiroUtil>
[DEBUG] 15:28:11.935 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'dateUtil'<class cn.wizzer.app.web.commons.utils.DateUtil>
[DEBUG] 15:28:11.935 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'stringUtil'<class cn.wizzer.app.web.commons.utils.StringUtil>
[DEBUG] 15:28:11.937 [localhost-startStop-1] org.nutz.mvc.impl.UrlMappingImpl -    '/platform/cms/article/editdo' >> (CmsArticleController.java:157).editDo : Object     | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 15:28:11.938 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroUtil'<class cn.wizzer.app.web.commons.utils.ShiroUtil>
[DEBUG] 15:28:11.938 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'dateUtil'<class cn.wizzer.app.web.commons.utils.DateUtil>
[DEBUG] 15:28:11.938 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'stringUtil'<class cn.wizzer.app.web.commons.utils.StringUtil>
[DEBUG] 15:28:11.939 [localhost-startStop-1] org.nutz.mvc.impl.UrlMappingImpl -    '/platform/cms/article/addDo/?' >> (CmsArticleController.java:126).addDo : Object     | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 15:28:11.939 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroUtil'<class cn.wizzer.app.web.commons.utils.ShiroUtil>
[DEBUG] 15:28:11.939 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'dateUtil'<class cn.wizzer.app.web.commons.utils.DateUtil>
[DEBUG] 15:28:11.939 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'stringUtil'<class cn.wizzer.app.web.commons.utils.StringUtil>
[DEBUG] 15:28:11.939 [localhost-startStop-1] org.nutz.mvc.impl.UrlMappingImpl -    '/platform/cms/article/edit/?' >> (CmsArticleController.java:144).edit  : Object     | @Ok(beetl:/platform/cms/article/edit.html) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 15:28:11.939 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroUtil'<class cn.wizzer.app.web.commons.utils.ShiroUtil>
[DEBUG] 15:28:11.939 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'dateUtil'<class cn.wizzer.app.web.commons.utils.DateUtil>
[DEBUG] 15:28:11.939 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'stringUtil'<class cn.wizzer.app.web.commons.utils.StringUtil>
[DEBUG] 15:28:11.940 [localhost-startStop-1] org.nutz.mvc.impl.UrlMappingImpl -    '/platform/wx/tpl/log', '/platform/wx/tpl/log/index/?' >> (WxTplLogController.java:38).index    : void       | @Ok(beetl:/platform/wx/tpl/log/index.html) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 15:28:11.940 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroUtil'<class cn.wizzer.app.web.commons.utils.ShiroUtil>
[DEBUG] 15:28:11.940 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'dateUtil'<class cn.wizzer.app.web.commons.utils.DateUtil>
[DEBUG] 15:28:11.940 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'stringUtil'<class cn.wizzer.app.web.commons.utils.StringUtil>
[DEBUG] 15:28:11.940 [localhost-startStop-1] org.nutz.mvc.impl.UrlMappingImpl -    '/platform/wx/tpl/log/data' >> (WxTplLogController.java:50).data     : Object     | @Ok(json:full) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[INFO ] 15:28:11.940 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - Found 273 module methods
[DEBUG] 15:28:11.940 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - Localization: org.nutz.mvc.impl.NutMessageLoader('locales/')  dft<zh_CN>
[DEBUG] 15:28:11.942 [localhost-startStop-1] org.nutz.resource.Scans - Found 6 resource by src( locales/ ) , regex( ^.+[.]properties$ )
[DEBUG] 15:28:11.943 [localhost-startStop-1] org.nutz.mvc.impl.NutMessageLoader - Load Messages in 6 resource : [[File[D:\apache-tomcat-8.5.4\webapps\wk-nb-web-platform\WEB-INF\classes\locales\en_US\sys\role.properties], File[D:\apache-tomcat-8.5.4\webapps\wk-nb-web-platform\WEB-INF\classes\locales\en_US\sys\unit.properties], File[D:\apache-tomcat-8.5.4\webapps\wk-nb-web-platform\WEB-INF\classes\locales\en_US\system.properties], File[D:\apache-tomcat-8.5.4\webapps\wk-nb-web-platform\WEB-INF\classes\locales\zh_CN\sys\role.properties], File[D:\apache-tomcat-8.5.4\webapps\wk-nb-web-platform\WEB-INF\classes\locales\zh_CN\sys\unit.properties], File[D:\apache-tomcat-8.5.4\webapps\wk-nb-web-platform\WEB-INF\classes\locales\zh_CN\system.properties]]]
[DEBUG] 15:28:11.945 [localhost-startStop-1] org.nutz.mvc.impl.NutMessageLoader - Message Loaded, size = 3
[INFO ] 15:28:11.946 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - SessionBy --> org.nutz.integration.shiro.ShiroSessionProvider@4695a6cc
[INFO ] 15:28:11.947 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - Nutz.Mvc[nutz] is up in 614ms
16-Apr-2019 15:28:11.956 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive D:\apache-tomcat-8.5.4\webapps\wk-nb-web-platform.war has finished in 103,328 ms
16-Apr-2019 15:28:11.956 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\apache-tomcat-8.5.4\webapps\ROOT
16-Apr-2019 15:28:11.966 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\apache-tomcat-8.5.4\webapps\ROOT has finished in 10 ms
16-Apr-2019 15:28:11.968 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [http-nio-8080]
16-Apr-2019 15:28:11.973 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [ajp-nio-8009]
16-Apr-2019 15:28:11.974 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 103387 ms
[DEBUG] 15:28:24.565 [localhost-startStop-1-SendThread(activate.navicat.com:2181)] org.apache.zookeeper.ClientCnxn - Got ping response for sessionid: 0x16a2423139b0006 after 0ms
[DEBUG] 15:28:37.899 [localhost-startStop-1-SendThread(activate.navicat.com:2181)] org.apache.zookeeper.ClientCnxn - Got ping response for sessionid: 0x16a2423139b0006 after 0ms
[DEBUG] 15:28:51.233 [localhost-startStop-1-SendThread(activate.navicat.com:2181)] org.apache.zookeeper.ClientCnxn - Got ping response for sessionid: 0x16a2423139b0006 after 0ms
[DEBUG] 15:29:12.151 [NettyClientWorker-1-1] com.alibaba.dubbo.remoting.exchange.support.header.HeartbeatHandler -  [DUBBO] Received heartbeat from remote channel /192.168.116.1:10601, cause: The channel has no data-transmission exceeds a heartbeat period: 60000ms, dubbo version: , current host: 192.168.116.1

找找content path

访问 /platform/wx/tpl/log 能出log吗?

也不出日志,我看了一下打的war包里边的目录结构没有views, 打包只除了mvn clean package nutzboot:shade nutzboot:war 还需要其他步骤吗

找content path

找哪里边的额,没太明白

[INFO ] 12:28:02.895 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) - Nutz Version : 1.r.68-SNAPSHOT 
[INFO ] 12:28:02.895 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) - Nutz.Mvc[nutz] is initializing ...
[DEBUG] 12:28:02.895 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) - Web Container Information:
[DEBUG] 12:28:02.895 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) -  - Default Charset : UTF-8
[DEBUG] 12:28:02.895 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) -  - Current . path  : C:\Users\Administrator\workspace\git\github\nutzboot\nutzboot-demo\nutzboot-demo-simple\nutzboot-demo-simple-jetty\.
[DEBUG] 12:28:02.896 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) -  - Java Version    : 1.8.0_162
[DEBUG] 12:28:02.896 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) -  - File separator  : \
[DEBUG] 12:28:02.896 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) -  - Timezone        : Asia/Shanghai
[DEBUG] 12:28:02.896 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) -  - OS              : Windows 7 amd64
[DEBUG] 12:28:02.896 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) -  - ServerInfo      : jetty/9.4.15.v20190215
[DEBUG] 12:28:02.896 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) -  - Servlet API     : 3.1
[DEBUG] 12:28:02.896 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) -  - ContextPath     : 
[DEBUG] 12:28:02.896 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) -  - context.tempdir : C:\Users\Administrator\workspace\git\github\nutzboot\nutzboot-demo\nutzboot-demo-simple\nutzboot-demo-simple-jetty\temp
[DEBUG] 12:28:02.897 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) -  - MainModule      : io.nutz.demo.simple.MainLauncher

类似这种

[DEBUG] 16:10:04.298 [localhost-startStop-1] org.apache.shiro.config.Ini - Parsing [urls]
[DEBUG] 16:10:04.302 [localhost-startStop-1] org.apache.shiro.config.IniFactorySupport - Creating instance from Ini [sections=urls]
[DEBUG] 16:10:04.304 [localhost-startStop-1] org.apache.shiro.web.filter.mgt.DefaultFilterChainManager - Creating chain [/platform/doLogin] from String definition [anon]
[DEBUG] 16:10:04.304 [localhost-startStop-1] org.apache.shiro.web.filter.mgt.DefaultFilterChainManager - Attempting to apply path [/platform/doLogin] to filter [anon] with config [null]
[DEBUG] 16:10:04.305 [localhost-startStop-1] org.apache.shiro.web.filter.mgt.DefaultFilterChainManager - Creating chain [/assets/**] from String definition [anon]
[DEBUG] 16:10:04.305 [localhost-startStop-1] org.apache.shiro.web.filter.mgt.DefaultFilterChainManager - Attempting to apply path [/assets/**] to filter [anon] with config [null]
[DEBUG] 16:10:04.305 [localhost-startStop-1] org.apache.shiro.web.filter.mgt.DefaultFilterChainManager - Creating chain [/**] from String definition [anon]
[DEBUG] 16:10:04.306 [localhost-startStop-1] org.apache.shiro.web.filter.mgt.DefaultFilterChainManager - Attempting to apply path [/**] to filter [anon] with config [null]
[DEBUG] 16:10:04.306 [localhost-startStop-1] org.apache.shiro.web.filter.mgt.DefaultFilterChainManager - Creating chain [/platform/**] from String definition [platformAuthc]
[DEBUG] 16:10:04.306 [localhost-startStop-1] org.apache.shiro.web.filter.mgt.DefaultFilterChainManager - Attempting to apply path [/platform/**] to filter [platformAuthc] with config [null]
[DEBUG] 16:10:04.308 [localhost-startStop-1] org.apache.shiro.web.env.EnvironmentLoader - Published WebEnvironment as ServletContext attribute with name [org.apache.shiro.web.env.EnvironmentLoader.ENVIRONMENT_ATTRIBUTE_KEY]
[INFO ] 16:10:04.308 [localhost-startStop-1] org.apache.shiro.web.env.EnvironmentLoader - Shiro environment initialized in 674 ms.
[DEBUG] 16:10:04.310 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'whaleFilterStarter'<interface org.nutz.boot.starter.WebFilterFace>
[DEBUG] 16:10:04.310 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'nutFilterStarter'<interface org.nutz.boot.starter.WebFilterFace>
[DEBUG] 16:10:04.311 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroFilterStarter'<interface org.nutz.boot.starter.WebFilterFace>
[DEBUG] 16:10:04.311 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'routeFilterStarter'<interface org.nutz.boot.starter.WebFilterFace>
[DEBUG] 16:10:04.311 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc -          >> Load definition name=routeFilterStarter
[DEBUG] 16:10:04.312 [localhost-startStop-1] org.nutz.ioc.loader.combo.ComboIocLoader - Found IocObject(routeFilterStarter) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 16:10:04.313 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc -          >> Make...'routeFilterStarter'<interface org.nutz.boot.starter.WebFilterFace>
[DEBUG] 16:10:04.313 [localhost-startStop-1] org.nutz.ioc.impl.ScopeContext - Save object 'routeFilterStarter' to [app]
[DEBUG] 16:10:04.314 [localhost-startStop-1] org.nutz.ioc.aop.impl.DefaultMirrorFactory - Load class cn.wizzer.app.web.commons.filter.RouteFilterStarter without AOP
[DEBUG] 16:10:04.319 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[DEBUG] 16:10:04.319 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'appContext'<class org.nutz.boot.AppContext>
[DEBUG] 16:10:04.321 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
[DEBUG] 16:10:04.322 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc -          >> Load definition name=whaleFilter
[DEBUG] 16:10:04.323 [localhost-startStop-1] org.nutz.ioc.loader.combo.ComboIocLoader - Found IocObject(whaleFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 16:10:04.323 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc -          >> Make...'whaleFilter'<class org.nutz.mvc.WhaleFilter>
[DEBUG] 16:10:04.324 [localhost-startStop-1] org.nutz.ioc.impl.ScopeContext - Save object 'whaleFilter' to [app]
[DEBUG] 16:10:04.326 [localhost-startStop-1] org.nutz.ioc.aop.impl.DefaultMirrorFactory - Load class org.nutz.mvc.WhaleFilter without AOP
[DEBUG] 16:10:04.326 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'whaleFilterStarter'<>
[DEBUG] 16:10:04.327 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
[DEBUG] 16:10:04.327 [localhost-startStop-1] org.nutz.boot.starter.servlet3.NbServletContextListener - add filter name=whale pathSpec=/*
[DEBUG] 16:10:04.327 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'routeFilter'<class cn.wizzer.app.web.commons.filter.RouteFilter>
[DEBUG] 16:10:04.327 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc -          >> Load definition name=routeFilter
[DEBUG] 16:10:04.328 [localhost-startStop-1] org.nutz.ioc.loader.combo.ComboIocLoader - Found IocObject(routeFilter) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 16:10:04.328 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc -          >> Make...'routeFilter'<class cn.wizzer.app.web.commons.filter.RouteFilter>
[DEBUG] 16:10:04.328 [localhost-startStop-1] org.nutz.ioc.impl.ScopeContext - Save object 'routeFilter' to [app]
[DEBUG] 16:10:04.329 [localhost-startStop-1] org.nutz.ioc.aop.impl.DefaultMirrorFactory - Load class cn.wizzer.app.web.commons.filter.RouteFilter without AOP
[DEBUG] 16:10:04.329 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'routeFilterStarter'<>
[DEBUG] 16:10:04.329 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'routeFilter'<class cn.wizzer.app.web.commons.filter.RouteFilter>
[DEBUG] 16:10:04.329 [localhost-startStop-1] org.nutz.boot.starter.servlet3.NbServletContextListener - add filter name=routeFilterStarter pathSpec=/*
[DEBUG] 16:10:04.330 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroFilter'<class org.apache.shiro.web.servlet.ShiroFilter>
[DEBUG] 16:10:04.330 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc -          >> Load definition name=shiroFilter
[DEBUG] 16:10:04.330 [localhost-startStop-1] org.nutz.ioc.loader.combo.ComboIocLoader - Found IocObject(shiroFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 16:10:04.330 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc -          >> Make...'shiroFilter'<class org.apache.shiro.web.servlet.ShiroFilter>
[DEBUG] 16:10:04.330 [localhost-startStop-1] org.nutz.ioc.impl.ScopeContext - Save object 'shiroFilter' to [app]
[DEBUG] 16:10:04.331 [localhost-startStop-1] org.nutz.ioc.aop.impl.DefaultMirrorFactory - Load class org.apache.shiro.web.servlet.ShiroFilter without AOP
[DEBUG] 16:10:04.331 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroFilterStarter'<>
[DEBUG] 16:10:04.333 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'shiroFilter'<class org.apache.shiro.web.servlet.ShiroFilter>
[DEBUG] 16:10:04.335 [localhost-startStop-1] org.nutz.boot.starter.servlet3.NbServletContextListener - add filter name=shiro pathSpec=/*
[DEBUG] 16:10:04.335 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'nutFilter'<class org.nutz.mvc.NutFilter>
[DEBUG] 16:10:04.335 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc -          >> Load definition name=nutFilter
[DEBUG] 16:10:04.336 [localhost-startStop-1] org.nutz.ioc.loader.combo.ComboIocLoader - Found IocObject(nutFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 16:10:04.336 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc -          >> Make...'nutFilter'<class org.nutz.mvc.NutFilter>
[DEBUG] 16:10:04.336 [localhost-startStop-1] org.nutz.ioc.impl.ScopeContext - Save object 'nutFilter' to [app]
[DEBUG] 16:10:04.337 [localhost-startStop-1] org.nutz.ioc.aop.impl.DefaultMirrorFactory - Load class org.nutz.mvc.NutFilter without AOP
[DEBUG] 16:10:04.337 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'nutFilterStarter'<>
[DEBUG] 16:10:04.338 [localhost-startStop-1] org.nutz.resource.Scans - Found 1 resource by src( org/nutz/conf/NutzDefaultConfig.js ) , regex( \.(js|json)$ )
[DEBUG] 16:10:04.339 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get 'nutFilter'<class org.nutz.mvc.NutFilter>
[DEBUG] 16:10:04.339 [localhost-startStop-1] org.nutz.boot.starter.servlet3.NbServletContextListener - add filter name=nutz pathSpec=/*
[INFO ] 16:10:04.350 [localhost-startStop-1] org.nutz.mvc.NutFilter - NutFilter[nutz] starting ...
[DEBUG] 16:10:04.353 [localhost-startStop-1] org.nutz.resource.Scans - Locations count=4 time use 0ms
[DEBUG] 16:10:04.354 [localhost-startStop-1] org.nutz.mvc.config.AbstractNutConfig - Loading by class org.nutz.boot.starter.nutz.mvc.NbMvcLoading
[INFO ] 16:10:04.358 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - Nutz Version : 1.r.68-SNAPSHOT
[INFO ] 16:10:04.358 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - Nutz.Mvc[nutz] is initializing ...
[DEBUG] 16:10:04.359 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - Web Container Information:
[DEBUG] 16:10:04.359 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - Default Charset : GBK
[DEBUG] 16:10:04.359 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - Current . path  : D:\apache-tomcat-8.5.4\bin\.
[DEBUG] 16:10:04.360 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - Java Version    : 1.8.0_111
[DEBUG] 16:10:04.360 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - File separator  : \
[DEBUG] 16:10:04.360 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - Timezone        : Asia/Shanghai
[DEBUG] 16:10:04.360 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - OS              : Windows 10 amd64
[DEBUG] 16:10:04.361 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - ServerInfo      : Apache Tomcat/8.5.4
[DEBUG] 16:10:04.361 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - Servlet API     : 3.1
[DEBUG] 16:10:04.361 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - ContextPath     : /wk-nb-web-platform
[DEBUG] 16:10:04.361 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - context.tempdir : D:\apache-tomcat-8.5.4\work\Catalina\localhost\wk-nb-web-platform
[DEBUG] 16:10:04.362 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - MainModule      : cn.wizzer.app.web.commons.core.WebPlatformMainLauncher
[DEBUG] 16:10:04.363 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - >> app.root = D:/apache-tomcat-8.5.4/webapps/wk-nb-web-platform
[INFO ] 16:10:04.366 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[DEBUG] 16:10:04.367 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - add ViewMaker from Ioc by name=$views_beetl
[DEBUG] 16:10:04.367 [localhost-startStop-1] org.nutz.ioc.impl.NutIoc - Get '$views_beetl'<interface org.nutz.mvc.ViewMaker>
[DEBUG] 16:10:04.368 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading - @Views(BeetlViewMakerStarter.class,DefaultViewMaker.class)
[DEBUG] 16:10:04.373 [localhost-startStop-1] org.nutz.resource.Scans - Found 1 resource by src( chain/nutzwk-mvc-chain.json ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 16:10:04.375 [localhost-startStop-1] org.nutz.mvc.impl.chainconfig.JsonActionChainMakerConfiguretion - ActionChain Config:
[DEBUG] 16:10:04.361 [localhost-startStop-1] org.nutz.mvc.impl.NutLoading -  - ContextPath     : /wk-nb-web-platform

你的war没叫ROOT.war, 叫wk-nb-web-platform.war了?

所以你需要访问 /wk-nb-web-platform/sysadmin

把tomcat关掉, 清空D:/apache-tomcat-8.5.4/webapps/目录, 把war放进去, 名字叫ROOT.war

好了,真是这个原因,谢谢您了

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