cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple instances of Alfresco into the same Tomcat instance

camillo
Champ in-the-making
Champ in-the-making
Hi all,

I'd like install multiple instances of alfresco in a single server.
I have installed alfresco community 2.0 in my system.
I've copied two alfresco war files in the webapp directory of Tomcat, alfresco1.war and alfresco2.war.
I also have modified Alfresco repository.properties files writing the correct location for data directories and databases.
So, i restarted Alfresco.
But, when Alfresco starts these exceptions occur:

18:36:54,317 ERROR [smb.protocol.netbios] NetBIOSNameServer setup error:
java.net.BindException: Address already in use
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
at java.net.DatagramSocket.bind(DatagramSocket.java:368)
at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
at java.net.DatagramSocket.<init>(DatagramSocket.java:234)
at org.alfresco.filesys.netbios.server.NetBIOSNameServer.openSocket(NetBIOSNameServer.java:1085)
at org.alfresco.filesys.netbios.server.NetBIOSNameServer.run(NetBIOSNameServer.java:1611)
at java.lang.Thread.run(Thread.java:619)
18:36:54,344 INFO [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_11-b03; maximum heap size 493,063MB
18:36:54,361 WARN [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493,063MB is less than recommended 512MB
18:36:54,344 ERROR [alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:407)
at java.lang.Thread.run(Thread.java:619)
18:36:54,361 INFO [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (482) schema 64 - Installed version 2.1.0 (484) schema 64
18:36:54,368 ERROR [alfresco.smb.protocol] Server error :
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.alfresco.filesys.smb.server.SessionSocketHandler.initialize(SessionSocketHandler.java:257)
at org.alfresco.filesys.smb.server.NetBIOSSessionSocketHandler.createSessionHandlers(NetBIOSSessionSocketHandler.java:165)
at org.alfresco.filesys.smb.server.SMBServer.run(SMBServer.java:495)
at java.lang.Thread.run(Thread.java:619)


I think the cause is about numbers of ports….is it right?
How can i solve this problem?
Please, help me! :cry:


ps
I also installed Alfresco 3 Labs and I tried the Multi-tencancy option. This is a cool option but the tenants share the same db  (i'd like a db for each tenants or Alfresco instance)
I could have multiple Tomcat instances but I haven't many resources in my system
2 REPLIES 2

pconnors
Champ in-the-making
Champ in-the-making
I'm going to be attempting the same exercise soon, and I have a dreadful feeling it's going to be more work than it's worth.  I would think that you are in fact running into port conflicts between the multiple applications.  Take a look at the file-servers.xml file.  There's a commented out section that allows you to change the port number used for CFIS… that's where I'd start.  Be sure to keep in mind that there is a higher lever extensions directory with the <file>-custom.xml configurations that could also be stepping on things.  If I come up with any good tricks over the next couple days, I'll let you know…

camillo
Champ in-the-making
Champ in-the-making
Thank you very mcuh for your reply.
While I try some solutions to solve the problem, I'll wait you post  Smiley Happy
Thanks in advance