问题
the specified log seems to be in use already. Make sure that no other instance is running, or kill any pending process if needed.
Can’t overwrite cause with java.lang.RuntimeException:Log already in use?
解决方案
原因是:
同时启动多个网关, 部署在同一tomcat下,那么需要修改jta.properties文件中com.atomikos.icatch.console_file_name和com.atomikos.icatch.log_base_name不一样才行。
com.atomikos.icatch.service=com.atomikos.icatch.standalone.UserTransactionServiceFactory
com.atomikos.icatch.log_base_dir = D:/logs/xxx/tmp
com.atomikos.icatch.log_base_name = xxx_
com.atomikos.icatch.tm_unique_name = com.atomikos.spring.jdbc.tm
com.atomikos.icatch.serializable_logging=false