<?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: Forbidden in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258147#M211277</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;Here is the code that's executing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SessionFactory sessionFactory = SessionFactoryImpl.newInstance();&lt;BR /&gt;Map&amp;lt;String, String&amp;gt; parameter = new HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt;parameter.put(SessionParameter.USER, "admin");&lt;BR /&gt;parameter.put(SessionParameter.PASSWORD, "admin");&lt;BR /&gt;parameter.put(SessionParameter.ATOMPUB_URL, "&lt;A href="http://192.168.1.195:8080/alfresco/cmisatom/" rel="nofollow noopener noreferrer"&gt;http://192.168.1.195:8080/alfresco/cmisatom/&lt;/A&gt;");&lt;BR /&gt;parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());&lt;BR /&gt;List&amp;lt;Repository&amp;gt; repositories = new ArrayList&amp;lt;Repository&amp;gt;();&lt;BR /&gt;repositories = sessionFactory.getRepositories(parameter);&lt;BR /&gt;Repository repository = repositories.get(0);&lt;BR /&gt;parameter.put(SessionParameter.REPOSITORY_ID, repository.getId());&lt;BR /&gt;Session session = sessionFactory.createSession(parameter);&lt;BR /&gt;Folder root = session.getRootFolder();&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The last line is giving problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing I would like to add is, when I click on following URL, it gives 403 error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this issue and the issue above have same root cause:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://192.168.1.195:8080/alfresco/service/cmis/index.html" rel="nofollow noopener noreferrer"&gt;http://192.168.1.195:8080/alfresco/service/cmis/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bakul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2012 17:19:46 GMT</pubDate>
    <dc:creator>bakpatel</dc:creator>
    <dc:date>2012-04-16T17:19:46Z</dc:date>
    <item>
      <title>Forbidden</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258145#M211275</link>
      <description>Hi,I am calling local CMIS service at http://192.168.1.195:8080/alfresco/service/cmis/index.htmlI am trying to call this as admin. In fact, I am running "Getting Started" example from OpenCMIS.But I am getting following error, Any idea?xception in thread "main" org.apache.chemistry.opencmis.commons.</description>
      <pubDate>Mon, 16 Apr 2012 13:37:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258145#M211275</guid>
      <dc:creator>bakpatel</dc:creator>
      <dc:date>2012-04-16T13:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Forbidden</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258146#M211276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please post your code. Otherwise, we can only guess based on your error message, which seems to indicate you are using the wrong username and password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if you are running this against Alfresco 4, please change your URL from:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://192.168.1.195:8080/alfresco/service/cmis" rel="nofollow noopener noreferrer"&gt;http://192.168.1.195:8080/alfresco/service/cmis&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://192.168.1.195:8080/alfresco/cmisatom" rel="nofollow noopener noreferrer"&gt;http://192.168.1.195:8080/alfresco/cmisatom&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 14:44:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258146#M211276</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-04-16T14:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Forbidden</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258147#M211277</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;Here is the code that's executing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SessionFactory sessionFactory = SessionFactoryImpl.newInstance();&lt;BR /&gt;Map&amp;lt;String, String&amp;gt; parameter = new HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt;parameter.put(SessionParameter.USER, "admin");&lt;BR /&gt;parameter.put(SessionParameter.PASSWORD, "admin");&lt;BR /&gt;parameter.put(SessionParameter.ATOMPUB_URL, "&lt;A href="http://192.168.1.195:8080/alfresco/cmisatom/" rel="nofollow noopener noreferrer"&gt;http://192.168.1.195:8080/alfresco/cmisatom/&lt;/A&gt;");&lt;BR /&gt;parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());&lt;BR /&gt;List&amp;lt;Repository&amp;gt; repositories = new ArrayList&amp;lt;Repository&amp;gt;();&lt;BR /&gt;repositories = sessionFactory.getRepositories(parameter);&lt;BR /&gt;Repository repository = repositories.get(0);&lt;BR /&gt;parameter.put(SessionParameter.REPOSITORY_ID, repository.getId());&lt;BR /&gt;Session session = sessionFactory.createSession(parameter);&lt;BR /&gt;Folder root = session.getRootFolder();&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The last line is giving problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing I would like to add is, when I click on following URL, it gives 403 error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this issue and the issue above have same root cause:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://192.168.1.195:8080/alfresco/service/cmis/index.html" rel="nofollow noopener noreferrer"&gt;http://192.168.1.195:8080/alfresco/service/cmis/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bakul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 17:19:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258147#M211277</guid>
      <dc:creator>bakpatel</dc:creator>
      <dc:date>2012-04-16T17:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Forbidden</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258148#M211278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This code runs fine as-is against Alfresco 4.0.d Community with Alfresco WAR-only running in a Tomcat container.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you able to log in to Alfresco using admin/admin? I suspect a problem with your install and/or app server config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 21:13:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258148#M211278</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-04-16T21:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Forbidden</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258149#M211279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply, and yes, I think you right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to be some issue with Alfresco configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to login as admin/admin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am very new to Alfresco, and don't know how to set it up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bakul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 05:24:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258149#M211279</guid>
      <dc:creator>bakpatel</dc:creator>
      <dc:date>2012-04-17T05:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Forbidden</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258150#M211280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I reinstalled the server, and all worked fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what went wrong last time..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bakul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 08:16:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/forbidden/m-p/258150#M211280</guid>
      <dc:creator>bakpatel</dc:creator>
      <dc:date>2012-04-17T08:16:32Z</dc:date>
    </item>
  </channel>
</rss>

