Upgrade to AEM 6.5 Forms LTS on OSGi upgrade-to-aem-forms-osgi
To upgrade from AEM 6.5 to AEM 6.5 LTS, upgrade to AEM 6.5.22.0 Forms or later. A direct upgrade from AEM 6.5.22.0 to AEM 6.5 Forms LTS is supported.
If you are using AEM 6.0 Forms, AEM 6.1 Forms, AEM 6.2 Forms, AEM 6.3 Forms, AEM 6.4 Forms or AEM 6.5 Forms, a direct upgrade to AEM 6.5 Forms LTS is not available. For detailed upgrade paths, refer to the Upgrade Paths documentation.
After upgrading to service pack AEM Forms 6.5.22.0, follow these steps to upgrade to AEM 6.5 LTS Forms:
-
Install AEM Forms add-on package. The steps are listed below:
-
Open Software Distribution. You require an Adobe ID to log in to the Software Distribution.
-
Select Adobe Experience Manager available in the header menu.
-
In the Filters section:
- Select Forms from the Solution drop-down list.
- Select the version and type for the package. You can also use the Search Downloads option to filter the results.
-
Select the package name applicable to your operating system, select Accept EULA Terms, and select Download.
-
Open Package Manager and click Upload Package to upload the package.
-
Select the package and click Install.
You can also download the package using the direct link listed in AEM Forms releases article.
After the package is installed, you are prompted to restart the AEM instance. Do not immediately stop the server. Before stopping the AEM Forms server, wait until the ServiceEvent REGISTERED and ServiceEvent UNREGISTERED messages stop appearing in the <crx-repository>/error.log file and the log is stable. Also note, a few packages can remain in the installed state. You can safely ignore the state of these packages.
Restart the AEM instance with the following additional JVM command-line parameters:
--add-opens java.base/java.util=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xml.internal.serialize=ALL-UNNAMEDIf the server is started via a script or service, update it accordingly to include the above so that these are effective after subsequent restarts as well.
note note NOTE It is recommended to use the ‘Ctrl + C’ command to restart the SDK. Restarting the AEM SDK using alternative methods, for example, stopping Java processes, may lead to inconsistencies in the AEM development environment.
-
-
Perform post-installation activities.
-
Run Migration Utility
The migration utility makes the adaptive forms and correspondence management assets of earlier versions compatible with AEM 6.5 forms. You can download the utility from AEM Software Distribution. For step-by-step information to configure and use the migration utility, see migration utility.
If you are using Sample for integrating drafts & submissions component with the database and upgrading from a previous version, then run the following SQL queries after performing the upgrade:
code language-sql UPDATE metadata m, additionalmetadatatable am SET m.dataType = am.value WHERE m.id = am.id AND am.key = 'dataType'code language-sql DELETE from additionalmetadatatable WHERE `key` = 'dataType' -
(If upgrading from AEM 6.2 Forms or previous versions only) Reconfigure Adobe Sign
If you had Adobe Sign configured in the previous version of AEM Forms, then reconfigure Adobe Sign from AEM Cloud services. For more details, see Integrate Adobe Sign with AEM Forms.
-
Support for jQuery
In AEM 6.5 Forms, version of jQuery is updated to 3.2.1 and jQuery UI version is updated to 1.12.1. AEM Form uses JQuery in noConflict mode. So, if you are using any other jQuery version, no issues are displayed while performing an upgrade. However, when you upgrade to AEM 6.5 Forms:
- Ensure that your custom components, if any, are compatible with supported jQuery versions.
- Remove unsupported APIs from the custom components. See upgrade guide for the list of removed APIs. For example, support for the load(), .unload(), and .error() APIs is removed. Use the .on() method in place of aforementioned APIs. For example, change $(“img”).load(fn) to $(“img”).on(“load”, fn).
-
(If upgrading from AEM 6.2 Forms or previous versions only) Reconfigure analytics and reports
In AEM 6.4 Forms, traffic variable for source and success event for impression are not available. So, when you upgrade from AEM 6.2 Forms or previous versions, AEM Forms stops sending data to Adobe Analytics server and analytics reports for adaptive forms are not available. Moreover, AEM 6.4 Forms introduces traffic variable for the version of form analytics and success event for the amount of time spent on a field. So, reconfigure analytics and reports for your AEM Forms environment. For detailed steps, see Configuring analytics and reports.
-
-
Verify that the server is upgraded successfully, all the data is also migrated successfully, and it can operate normally.
-
Verify the status of the bundles: Ensure that all the bundles are in active state.
-
Verify replication and reverse replication: Publish, fill, and submit a few migrated forms. Verify the submitted data also.
-
Verify access to admin and developer user interfaces: Log in to AEM instance from an admin account and verify that you have access to the following URLs:
https://'[server]:[port]'/crx/packmgrhttps://'[server]:[port]'/crx/dehttps://'[server]:[port]'/aem/forms.html/content/dam/formsanddocuments
note note NOTE In AEM 6.4 Forms, the structure of crx-repository has changed. If upgrade from 6.3 Forms to AEM 6.5 Forms, use the changed paths for customization that you create afresh. For the complete list of changed paths, see Forms Repository Restructuring in AEM. -
Deploying AEM on JBoss EAP 8 (Windows)
Overview
This guide provides step-by-step instructions for deploying Adobe Experience Manager (AEM) as a standalone OSGi WAR file on JBoss Enterprise Application Platform (EAP) 8 in a Windows environment using JDK 21.
System Requirements
Before beginning the deployment process, ensure your environment meets the following requirements:
JAVA_HOME environment variable points to your JDK 21 installation directory.Step 1: Install JBoss EAP 8
Download JBoss EAP
-
Navigate to the Red Hat Developer portal:
https://developers.redhat.com/products/eap/download -
Download the JBoss EAP 8 ZIP distribution for Windows.
Extract JBoss EAP
-
Extract the downloaded ZIP file to your preferred installation directory.
-
Note this directory path as
<JBOSS_HOME>for use throughout this guide.Example:
C:\jboss-eap-8.0
Step 2: Prepare the AEM WAR File
Obtain AEM WAR
Acquire the AEM WAR file from Adobe Software Distribution or your Adobe representative.
Rename WAR File
Rename the WAR file to reflect your desired URL context path:
cq-quickstart.war
cq-quickstart.war will be accessible at /cq-quickstart.Step 3: Configure the AEM WAR
All configuration modifications must be completed before deploying to JBoss.
Create Working Directory
-
Create a temporary working directory:
code language-none C:\aem\war-config -
Copy
cq-quickstart.warinto this directory.
Extract WAR Contents
-
Open Command Prompt and navigate to your working directory:
code language-cmd cd C:\aem\war-config -
Extract the WAR file:
code language-cmd jar -xvf cq-quickstart.warThis creates a directory structure with
WEB-INFand other application files.
Step 4: Configure JBoss Deployment Descriptor
Create Deployment Structure File
-
Navigate to the
WEB-INFdirectory within your extracted WAR:code language-cmd cd WEB-INF -
Create a new file named
jboss-deployment-structure.xml. -
Add the following XML content:
code language-xml <?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"> <deployment> <dependencies> <module name="jdk.unsupported" /> </dependencies> </deployment> </jboss-deployment-structure> -
Save and close the file.
Purpose: This configuration provides access to JDK internal modules required by AEM.
Step 5: Configure Multipart Upload Settings
Modify web.xml
-
Open
WEB-INF\web.xmlin a text editor. -
Locate the
<servlet>section containing the run mode configuration:code language-xml <!-- Set the runmode per default to author --> <init-param> <param-name>sling.run.modes</param-name> <param-value>author</param-value> </init-param> <load-on-startup>100</load-on-startup> </servlet> -
Replace the closing
</servlet>tag and preceding line with:code language-xml <init-param> <param-name>sling.run.modes</param-name> <param-value>author</param-value> </init-param> <multipart-config> <max-file-size>1048576000</max-file-size> <max-request-size>1048576000</max-request-size> <file-size-threshold>0</file-size-threshold> </multipart-config> <load-on-startup>100</load-on-startup> </servlet> -
Save and close
web.xml.
Purpose: These settings enable large file uploads (up to 1 GB) for AEM Forms and Digital Asset Management.
Step 6: Repackage the WAR File
After completing all configuration changes, repackage the WAR file.
-
Navigate back to the working directory containing the extracted contents:
code language-cmd cd C:\aem\war-config -
Create the new WAR file:
code language-cmd jar -cvf cq-quickstart.war *
Step 7: Deploy and Start AEM
Deploy WAR to JBoss
-
Copy the repackaged
cq-quickstart.warto the JBoss deployments directory:code language-none <JBOSS_HOME>\standalone\deploymentsExample:
C:\jboss-eap-8.0\standalone\deployments
Configure JVM Settings (Optional but Recommended)
Before starting JBoss, configure JVM memory settings:
-
Open
<JBOSS_HOME>\bin\standalone.conf.batin a text editor. -
Modify or add the following line to set heap memory:
code language-batch set "JAVA_OPTS=-Xms4096m -Xmx4096m -XX:MaxMetaspaceSize=512m"
- Save and close the file.
Start JBoss EAP
-
Open Command Prompt as Administrator.
-
Navigate to the JBoss bin directory:
code language-cmd cd <JBOSS_HOME>\binExample:
cmd cd C:\jboss-eap-8.0\bin -
Start the JBoss server:
code language-cmd standalone.bat -b 0.0.0.0 -bmanagement 0.0.0.0Parameters:
-b 0.0.0.0— Binds the server to all network interfaces-bmanagement 0.0.0.0— Binds the management interface to all network interfaces
Monitor Deployment
Watch the console output for deployment messages. Successful deployment is indicated by:
Deployed "cq-quickstart.war" (runtime-name : "cq-quickstart.war")
Step 8: Access AEM
Once deployment is complete and AEM has fully started:
AEM Author URL:http://<server-ip>:8080/cq-quickstart
Default Credentials:
- Username:
admin - Password:
admin
Important: Change the default password immediately after first login.
Troubleshooting
Common Issues
jboss-deployment-structure.xml is properly configuredstandalone.conf.bat<JBOSS_HOME>\standalone\log\server.logLog Files
- JBoss Server Log:
<JBOSS_HOME>\standalone\log\server.log - AEM Error Log: Available through AEM Web Console after startup at
http://<server-ip>:8080/cq-quickstart/system/console
Additional Configuration
Configuring Run Modes
To change AEM run modes (author/publish), modify the sling.run.modes parameter in WEB-INF\web.xml before repackaging the WAR:
<init-param>
<param-name>sling.run.modes</param-name>
<param-value>publish</param-value>
</init-param>
Production Recommendations
For production environments:
- Configure SSL/TLS certificates in JBoss
- Set up AEM replication agents
- Configure dispatcher for load balancing
- Enable automated backups
- Implement monitoring and alerting