<?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 Alfresco JCR: jcr-context.xml and alfresco-jcr.jar in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23419#M11319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I thought I could get access to the Repository through ServiceRegistry?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to have same Repository accessed by Alfresco Web Client and another web app?&amp;nbsp; That is ultimately the goal.&amp;nbsp; Does each context in Tomcat require a repository to be started up?&amp;nbsp; Documentation on non-WebClient access is pretty scarce…&amp;nbsp; thank you very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2006 15:06:54 GMT</pubDate>
    <dc:creator>alexeyg</dc:creator>
    <dc:date>2006-02-06T15:06:54Z</dc:date>
    <item>
      <title>Accessing Alfresco JCR: jcr-context.xml and alfresco-jcr.jar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23416#M11316</link>
      <description>Please tell me how I can access Alfresco from another Context in Tomcat.&amp;nbsp; I use:ApplicationContext context = new ClassPathXmlApplicationContext("classpath&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg/alfresco/jcr-context.xml");and get:"java.io.FileNotFoundException: class path resource [org/alfresco/jcr-context.xml] cannot be opened becaus</description>
      <pubDate>Thu, 02 Feb 2006 22:13:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23416#M11316</guid>
      <dc:creator>alexeyg</dc:creator>
      <dc:date>2006-02-02T22:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Alfresco JCR: jcr-context.xml and alfresco-jcr.jar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23417#M11317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Strange that there are no replies…&amp;nbsp; this is an easy question and 1 quick line would help so much.&amp;nbsp; Oh well, after messing with it for a while here is whay I found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco-jcr.jar does not get packaged with the Web Client.&amp;nbsp; It gets built but is never included.&amp;nbsp; So is jcr-context.xml that was refered from the Wiki.&amp;nbsp; This is either a change or a bug.&amp;nbsp; In either case, do not start looking for alfresco-jcr.jar in the alfresco.war.&amp;nbsp; It is not there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wiki has been updated with new access information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ApplicationContext appContext = new ClassPathXmlApplicationContext("alfresco/application-context.xml");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ServiceRegistry registry = (ServiceRegistry)appContext.getBean(ServiceRegistry.SERVICE_REGISTRY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (registry.isServiceProvided(ServiceRegistry.NODE_SERVICE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeService nodeService = registry.getNodeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php/Alfresco_Content_Management_Java_API" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php/Alfresco_Content_Management_Java_API&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2006 18:05:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23417#M11317</guid>
      <dc:creator>alexeyg</dc:creator>
      <dc:date>2006-02-04T18:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Alfresco JCR: jcr-context.xml and alfresco-jcr.jar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23418#M11318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're right, the JCR implementation is not included in the downloadable Alfresco bundle.&amp;nbsp; In fact, there are several pieces that are not bundled e.g. PHP library, Web Services Client library.&amp;nbsp; It's a very good point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We'll look to improve this, either by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- bundling everything together into the currently available bundle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- providing a seperate "developer" bundle with all appropriate jars and configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- providing further seperate downloads&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't completely understand your WIKI update… the snippet of configuration you've highlighted does not refer to JCR access.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2006 15:01:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23418#M11318</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2006-02-06T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Alfresco JCR: jcr-context.xml and alfresco-jcr.jar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23419#M11319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I thought I could get access to the Repository through ServiceRegistry?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to have same Repository accessed by Alfresco Web Client and another web app?&amp;nbsp; That is ultimately the goal.&amp;nbsp; Does each context in Tomcat require a repository to be started up?&amp;nbsp; Documentation on non-WebClient access is pretty scarce…&amp;nbsp; thank you very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2006 15:06:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23419#M11319</guid>
      <dc:creator>alexeyg</dc:creator>
      <dc:date>2006-02-06T15:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Alfresco JCR: jcr-context.xml and alfresco-jcr.jar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23420#M11320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;import org.springframework.context.ApplicationContext;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.springframework.context.support.ClassPathXmlApplicationContext;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ApplicationContext context = new ClassPathXmlApplicationContext("jcr-context.xml");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any idea guys?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It keeps saying it can't find the xml file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Feb 15, 2006 2:57:27 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;INFO: Loading XML bean definitions from class path resource [jcr-context.xml]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [jcr-context.xml]; nested exception is java.io.FileNotFoundException: class path resource [jcr-context.xml] cannot be opened because it does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.io.FileNotFoundException: class path resource [jcr-context.xml] cannot be opened because it does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:137)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:167)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:81)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.ClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(ClassPathXmlApplicationContext.java:87)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.ClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(ClassPathXmlApplicationContext.java:72)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.ClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(ClassPathXmlApplicationContext.java:63)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.lexmark.jcr.TestingAlfresco.main(TestingAlfresco.java:50)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 19:58:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23420#M11320</guid>
      <dc:creator>chi</dc:creator>
      <dc:date>2006-02-15T19:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Alfresco JCR: jcr-context.xml and alfresco-jcr.jar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23421#M11321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jcr-context.xml must live in your classpath.&amp;nbsp; By default, it's placed into /alfresco, so you should refer to it as "classpath:alfresco/jcr-context.xml".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 17:12:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23421#M11321</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2006-02-16T17:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Alfresco JCR: jcr-context.xml and alfresco-jcr.jar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23422#M11322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also noticed that the jcr-context.xml will attempt to load alfresco/application-context.xml. If an attempt is made to load jcr-context in the alfresco web app, the app context will try to be loaded twice (once by the web client itself, and again by jcr-context.xml). I needed to remove the import from jcr-context.xml to avoid this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Apr 2006 22:45:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-alfresco-jcr-jcr-context-xml-and-alfresco-jcr-jar/m-p/23422#M11322</guid>
      <dc:creator>peterm</dc:creator>
      <dc:date>2006-04-02T22:45:05Z</dc:date>
    </item>
  </channel>
</rss>

