使用服务端日志的下载功能报错,发现URL地址不对,请问这个地址是要在哪里配置么?
localhost是错的
使用服务端日志的下载功能报错,发现URL地址不对,请问这个地址是要在哪里配置么?
localhost是错的
点的哪个按钮下载的日志?
你是不是指定过这个属性 cuba.dispatcherBaseUrl
没有指定过这属性,我看了下代码,他好像是通过jmxInstance来获取地址的,而他默认连接的却是客户端机器的JMX,我不知道是不是和这有关
相关代码:
public LogDataProvider(JmxInstance jmxInstance, String logFileName, String remoteContext, boolean downloadFullLog) {
this.logFileName = logFileName;
this.jmxInstance = jmxInstance;
this.remoteContext = remoteContext;
this.downloadFullLog = downloadFullLog;
}
public void obtainUrl() {
try {
url = jmxRemoteLoggingAPI.getLogFileLink(jmxInstance, remoteContext, logFileName);
} catch (Exception e) {
log.error("Unable to get log file link from JMX interface");
throw new RuntimeException(e);
}
}
改过端口,tomcat的端口是8888
发现设置webPort属性就OK了