NutzCN Logo
问答 Nutz项目和Nodejs项目冲突
发布于 3126天前 作者 大鲨鱼 2069 次浏览 复制 上一个帖子 下一个帖子
标签: nodejs

Nutz项目路径: /home/apache-tomcat-8.0.24/webapps/wzflow
Nodejs项目路径:/home/nodeshop

不知道哪里的问题,在tomcat启动的时候,把不在同一目录下的nodejs js文件当作配置文件扫描加载了,52版本。

2015-09-28 17:26:17,183 [DEBUG][org.nutz.mvc.impl.NutLoading] - >> app.root = /home/apache-tomcat-8.0.24/webapps/wzflow
2015-09-28 17:26:17,243 [DEBUG][org.nutz.castor.Castors] - Using 91 castor for Castors
2015-09-28 17:26:17,247 [DEBUG][org.nutz.mvc.impl.NutLoading] - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*org.nutz.ioc.loader.json.JsonLoader", "config", "*org.nutz.ioc.loader.annotation.AnnotationIocLoader", "com.auto"])
2015-09-28 17:26:17,301 [INFO][org.nutz.resource.Scans] - same resource [blueprints.js] will be override
2015-09-28 17:26:17,301 [INFO][org.nutz.resource.Scans] - same resource [http.js] will be override
2015-09-28 17:26:17,302 [INFO][org.nutz.resource.Scans] - same resource [csrf.js] will be override
2015-09-28 17:26:17,302 [INFO][org.nutz.resource.Scans] - same resource [log.js] will be override
2015-09-28 17:26:17,302 [INFO][org.nutz.resource.Scans] - same resource [policies.js] will be override
2015-09-28 17:26:17,302 [INFO][org.nutz.resource.Scans] - same resource [bootstrap.js] will be override
2015-09-28 17:26:17,302 [INFO][org.nutz.resource.Scans] - same resource [models.js] will be override
2015-09-28 17:26:17,302 [INFO][org.nutz.resource.Scans] - same resource [custom/redis.js] will be override
2015-09-28 17:26:17,302 [INFO][org.nutz.resource.Scans] - same resource [custom/system.js] will be override
2015-09-28 17:26:17,303 [INFO][org.nutz.resource.Scans] - same resource [custom/email.js] will be override
2015-09-28 17:26:17,303 [INFO][org.nutz.resource.Scans] - same resource [globals.js] will be override
2015-09-28 17:26:17,306 [INFO][org.nutz.resource.Scans] - same resource [env/development.js] will be override
2015-09-28 17:26:17,307 [INFO][org.nutz.resource.Scans] - same resource [env/production.js] will be override
2015-09-28 17:26:17,307 [INFO][org.nutz.resource.Scans] - same resource [sockets.js] will be override
2015-09-28 17:26:17,307 [INFO][org.nutz.resource.Scans] - same resource [connections.js] will be override
2015-09-28 17:26:17,307 [INFO][org.nutz.resource.Scans] - same resource [i18n.js] will be override
2015-09-28 17:26:17,307 [INFO][org.nutz.resource.Scans] - same resource [locales/zh.json] will be override
2015-09-28 17:26:17,307 [INFO][org.nutz.resource.Scans] - same resource [locales/en.json] will be override
2015-09-28 17:26:17,308 [INFO][org.nutz.resource.Scans] - same resource [local.js] will be override
2015-09-28 17:26:17,308 [INFO][org.nutz.resource.Scans] - same resource [session.js] will be override
2015-09-28 17:26:17,314 [INFO][org.nutz.resource.Scans] - same resource [routes.js] will be override
2015-09-28 17:26:17,315 [INFO][org.nutz.resource.Scans] - same resource [cors.js] will be override
2015-09-28 17:26:17,315 [INFO][org.nutz.resource.Scans] - same resource [views.js] will be override
2015-09-28 17:26:17,315 [DEBUG][org.nutz.resource.Scans] - Found 49 resource by src( config ) , regex( ^(.+[.])(js|json)$ )
2015-09-28 17:26:17,316 [DEBUG][org.nutz.ioc.loader.json.JsonLoader] - loading ioc js config from [blueprints.js]
2015-09-28 17:26:17,330 [ERROR][org.nutz.mvc.impl.NutLoading] - Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.json.JsonLoader'

11 回复

看一下 你的主模块上的 IocBy怎么配置的

另外,怪哉的是,先启动tomcat,两个nutz项目可正常运行,然后再启动nodejs,然后就都不能运行了,服务器卡死。
接着,kill掉nodejs,再启动tomcat,,两个nutz项目,53版本的可以正常启动,52版本的报如上日志的错误。

那就不太清楚了 没遇到过

运行目录下有个config目录呗

@wendal 怎么让nutz不扫描项目之外的文件夹?按道理自己去扫描也是不对的啊

扫描路径包含当前路径,你看日志里面Scan输出的路径就知道了
自豪地采用 NutzCN ionic

最终原因是……512M内存太小

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