[英]How can I access the parameters of a service on a Carbon server in plain txt
What I've done is broken the default 'Version' service on my WSO2 DSS, I tried to set the Scopes variable for WS-Discovery and didn't put a closing tag/element when creating the parameter. 我所做的是破坏了WSO2 DSS上的默认“版本”服务,我尝试为WS-Discovery设置Scopes变量,并且在创建参数时未放置结束标记/元素。
Now when I try to access the parameters screen I get an xml Parse error 现在,当我尝试访问参数屏幕时,出现xml解析错误
TID: [0] [WSO2 Data Services Server] [2012-08-22 12:38:04,404] ERROR {org.wso2.carbon.service.mgt.ServiceAdmin} - Error occured while getting parameters of service : Version {org.wso2.carbon.service.mgt.ServiceAdmin}org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '<' (code 60) in end tag Expected '>'. at [row,col {unknown-source}]: [2,58] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296) at
I'm assuming this is stored in the H2 database, I've tried looking for the parameter in the .db file using notepad but I can't find it. 我假设它存储在H2数据库中,我尝试使用记事本在.db文件中查找参数,但找不到。 Is there another way to connect/browse the H2 db? 还有另一种连接/浏览H2数据库的方法吗? I've scanned through the repository, database and conf directories for clues without success. 我已经浏览了存储库,数据库和conf目录中的线索,但没有成功。
UPDATE: Yes you can connect to the H2 db using the included database Explorer under the Tools menu. 更新:是的,您可以使用“工具”菜单下附带的数据库资源管理器连接到H2数据库。
Use the connection details found in the repository/conf/registry.xml file 使用在repository / conf / registry.xml文件中找到的连接详细信息
Then you can do SQL queries on it - (I haven't found the answer yet though) 然后,您可以对其执行SQL查询-(不过我还没有找到答案)
UPDATE 2: I don't think the parameters are held in the H2 db, but I managed to fix my problem by: 更新2:我不认为参数保存在H2数据库中,但我设法通过以下方法解决了问题:
I guess deleting the service removed any records/references to my broken parameter 我猜删除服务会删除我的损坏参数的所有记录/引用
I believe you've tried setting service parameters via the UI? 我相信您已尝试通过UI设置服务参数? Usually the service parameters you specify via the UI do not get saved in the services.xml of the original axis2 service archive. 通常,您通过UI指定的服务参数不会保存在原始axis2服务档案的services.xml中。 Instead, they get saved in the registry that is shipped with DSS and get applied to the service at runtime. 而是将它们保存在DSS随附的注册表中,并在运行时将其应用于服务。 But if you specify a malformed parameter then wouldn't be saved in the registry instead, throwing an exception while trying to engage that parameter. 但是,如果指定了格式错误的参数,则不会将其保存在注册表中,而是在尝试使用该参数时引发异常。 So there'll be no record saved corresponding to that kind of malformed parameters. 因此,不会保存与该格式错误的参数相对应的记录。
Hope this helps! 希望这可以帮助!
Cheers, Prabath 干杯,干杯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.