This article explains steps how to install Alfresco Enterprise 3.1 WAR on WebLogic 10.0.1 (aka 10.0 MP1) server and using Oracle 10g XE DBMS. Here are exact versions that I have used for this article, but perhaps other versions will work as well (for Weblogic 10.0.0 I didn't need step 8). Operating system is clean Windows XP SP2 (no java installed, no JAVA_HOME at this moment).
In this article note that we use / instead of backslash \ in config files. Also use ~ notation if not using default directories which have space (e.g. c:\Program Files becomes c:/Progra~1/. Use dir /x in dos box to get a short name).
All products are installed in their default directory, except minor changes in WebLogic.
Optional steps and tools
If you don't install oracle on this PC and already having it on another one, then Oracle lite basic client is necessary and ORACLE_HOME must point to that directory (usually c:\instantclient_10_2).
Other handy tools: Toad freeware for Oracle, Winrar (it can open jar file and delete directories without extracting, very convenient for later).
For using toad we need: TNS_NAMES pointing to directory where tnsnames.ora resides (usually c:\instantclient_10_2).
Here is example of tnsnames.ora for this wiki (optional for toad):
Here we need to Install Oracle with default settings. For system password I used 'test'. We need to create user alfresco with password test and give it all priviledges. Ask oracle admin to do that if oracle is not on local pc.
Make sure that it's running (Start Database).
Goto: http://127.0.0.1:8080/apex and login as sys/test, click: Administration, Manage Database Users. Now Create user: alfresco/test. Give the User all privileges.
Here we install weblogic.
Default root bea home is c:\bea\.
Select custom installation. Uncheck all un-necessary features, keep only one check box checked: 'server' (JDBC is included).
Instead of default product home location (wlserver_10.0) I used user_projects as default in Linux.
Wait until install finished. Start configuration wizard
Create domain e.g. EURES-domain. It should be located here if all went ok C:\bea\user_projects\domains\EURES-domain. (if you choose different domain, e.g. alf_domain, watch out for directories in following shapters.)
We need to unpack this zip file. Right click on zip and select unpack to alfresco-enterprise-war-3.1. E.g. C:\TEMP\alfresco-enterprise-war-3.1.
Go inside that dir, rename alfresco.war to alfresco.war.rar
Extract content to alfresco.war
Modification of alfresco.war extracted content
Add weblogic.xml to the C:\TEMP\alfresco-enterprise-war-3.1\WEB-INF directory
Make sure that other settings are commented out. If not using Oracle XE, then ask admin for oracle SID. Oracle driver is already inside weblogic so we don't install anything. Tip: to find out other available drivers open weblogic console and check which ones are available when creating data source.
Put license file into c:\bea\user_projects\domains\EURES-domain\lib\alfresco\extension\license folder.
Move the following libraries from C:\TEMP\alfresco-enterprise-war-3.1\alfresco.war\WEB-INF\lib folder to C:\bea\user_projects\domains\EURES-domain\lib\
Edit file: C:\bea\user_projects\domains\EURES-domain\bin\setDomainEnv.cmd and add below the line
set PRE_CLASSPATH=%PRE_CLASSPATH%;C:\bea\user_projects\domains\EURES-domain\lib\xercesImpl-2.8.0.jar set PRE_CLASSPATH=%PRE_CLASSPATH%;C:\bea\user_projects\domains\EURES-domain\lib\xml-apis.jar set PRE_CLASSPATH=%PRE_CLASSPATH%;C:\bea\user_projects\domains\EURES-domain\lib\rhino-js-1.6R7.jar set PRE_CLASSPATH=%PRE_CLASSPATH%;c:\bea\user_projects\domains\EURES-domain\lib
Copy below 4 dll(s) from c:\temp\alfresco-enterprise-war-3.1\commands\bin to c:\windows\system32:
Installing modified alfresco from folder
Move C:\TEMP\alfresco-enterprise-war-3.1\alfresco.war to c:\alfresco.war or your favorite location.