- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我默认安装了 WSO2 EI 6.5.0,当我尝试保存现有代理服务时,我在日志中收到“只读”错误。
[2019-06-25 08:06:44,865] [-1234] [] [http-nio-9443-exec-40] INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - Proxy service : FileProxy_Tienda_Stock was removed from the Synapse configuration successfully [2019-06-25 08:06:44,867] [-1234] [] [http-nio-9443-exec-40] INFO {org.wso2.carbon.mediation.dependency.mgt.DependencyTracker} - Proxy service : FileProxy_Tienda_Stock was added to the Synapse configuration successfully [2019-06-25 08:06:44,867] [-1234] [] [http-nio-9443-exec-40] INFO {org.apache.synapse.core.axis2.ProxyService} - Building Axis service for Proxy service : FileProxy_Tienda_Stock [2019-06-25 08:06:44,868] [-1234] [] [http-nio-9443-exec-40] INFO {org.apache.synapse.core.axis2.ProxyService} - Adding service FileProxy_Tienda_Stock to the Axis2 configuration [2019-06-25 08:06:44,869] [-1234] [] [http-nio-9443-exec-40] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: FileProxy_Tienda_Stock {super-tenant} [2019-06-25 08:06:44,870] [-1234] [] [http-nio-9443-exec-40] INFO {org.apache.synapse.core.axis2.ProxyService} - Successfully created the Axis2 service for Proxy service : FileProxy_Tienda_Stock [2019-06-25 08:06:47,322] [-1] [] [Thread-21] ERROR {org.wso2.carbon.mediation.initializer.persistence.ProxyServiceStore} - Error while saving the proxy service: FileProxy_Tienda_Stock to the file system java.io.IOException: Destination '././repository/deployment/server/synapse-configs/default/proxy-services/FileProxy_Tiendas_Stock.xml' exists but is read-only at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1089) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038) at org.apache.synapse.config.xml.MultiXMLConfigurationSerializer.writeToFile(MultiXMLConfigurationSerializer.java:758) at org.apache.synapse.config.xml.MultiXMLConfigurationSerializer.serializeProxy(MultiXMLConfigurationSerializer.java:412) at org.wso2.carbon.mediation.initializer.persistence.ProxyServiceStore.saveToFile(ProxyServiceStore.java:47) at org.wso2.carbon.mediation.initializer.persistence.ProxyServiceStore.saveToFile(ProxyServiceStore.java:32) at org.wso2.carbon.mediation.initializer.persistence.AbstractStore.save(AbstractStore.java:78) at org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager.persistElement(MediationPersistenceManager.java:476) at org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager.access$1400(MediationPersistenceManager.java:71) at org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager$MediationPersistenceWorker.run(MediationPersistenceManager.java:452) [2019-06-25 08:06:47,326] [-1] [] [Thread-21] ERROR {org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager} - Error while saving mediation configuration changes org.wso2.carbon.mediation.initializer.persistence.ServiceBusPersistenceException: Error while saving the proxy service: FileProxy_Tienda_Stock to the file system at org.wso2.carbon.mediation.initializer.persistence.AbstractStore.handleException(AbstractStore.java:206) at org.wso2.carbon.mediation.initializer.persistence.ProxyServiceStore.saveToFile(ProxyServiceStore.java:49) at org.wso2.carbon.mediation.initializer.persistence.ProxyServiceStore.saveToFile(ProxyServiceStore.java:32) at org.wso2.carbon.mediation.initializer.persistence.AbstractStore.save(AbstractStore.java:78) at org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager.persistElement(MediationPersistenceManager.java:476) at org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager.access$1400(MediationPersistenceManager.java:71) at org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager$MediationPersistenceWorker.run(MediationPersistenceManager.java:452) Caused by: java.io.IOException: Destination '././repository/deployment/server/synapse-configs/default/proxy-services/FileProxy_Tiendas_Stock.xml' exists but is read-only at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1089) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038) at org.apache.synapse.config.xml.MultiXMLConfigurationSerializer.writeToFile(MultiXMLConfigurationSerializer.java:758) at org.apache.synapse.config.xml.MultiXMLConfigurationSerializer.serializeProxy(MultiXMLConfigurationSerializer.java:412) at org.wso2.carbon.mediation.initializer.persistence.ProxyServiceStore.saveToFile(ProxyServiceStore.java:47) ... 5 more
最佳答案
这似乎是一个权限问题。您可以检查运行 wso2 服务的服务器用户是否具有工件位置的读/写权限吗?您可以通过命令:ps -ef|grep wso2 获取 wso2 服务器的服务器用户。然后您可以通过执行以下命令来检查工件位置的权限。
ls -lrt repository/deployment/server/synapse-configs/default/
如果服务器用户没有工件位置的写入权限,您需要向用户提供工件位置的所有权[1]
[1] - https://askubuntu.com/questions/6723/change-folder-permissions-and-ownership
关于java - WSO2 - 尝试保存代理服务或序列时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56752855/
我正在使用 Siddhi [1] 的 Java 库,并且注意到检索和处理由 Siddhi 运行时生成的事件有相当大的延迟。尽管两个Siddhi事件可能具有时间差为X秒的Siddhi事件时间戳,但是在接
我阅读了网站上提供的文档,但没有太多关于如何连接到服务器并从 java 访问其 CEP 功能的信息。例如,它接受 POJO 作为事件模型还是只是 xml?我们可以从 Java 创建事件模型和查询吗?如
我是一名优秀的程序员,十分优秀!