cancel
Showing results for 
Search instead for 
Did you mean: 

2 Installs on 1 machine

gmurphy
Champ on-the-rise
Champ on-the-rise
Folks,

I have being tring to install two instances of Alfresco on the same machine. I have 1 instance up and running with Tomcat - Mysql - Solaris

Now when I configure and try start the 2nd install I'm getting the error message below.

There seems to be a problem with port numbers and I do not know how I might change them. Cannot anyony point me in the right direction.



11:44:15,675 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmRemoteService' defined in class path resource [alfresco/remote-services-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Port already in use: 50501; nested exception is:
   java.net.BindException: Address already in use
Caused by: java.rmi.server.ExportException: Port already in use: 50501; nested exception is:
1 REPLY 1

janv
Employee
Employee
It can be done, as long you re-configure all conflicting ports and ensure each instance point to its own DB schema and root dir (alf_data => content store & lucene indexes) etc. As an alternative, you may prefer to use VM virtualization or Alfresco multi-tenancy (to host multiple "tenants" on a single instance).

If you're using Alfresco 3.2 with Tomcat and then you could start with editing the config for the 2nd instance. For example, edit "…/tomcat/shared/classes/alfresco-global.properties", eg.

dir.root=…

db.name=…
db.username=…
db.password=…
db.host=…
db.port=…

ftp.enabled=true
ftp.port=1121

cifs.enabled=false

avm.rmi.service.port=60501
avmsync.rmi.service.port=60502
attribute.rmi.service.port=60503
authentication.rmi.service.port=60504
repo.rmi.service.port=60505
action.rmi.service.port=60506
deployment.rmi.service.port=60507

You will also need to edit "…/tomcat/conf/server.xml" and change ports, eg.

8005 -> 9005
8080 -> 9080
8443 -> 9443

See also:

http://forums.alfresco.com/en/viewtopic.php?f=8&t=21526

Regards,
Jan