cancel
Showing results for 
Search instead for 
Did you mean: 

How to change port 50500

roberthcole
Champ in-the-making
Champ in-the-making
I am not a Java programmer, just a system administrator.

I am trying to get Alfresco to run alongside the Atlassian Jira and Confluence applications; both of which are already running on my system.
I have given up trying to get Alfresco to run in the same instance of Tomcat as the Atlassian apps. The errors were too horrible.

I have managed to get Alfresco installed in /opt/alfresco and it runs OK when the Atlassian apps are disabled.
The problem of having them both work seems to be the shared use of the Java JDK. They both want to use port 50500.
So I need to know how to get Alfresco to use a different port for the Java RPI. Can anyone tell me, explicitly, please.

(I have already solved the problem of both tomcat instances wanting to use port 8080).

Robert
2 REPLIES 2

janv
Employee
Employee
What version/build of Alfresco are you running ? It should be possible to do this by:

1. copying alfresco-shared.properties from …/tomcat/webapps/alfresco/WEB-INF/classes/alfresco to …/tomcat/shared/classes/alfresco/extension

2. editing the port number in …/tomcat/shared/classes/alfresco/extension/alfresco-shared.properties

3. overriding the shared-properties bean by adding it to your …/tomcat/shared/classes/alfresco/extension/custom-repository-context.xml as

    <bean id="shared-properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="ignoreUnresolvablePlaceholders">
            <value>true</value>
        </property>
        <property name="locations">
            <list>
                <value>classpath:alfresco/extension/alfresco-shared.properties</value>
            </list>
        </property>
    </bean>
Thanks,
Jan

roberthcole
Champ in-the-making
Champ in-the-making
Smiley Very Happy That worked a treat. I now have both Tomcat instances and their apps running. I can document the installation of Alfresco in Confluence.
Thanks,
Robert