wso2 - ERROR - EmbeddedRegistryService Failed to configure the embedded registry -
i want setup cluster wso2esb,i have done database setup specified in link https://docs.wso2.com/display/cluster420/setting+up+the+database.
i used postgresql database,i getting below error stack while starting wso2server in cluster mode command sh wso2server.sh -dsetup in linux machine.
code in registry.xml
<dbconfig name="sharedregistry"> <datasource>jdbc/wso2registrydb</datasource> </dbconfig> <dbconfig name="wso2registry"> <datasource>jdbc/wso2carbondb</datasource> </dbconfig>
remote instance code registry.xml
<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>
configuration of datasource in master-datasource.xml
<datasource> <name>registry_local1</name> <description>the datasource used 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>
exception trace
[2015-07-23 21:06:57,601] error - registryconfigurationprocessor error occurred during system variable replacement org.wso2.carbon.carbonexception: error in building document @ 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(native method) @ sun.reflect.nativemethodaccessorimpl.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.geteligible(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(native method) @ 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.startlevelmanager.resumebundles(startlevelmanager.java:559) @ org.eclipse.osgi.framework.internal.core.startlevelmanager.resumebundles(startlevelmanager.java:544) @ org.eclipse.osgi.framework.internal.core.startlevelmanager.incfwsl(startlevelmanager.java:457) @ org.eclipse.osgi.framework.internal.core.startlevelmanager.dosetstartlevel(startlevelmanager.java:243) @ org.eclipse.osgi.framework.internal.core.startlevelmanager.dispatchevent(startlevelmanager.java:438) @ org.eclipse.osgi.framework.internal.core.startlevelmanager.dispatchevent(startlevelmanager.java:1) @ org.eclipse.osgi.framework.eventmgr.eventmanager.dispatchevent(eventmanager.java:230) @ org.eclipse.osgi.framework.eventmgr.eventmanager$eventthread.run(eventmanager.java:340) caused by: org.xml.sax.saxparseexception; linenumber: 3; columnnumber: 1; pseudo attribute name expected. @ org.apache.xerces.parsers.domparser.parse(unknown source) @ org.apache.xerces.jaxp.documentbuilderimpl.parse(unknown source) @ javax.xml.parsers.documentbuilder.parse(unknown source) @ org.wso2.carbon.utils.carbonutils.replacesystemvariablesinxml(carbonutils.java:1040) ... 44 more [2015-07-23 21:06:57,615] error - embeddedregistryservice failed configure embedded registry. invalid data access manager. [2015-07-23 21:06:57,615] error - registrycoreservicecomponent failed activate registry core bundle org.wso2.carbon.registry.core.exceptions.registryexception: failed configure embedded registry. invalid data access manager. @ org.wso2.carbon.registry.core.jdbc.embeddedregistryservice.configure(embeddedregistryservice.java:167) @ org.wso2.carbon.registry.core.jdbc.embeddedregistryservice.(embeddedregistryservice.java:99) @ org.wso2.carbon.registry.core.internal.registrycoreservicecomponent.getembeddedregistryservice(registrycoreservicecomponent.java:630) @ 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(native method) @ sun.reflect.nativemethodaccessorimpl.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.geteligible(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(native method) @ 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.startlevelmanager.resumebundles(startlevelmanager.java:559) @ org.eclipse.osgi.framework.internal.core.startlevelmanager.resumebundles(startlevelmanager.java:544) @ org.eclipse.osgi.framework.internal.core.startlevelmanager.incfwsl(startlevelmanager.java:457) @ org.eclipse.osgi.framework.internal.core.startlevelmanager.dosetstartlevel(startlevelmanager.java:243) @ org.eclipse.osgi.framework.internal.core.startlevelmanager.dispatchevent(startlevelmanager.java:438) @ org.eclipse.osgi.framework.internal.core.startlevelmanager.dispatchevent(startlevelmanager.java:1) @ org.eclipse.osgi.framework.eventmgr.eventmanager.dispatchevent(eventmanager.java:230) @ org.eclipse.osgi.framework.eventmgr.eventmanager$eventthread.run(eventmanager.java:340)
Comments
Post a Comment