NutzCN Logo
问答 web.properties设置端口,build.py打包后运行不起作用
发布于 2497天前 作者 shuxinyun 1839 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

配制为:

# 应用的WebContent目录
app-root=src/main/webapp
# 应用的端口号
app-port=8082
# 应该管理端口(一般用来关闭服务)
admin-port=8083

打包后运行为:

[DEBUG] 2018-01-13 17:29:27,725 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/ 401ms
[DEBUG] 2018-01-13 17:29:27,740 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) - Search mapping for [GET] path=/login : NOT Action match
18-01-13 17:29:27.756 INFO [main] Server is up!
18-01-13 17:29:27.756 INFO [main] Create admin port at 8081
18-01-13 17:29:27.756 INFO [main] Local socket is up at :8081 with 1 action ready
18-01-13 17:29:27.756 DEBUG [main] Waiting for new socket

41 回复

不起作用是什么意思

就是我配制了web端口为8082,build.py后运行包,网站还是8080!没有变成8082端口

build.py后,包里面的web.properties配制信息是8082,好像nutz-web没有读这个配制文件

web.properties放在什么地方了

src/main/resources/web.properties
原项目下载后,位置没有变化的!

打包后的web.properties文件在webinf\WEB-INF\classes下面

得放在jar包根目录

可能是nutz-web的bug,没扫描到

手动放呀,这个是否应该修改一下!

放到根目录也不行

放在jar所在的目录

就是把web.properties放到与打包后的jar同一目录下呀,没有读取到.

启动日志前20行贴一下看看


