cancel
Showing results for 
Search instead for 
Did you mean: 

Change Alfresco Repository Port for Alfresco Share

pritesh_shah17
Champ in-the-making
Champ in-the-making
Hello All,

I have created share-config-custom.xml into which I am customization of share and I am deploying it to webapps\share\WEB-INF\classes\alfresco\web-extension

I have changed my server port to 9090 and my alfresco repo and share are on same instance.
I have added alfresco repo port configuration in shared\classes\alfresco\web-extension\share-config-custom.xml

But I am starting up my server I am getting error

java.net.ConnectException: Connection refused: connect
[webscripts.connector.EndpointManager] [http-9090-1] Throttled authentication handshake, waiting for reconnect timeout on: http://localhost:8080/alfresco/s


Any help appreciated!!!
Thanks in advance!!!
2 REPLIES 2

bopolissimus
Confirmed Champ
Confirmed Champ

alfresco is no longer running at the default port 8080 but share is still trying to connect to port 8080 to talk to alfresco.  A simple fix would be to redirect (with iptables, if you're on linux, if windows or something else, you'll need to figure out how to do this for your platform) all connections to port 8080 to port 9090.

However, that won't work if you are trying to run two alfrescos on the same machine.  I did that, and one was on 8080 and the other was on 9090.  If this is what you're doing, you'll want to go to tomcat/shared/classes/alfresco/web-extension (for the tomcat that's running on 9090).  edit share-config-custom.xml (or copy share-config-custom.xml.sample to share-config-custom.xml and edit share-config-custom.xml).  Once you're editing that file, replace all 8080 with 9090.

If you're also running share on one machine and alfresco on another (to reduce load on the alfresco machine, for instance) then you'd also replace localhost with whatever the alfresco machine's hostname or IP address is.

Good luck,

Gerald

mtielemans
Champ in-the-making
Champ in-the-making
I know this is an old post and OP has probably moved on, but for completeness sake:

There is a default share-config-custom found in %TOMCAT_HOME%\shared\classes\alfresco\web-extension. This file overrides any share-config-custom.xml in the exploded share webapp folder.

In this default share-config, you will find all the configurations for repository endpoint URLs. Open it, and change all instances of localhost:8080 to localhost:9090. Now your share should work.
Afterwards, you may want to merge your changes in the exploded share-config-custom into the share-config-custom available on the shared classpath.

If this doesn't work, ensure that the 'tomcat/shared/classes/' folder is on the classpath by ensuring in tomcat/conf/catalina.properties that the value for shared.loader looks like
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar