Installing Alfresco 2.2 on Windows Server 2003
Uncategorized August 14th, 2008There wasn’t a any clear-cut guide for installing Alfresco 2.2 ECM on Windows Server 2003, so I took some notes. Here goes…
- Installed jdk-1_5_0_15-windows-i586-p.exe with default options. The JDK is required (I tried it with just the JRE first).
- Installed mysql-essential-5.0.67-win32.msi with the following options:
- Complete
- Configure Now
- Standard Configuration
- Install As Windows Service, Launch Automatically
- Root Password: ********
- Installed mysql-gui-tools-5.0-r12-win32.msi with default options.
- Installed OpenOffice_2.4.1_Win32Intel_install_wJRE_en-US.exe with the following options:
- Custom
- Disable Java Runtime Environment
- Unpacked alfresco-enterprise-tomcat-2.2.0.zip to C:\Alfresco.
- Followed these steps to use MySQL database.
- Also uncommented lines in custom-repository.properties for db.username, db.password, db.pool.initial, db.pool.max.
- Added JAVA_HOME system variable pointing to C:\Program Files\Java\jdk1.5.0_15.
I ran alf_start.bat, waited for the “Started in…” message, and tried http://localhost:8080/alfresco. I got a Tomcat 404 error, and my alfresco.log showed the following (abbreviated) errors:
- Error creating bean with name ‘dictionaryRepositoryBootstrap’…
- Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
- ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
It turns out Alfresco removed the MySQL JDBC driver in 2.2 for licensing purposes, so I just needed to place mysql-connector-java-5.1.6-bin.jar in C:\Alfresco\tomcat\common\lib. Started up fine after that :).
After all of this, I noticed Alfresco would shutdown out of nowhere, I’d get some hs_err_pid logs in C:\Alfresco. The java.exe process was also taking 99% of the CPU and I couldn’t end the process. The machine was basically useless until I restarted. After a bit of back-and-forth with Alfresco support and some digging around, I finally figured out that NetBIOS being disabled was the entire problem. You can enable it in Local Area Connection Properties > TCP/IP > Advanced > WINS.
So, no more freezes, but then I couldn’t access the CIFS. One thing after another, right? I would get a username/password prompt if I tried to access it by \\<ip>\Alfresco, but it didn’t like any of the credentials I entered, and didn’t recognize \\<machinename>A\Alfresco at all. Finally, I found that having “Local Area Connection > Client for Microsoft Networks” disabled was the cause of that.
Both of those settings are not default in a Windows install, but they were set that way in the VM image that was used for my server. Talk about frustrating…
There also seems to be a memory leak in Alfresco that will cause the OutOfMemory Java heap space error in the virtual Tomcat instance. Disabling link validation fixed this for me. You can do that by setting the “pollInterval” to 0 in “C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\linkvalidation-service-context.xml”.
October 9th, 2008 at 10:17 am
thanks for this great help
I use :
- windows XP SP3 (2Gb RAM, core 2 duo T7100 1,8 Ghz)
- JDK 1.6_07 (already installed)
- Open Office 2.4 (already installed)
- alfresco-community-tomcat-2.1.0.zip unzipped into c:\alfresco
all .bat procedure in c:\alfresco has bad replacement for c:\alfresco, each of them have to be updated for ALF_HOME=C:\Alfresco
in Alfresco.bat, the “-server” should be removed from JAVA_OPTS for my jdk 1.6_07 otherwise tomcat does not start.
Mysql should be started before running alfresco
Open office 2.4 has been found by the procedure but
to start it, I should remove :
- the option “-env” for users in the call to soffice
- the option -nostartwizard which bugs with 2.4
Finally it works in web mode and I succesfully transform an XLS into PDF which seems to prove openoffice works.
For windows DAV access, I have a bsod when I try to use it on My windows XP SP3. Do no found a way to solve until today.
October 10th, 2008 at 10:42 am
Thanks for the extra tips. I think Alfresco’s supported JDK is 1.5, so you’ll come across alot less help for 1.6+. Although, one Alfresco package I have installed had 1.6 in it.
October 18th, 2008 at 3:25 pm
Hi, It sure would be nice to know where you found
alfresco-enterprise-tomcat-2.2.0.zip.
I can’t seem to get that version to download, or is this
just a trial for 30 days?
Thanks.
October 21st, 2008 at 4:04 pm
It’s just a 30 day trial of the Enterprise Edition. The client I was installing this for paid for the license, so I downloaded the Alfresco files from their restricted access downloads.
When I started using Alfresco, pretty much the only difference between Enterprise and Community was the support, but now they have their whole AlfrescoLabs thing…sorry I can’t help more with that.
May 5th, 2009 at 3:59 pm
My installation after choosing the alf_start.bat file hangs on INFO: Server startup in 22085 ms doesn’t get past that. This appears to be a configuration issue. Any direction?
November 3rd, 2009 at 12:25 pm
Wade, that generally means the startup is successful…what are you expecting to see after that? Is Alfresco not responding via web browser?