Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

AEM jar file doesn't run

Avatar

Level 3

Hello,
I have a jar file of AEM 6.5. I created the two instances (author and publish) but when I start the jar file the crx quickstart folder is created, with the "logs" folder inside, and an empty "upgrade" notepad file.


It should be noted that before doing this I installed Maven on my pc.

Can anyone help me? I can't start AEM from my pc.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
22 Replies

Avatar

Community Advisor

Hi @FrancoBarresi 

 

Please ensure the correct JDK version is installed on the machine.

 

AEM 6.5 supports the following JDK:

  1. Oracle JDK 1.8
  2. Oracle JDK 11
  3. Azul Zulu Open JDK 8
  4. Azul Zulu Open JDK 11

Any other version of JDK will not allow the AEM JAR to run on the machine.

 

Please validate the JDK installation by running the below command:

 

java -version

 

Now navigate to the folder where the AEM JAR file is kept and run the following command to start the instance:

 

java -jar aem-author-p4502.jar

 

Note: Here the AEM Jar file name is aem-author-p4502.jar

 

You should be able to start the application and AEM should be up and running in approx. 4-5 min depending upon the machine configuration.

 

Hope this helps!

 

Thanks!

Avatar

Level 3

Hello! This is the responde of java -version on my Prompt's Command

 

C:\Users\ruutu>java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Avatar

Level 3

And strange, i can't insert the passord admin admin!

 


C:\Users\ruutu\Desktop\UDEMY\corso AEM\Adobe Experience Manager\Nuovo sito>java -jar AEM_6.3_Quickstart.jar
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 1682 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename 'C:/Users/ruutu/Desktop/UDEMY/corso AEM/Adobe Experience Manager/Nuovo sito/AEM_6.3_Quickstart.jar'
The admin password for this instance hasn't been defined yet.
Please enter the desired admin password:
Please re-enter password:
Passwords do not match.
Please enter the desired admin password:

Avatar

Correct answer by
Community Advisor

Hi @FrancoBarresi ,

       Yesterday I got the same issue and I followed below url and resolved it.

https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/security-config...

 

 

Avatar

Level 3

i have inserted 

 

java -jar AEM_6.3_Quickstart.jar -nointeractive

 

but rimanes in loop on this: 

C:\Users\ruutu\Desktop\UDEMY\corso AEM\Adobe Experience Manager\Nuovo sito>java -jar AEM_6.3_Quickstart.jar -nointeractive
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 1682 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename 'C:/Users/ruutu/Desktop/UDEMY/corso AEM/Adobe Experience Manager/Nuovo sito/AEM_6.3_Quickstart.jar'
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to C:\Users\ruutu\Desktop\UDEMY\corso AEM\Adobe Experience Manager\Nuovo sito\crx-quickstart\logs\stdout.log
Redirecting stderr to C:\Users\ruutu\Desktop\UDEMY\corso AEM\Adobe Experience Manager\Nuovo sito\crx-quickstart\logs\stderr.log
Press CTRL-C to shutdown the Quickstart server...

Avatar

Community Advisor

Hi @FrancoBarresi ,

    Yes,it is showing like that because aem started and then go to the browser and check localhost:4502

Previously it was showing UI as well when we run the AEM using command prompt.

 

Regards,

Sanjay

Avatar

Community Advisor

That's strange!

 

Try to rename the file to aem-author-p4502.jar and proceed with installation.

Remove the existing crx-quickstart folder and make sure to have the license file in the same location as of the file.

 

Thanks!

Avatar

Level 3

i tried to reboot from command line. The Firewall window appeared, I consented to run Java for public and private networks, after I clicked OK, I got this:

 

C:\Users\ruutu\Desktop\UDEMY\corso AEM\Adobe Experience Manager\Nuovo sito>java -jar AEM_6.3_Quickstart.jar
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 1682 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename 'C:/Users/ruutu/Desktop/UDEMY/corso AEM/Adobe Experience Manager/Nuovo sito/AEM_6.3_Quickstart.jar'
The admin password for this instance hasn't been defined yet.
Please enter the desired admin password:
Please re-enter password:
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to C:\Users\ruutu\Desktop\UDEMY\corso AEM\Adobe Experience Manager\Nuovo sito\crx-quickstart\logs\stdout.log
Redirecting stderr to C:\Users\ruutu\Desktop\UDEMY\corso AEM\Adobe Experience Manager\Nuovo sito\crx-quickstart\logs\stderr.log
Press CTRL-C to shutdown the Quickstart server...

 

