<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Accessing an existing Alfresco server using Alfresco JCR API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39029#M20759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestion, that worked for me to run the sample.I have cleared the database and configured the data repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I was trying to build the same sample independent of the embedded alfresco server, i mean to connect to an already running&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco repository and do manipulations like adding,deleting&amp;nbsp; the content.I am successful to modify the sample to connect to a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;running alfresco server and act on the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I am still not able to make the code completely independent,i mean not to start the embedded server. I have taken all the lib &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with dependencies into a seperate project with configured repository properties&amp;nbsp; and context xml. When I am running the program&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; it is running the embedded server, but still adding the content to the configured alfresco repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what is the piece of code in the sample that is starting the embedded server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jul 2006 11:20:38 GMT</pubDate>
    <dc:creator>pavan_kumar</dc:creator>
    <dc:date>2006-07-14T11:20:38Z</dc:date>
    <item>
      <title>Accessing an existing Alfresco server using Alfresco JCR API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39026#M20756</link>
      <description>Hi All,Can anybody suggest me how to access an existing Alfresco server repository using the Alfresco JCR API. I want to do it via a normal Java program. I tried looking into the SDK samples, but iam always getting an error "Invalid credentials". Am able to know that this is due to failure of authen</description>
      <pubDate>Wed, 12 Jul 2006 15:22:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39026#M20756</guid>
      <dc:creator>pavan_kumar</dc:creator>
      <dc:date>2006-07-12T15:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing an existing Alfresco server using Alfresco JCR API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39027#M20757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Authentication can fail if the database and alf_data directory contents are out-of-sync. This can happen as the default alf_data directory location is relative and so depends on where you start the SDK sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd suggest for testing purposes, cleaning or setting up a new database schema and changing the value of &lt;/SPAN&gt;&lt;STRONG&gt;alf_data&lt;/STRONG&gt;&lt;SPAN&gt; in the file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sdk_root&amp;gt;\samples\FirstJCRClient\source\alfresco\extension\custom-repository.properties &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to an absolute path and re-executing the JCR sample.&amp;nbsp; Admin/admin is valid for a clean install of the repository.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2006 16:02:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39027#M20757</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2006-07-12T16:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing an existing Alfresco server using Alfresco JCR API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39028#M20758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make sure u have entry like,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dir.root=C:\\alfresco\\alf_data in&amp;nbsp; custom-repository.properties of sdk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; examples.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 11:32:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39028#M20758</guid>
      <dc:creator>kishore</dc:creator>
      <dc:date>2006-07-13T11:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing an existing Alfresco server using Alfresco JCR API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39029#M20759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestion, that worked for me to run the sample.I have cleared the database and configured the data repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I was trying to build the same sample independent of the embedded alfresco server, i mean to connect to an already running&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco repository and do manipulations like adding,deleting&amp;nbsp; the content.I am successful to modify the sample to connect to a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;running alfresco server and act on the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I am still not able to make the code completely independent,i mean not to start the embedded server. I have taken all the lib &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with dependencies into a seperate project with configured repository properties&amp;nbsp; and context xml. When I am running the program&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; it is running the embedded server, but still adding the content to the configured alfresco repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what is the piece of code in the sample that is starting the embedded server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 11:20:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39029#M20759</guid>
      <dc:creator>pavan_kumar</dc:creator>
      <dc:date>2006-07-14T11:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing an existing Alfresco server using Alfresco JCR API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39030#M20760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My apologies for digging up the old thread but this was the closest to what I'm trying to achieve and having troubles with. I'm new to both JSR 170 and the Spring Framework.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to connect to an already running Alfresco repository from a simple java program. I've got the SDK setup and installed. I'm able to get connect using the FirstWebServiceClient but not using FirstJCRClient. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco is installed and running from C:\alfresco. I'm trying to execute example from my eclipse workspace. The FirstJCRClient example &lt;/SPAN&gt;&lt;STRONG&gt;doesn't&lt;/STRONG&gt;&lt;SPAN&gt; work the first time. I changed the 'dir.root' from 'custom-repository.properties' to 'C:\alfresco\alf_data'. After adding alfresco-blog-integration.jar and eventually all the jar files in the /server/ folder to the project's classpath I'm still not able to execute the FirstJCRClient. Here is the exception I get after adding every library to the classpath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Exception in thread "main" java.lang.NullPointerException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.util.RuntimeSystemPropertiesSetter.postProcessBeanFactory(RuntimeSystemPropertiesSetter.java:68)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:414)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:328)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.ClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(ClassPathXmlApplicationContext.java:92)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.ClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(ClassPathXmlApplicationContext.java:77)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.ClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(ClassPathXmlApplicationContext.java:68)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.sample.FirstJCRClient.main(FirstJCRClient.java:61)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once again, the FirstWebServiceClient does exactly what it's supposed to do. None of the JCR examples are working for me. Debugging didn't help much but it shows that it's not able to get the 'ApplicationContext' object from "classpath:alfresco/application-context.xml".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or insight would be really appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-tsx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 19:26:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39030#M20760</guid>
      <dc:creator>tsx</dc:creator>
      <dc:date>2008-04-02T19:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing an existing Alfresco server using Alfresco JCR API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39031#M20761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been trying to get this working as well with no luck so far. Any pointers to how I can access an existing server repository using the JCR API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the samples provided, only the Web service clients use the Alfresco remote jars; the samples for JCR API are using the embedded server aproach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vijay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 21:44:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-existing-alfresco-server-using-alfresco-jcr-api/m-p/39031#M20761</guid>
      <dc:creator>vijayreddy</dc:creator>
      <dc:date>2008-08-21T21:44:43Z</dc:date>
    </item>
  </channel>
</rss>

