cancel
Showing results for 
Search instead for 
Did you mean: 

Error Deploying Multiple Instances

whitecrowe
Champ in-the-making
Champ in-the-making
Error Deploying Multiple Instances

In summary, I am trying to deploy Alfresco multiple times as separate web applications within one Tomcat instance and receiving error: ERROR [org.alfresco.smb.protocol] Error accessing Win32 NetBIOS, check DLL is on the path; on all but the first application that starts.

In detail, I am attempting to deploy multiple Alfresco repositories named alf001, alf002, alf003 … I have created one database in MySQL for each repository and I manually unpack the Alfresco.war into webapps\alf001, webapps\alf002, ect. I change the WEB-INF\classes\alfresco\repository.properties and the WEB-INF\classes\alfresco\file-servers.xml to reflect the new repository name and database. When I start Tomcat I receive no errors with alf001 but receive the above error on all subsequent Alfresco applications, although all do start and do work.

I do not believe this is a path issue else the first instance would not start either. Is it possible that the DLL does not support multiple repositories or do I need to change something else?

Thanks
3 REPLIES 3

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

It is possible to run multiple instances of Alfresco with multiple CIFS servers. It requires some of the classes to be moved to the Tomcat shared\classes folder so that the JNI code used to interface with Windows Winsock NetBIOS is only loaded once.

Here's what you need to do. Extract the following packages from the repository.jar file into the Tomcat shared\classes folder (with the original package folder tree) :-

org.alfresco.filesys.netbios
org.alfresco.filesys.netbios.win32
org.alfresco.filesys.smb
org.alfresco.filesys.util

Then delete them from the repository.jar, I used WinZip to do this.

After deploying multiple versions of the Alfresco WAR file edit the following files :-

repository.properties
Change the dir.root and db.name values

file-servers.xml
Change the second webapp to use <host name="${localname}B"/>

Make sure each webapp is using the modified repository.jar with the shared classes removed, then startup Tomcat and you should see two file servers registered in the NetBIOS name table - nbtstat -n.

Cheers

Gary

trac
Champ in-the-making
Champ in-the-making
Hi,

I guess I'm a bit confused as how to do multiple instances of Alfresco/jboss on Linux using MySql.
as I see it as of now you create another directory where your second instance is in the jboss folder
seen as

/jboss/default - main company instance
/jboss/company2 - secondary company

Do you need everything that is in the default directory copied to the company2 directory?
You would have two mysql databases default and company2 and
which files would need to be edited to create the second instance for the different ports and
for startup of the two instances?

Thanks in advance for any help that can be given as I seem to be a bit confused as to what needs to be changed.

Trac

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

I don't think it would be possible to run multiple Alfresco CIFS servers on linux. To do that properly would require a NetBIOS name service that is shared between the different instances of Alfresco.

It may be possible to configure one instance of Alfresco to use NetBIOS and the other instance to use native SMB. This is not ideal though as Windows clients can fail over to one or the other server.

As the linux version of the Alfresco CIFS server does not use any native code you should be able to use the Jar/War files as is. You would need to change the file-servers.xml files so that one instance is configured with <netBIOSSMB/> and the other instance configured to use <tcpipSMB/>.

Cheers

Gary