cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco SDK : Ensure that the 'dir.root' property is pointing to the correct data location Error

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi

I am using  Alfresco Community,version: 4.2.0 (4576) schema 6,022 and using 4.2 SDK. I have followed all instructions to setup sdk in my eclipse and its all fine.

Next i have put following properties in alfresco-global.properties file in FirstJCRClient project

<blockcode>
dir.root=C:\alf4.2\alf_data
### database connection properties ###
db.driver=org.postgresql.Driver
db.username=alfresco
db.password=admin
db.name=alfresco
db.url=jdbcSmiley Tongueostgresql://localhost:5438/${db.name}
</blockcode>

Also i have included below in SDK AlfrescoEmbedded project

<blockcode>
dir.root=C:\alf4.2\alf_data
</blockcode>

But when i am running FirstJCRClient project after starting alfresco, i am getting below error


May 23, 2013 2:11:22 PM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
May 23, 2013 2:11:28 PM org.activiti.engine.impl.jobexecutor.JobExecutor start
INFO: Starting up the JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor].
May 23, 2013 2:11:28 PM org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable run
INFO: JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor] starting to acquire jobs
Exception in thread "main" org.alfresco.error.AlfrescoRuntimeException: 04230001 Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:248)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:68)
   at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:179)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:183)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
   at org.alfresco.sample.FirstJCRClient.main(FirstJCRClient.java:58)


Can anybody help here as i am stuck in it?

Regards,
Lalit.

1 REPLY 1

dynamolalit
Champ on-the-rise
Champ on-the-rise
I solved the issue by reinstalling alfresco & sdk again.

Regards.