How to deploy both Alfresco (alfresco.war) and Alfresco Share(share.war) on two different tomcat instances

cancel
Showing results for 
Search instead for 
Did you mean: 
brucezhou
Active Member

How to deploy both Alfresco (alfresco.war) and Alfresco Share(share.war) on two different tomcat instances

Jump to solution

Hello expert!

        In my development environment I have changed the next tag in share-config-custom.xml file ,then I can login share  Successfully,but I get the error: Alfresco is running without Share Services. See your System Administrator for more details. the logs like this:

2017-02-28 19:07:45,200 INFO [webscripts.connector.RemoteClient] [http-bio-8081-exec-10] Exception calling (GET) http://localhost:8080/alfresco/api/-default-/private/alfresco/versions/1/modulepackages/alfresco-sha...
2017-02-28 19:07:45,206 INFO [webscripts.connector.RemoteClient] [http-bio-8081-exec-10] Error status 503 Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused

         but I have changed the share-config-custom.xml,the endpoint-url is the right url.what are the other configuration which we have to take care of ?

1 Solution

Accepted Solutions
mbajpai
Active Member II

Re: How to deploy both Alfresco (alfresco.war) and Alfresco Share(share.war) on two different tomcat instances

Jump to solution

For the warning "Alfresco is running without share services ... "  you need to apply alfresco-share-services amp to alfresco.war. This link from Alfresco Community is very helpful  -

https://community.alfresco.com/community/ecm/blog/2016/05/27/separating-platform-and-share-in-alfres... 

View solution in original post

3 Replies
afaust
Master

Re: How to deploy both Alfresco (alfresco.war) and Alfresco Share(share.war) on two different tomcat instances

Jump to solution

Keep in mind that the public API is a different endpoint to change. In total you need to the following endpoints:

  • alfresco-noauth
  • alfresco
  • alfresco-feed
  • alfresco-api
brucezhou
Active Member

Re: How to deploy both Alfresco (alfresco.war) and Alfresco Share(share.war) on two different tomcat instances

Jump to solution

Thank you for your reply! how to set the endpoint for alfresco-api?

my share-config-custom.xml in the share.war under web-extension dir like this:

<config evaluator="string-compare" condition="Remote">
    <remote>
        <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://my domain:8004/alfresco//s</endpoint-url>
            <identity>none</identity>
        </endpoint>

        <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://my domain:8004/alfresco//s</endpoint-url>
            <identity>user</identity>
        </endpoint>

        <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://my domain:8004/alfresco//s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
        </endpoint>

        <endpoint>
            <id>activiti-admin</id>
            <name>Activiti Admin UI - user access</name>
            <description>Access to Activiti Admin UI, that requires user authentication</description>
            <connector-id>activiti-admin-connector</connector-id>
            <endpoint-url>http://my domain:8004/alfresco//activiti-admin</endpoint-url>
            <identity>user</identity>
        </endpoint>
    </remote>
mbajpai
Active Member II

Re: How to deploy both Alfresco (alfresco.war) and Alfresco Share(share.war) on two different tomcat instances

Jump to solution

For the warning "Alfresco is running without share services ... "  you need to apply alfresco-share-services amp to alfresco.war. This link from Alfresco Community is very helpful  -

https://community.alfresco.com/community/ecm/blog/2016/05/27/separating-platform-and-share-in-alfres...