You are here

Installing Alfresco on WebLogic

This section describes how to install Alfresco as an Enterprise ARchive format (EAR) into Oracle WebLogic.
Note: Certain components of Alfresco require access to the EAR file contents as files. These instructions require expanding the .ear into exploded format, as described in the WebLogic documentation. The Alfresco WebLogic deployment solution makes use of a Filter Classloader, configured in the weblogic-application.xml file, to ensure that the unmodified contents of the Alfresco web module will run in WebLogic.
Before you start:
  • Install OpenOffice and ensure that the ooo.exe property is set in the file
  • Create an alfresco database and user with appropriate permissions
  • Install WebLogic 10.3.3 (11g rel 1) without creating any domains or servers
  1. Browse to the Alfresco Support Portal.

  2. Download the alfresco-enterprise-3.4.14.ear file.
  3. Obtain the license (.lic) file.
  4. Create a directory in the WebLogic user's home directory to host the exploded EAR file and copy the alfresco-enterprise-3.4.14.ear file to that directory.
  5. Run the following commands in the new directory to explode the EAR file:
    1. mkdir alfresco
    2. cd alfresco
    3. jar xvf ../alfresco-enterprise-3.4.14.ear
    4. mv alfresco.war alfresco.war.tmp
    5. mv share.war share.war.tmp
    6. mkdir alfresco.war
    7. mkdir share.war
    8. cd alfresco.war
    9. jar xvf ../alfresco.war.tmp
    10. cd ../share.war
    11. jar xvf ../share.war.tmp
  6. Open the WebLogic Configuration Wizard.

    For example, on Unix, use the following command to create a new domain, alf_domain:

  7. Create a directory for the license file.

    For example, in Linux, use the following command:

    mkdir -p <Weblogic_HOME>/user_projects/domains/alf_domain/alfresco/extension/license
  8. Move the license .lic file into the license directory.
  9. In the <Weblogic_HOME>/user_projects/domains/alf_domain directory, create the file.

    Modify the file in the same way you would for global properties configuration.

  10. In the file, add the following line:


    This property setting is required to make the DBCP connection pool work on WebLogic.

  11. Move the database JDBC driver .jar to the <Weblogic_HOME>/user_projects/domains/alf_domain/lib directory.
  12. Edit the <Weblogic Home>/user_projects/domains/alf_domain/config/config.xml file and add the following before the end of the </security-configuration> section:

  13. In the file, edit all of the lines prefixed with MEM_MAX_PERM_SIZE to increase the PermGen space.


    Note: This setting may need to be increased further in accordance with the number of deployed applications. You may see different combinations of these lines, depending on whether you have installed on a 64 or 32-bit platform.
  14. In the file, set the heap size parameter appropriately. The following setting is a recommendation:

  15. After the JAVA_OPTIONS parameter, to disable servicing of Platform MbeanServer with the WLS security infrastructure use the -Dweblogic.disableMBeanAuthorization system property:

    JAVA_OPTIONS=”${JAVA_OPTIONS} -Dweblogic.disableMBeanAuthorization=true” 

    This modification will allow Alfresco MBeans to co-exist with WebLogic MBeans.

  16. The following extra edit is required in the file, to ensure that alf_domain is in the global classpath.

    export WL_HOME
    export PRE_CLASSPATH
  17. Open the <Weblogic Home>/wlserver_10.3/common/nodemanager/ file, and then edit the settings so that the PermGen settings are passed on to the Alfresco server by the node manager.

  18. Start the domain admin server.

    For example:

  19. Open a web browser and log in to the admin server (for example, at http://localhost:7001/console) with the credentials that you specified while installing Weblogic.
  20. To enable automatic control of your Alfresco server:
    1. Create a machine with the details of the machine running the domain. This will allow the node manager to control servers on that machine.
    2. Create a server called AlfrescoServer within the new machine.

      Note that you have to choose a unique port number. A good port number to choose is 8080 because it is preconfigured in Share. You can leave the host name blank if you want it to listen on all network adapters.

    3. Ensure that the node manager is running (for example, <Weblogic_HOME>/wlserver_10.3/server/bin/

      You will be able to use the admin server Change Center panel to start and stop the Alfresco server.

    Refer to the WebLogic documentation to find out how to create a machine and new server within the machine.

  21. To enable Alfresco JMX functionality with Platform MBean server: 
    1. In the left pane of Administration Console, click the domain name link, for example alf_domain.
    2. In the Settings for alf_domain section, select the Configuration tab, and then the General tab.
    3. On the General tab, expand the Advanced options group.
    4. Enable the Platform MBean Server Enabled option.
    5. Ensure that the Platform MBean Server Used option is enabled.
    6. Click Save on the General tab.
    7. Restart the domain admin server.
  22. In the left pane of the Administration Console, click Deployments.
  23. In the right pane, click Install.
  24. In the Install Application Assistant, locate and select the directory of your exploded EAR file.

    Use the location that you created in step 5. It should contain the alfresco.war and share.war.

  25. Click Next.
  26. Check Install this deployment as an application radio button, and then click Next.
  27. Click Finish.
  28. Click Activate Changes.
  29. Using the Change Center panel, restart AlfrescoServer.
  30. Log in to Alfresco:
    • Alfresco Share at http://localhost:8080/share
    • Alfresco Explorer at http://localhost:8080/alfresco
Note: If the Alfresco finds a JDBC data source with JNDI path (java:comp/env/jdbc/dataSource), it will use that rather than the embedded data source. To set that up in WebLogic you need to define a new global data source, for example, AlfrescoDataSource. See the WebLogic documentation for more information. Then, map AlfrescoDataSource in to Alfresco by adding the WEB-INF/weblogic.xml file into alfresco.war containing the following:
<! DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web
Application 8.1//EN"

"" >
< weblogic-web-app >
< reference-descriptor >
< resource-description >
< res-ref-name > jdbc /dataSource </ res-ref-name >
< jndi-name > AlfrescoDataSource </ jndi-name >
</ resource-description >
</ reference-descriptor >
</ weblogic-web-app >