cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot login to Share Tomcat 7 set to port 80

gman
Champ in-the-making
Champ in-the-making
I'm running the Community Edition nightly build as of 09-12-2010 on Tomcat7, Windows Server 2003. I have Tomcat listening on port 80. I can access Alfresco Explorer just fine. I cannot login to share. I receive the following message:

The remote server may be unavailable or your authentication details have not been recognized.

I have researched this on the Internet, and this problem has come up for earlier version of Alfresco. The issue is that Alfresco and Share by default are set to listen on port 8080, but I'm running on port 80. The solutions I have come across mention changing 8080 to 80 in some web script configuration files, but I cannot find these files or folders that contain the files in 3.4 CE latest nightly build. Link to one solutions I've come across:

http://extats.blogspot.com/2009/07/problems-with-alfresco-share-running-on.html

http://www.devcomments.com/Does-Alfresco-Share-only-work-on-port-8080-of-Tomcat-1-to259525.htm

So I have changed every instance of http://localhost:8080/  with  http://localhost/  that I can find, but still unable to access Share.

IS there anything else I need to do to access Share with Tomcat listening on port 80?
1 REPLY 1

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
- Look inside the tomcat/webapps/share/WEB-INF/classes/alfresco/web-extension for a file called share-config-custom.xml.sample
- 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/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/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/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>

</alfresco-config>
- I've edited the one above to remove the ":8080" part of the URLs.
- Save the new config file and restart Tomcat

Thanks,
Mike