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