首页 / 浏览问题 / 其他 / 问题详情
docker版iserver11.0.1设置多进程后再启动iserver失败
15EXP 2023年05月19日

docker容器版iserver11.0.1配置多进程后,再启动iserver失败,报错如下:

(Error creating bean with name 'log4jstream' defined in class path resource )

该服务器有其它同样版本的docker容器版iserver正在运行,端口不冲突。

多进程配置如下

iserver.log报错如下:

2023-5-19 04:15:32 - WARN - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'log4jstream' defined in class path resource [com/supermap/server/master/masterbeans_workerlog.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.io.FileInputStream]: Constructor threw exception; nested exception is java.io.FileNotFoundException: /etc/icloud/supermap-iserver-1101-21929-6488-linux-x64-deploy/webapps/iserver/WEB-INF/iserver-log4j.properties (没有那个文件或目录) 2023-5-19 04:15:32 - ERROR - 启动服务失败。 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'log4jstream' defined in class path resource [com/supermap/server/master/masterbeans_workerlog.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.io.FileInputStream]: Constructor threw exception; nested exception is java.io.FileNotFoundException: /etc/icloud/supermap-iserver-1101-21929-6488-linux-x64-deploy/webapps/iserver/WEB-INF/iserver-log4j.properties (没有那个文件或目录) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:315) ~[spring-beans-5.3.26.jar:5.3.26] at 

1个回答

您好,您检查一下映射目录下是否存在iserver-log4j.properties文件(在映射目录的iserver_config路径下),以及该文件是否有读写权限
3,148EXP 2023年05月19日

这个文件是都有的,权限都给了

您好,我这边确认了一下docker是不支持多进程的
...