<?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: Use of Repository service APIs in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165722#M119385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as Peter said, JavaFoundationClient use the alfresco repository in embedded mode. The Java Foundation Services API is an in-process and NOT a Remote API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore you&amp;nbsp; can't reuse a running Alfresco on a Tomcat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but I don't know where your second error comes from…Are you trying to reuse your alfdata-directory or database without the other one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2008 07:22:00 GMT</pubDate>
    <dc:creator>jpfi</dc:creator>
    <dc:date>2008-08-12T07:22:00Z</dc:date>
    <item>
      <title>Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165713#M119376</link>
      <description>Hello,I was planning to do simple application that will have my own UI page. At the backend servlet I want to use the Alfresco repository content management API. I was researching and found that there is one such class AvmRepository available in sdk..it has apis such as create-file() ..etc.. Is ther</description>
      <pubDate>Sun, 10 Aug 2008 12:59:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165713#M119376</guid>
      <dc:creator>abhicog123</dc:creator>
      <dc:date>2008-08-10T12:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165714#M119377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure you want to use AVM as opposed to the normal Alfresco repository code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2008 14:29:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165714#M119377</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2008-08-10T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165715#M119378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd suggest you investigate an out-of-process architecture for your UI, where the UI is implemented as a separate application and interacts with the Alfresco repository via Web Scripts (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; This is the design the Alfresco Share and ADW UIs use, and is a model that's been implemented by a number of Alfresco users as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2008 15:17:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165715#M119378</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-08-10T15:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165716#M119379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Zaizi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be honest, I am not sure about the difference between the normal repository code and the AVM. Actually I would be able to decide once I am able to look at sample examples of how these classes are used. I was reading through Java foundation APIs and the javadoc link given there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Java_Foundation_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Java_Foundation_API&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/index.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping that the AVMrepository class would provide the APIs for content mangement of a document..i.e.provide APIs that would allow to maintain versions of document. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know if there is any sample example for for using the Java foundation APIs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 08:16:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165716#M119379</guid>
      <dc:creator>abhicog123</dc:creator>
      <dc:date>2008-08-11T08:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165717#M119380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Download the Alfresco SDK and set it up. It has sample code examples. &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_SDK" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_SDK&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;List of sample projects: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_SDK#Explore_the_Sample_Projects" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_SDK#Explore_the_Sample_Projects&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I would refer you to the previous post by Peter. Using web scripts would be best option for integrating with an Alfresco Repository. Further information available at &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;SPAN&gt;. The Alfresco Share UI integrates a remote Alfresco Repository via web scripts (in the default install it is within the same Tomcat but you can install it on a remote machine(s).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you still want to do a custom UI and want to use java api, then can try and share the spring context between Alfresco and your custom webapp. You can google to find details of how to do this: &lt;/SPAN&gt;&lt;A href="http://www.google.co.uk/search?q=share+spring+context" rel="nofollow noopener noreferrer"&gt;http://www.google.co.uk/search?q=share+spring+context&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 08:42:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165717#M119380</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2008-08-11T08:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165718#M119381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok.. I have downloaded the SDK and imported the projects in eclipse. However I do not know how to execute the FirstFoundationClient. I tried running it but got following error. Other SDk samples, like customlogin provide integrate-extension in the build.xml which puts the sdk code into the alfresco.war. But it is not present in the FirstFoundationclient.so my guess is it is to be run differently. As you might have guessed I am newbie to Spring and web concepts&amp;nbsp;&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; . If there is any list of basic level steps for running&amp;nbsp; FirstFoundation please let me know. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: 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]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at javax.management.remote.rmi.RMIConnectorServer.newIOException(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at javax.management.remote.rmi.RMIConnectorServer.start(Unknown Source)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 09:56:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165718#M119381</guid>
      <dc:creator>abhicog123</dc:creator>
      <dc:date>2008-08-11T09:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165719#M119382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The FirstFoundationClient tries to connect to the remote Alfresco Repository using RMI (in this case on the localhost port 50500). Have you got an Alfresco install running on the local machine? It should create some sample content within Company Home. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are newbie to Spring etc, I would strongly recommend you look at Web scripts. These simple REST web services can be called from PHP, Ruby, JSP, .Net, Java script etc. It might make developing your custom UI much easier. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you found this post useful, please rate it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 12:47:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165719#M119382</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2008-08-11T12:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165720#M119383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually the FirstFoundationClient demonstrates the use of an embedded Alfresco repository, so you don't need to have any Alfresco servers running for it to function (in fact doing so while likely cause problems due to port conflicts - perhaps that's the issue here?).&amp;nbsp; If you've imported the Eclipse projects (as described at &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_SDK#Import_the_Alfresco_Eclipse_Projects" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_SDK#Import_the_Alfresco_Eclipse_Projects&lt;/A&gt;&lt;SPAN&gt;), then you should be able to just run FirstFoundationClient as a standard Java application from within Eclipse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What would help is to describe more precisely the steps you followed, what you expected to happen, and what actually happened instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 14:43:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165720#M119383</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-08-11T14:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165721#M119384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Peter,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have Alfresco installed. I had run the setup for AlfrescoEnterprise-2.2.0-Setup ..It is the normal ECM( not WCM). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I imported the SDK project in eclipse. I started the Alfresco server. I could access Alfresco through its web client. Then I ran the FirstFoundationClient as a standard Java project in eclipse. I got the following error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#FF4000;"&gt;&lt;BR /&gt;11:11:02,448 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation: &lt;BR /&gt;Execution result: &lt;BR /&gt;&amp;nbsp;&amp;nbsp; os:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Windows XP&lt;BR /&gt;&amp;nbsp;&amp;nbsp; command:&amp;nbsp;&amp;nbsp;&amp;nbsp; imconvert "C:\DOCUME~1\ABHIJI~1\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_source_44070.gif"&amp;nbsp; "C:\DOCUME~1\ABHIJI~1\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_target_44071.png"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; succeeded:&amp;nbsp; false&lt;BR /&gt;&amp;nbsp;&amp;nbsp; exit code:&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; out:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateProcess: imconvert "C:\DOCUME~1\ABHIJI~1\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_source_44070.gif" "C:\DOCUME~1\ABHIJI~1\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_target_44071.png" error=2&lt;BR /&gt;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.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]&lt;BR /&gt;Caused by: 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]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at javax.management.remote.rmi.RMIConnectorServer.newIOException(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at javax.management.remote.rmi.RMIConnectorServer.start(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.jmx.support.ConnectorServerFactoryBean.afterPropertiesSet(ConnectorServerFactoryBean.java:168)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)&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.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:55)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:69)&lt;BR /&gt;Caused by: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.sun.jndi.rmi.registry.RegistryContext.bind(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.sun.jndi.toolkit.url.GenericURLContext.bind(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at javax.naming.InitialContext.bind(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at javax.management.remote.rmi.RMIConnectorServer.bind(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;… 15 more&lt;BR /&gt;Caused by: java.rmi.AlreadyBoundException: alfresco/jmxrmi&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:123)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.transport.Transport$1.run(Transport.java:153)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.transport.Transport.serviceCall(Transport.java:149)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.Thread.run(Thread.java:595)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.server.UnicastRef.invoke(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;… 19 more&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The I shut down the Alfresco server and ran the firstFoundationclient ..and got the following error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#FF4000;"&gt;&lt;BR /&gt;11:20:36,287 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation: &lt;BR /&gt;Execution result: &lt;BR /&gt;&amp;nbsp;&amp;nbsp; os:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Windows XP&lt;BR /&gt;&amp;nbsp;&amp;nbsp; command:&amp;nbsp;&amp;nbsp;&amp;nbsp; imconvert "C:\DOCUME~1\ABHIJI~1\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_source_30451.gif"&amp;nbsp; "C:\DOCUME~1\ABHIJI~1\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_target_30452.png"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; succeeded:&amp;nbsp; false&lt;BR /&gt;&amp;nbsp;&amp;nbsp; exit code:&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; out:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateProcess: imconvert "C:\DOCUME~1\ABHIJI~1\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_source_30451.gif" "C:\DOCUME~1\ABHIJI~1\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_target_30452.png" error=2&lt;BR /&gt;11:20:39,585 WARN&amp;nbsp; [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one&lt;BR /&gt;Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryRepositoryBootstrap' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: Failure during rollback: org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap$1@497536&lt;BR /&gt;Caused by: org.alfresco.error.AlfrescoRuntimeException: Failure during rollback: org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap$1@497536&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:281)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.bootstrap(DictionaryRepositoryBootstrap.java:134)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.reflect.Method.invoke(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1160)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1122)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)&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.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:55)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:69)&lt;BR /&gt;Caused by: java.lang.IllegalStateException: No user transaction is active&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.util.transaction.SpringAwareUserTransaction.rollback(SpringAwareUserTransaction.java:479)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:276)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;… 20 more&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure we need to shut down the Alfresco server? The explanation text in the FirstFoundationClient Program states the following..Since it says we need to re-start the web-client..i was guessing that it puts some data in company home folder which is accessible though webclient and so we need the Alfresco server on while we are running the FirstFoundationClient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:#FF4000;"&gt;&lt;BR /&gt;/**&lt;BR /&gt; * Simple client example demonstrating the use of the Alfresco Foundation Java APIs.&lt;BR /&gt; * &lt;BR /&gt; * The client creates a content node in the "Company Home" folder.&amp;nbsp; The content&lt;BR /&gt; * may be viewed and operated on within the Alfresco Web Client.&amp;nbsp; Note: the web client&lt;BR /&gt; * will need to be re-started after executing this sample to see the changes in&lt;BR /&gt; * effect.&lt;BR /&gt; *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know what you think.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 05:56:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165721#M119384</guid>
      <dc:creator>abhicog123</dc:creator>
      <dc:date>2008-08-12T05:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165722#M119385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as Peter said, JavaFoundationClient use the alfresco repository in embedded mode. The Java Foundation Services API is an in-process and NOT a Remote API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore you&amp;nbsp; can't reuse a running Alfresco on a Tomcat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but I don't know where your second error comes from…Are you trying to reuse your alfdata-directory or database without the other one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 07:22:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165722#M119385</guid>
      <dc:creator>jpfi</dc:creator>
      <dc:date>2008-08-12T07:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165723#M119386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have not done anychanges to the SDK sample FirstFoundationClient that I downloaded from alfreso.com So to answer your question I am not sure what it does - uses or does not use alddata-directory or database without the other one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there are 3 files in alfresco.extension folder in the FirstFoundationClient project that I imported in eclipse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;custom-alfresco-shared.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;custom-repository-context.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;custom-repository.properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have kept the values/setting in them as it is.because I dont know what changes should be made to those.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had shut down the Alfresco server when I got the second error. When I looked at the code FirstFoundationClient.java I found that it is trying to get the ApplicationContext.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#FF0040;"&gt;ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the line that throws error in both cases (Alfresco ON and OFF).ApplicationContext in facts tried to load the Alfresco's Spring alfresco/application-context.xml. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I am puzzled. Since I am running the FirstFoundationClient from within eclipse, and Alfresco is shut down, then it is not possible to load the application-context.xml.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation says that it in-process API. So does this mean that FirstFoundationClient should be run from within the Alfresco Webapp?? I am guessing it should be. But even if it is deployed in the same alfresco.war then how am I going to run the FirstFoundationClient.java. In eclipse I am just invoking the main()&amp;nbsp; method. Again I am guessing, I should write a simple html page and on a button click I could invoke this method from the backend servlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if there is a simple procedure to invoke the FirstFoundationClient from within eclipse , please let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for all your replies guys.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 07:58:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165723#M119386</guid>
      <dc:creator>abhicog123</dc:creator>
      <dc:date>2008-08-12T07:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165724#M119387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The following line of code "boots" an embedded Alfresco instance within FirstFoundationClient (ie. creates a new, independent Alfresco application context within the FirstFoundationClient JVM):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Any exceptions that occur anywhere in the Alfresco bootstrap process will be thrown out of this method - it indirectly does a &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;lot&lt;/SPAN&gt;&lt;SPAN&gt; of stuff.&amp;nbsp; :wink:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason you saw those exceptions when you had Alfresco running is that you effectively ended up with two independent Alfresco instances running at the same time (one being the standalone Alfresco server and the other being the embedded Alfresco within FirstFoundationClient).&amp;nbsp; Given that Alfresco (by default) listens on quite a few ports (FTP port 21, CIFS ports 137-139 &amp;amp; 445, NFS ports 111 &amp;amp; 2049 I think?, RMI port 50500), whichever instance you start second will get a lot bind exceptions (since the first instance is already listening on those ports).&amp;nbsp; This is one of the reasons it's best to &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt;&lt;SPAN&gt; to run a standalone Alfresco server at the same time as FirstFoundationClient - changing all of those ports to ensure there are no conflicts is rather tedious, but not changing the ports will prevent the second Alfresco instance from starting (some, but not all, of those ports are required, so bind exceptions are often fatal).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like Jan I'm not sure what would cause the second exception you're seeing ("java.lang.IllegalStateException: No user transaction is active").&amp;nbsp; Have you tried clearing out the repository (alf_data and database) that FirstFoundationClient is writing to and running it again?&amp;nbsp; By default this is ./alf_data within the FirstFoundationClient project directory, and (assuming you haven't reconfigured it) uses an HSQLDB database located underneath that directory (in ./alf_data/hsql_data).&amp;nbsp; If you're using those defaults, deleting the alf_data directory will fully reset the repository and should allow for a clean run of the FirstFoundationClient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 06:16:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165724#M119387</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-08-13T06:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165725#M119388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry for replying late. i finally got the FirstFoundationclient running. I had not setup the DB and not configured custom-repository.properties file. Hence the problems. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for all the pointers and tips.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 12:10:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165725#M119388</guid>
      <dc:creator>abhicog123</dc:creator>
      <dc:date>2008-08-21T12:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Repository service APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165726#M119389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Abhi &amp;amp; all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;During the time of installation I had opted for "Derby". Can you please specify step by step what exactly&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to setup with respect to DB and in custom-repository.properties file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still struggling, will be very kind of you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks n reg-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 14:46:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-repository-service-apis/m-p/165726#M119389</guid>
      <dc:creator>amit_wmw</dc:creator>
      <dc:date>2008-10-01T14:46:42Z</dc:date>
    </item>
  </channel>
</rss>

