Wso2 错误-EmbeddedRegistryService无法配置嵌入式注册表
我想为wso2esb设置集群,我已经按照链接中的指定完成了数据库设置 我使用了postgresql数据库,在Linux机器上使用命令sh wso2server.sh-Dsetup以集群模式启动wso2server时,我得到以下错误堆栈 registry.xml中的代码Wso2 错误-EmbeddedRegistryService无法配置嵌入式注册表,wso2,cluster-computing,wso2carbon,Wso2,Cluster Computing,Wso2carbon,我想为wso2esb设置集群,我已经按照链接中的指定完成了数据库设置 我使用了postgresql数据库,在Linux机器上使用命令sh wso2server.sh-Dsetup以集群模式启动wso2server时,我得到以下错误堆栈 registry.xml中的代码 <dbConfig name="sharedregistry"> <dataSource>jdbc/WSO2RegistryDB</dataSource> <
<dbConfig name="sharedregistry">
<dataSource>jdbc/WSO2RegistryDB</dataSource>
</dbConfig>
<dbConfig name="wso2registry">
<dataSource>jdbc/WSO2CarbonDB</dataSource>
</dbConfig>
<remoteInstance url="https://localhost:9443/registry">
<id>instanceid</id>
<dbConfig>sharedregistry</dbConfig>
<readOnly>false</readOnly>
<enableCache>true</enableCache>
<registryRoot>/</registryRoot>
<cacheId>regadmin@jdbc:postgresql://ipaddress:5432/REGISTRY_DB?autoReconnect=true</cacheId>
</remoteInstance>
<datasource>
<name>REGISTRY_LOCAL1</name>
<description>The datasource used for registry-local</description>
<jndiConfig>
<name>jdbc/WSO2CarbonDB</name>
</jndiConfig>
<definition type="RDBMS">
<configuration>
<url>jdbc:postgresql://ipaddress:5432/REGISTRY_LOCAL1?autoReconnect=true</url>
<username>regadmin</username>
<password>regadmin</password>
<driverClassName>org.postgresql.Driver</driverClassName>
<maxActive>50</maxActive>
<maxWait>60000</maxWait>
<testOnBorrow>true</testOnBorrow>
<validationQuery>SELECT 1</validationQuery>
<validationInterval>30000</validationInterval>
</configuration>
</definition>
</datasource>
jdbc/WSO2RegistryDB
jdbc/WSO2CarbonDB
远程实例代码注册表.xml
<dbConfig name="sharedregistry">
<dataSource>jdbc/WSO2RegistryDB</dataSource>
</dbConfig>
<dbConfig name="wso2registry">
<dataSource>jdbc/WSO2CarbonDB</dataSource>
</dbConfig>
<remoteInstance url="https://localhost:9443/registry">
<id>instanceid</id>
<dbConfig>sharedregistry</dbConfig>
<readOnly>false</readOnly>
<enableCache>true</enableCache>
<registryRoot>/</registryRoot>
<cacheId>regadmin@jdbc:postgresql://ipaddress:5432/REGISTRY_DB?autoReconnect=true</cacheId>
</remoteInstance>
<datasource>
<name>REGISTRY_LOCAL1</name>
<description>The datasource used for registry-local</description>
<jndiConfig>
<name>jdbc/WSO2CarbonDB</name>
</jndiConfig>
<definition type="RDBMS">
<configuration>
<url>jdbc:postgresql://ipaddress:5432/REGISTRY_LOCAL1?autoReconnect=true</url>
<username>regadmin</username>
<password>regadmin</password>
<driverClassName>org.postgresql.Driver</driverClassName>
<maxActive>50</maxActive>
<maxWait>60000</maxWait>
<testOnBorrow>true</testOnBorrow>
<validationQuery>SELECT 1</validationQuery>
<validationInterval>30000</validationInterval>
</configuration>
</definition>
</datasource>
实例ID
股份登记
假的
真的
/
regadmin@jdbc:postgresql://ipaddress:5432/REGISTRY_DB?autoReconnect=true
在master datasource.xml中配置数据源
<dbConfig name="sharedregistry">
<dataSource>jdbc/WSO2RegistryDB</dataSource>
</dbConfig>
<dbConfig name="wso2registry">
<dataSource>jdbc/WSO2CarbonDB</dataSource>
</dbConfig>
<remoteInstance url="https://localhost:9443/registry">
<id>instanceid</id>
<dbConfig>sharedregistry</dbConfig>
<readOnly>false</readOnly>
<enableCache>true</enableCache>
<registryRoot>/</registryRoot>
<cacheId>regadmin@jdbc:postgresql://ipaddress:5432/REGISTRY_DB?autoReconnect=true</cacheId>
</remoteInstance>
<datasource>
<name>REGISTRY_LOCAL1</name>
<description>The datasource used for registry-local</description>
<jndiConfig>
<name>jdbc/WSO2CarbonDB</name>
</jndiConfig>
<definition type="RDBMS">
<configuration>
<url>jdbc:postgresql://ipaddress:5432/REGISTRY_LOCAL1?autoReconnect=true</url>
<username>regadmin</username>
<password>regadmin</password>
<driverClassName>org.postgresql.Driver</driverClassName>
<maxActive>50</maxActive>
<maxWait>60000</maxWait>
<testOnBorrow>true</testOnBorrow>
<validationQuery>SELECT 1</validationQuery>
<validationInterval>30000</validationInterval>
</configuration>
</definition>
</datasource>
注册表\本地1
用于本地注册表的数据源
jdbc/WSO2CarbonDB
jdbc:postgresql://ipaddress:5432/REGISTRY_LOCAL1?autoReconnect=true
雷格明
雷格明
org.postgresql.Driver
50
60000
真的
选择1
30000
异常跟踪
[2015-07-23 21:06:57601]错误-注册表配置处理器An
系统变量替换期间出错
org.wso2.carbon.CarbonException:在处生成文档时出错
org.wso2.carbon.utils.CarbonUtils.replaceSystemVariablesInXml(CarbonUtils.java:1042)
在
org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor.populateRegistryConfig(RegistryConfigurationProcessor.java:93)
在
org.wso2.carbon.registry.core.config.RegistryContext.(RegistryContext.java:461)
在
org.wso2.carbon.registry.core.config.RegistryContext.(RegistryContext.java:442)
在
org.wso2.carbon.registry.core.config.RegistryContext.getBaseInstance(RegistryContext.java:321)
在
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:627)
在
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:563)
在
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:117)
位于的sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
invoke(NativeMethodAccessorImpl.java:57)
在
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
位于java.lang.reflect.Method.invoke(Method.java:606)
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
在
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
在
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
在
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
在
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
在
org.eclipse.equinox.internal.ds.Resolver.getQualified(Resolver.java:343)
在
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
在
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
在
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
在
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
在
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
在
org.eclipse.osgi.internal.serviceregistry.serviceregistry.publishServiceEventPrivileged(serviceregistry.java:819)
在
org.eclipse.osgi.internal.serviceregistry.serviceregistry.publishServiceEvent(serviceregistry.java:771)
在
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
在
org.eclipse.osgi.internal.serviceregistry.serviceregistry.registerService(serviceregistry.java:214)
在
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
在
org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:70)
在
org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
在
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
位于java.security.AccessController.doPrivileged(本机方法)
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
在
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
在
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
在
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
在
org.eclipse.osgi.framework.internal.core.framework.resumeBundle(framework.java:1176)
在
org.eclipse.osgi.framework.internal.core.startevelmanager.resumeBundles(startevelmanager.java:559)
在
org.eclipse.osgi.framework.internal.core.startevelmanager.resumeBundles(startevelmanager.java:544)
在
org.eclipse.osgi.framework.internal.core.startevelmanager.incFWSL(startevelmanager.java:457)
在
org.eclipse.osgi.framework.internal.core.startevelmanager.dosetstartevel(startevelmanager.java:243)
在
org.eclipse.osgi.framework.internal.core.startEvelManager.dispatchEvent(startEvelManager.java:438)
在
org.eclipse.osgi.framework.internal.core.startEvelManager.dispatchEvent(startEvelManager.java:1)
在
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
在
org.ecli