and nothing!

Avatar

Community Advisor

Hi @FrancoBarresi 

Can you also check the permissions for the folders and the user u ran the instances matches?

Avatar

Level 2

If you are using double clicking quick start jar,this will not work.

use this command java -jar aem-author-p4502.jar

Avatar

Level 3

hello

i'm starting AEM only clicking batch file "quickstart", under the folder bin. But i can't use "author" and "publish" jar file, they don't start. When i click these (author or publish jar file) i see only a folder, inside the new folder quickstart who appears, called "logs" with a file empty named "upgrade". The others files don't appears. 

 

So in this case i can use AEM, in other way. But it's very strange: why i can't use "publish" and "author" files jar, and i can use only the folder quickstart-bin-start with jar file AEM_6.5_Quickstart?

Avatar

Level 3

What's meaning "sandbox instance?". So i haven't resolved my question...

Avatar

Community Advisor

Hi @FrancoBarresi 

 

A Sandbox instance is the place to safely develop and test your application changes with low risk. A Sandbox instance type can be your test instance. A Sandbox is typically created to serve the purposes of training, running demos, enablement, or Proof of Concept (POC)s.

However you may duplicate the instance and rename the jar- AEM_6.5_Quickstart to "aem-author-p4502.jar" for author and "aem-publish-p4503.jar" for publish along with the license.properties files in the same folders respectively.

use urls: http://localhost:4502/aem/start.html  for author and http://localhost:4503/content/we-retail/us/en.html for publisher.

 

If you wish to use the batch files , you will need to edit the files accordingly.

Avatar

Level 3

So i have edited the start. batch file of publish'folder, changed the port (from 4502 at 4503 ort 8080), changed the name of the jar file, and nothing! Publish doesn't run. But i have executed the author by prompt correctly and it runs!

 

So i might use only author (publish is not so important, i could delete "editor.html" and see the page) but would know why doesn't run.

Avatar

Community Advisor

@FrancoBarresi 

 

Can you provide screenshots for the same? also the edited file content for publisher.

Avatar

Level 3

That's it

 

start.bat of publish

 

@echo off
:: This script configures the start information for this server.
::
:: The following variables may be used to override the defaults.
:: For one-time overrides the variable can be set as part of the command-line; e.g.,
::
:: SET CQ_PORT=1234 & ./start.bat
::
setlocal

::* TCP port used for stop and status scripts
if not defined CQ_PORT set CQ_PORT=4502

::* hostname of the interface that this server should listen to
:: if not defined CQ_HOST set CQ_HOST=

::* runmode(s)
::* will not be used if repository is already present
if not defined CQ_RUNMODE set CQ_RUNMODE=author

::* name of the jarfile
:: if not defined CQ_JARFILE set CQ_JARFILE=

::* default JVM options
if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true
::* add the required JPMS modules, if needed
java --add-modules java.se.ee --version > nul 2>&1
if %errorlevel% EQU 0 set CQ_JVM_OPTS=--add-modules java.se.ee %CQ_JVM_OPTS%

::* ------------------------------------------------------------------------------
::* authentication
::* ------------------------------------------------------------------------------
::* when using oak (crx3) authentication must be configured using the
::* Apache Felix JAAS Configuration Factory service via the Web Console
::* see http://jackrabbit.apache.org/oak/docs/security/authentication/externalloginmodule.html

::* use jaas.config (legacy: only used for crx2 persistence)
:: if not defined CQ_USE_JAAS set CQ_USE_JAAS=true

::* config for jaas (legacy: only used for crx2 persistence)
if not defined CQ_JAAS_CONFIG set CQ_JAAS_CONFIG=etc\jaas.config

::* ------------------------------------------------------------------------------
::* persistence mode
::* ------------------------------------------------------------------------------
::* the persistence mode can not be switched for an existing repository
set CQ_RUNMODE=%CQ_RUNMODE%,crx3,crx3tar
:: set CQ_RUNMODE=%CQ_RUNMODE%,crx3,crx3mongo

