cancel
Showing results for 
Search instead for 
Did you mean: 

Override Alfresco Share login page success, but fail to login [solved]

blossom
Champ in-the-making
Champ in-the-making
I followed this  tutorials and go to my login page http://127.0.0.1:8580/share/page/ it shows customize page successfully. (http://docs.alfresco.com/5.0/tasks/dev-extensions-share-tutorials-override-login-page.html) but fail to login when I click submit button, and the share.log shows error:

<blockcode>
2015-06-01 10:53:31,345 INFO  [org.springframework.extensions.webscripts.connector.RemoteClient] [http-apr-8580-exec-5] Exception calling (GET) http://localhost:8080/alfresco/s/remoteadm/has/alfresco/site-data/template-types/webtemplate.xml?s=s...
2015-06-01 10:53:31,345 INFO  [org.springframework.extensions.webscripts.connector.RemoteClient] [http-apr-8580-exec-5] Error status 500 Connection reset
java.net.SocketException: Connection reset
</blockcode>

I see it try to connect to http://localhost:8080/alfresco/s/, but my tomcat port is 8580,
How do I change it to 8580? any hint? thank you!~~

3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
Have you changed your port(alfresco.port) to 8580 in alfresco-global.properties under (<ALF_HOME>\tomcat\shared\classes)?

blossom
Champ in-the-making
Champ in-the-making
Hi mitpatoliya,
thank you for reply. If I remove customize page setting (share-config-custom.xml), login function works fine.


below is part of my alfresco-global.properties, both alfresco.port & share.port are 8580.


 
###############################
## Common Alfresco Properties #
###############################

dir.root=D:/CMS/Alfresco/Run/alf_data

alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8580
alfresco.protocol=http

share.context=share
share.host=127.0.0.1
share.port=8580
share.protocol=http

### database connection properties ###
db.driver=org.gjt.mm.mysql.Driver
db.username=alfresconew
db.password=alfresconew
db.name=alfresconew
db.url=jdbc:mysql://localhost:3306/alfresconew?useUnicode=yes&characterEncoding=UTF-8
# Note: your database must also be able to accept at least this many connections.  Please see your database documentation for instructions on how to configure this.
db.pool.max=275
db.pool.validate.query=SELECT 1

# The server mode. Set value here
# UNKNOWN | TEST | BACKUP | PRODUCTION
system.serverMode=UNKNOWN

### FTP Server Configuration ###
ftp.port=21

### RMI registry port for JMX ###
alfresco.rmi.services.port=50500

blossom
Champ in-the-making
Champ in-the-making
I copy all content from \tomcat\shared\classes\alfresco\web-extension\share-config-custom.xml
to my extension_modules.jar\alfresco\web-extension\share-config-custom.xml
and add customize page setting inside
<web-framework>


         <defaults>
            <page-type>
               <id>login</id>
               <page-instance-id>tutorials-login</page-instance-id>
            </page-type>
         </defaults> 


Now I can use my customize page to login.