cancel
Showing results for 
Search instead for 
Did you mean: 

HOWTO: Change the default port from 8080

mikeh
Star Contributor
Star Contributor
- Ensure your Tomcat instance is looking on our extensions classpath. See http://wiki.alfresco.com/wiki/Install_Tomcat6 for details
- Get share-config-custom.xml.sample from SVN: http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/slingshot/config/alfr...
- Copy this file to tomcat/shared/classes/alfresco/web-extension (create the folders if they're not there) and rename it to remove the .sample extension
- Edit this file (notepad will do, or any other text editor).
- You don't need most of the other config, just the section at the bottom… something like this:
<alfresco-config>

   <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://localhost:8080/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://localhost:8080/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://localhost:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>

</alfresco-config>
- Edited the sample above to change the "localhost:8080" part of the URLs to match your local setup.
- Save the new config file and restart Tomcat (or just redeploy share)

Thanks,
Mike
19 REPLIES 19

pdiazs
Champ in-the-making
Champ in-the-making
Hello:

There must be some misunderstanding in this question, i`ve seen your comments but i cannot find such files and folders in my computer.
Perhaps something has changed with 3.3 version. I always feel that the main focus in your comments drives to Linux users, and im not sure wether it applies or not to windows.
Cheers

mikeh
Star Contributor
Star Contributor
Hello:

There must be some misunderstanding in this question, i`ve seen your comments but i cannot find such files and folders in my computer.
Perhaps something has changed with 3.3 version. I always feel that the main focus in your comments drives to Linux users, and im not sure wether it applies or not to windows.
Cheers
The instructions are the same no matter what the operating system. Which files can't you find..?

Thanks,
Mike

pdiazs
Champ in-the-making
Champ in-the-making
The instructions are the same no matter what the operating system. Which files can't you find..?

Thanks,
Mike
Hi again

1º The folder C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco does not contain any sub folder called web-extension
2º I cannot find the file share-config-custom.xml.sample in any of the sub folders (messages, templates, webdata, webscripts)

Thanks a lot

mikeh
Star Contributor
Star Contributor
Ok, sorry about that - must only be included as part of an installer script.

Grab it from SVN instead: http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/slingshot/config/alfr...

Thanks,
Mike

pdiazs
Champ in-the-making
Champ in-the-making
Ok, sorry about that - must only be included as part of an installer script.

Grab it from SVN instead: http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/slingshot/config/alfr...

Thanks,
Mike

Hello again

Still the same problem, "The remote server may be unavailable or your authentication details have not been recognized"

I must have missed something

cheers

mikeh
Star Contributor
Star Contributor
Post the exact steps you've taken. I assume you can login to the Explorer client ok?

Thanks,
Mike

pdiazs
Champ in-the-making
Champ in-the-making
¡¡¡ I managed to connect¡¡¡
The file to edit was afresco-global.properties located somewhere down tomcat folder (look for it through windows) There you can edit and substitute 8080 port for the selected one.

Then everythig works

Thanks a lot MikeH

fmolloy
Champ in-the-making
Champ in-the-making
I'm having the same problem but I'm a bit lost. What do you change the localhost number to?

croc
Champ in-the-making
Champ in-the-making
Hi,

Where are you lost?
as for the localhost, i don't think you need to change it, unless you change it to your PC's IP Address. and you miss-type it, then it won't work.

@Mike,
What happens to the tomcat's port number in server.xml file under the conf directory, because I was thinking that, that's the port where the application is running from.

Regards,
Croc
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.