AnsweredAssumed Answered

alfresco-jmxrmi.access The system cannot find the path!!

Question asked by amit_wmw@yahoo.com on Mar 25, 2009
Latest reply on Jul 9, 2015 by dma_k
Hello,

From my custom program I am trying to connect to alfresco repository but only manage to get the below error. Please suggest what's not in place? Will be kind help.

##################################################################

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverConnector' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: ${alfresco.jmx.dir}\alfresco-jmxrmi.access (The system cannot find the path specified)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
   at org.hcl.grcmip.workflow.document.vo.impl.Main.main(Main.java:16)
Caused by: java.lang.IllegalArgumentException: ${alfresco.jmx.dir}\alfresco-jmxrmi.access (The system cannot find the path specified)
   at javax.management.remote.rmi.RMIConnectorServer.start(Unknown Source)
   at org.springframework.jmx.support.ConnectorServerFactoryBean.afterPropertiesSet(ConnectorServerFactoryBean.java:168)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
   … 15 more
Caused by: java.io.FileNotFoundException: ${alfresco.jmx.dir}\alfresco-jmxrmi.access (The system cannot find the path specified)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at com.sun.jmx.remote.security.MBeanServerFileAccessController.propertiesFromFile(Unknown Source)
   at com.sun.jmx.remote.security.MBeanServerFileAccessController.<init>(Unknown Source)
   … 19 more

####################################################################
Thanks
Amit

Outcomes