简体   繁体   English

如何以纯文本格式在Carbon服务器上访问服务的参数

[英]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数据库中,但我设法通过以下方法解决了问题:

  1. downloading the Version.aar file using the link on the list services page 使用列表服务页面上的链接下载Version.aar文件
  2. deleting the Version service 删除版本服务
  3. Copying the Version.aar file into the repository/deployment/server/axis2services dir 将Version.aar文件复制到存储库/部署/服务器/ axis2services目录中

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.

相关问题 如何在BPS 2.1.2(碳3.2.0)中手动创建数据源 - How I can create manually datasource in BPS 2.1.2 (carbon 3.2.0) 如何不间断地将Wso2server.bat和carbon.bat作为服务运行 - How to run Wso2server.bat and carbon.bat as a service, without stop 如何将所有Carbon服务器配置为核心Carbon服务器进行管理 - How to configure all Carbon servers to core carbon server to mange wso2 carbon:如何破解源并将更改部署到碳服务器 - wso2 carbon: how to hack the source and deploy the changes to a carbon server 如何在AS中从Web应用程序访问Carbon端口偏移量 - How to access Carbon port offset from a webapp in AS 无法访问wso2is.local:port:/ carbon,可以通过IP:port:/ carbon访问 - Cannot access wso2is.local:port:/carbon, can access via IP:port:/carbon 如何使用应用程序服务器功能解决WSO2 Carbon 4.0.3中的“未定义包”问题? - How do I resolve “Packages is not defined” in WSO2 Carbon 4.0.3 with Application Server Features? 启动carbon.sh后,如何再次进入osgi控制台 - How can I go into osgi console again after I have started my carbon.sh 如何指定WSO2 Carbon产品中CAR之间的依赖关系? - How can I specify dependencies between CARs in WSO2 Carbon product? 如何从API Manager的wso2carbon.jks导出公钥(.pem)? - How can I export public key(.pem) from API Manager's wso2carbon.jks?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM