Hi Shavantha,

There are two "DomainName" properties in the given configuration. Please
*remove* following configuration from the *ADDomain2.xml* file and see
whether it works.
      *<Property name="DomainName">AD Domain2</Property>*

But if you add created this xml using the UI, there should not be two
*DomainName* properties tags in the same file. Does this happens to every
secondary user store in your setup?

Thanks,


On Thu, Mar 13, 2014 at 6:26 PM, Shavantha Weerasinghe
<shavan...@wso2.com>wrote:

> Hi All
>
> I get the below exception when creating a secondary user store via UI.
> The domain name and the file name are same but the system throws the
> below error
>
> Regards,
> [2014-03-13 18:22:40,989] ERROR
> {org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor} -
> Error while building user store manager from file
> org.wso2.carbon.user.core.UserStoreException: File name is required to
> be the user store domain name(eg.: wso2.com-->wso2_com.xml).
>     at
> org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor.buildUserStoreConfiguration(UserStoreConfigXMLProcessor.java:97)
>     at
> org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor.buildUserStoreConfigurationFromFile(UserStoreConfigXMLProcessor.java:69)
>     at
> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:43)
>     at
> org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer.deploy(UserStoreConfigurationDeployer.java:58)
>     at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>     at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
>     at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
>     at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
>     at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
>     at
> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
>     at
> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
>     at
> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
>     at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
>     at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>     at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:662)
> [2014-03-13 18:22:40,991]  INFO
> {org.apache.axis2.deployment.DeploymentEngine} -
> org.apache.axis2.deployment.DeploymentException: The deployment of
> ADDomain2.xml is not valid.
> [2014-03-13 18:24:00,003]  INFO
> {org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask} -
> Running script executor task for script esb_stats. [Thu Mar 13
> 18:24:00 IST 2014]
> Hive history
> file=/home/shavantha/projects/BAM/241/m1/wso2bam-2.4.1/tmp/hive/malith-querylogs/hive_job_log_shavantha_201403131748_612331295.txt
> OK
>
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,


*Darshana Gunawardana *Software Engineer
WSO2 Inc.; http://wso2.com

* E-mail: darsh...@wso2.com <darsh...@wso2.com>*
*Mobile: +94718566859*Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to