D:\working\farshine\document\dst>cd D:\working\farshine\document\dst\ D:\working\farshine\document\dst>set path=jre\bin D:\working\farshine\document\dst>java -Dfile.encoding=GBK -jar engine.jar 18-01-13 20:48:48.521 INFO [main] Select SystemLog as Nutz.Log implement 2018-01-13 20:48:48.950:INFO::main: Logging initialized @783ms to org.eclipse.jetty.util.log.StdErrLog 18-01-13 20:48:49.031 DEBUG [main] war path : /D:/working/farshine/document/dst/engine.jar 18-01-13 20:48:49.451 INFO [main] init websocket context success 2018-01-13 20:48:49.455:INFO:oejs.Server:main: jetty-9.4.z-SNAPSHOT 2018-01-13 20:48:59.591:INFO:oeja.AnnotationConfiguration:main: Scanning elapsed time=5866ms 2018-01-13 20:49:00.049:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0 2018-01-13 20:49:00.050:INFO:oejs.session:main: No SessionScavenger set, using defaults 2018-01-13 20:49:00.056:INFO:oejs.session:main: Scavenging every 660000ms 2018-01-13 20:49:02.701:INFO:oejC.1563da5:main: Initializing Shiro environment [DEBUG] 2018-01-13 20:49:02,811 org.apache.shiro.io.ResourceUtils.loadFromClassPath(ResourceUtils.java:159) - Opening resource from class path [shiro.ini] [DEBUG] 2018-01-13 20:49:02,853 org.apache.shiro.config.Ini.load(Ini.java:342) - Parsing [main] [DEBUG] 2018-01-13 20:49:02,866 org.apache.shiro.config.Ini.load(Ini.java:342) - Parsing [urls] [DEBUG] 2018-01-13 20:49:02,892 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:122) - Creating instance from Ini [sections=main,urls]
rror(DefaultMirrorFactory.java:76) - Load class cn.wizzer.app.doc.modules.services.impl.DocSettingPrinterServiceImpl without AOP
[DEBUG] 2018-01-13 20:49:27,952 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'dao'<>
[DEBUG] 2018-01-13 20:49:27,964 org.nutz.service.EntityService.<init>(EntityService.java:41) - Get TypeParams for self : cn.wizzer.app.doc.modules.models.Doc_setting_printer
[DEBUG] 2018-01-13 20:49:27,967 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) - name=sysDictService not found, search for type=cn.wizzer.app.sys.modules.services.SysDictService
[DEBUG] 2018-01-13 20:49:27,969 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(videoUpload) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,970 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(conf) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,971 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(uploadVideoContext) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,971 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(imageUpload) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,972 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(fileUpload) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,973 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(cacheManager) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,974 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(dao) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,978 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(cacheProvider) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,996 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(uploadFileContext) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,997 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(cacheExecutor) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,997 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(tmpFilePool) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,998 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(uploadImageContext) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:27,999 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(dataSource) in JsonLoader(paths=[config/ioc/])
[DEBUG] 2018-01-13 20:49:28,000 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docManageQueryServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,001 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docTemplateServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,001 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(uploadController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,002 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docReceiveRelationServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,003 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(sysLoginController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,005 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docCopyServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,006 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSettingPartServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,006 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(sysUserServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,007 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(dateUtil) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,007 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(sysRoleServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,008 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(qrcodeService) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,009 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docManageQueryController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,009 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSettingPrinterServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,010 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(sysRouteController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,011 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSendBodyController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,011 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(idcardUtil) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,012 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docReceiveHandleServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,013 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docTemplateNodesController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,015 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSendHandleServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,016 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docNodeEmployeeServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,017 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSettingPlaceController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,018 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSendController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,019 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(utils) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,020 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docUnitServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,021 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docHandleController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,021 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docNodeConfigServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,022 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docReceiveHandleProcServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,028 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(codebar) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,029 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(interfaceServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,031 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docUnitController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,032 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSendTargetServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,034 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docDocumentServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,035 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docReceiveFilesController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,036 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSettingBoxServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,037 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(orgEmployeeServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,037 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docDocumentCommentServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,039 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(code128Util) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,040 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSettingRuleServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,041 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docDocumentRepayingServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,042 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docReceiveHandleResultServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,044 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(barcodeController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,048 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docUnitSignServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,048 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSendHandleController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,049 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSettingPlaceServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,050 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docStampServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,051 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docTemplateUnitsController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,052 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSendHandleProcServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,055 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(orgEmployeeUserController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,056 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSettingCabinetServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,056 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docPackageDocumentController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,057 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docLetterSendServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,058 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docNodeAdminServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,059 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docUnitEmployeeController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,059 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSendBodyServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,060 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSendTargetController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,061 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(sysConfigServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,065 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docLetterSendController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,066 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(cookieUtil) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,067 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(engineController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,068 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docReceiveHandleController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,068 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docPackageDocumentServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,069 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docTemplateNodesServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,070 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(sysIdentifierServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,071 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(currUser) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,072 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(bdController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,073 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(redisIdGenerator) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,075 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(sysTaskController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,076 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docHomeController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,076 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(docSettingIdentityController) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,077 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(sysDictServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,079 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'sysDictServiceImpl'<interface cn.wizzer.app.sys.modules.services.SysDictService>
[DEBUG] 2018-01-13 20:49:28,079 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:190) -          >> Load definition name=sysDictServiceImpl
[DEBUG] 2018-01-13 20:49:28,080 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(sysDictServiceImpl) in AnnotationIocLoader(packages=[cn.wizzer])
[DEBUG] 2018-01-13 20:49:28,082 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:221) -          >> Make...'sysDictServiceImpl'<interface cn.wizzer.app.sys.modules.services.SysDictService>
[DEBUG] 2018-01-13 20:49:28,083 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'sysDictServiceImpl' to [app]
[DEBUG] 2018-01-13 20:49:28,085 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'dao'<>
[DEBUG] 2018-01-13 20:49:28,086 cn.wizzer.app.web.commons.plugin.PluginAopConfigure.getInterceptorPairList(PluginAopConfigure.java:33) - skip -- cn.wizzer.app.sys.modules.services.impl.SysDictServiceImpl
[DEBUG] 2018-01-13 20:49:28,087 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'txREAD_COMMITTED'<interface org.nutz.aop.MethodInterceptor>
[DEBUG] 2018-01-13 20:49:28,088 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'txREAD_COMMITTED'<interface org.nutz.aop.MethodInterceptor>
[DEBUG] 2018-01-13 20:49:28,096 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'dao'<>
[DEBUG] 2018-01-13 20:49:28,123 org.nutz.service.EntityService.<init>(EntityService.java:41) - Get TypeParams for self : cn.wizzer.app.sys.modules.models.Sys_dict
[DEBUG] 2018-01-13 20:49:28,126 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'currUser'<class cn.wizzer.app.web.commons.helper.CurrUser>
[DEBUG] 2018-01-13 20:49:28,127 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'currUser'<class cn.wizzer.app.web.commons.helper.CurrUser>
[DEBUG] 2018-01-13 20:49:28,140 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/ 883ms
[DEBUG] 2018-01-13 20:49:28,158 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) - Search mapping for [GET] path=/login : NOT Action match
18-01-13 20:49:28.179 INFO [main] Server is up!
18-01-13 20:49:28.181 INFO [main] Create admin port at 8081
18-01-13 20:49:28.188 INFO [main] Local socket is up at :8081 with 1 action ready
18-01-13 20:49:28.194 DEBUG [main] Waiting for new socket

            InputStream ins = WebLauncher.class.getClassLoader().getResourceAsStream("web.properties");
            if (ins == null) {
                log.info("web.properties not found , using cmdline args");
                conf = new WebConfig(new StringReader(""));
            } else {
                log.info("web.properties found");
                try {
                    conf = new WebConfig(new InputStreamReader(ins, Encoding.UTF8));
                }
                catch (UnsupportedEncodingException e) {
                    throw Lang.impossible();
                }
            }

奇怪了, 起码会打印上述一句的日志

使用的nutz-web版本是多少??


org.nutz
nutz-web
1.r.61-SNAPSHOT

是呀,我一直在找上面的日志,也找不着!

改成1.r.63-SNAPSHOT试试

改成1.r.63-SNAPSHOT后,build.py结果:

未经检查或不安全的操作。
[INFO] /D:/working/farshine/document/wk-app/wk-web/src/main/java/cn/wizzer/app/web/modules/controllers/platform/doc/DocHandleController.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:\working\farshine\document\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:\working\farshine\document\wk-app\wk-web\target\nutzwk]
[INFO] Processing war project
[INFO] Copying webapp webResources [D:\working\farshine\document\wk-app\wk-web\src/main/resources] to [D:\working\farshine\document\wk-app\wk-web\target\nutzwk]
[INFO] Copying webapp resources [D:\working\farshine\document\wk-app\wk-web\src\main\webapp]
[INFO] Building jar: D:\working\farshine\document\wk-app\wk-web\target\nutzwk\WEB-INF\lib\wk-web-4.0.1-SNAPSHOT.jar
[INFO] Webapp assembled in [6123 msecs]
[INFO] Building war: D:\working\farshine\document\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 75 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:\working\farshine\document\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:\working\farshine\document\wk-app\wk-web\target\nutzwk]
[INFO] Processing war project
[INFO] Copying webapp webResources [D:\working\farshine\document\wk-app\wk-web\src/main/resources] to [D:\working\farshine\document\wk-app\wk-web\target\nutzwk]
[INFO] Copying webapp resources [D:\working\farshine\document\wk-app\wk-web\src\main\webapp]
[INFO] Building jar: D:\working\farshine\document\wk-app\wk-web\target\nutzwk\WEB-INF\lib\wk-web-4.0.1-SNAPSHOT.jar
[INFO] Webapp assembled in [3902 msecs]
[INFO] Building war: D:\working\farshine\document\wk-app\wk-web\target\nutzwk.war
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ wk-web ---
[INFO] Installing D:\working\farshine\document\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:\working\farshine\document\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.753 s]
[INFO] wk-web ............................................. SUCCESS [ 54.642 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55.715 s
[INFO] Finished at: 2018-01-13T21:26:21+08:00
[INFO] Final Memory: 36M/387M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wk-framework 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.65-SNAPSHOT/maven-metadata.xml (1.2 kB at 1.8 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-daocache/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-daocache/1.r.65-SNAPSHOT/maven-metadata.xml (980 B at 16 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzmore/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzmore/1.r.65-SNAPSHOT/maven-metadata.xml (576 B at 12 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-cache/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-cache/1.r.65-SNAPSHOT/maven-metadata.xml (977 B at 10 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-jedis/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-jedis/1.r.65-SNAPSHOT/maven-metadata.xml (981 B at 14 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-quartz/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-quartz/1.r.65-SNAPSHOT/maven-metadata.xml (982 B at 20 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-wkcache/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-wkcache/1.r.65-SNAPSHOT/maven-metadata.xml (979 B at 10 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzwx/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzwx/1.r.65-SNAPSHOT/maven-metadata.xml (961 B at 8.6 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-views/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-views/1.r.65-SNAPSHOT/maven-metadata.xml (977 B at 16 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-rabbitmq/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-rabbitmq/1.r.65-SNAPSHOT/maven-metadata.xml (984 B at 10 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-mock/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-plugins-mock/1.r.65-SNAPSHOT/maven-metadata.xml (976 B at 13 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/wk-code-generator/4.0.1-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/wk-code-generator/4.0.1-SNAPSHOT/maven-metadata.xml (758 B at 13 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.62-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.62-SNAPSHOT/maven-metadata.xml (963 B at 14 kB/s)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ wk-framework ---
[INFO] Deleting D:\working\farshine\document\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:\working\farshine\document\wk-framework\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ wk-framework ---
[INFO] Compiling 37 source files to D:\working\farshine\document\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:\working\farshine\document\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:\working\farshine\document\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:\working\farshine\document\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:\working\farshine\document\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: 13.046 s
[INFO] Finished at: 2018-01-13T21:26:37+08:00
[INFO] Final Memory: 32M/238M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wk-starter 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-web/1.r.63-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-web/1.r.63-SNAPSHOT/maven-metadata.xml (963 B at 1.4 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.63-SNAPSHOT/maven-metadata.xml
Downloading: https://jfrog.nutz.cn/artifactory/jcenter/org/nutz/nutz/1.r.63-SNAPSHOT/maven-metadata.xml
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.63-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.63-SNAPSHOT/maven-metadata.xml (967 B at 13 kB/s)
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.63-SNAPSHOT/maven-metadata.xml (967 B at 7.4 kB/s)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.65-SNAPSHOT/maven-metadata.xml
Downloaded: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.65-SNAPSHOT/maven-metadata.xml (1.2 kB at 18 kB/s)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ wk-starter ---
[INFO] Deleting D:\working\farshine\document\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:\working\farshine\document\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:\working\farshine\document\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:\working\farshine\document\wk-starter\target\wk-starter-4.0.1-SNAPSHOT-jar-with-dependencies.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.915 s
[INFO] Finished at: 2018-01-13T21:27:00+08:00
[INFO] Final Memory: 38M/388M
[INFO] ------------------------------------------------------------------------
18-01-13 21:27:02.076 INFO [main] Select SystemLog as Nutz.Log implement
Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: -inject
        at org.nutz.web.WebLauncher.start(WebLauncher.java:90)
        at org.nutz.web.WebLauncher.main(WebLauncher.java:41)
Caused by: java.io.FileNotFoundException: -inject
        ... 2 more
Traceback (most recent call last):
  File "D:\working\farshine\document\build.py", line 33, in <module>
    subprocess.check_call("java -jar starter.jar -inject ROOT.war -output engine.jar", shell=True, cwd="dst/")
  File "C:\Users\shufu_000\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'java -jar starter.jar -inject ROOT.war -output engine.jar' returned non-zero exit status 1.

看来不行, 这样吧, 改回 1.r.61-SNAPSHOT, 把web.properties 放到 src/main/resources/ 这样的目录下,打包进jar文件

按上面的就与原始的是一样的,打包不会报错!运行也可以的,就是web.properties读取不了

https://travis-ci.org/nutzam/nutz-web 成功之后, 用1.r.63-SNAPSHOT 打包试试

不会整呀,需要下载nutz-web源码,编译打包安装吗?

我改成1.r.65-SNAPSHOT后打包成功,运行打包后jar,出现如下错误:


D:\working\farshine\document\dst>cd D:\working\farshine\document\dst\ D:\working\farshine\document\dst>set path=jre\bin D:\working\farshine\document\dst>java -Dfile.encoding=GBK -jar engine.jar 18-01-13 21:42:22.547 INFO [main] Select SystemLog as Nutz.Log implement 18-01-13 21:42:22.628 INFO [main] web.properties not found , using cmdline args 2018-01-13 21:42:22.881:INFO::main: Logging initialized @589ms to org.eclipse.jetty.util.log.StdErrLog 18-01-13 21:42:23.056 DEBUG [main] ++war path : /D:/working/farshine/document/dst/engine.jar 18-01-13 21:42:23.082 WARN [main] Unknow error java.lang.NoSuchMethodError: org.eclipse.jetty.util.TypeUtil.getLoadedFrom(Ljava/lang/Class;)Lorg/eclipse/jetty/util/resource/Resource; at org.eclipse.jetty.webapp.WebAppContext.<clinit>(WebAppContext.java:140) at org.nutz.web.WebServer.prepare(WebServer.java:107) at org.nutz.web.WebServer.run(WebServer.java:178) at org.nutz.web.WebLauncher.start(WebLauncher.java:103) at org.nutz.web.WebLauncher.main(WebLauncher.java:41) 18-01-13 21:42:23.085 INFO [main] Server is down!
<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-webapp</artifactId>
			<version>9.4.2.v20170220</version>
		</dependency>

9.4.8.v20171121

jetty升级后,1.r.61打包成功,运行出错:


D:\working\farshine\document\dst>cd D:\working\farshine\document\dst\ D:\working\farshine\document\dst>set path=jre\bin D:\working\farshine\document\dst>java -Dfile.encoding=GBK -jar engine.jar 18-01-13 21:57:22.187 INFO [main] Select SystemLog as Nutz.Log implement 2018-01-13 21:57:22.532:INFO::main: Logging initialized @592ms to org.eclipse.jetty.util.log.StdErrLog 18-01-13 21:57:22.596 WARN [main] Unknow error java.lang.IllegalArgumentException: No selectors at org.eclipse.jetty.io.SelectorManager.<init>(SelectorManager.java:64) at org.eclipse.jetty.server.ServerConnector$ServerConnectorManager.<init>(ServerConnector.java:524) at org.eclipse.jetty.server.ServerConnector.newSelectorManager(ServerConnector.java:232) at org.eclipse.jetty.server.ServerConnector.<init>(ServerConnector.java:225) at org.eclipse.jetty.server.ServerConnector.<init>(ServerConnector.java:99) at org.eclipse.jetty.server.Server.<init>(Server.java:125) at org.nutz.web.WebServer.prepare(WebServer.java:59) at org.nutz.web.WebServer.run(WebServer.java:117) at org.nutz.web.WebLauncher.main(WebLauncher.java:49)

额, 升级jetty, 然后1.r.65-SNAPSHOT 打包吧

嗯,打包,运行都可以,但是还是没有读取到web.properties.

与jetty未升级前的,1.r.61打包一样

啊啊啊, 明天我试一下吧... 是nutzwk的打包对吧?

我上天打包试过啊,一切正常,能读取啊?

我怎么就不行昵!直接下载,你修改web.properties端口号不为8080,打包运行,网站是在新端口上运行吗?

web.properties 不生效
config/custom/db... 生效

等我明天的修改吧。。。

已更新nutz-web和nutzwk, 请查看相关修改

更新后完美解决

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