cancel
Showing results for 
Search instead for 
Did you mean: 

How to change default port config in version 3.3

shivasai
Champ in-the-making
Champ in-the-making
Hi,

We have installed Alfresco Community Edition 3.3 on Windows Server 2008 OS.

Also installed is another application P/I OfficeMail on the same server.

While installing  Alfresco, we have given the Tomcat a different port no. ( 8099 ), as port 8080 was already in use by OfficeMail.

The issue is that after installing OfficeMail, Alfresco Explorer and Share aren't accessible.
The Alfresco Web Client still defaults to port 8080, and when we tried starting up Share, the web page displayed the following exception:

*********************************************************
HTTP Status 500 -

type Exception report

message description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.PlatformRuntimeException: 06080001 Unable to retrieve object: slingshot.site.configuration of type: configuration
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:659)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

*********************************************

There seems to be a port conflict.
We have already gone thorugh the forum and found a page ( http://wiki.alfresco.com/wiki/Changing_Default_Port_Configuration ),
describing how to change default port config. for upto Version 3.0.

It would be great if anyone could reply with the process ( if any ) to change the default port settings so that both these apps can run simultaneously without any conflict.

Thanks,

Shiv
4 REPLIES 4

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
8080  is tomcat port, you just change that

alfresco3.0\tomcat\conf\server.xml

<Connector port="8180(you change this port to what ever you need)" protocol="HTTP/1.1" URIEncoding="UTF-8"
               connectionTimeout="20000"
               redirectPort="8443" />

so you go http://address:whateverportnumber/alfresco

if you have jboss just google it out , "how to change port on jboss" or go hire http://lkamal.blogspot.com/2006/09/jboss-4-how-to-change-port-8080-in.html

hope it helps.

shivasai
Champ in-the-making
Champ in-the-making
Thanks for the help. It served the initial purpose.

We have changed the port no for Tomcat to 8099.

The Alfresco web client works fine. But when we tried opening up Share page, it threw the following exception:

****************************
exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.PlatformRuntimeException: 06090000 Unable to retrieve object: slingshot.site.configuration of type: configuration

root cause

org.springframework.extensions.surf.exception.PlatformRuntimeException: 06090000 Unable to retrieve object: slingshot.site.configuration of type: configuration

root cause

org.springframework.extensions.surf.exception.ModelObjectPersisterException: Failure to load model object for path: alfresco/site-data/configurations/slingshot.site.configuration.xml

root cause

java.io.IOException: Unable to test document path: alfresco/site-data/configurations/slingshot.site.configuration.xml in remote store: alfresco due to error: 404


***************************

We have gone thru some of the responses over this issue in this forum,
and changed the port no in the file:  " $_Alfresco\tomcat\shared\classes\alfresco\web-extension\share-config-custom.xml " to 8099 as well. Still it odesnt work.

Would be really great if someone could help resolving this issue.

Thanks,

Shiv

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
Smiley Happy , you need to go to share and find file webscript-framework-config.xml witch is in share.war\WEB-INF\classes\alfresco and
see the xml code. You will find bunch of addresses witch point to  localhost:8080 and you must change all of them to your port .

Hope it helps!

shivasai
Champ in-the-making
Champ in-the-making
Thanks Guys for your kind help.
We have done all the settings and changes and Explorer works fine now.

Still working on few other customizations now.

Thanks and Regards

Shiva