::* settings for mongo db
:: if not defined CQ_MONGO_HOST set CQ_MONGO_HOST=127.0.0.1
:: if not defined CQ_MONGO_PORT set CQ_MONGO_PORT=27017
:: if not defined CQ_MONGO_DB set CQ_MONGO_DB=aem6

::* ------------------------------------------------------------------------------
::* CLDR
::* ------------------------------------------------------------------------------
::* https://docs.oracle.com/javase/8/docs/technotes/guides/intl/enhancements.8.html#cldr
if not defined CQ_USE_CLDR set CQ_USE_CLDR=true

::* ------------------------------------------------------------------------------
::* do not configure below this point
::* ------------------------------------------------------------------------------

chdir /D %~dp0
cd ..
if exist conf\controlport del conf\controlport
if not defined CQ_JARFILE for %%X in (app\*.jar) do set CQ_JARFILE=%%X
for %%* in (.) do set CurrDirName=%%~n*
cd ..

set START_OPTS=start -c %CurrDirName% -i launchpad
if defined CQ_PORT set START_OPTS=%START_OPTS% -p %CQ_PORT%
if defined CQ_RUNMODE set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Dsling.run.modes=%CQ_RUNMODE%
if defined CQ_HOST set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Dorg.apache.felix.http.host=%CQ_HOST%
if defined CQ_HOST set START_OPTS=%START_OPTS% -a %CQ_HOST%
if defined CQ_MONGO_HOST set START_OPTS=%START_OPTS% -Doak.mongo.host=%CQ_MONGO_HOST%
if defined CQ_MONGO_PORT set START_OPTS=%START_OPTS% -Doak.mongo.port=%CQ_MONGO_PORT%
if defined CQ_MONGO_DB set START_OPTS=%START_OPTS% -Doak.mongo.db=%CQ_MONGO_DB%
if defined CQ_USE_JAAS set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.security.auth.login.config=%CQ_JAAS_CONFIG%
if defined CQ_USE_CLDR set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.locale.providers=CLDR,JRE,SPI
set START_OPTS=%START_OPTS% -Dsling.properties=conf/sling.properties

if exist newTaskList.txt del newTaskList.txt
if exist oldTaskList.txt del oldTaskList.txt
tasklist /FI "IMAGENAME eq java.exe" /NH > oldTaskList.txt
start "CQ" cmd.exe /C java %CQ_JVM_OPTS% -jar %CurrDirName%\%CQ_JARFILE% %START_OPTS%
timeout /T 1 /NOBREAK >nul
tasklist /FI "IMAGENAME eq java.exe" /NH > newTaskList.txt
java -cp %~dp0 GetProcessID oldTaskList.txt newTaskList.txt java.exe > %CurrDirName%\conf\cq.pid
if exist newTaskList.txt del newTaskList.txt
if exist oldTaskList.txt del oldTaskList.txt

 

 

And that's start.bat of author

 

@echo off
:: This script configures the start information for this server.
::
:: The following variables may be used to override the defaults.
:: For one-time overrides the variable can be set as part of the command-line; e.g.,
::
:: SET CQ_PORT=1234 & ./start.bat
::
setlocal

::* TCP port used for stop and status scripts
if not defined CQ_PORT set CQ_PORT=4502

::* hostname of the interface that this server should listen to
:: if not defined CQ_HOST set CQ_HOST=

::* runmode(s)
::* will not be used if repository is already present
if not defined CQ_RUNMODE set CQ_RUNMODE=author

::* name of the jarfile
:: if not defined CQ_JARFILE set CQ_JARFILE=

::* default JVM options
if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true
::* add the required JPMS modules, if needed
java --add-modules java.se.ee --version > nul 2>&1
if %errorlevel% EQU 0 set CQ_JVM_OPTS=--add-modules java.se.ee %CQ_JVM_OPTS%

::* ------------------------------------------------------------------------------
::* authentication
::* ------------------------------------------------------------------------------
::* when using oak (crx3) authentication must be configured using the
::* Apache Felix JAAS Configuration Factory service via the Web Console
::* see http://jackrabbit.apache.org/oak/docs/security/authentication/externalloginmodule.html

