Common Installation Issues
The following section describes some installation issues and their solutions.
Double-clicking the Quickstart jar has no effect or opens the jar file with another program (for example, archive manager)
This issue usually indicates a problem with the way your operating system’s desktop environment is configured to open files with extension .jar. It may also indicate that you do not have Java™ installed, or that you are using an unsupported version of Java™.
As jar files use the ubiquitous ZIP format, some of the archiving programs may automatically configure the desktop to open jar files as archive files.
To troubleshoot, do the following:
-
Double check that you have at least Java™ version 1.6 installed.
-
Try a context menu (usually right-mouse click) on the AEM WCM Quickstart, and select “Open With…”
-
Check if Java™ or Sun Java™ is listed, and try to run AEM WCM with it. If you have multiple Java™ versions installed, select the supported one.
If you succeed with this step, and your operating system offers an option to always use the selected program to run the .jar files, select it. Double-clicking should work from now on.
-
Sometimes reinstalling the supported Java™ version helps restore the correct association.
-
You can always run CRX using the command line or start/stop scripts as described earlier in this document.
My application running on CRX throws out-of-memory errors
CRX itself has a low memory footprint. If the application running within CRX has bigger memory requirements or requests memory-heavy operations (for example, large transactions), the JVM instance where CRX runs must be started with appropriate memory settings.
Use Java™ command options to define memory settings of the JVM (for example, java -Xmx512m -jar crx*.jar to set heapsize to 512 MB).
Specify the memory setting option while starting AEM WCM from the command line. The AEM WCM start/stop scripts or custom scripts for managing AEM WCM startup can also be modified to define the required memory settings.
If you have already defined your heapsize to 512 MB, you may want to analyze the memory issue further by creating a heap dump.
To automatically create a heap dump when running out of memory, use the following command:
java -Xmx256m -XX:+HeapDumpOnOutOfMemoryError -jar *.jar
This method generates a heap dump file (java_…hprof) whenever the process runs out of memory. The process may continue to run after the heap dump was generated.
Often three heap dump files, collected over a period of time, are required to analyze the problem:
- Before a failure occurs
- During failure 1
- During failure 2
- Ideally, it would also be good to collect information after the event is resolved
These can be compared to see changes and how objects are using memory.
The AEM Welcome screen does not display in the browser after double-clicking AEM Quickstart
In certain situations, the AEM WCM Welcome screens does not automatically display even though the repository itself is successfully running. This issue may depend on operating system setup, browser configuration, or similar factors.
The usual symptom is that the AEM WCM Quickstart window displays “AEM WCM starting up, waiting for server startup…” If that message displays for a relatively long time, enter the AEM WCM URL into the browser window manually, using the default 4502 port, or the port on which the instance is running: http://localhost:4502/.
Also, logs may reveal the reason for the browser not starting.
Sometimes, the AEM WCM Quickstart window has the message “AEM WCM running on http://localhost:port/” and the browser does not start automatically. In this case, click the URL in the AEM WCM Quickstart window (it is a hyperlink) or manually enter the URL in the browser.
If everything else fails, check the logs to find out what has happened.
The Website Does Not Load or Fails Intermittently with Java™ 11
There is a known issue with AEM 6.5 running on Java™ 11 where the website might not load or fail intermittently.
If this issue occurs, do the following:
-
Open the
sling.properties
file under thecrx-quickstart/conf/
folder -
Locate the following line:
org.osgi.framework.bootdelegation=sun.,com.sun.
-
Replace it with the following:
org.osgi.framework.bootdelegation=sun.,com.sun.,jdk.internal.reflect,jdk.internal.reflect.*
-
Restart the instance.