cancel
Showing results for 
Search instead for 
Did you mean: 

tomcat on port 80: login from web editor not working anymore

apolci
Champ in-the-making
Champ in-the-making
I changed the port of tomcat from 8080 to 80.

It all works fine but now I can't login from the web editor of a quick start site.
I found out that the login controller still try to call the alfresco api with the endpoint http://localhost:8080/alfresco/s and this obviously fail. Debugging the application I've found that the org.springframework.extensions.webscripts.connector.AlfrescoConnector instance is built with this endpoint but I didn't find where this object construction is defined.

If I understand this endpoint should come from the wcmqs.api.alfresco property but I have it changed to "http://127.0.0.1:80/alfresco" in tomcat/shared/classes/alfresco/extension/wqsapi-custom.properties.

Can someone help me? Where the endpoint for the AlfrescoConnector is defined?

Thanks,
Andrea
1 REPLY 1

bremmington
Champ on-the-rise
Champ on-the-rise
The property you're setting adjusts how the sample WQS webapp ("wcmqs.war") finds Alfresco. In order to adjust how the Web Editor webapp ("awe.war") finds Alfresco you will need to add some config to a file located on the classpath at shared/classes/alfresco/web-extension/awe-config-custom.xml. The required configuration is outlined on the Web Editor's Wiki page, but I've copied it here for you:

<?xml version="1.0" encoding="UTF-8"?>
<alfresco-config>
   <plug-ins>
      <element-readers>
         <element-reader element-name="remote" class="org.springframework.extensions.config.RemoteConfigElementReader" />
      </element-readers>
   </plug-ins>

   <config evaluator="string-compare" condition="Remote">
      <remote>
         <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://MYSERVER:MYPORT/alfresco/s
            </endpoint-url>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>
</alfresco-config>
Replace MYSERVER and MYPORT as appropriate for your set up.