As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Repository repository = (Repository)context.getBean("JCR.Repository");
ApplicationContext context = new ClassPathXmlApplicationContext("classpath:alfresco/application-context.xml");
<listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:alfresco/application-context.xml </param-value> <description>Spring config file locations</description> </context-param>
WebApplicationContextUtils.getWebApplicationContext(ServletContext sc);
ApplicationContext context = new ClassPathXmlApplicationContext("classpath:alfresco/application-context.xml");
WARN http-8080-Processor25 org.alfresco.repo.content.RoutingContentService - Property 'transactionService' has been replaced by 'retryingTransactionHelper'. 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.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
Repository repository = (Repository)context.getBean("JCR.Repository");