::* use jaas.config (legacy: only used for crx2 persistence)
:: if not defined CQ_USE_JAAS set CQ_USE_JAAS=true

::* config for jaas (legacy: only used for crx2 persistence)
if not defined CQ_JAAS_CONFIG set CQ_JAAS_CONFIG=etc\jaas.config

::* ------------------------------------------------------------------------------
::* persistence mode
::* ------------------------------------------------------------------------------
::* the persistence mode can not be switched for an existing repository
set CQ_RUNMODE=%CQ_RUNMODE%,crx3,crx3tar
:: set CQ_RUNMODE=%CQ_RUNMODE%,crx3,crx3mongo

::* settings for mongo db
:: if not defined CQ_MONGO_HOST set CQ_MONGO_HOST=127.0.0.1
:: if not defined CQ_MONGO_PORT set CQ_MONGO_PORT=27017
:: if not defined CQ_MONGO_DB set CQ_MONGO_DB=aem6

::* ------------------------------------------------------------------------------
::* CLDR
::* ------------------------------------------------------------------------------
::* https://docs.oracle.com/javase/8/docs/technotes/guides/intl/enhancements.8.html#cldr
if not defined CQ_USE_CLDR set CQ_USE_CLDR=true

::* ------------------------------------------------------------------------------
::* do not configure below this point
::* ------------------------------------------------------------------------------

chdir /D %~dp0
cd ..
if exist conf\controlport del conf\controlport
if not defined CQ_JARFILE for %%X in (app\*.jar) do set CQ_JARFILE=%%X
for %%* in (.) do set CurrDirName=%%~n*
cd ..

set START_OPTS=start -c %CurrDirName% -i launchpad
if defined CQ_PORT set START_OPTS=%START_OPTS% -p %CQ_PORT%
if defined CQ_RUNMODE set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Dsling.run.modes=%CQ_RUNMODE%
if defined CQ_HOST set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Dorg.apache.felix.http.host=%CQ_HOST%
if defined CQ_HOST set START_OPTS=%START_OPTS% -a %CQ_HOST%
if defined CQ_MONGO_HOST set START_OPTS=%START_OPTS% -Doak.mongo.host=%CQ_MONGO_HOST%
if defined CQ_MONGO_PORT set START_OPTS=%START_OPTS% -Doak.mongo.port=%CQ_MONGO_PORT%
if defined CQ_MONGO_DB set START_OPTS=%START_OPTS% -Doak.mongo.db=%CQ_MONGO_DB%
if defined CQ_USE_JAAS set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.security.auth.login.config=%CQ_JAAS_CONFIG%
if defined CQ_USE_CLDR set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.locale.providers=CLDR,JRE,SPI
set START_OPTS=%START_OPTS% -Dsling.properties=conf/sling.properties

if exist newTaskList.txt del newTaskList.txt
if exist oldTaskList.txt del oldTaskList.txt
tasklist /FI "IMAGENAME eq java.exe" /NH > oldTaskList.txt
start "CQ" cmd.exe /C java %CQ_JVM_OPTS% -jar %CurrDirName%\%CQ_JARFILE% %START_OPTS%
timeout /T 1 /NOBREAK >nul
tasklist /FI "IMAGENAME eq java.exe" /NH > newTaskList.txt
java -cp %~dp0 GetProcessID oldTaskList.txt newTaskList.txt java.exe > %CurrDirName%\conf\cq.pid
if exist newTaskList.txt del newTaskList.txt
if exist oldTaskList.txt del oldTaskList.txt

Avatar

Community Advisor

@FrancoBarresi Both looks identical,

One way to start in publisher is to rename the jar to aem-publish-p4503.jar and double click to generate the crx-quickstart folder , then edit properties in start.bat :

. . .

...

if not defined CQ_PORT set CQ_PORT=4503

 . . .

if not defined CQ_RUNMODE set CQ_RUNMODE=publisher

 . . .

...

Avatar

Level 3

Hello, 

i have modificate the start.bat with and jar file with your suggests, and inside the quickstart file (i have seen this):

 

* TCP port used for stop and status scripts set CQ_PORT=4502"

ad i changed in 4053

 

So this is the result:

 

"IOEX exception

Did not find a server port, tried 4503

Check the system console for more informations"