bb2j3z2x
bb2j3z2x
25-07-2019
Having some trouble getting the quickstart to run. What version of JDK for java should I be using? I downloaded version 8. So Java SE version is 1.8.0_221.
Right now, when I run the quickstart jar file. I see this screen but it never advances in the progress bar. I am on Windows 10 - 64bit.
Logs show.
25.07.2019 11:44:11.185 *INFO* [FelixStartLevel] org.apache.sling.commons.log.logback.internal.Activator LogbackManager initialized at bundle startup
25.07.2019 11:44:11.190 *INFO* [FelixStartLevel] org.apache.sling.commons.logservice Service [org.apache.sling.commons.logservice.internal.LogServiceFactory,18, [org.osgi.service.log.LogService]] ServiceEvent REGISTERED
25.07.2019 11:44:11.191 *INFO* [FelixStartLevel] org.apache.sling.commons.logservice Service [org.apache.sling.commons.logservice.internal.LogReaderServiceFactory,19, [org.osgi.service.log.LogReaderService]] ServiceEvent REGISTERED
25.07.2019 11:44:11.191 *INFO* [FelixStartLevel] org.apache.sling.commons.logservice BundleEvent STARTED
25.07.2019 11:44:11.196 *ERROR* [FelixDispatchQueue] org.apache.sling.installer.core FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.installer.core [12](R 12.0): missing requirement [org.apache.sling.installer.core [12](R 12.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation) Unresolved requirements: [[org.apache.sling.installer.core [12](R 12.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation)])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.installer.core [12](R 12.0): missing requirement [org.apache.sling.installer.core [12](R 12.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation) Unresolved requirements: [[org.apache.sling.installer.core [12](R 12.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation)]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2119)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.base/java.lang.Thread.run(Thread.java:835)
25.07.2019 11:44:11.197 *ERROR* [FelixDispatchQueue] org.apache.sling.installer.factory.configuration FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.installer.factory.configuration [13](R 13.0): missing requirement [org.apache.sling.installer.factory.configuration [13](R 13.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.tasks)(version>=1.3.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.sling.installer.core [12](R 12.0): missing requirement [org.apache.sling.installer.core [12](R 12.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation)] Unresolved requirements: [[org.apache.sling.installer.factory.configuration [13](R 13.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.tasks)(version>=1.3.0)(!(version>=2.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.installer.factory.configuration [13](R 13.0): missing requirement [org.apache.sling.installer.factory.configuration [13](R 13.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.tasks)(version>=1.3.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.sling.installer.core [12](R 12.0): missing requirement [org.apache.sling.installer.core [12](R 12.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation)] Unresolved requirements: [[org.apache.sling.installer.factory.configuration [13](R 13.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.tasks)(version>=1.3.0)(!(version>=2.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2119)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.base/java.lang.Thread.run(Thread.java:835)
25.07.2019 11:44:11.198 *ERROR* [FelixDispatchQueue] org.apache.sling.installer.provider.file FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.installer.provider.file [14](R 14.0): missing requirement [org.apache.sling.installer.provider.file [14](R 14.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api)(version>=3.1.2)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.sling.installer.core [12](R 12.0): missing requirement [org.apache.sling.installer.core [12](R 12.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation)] Unresolved requirements: [[org.apache.sling.installer.provider.file [14](R 14.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api)(version>=3.1.2)(!(version>=4.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.installer.provider.file [14](R 14.0): missing requirement [org.apache.sling.installer.provider.file [14](R 14.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api)(version>=3.1.2)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.sling.installer.core [12](R 12.0): missing requirement [org.apache.sling.installer.core [12](R 12.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation)] Unresolved requirements: [[org.apache.sling.installer.provider.file [14](R 14.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api)(version>=3.1.2)(!(version>=4.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2119)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.base/java.lang.Thread.run(Thread.java:835)
25.07.2019 11:44:11.200 *INFO* [FelixStartLevel] org.apache.sling.javax.activation BundleEvent RESOLVED
25.07.2019 11:44:11.251 *INFO* [FelixStartLevel] org.apache.sling.javax.activation BundleEvent STARTING
25.07.2019 11:44:11.253 *INFO* [FelixStartLevel] org.apache.sling.javax.activation BundleEvent STARTED
25.07.2019 11:44:11.255 *ERROR* [FelixDispatchQueue] org.apache.sling.launchpad.installer FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.launchpad.installer [16](R 16.0): missing requirement [org.apache.sling.launchpad.installer [16](R 16.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.event)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.sling.installer.core [12](R 12.0): missing requirement [org.apache.sling.installer.core [12](R 12.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation)] Unresolved requirements: [[org.apache.sling.launchpad.installer [16](R 16.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.event)(version>=1.0.0)(!(version>=2.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.launchpad.installer [16](R 16.0): missing requirement [org.apache.sling.launchpad.installer [16](R 16.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.event)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.sling.installer.core [12](R 12.0): missing requirement [org.apache.sling.installer.core [12](R 12.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation)] Unresolved requirements: [[org.apache.sling.launchpad.installer [16](R 16.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.event)(version>=1.0.0)(!(version>=2.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2119)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.base/java.lang.Thread.run(Thread.java:835)
25.07.2019 11:44:11.257 *INFO* [FelixStartLevel] org.apache.sling.settings BundleEvent RESOLVED
25.07.2019 11:44:11.258 *INFO* [FelixStartLevel] org.apache.sling.settings BundleEvent STARTING
25.07.2019 11:44:11.262 *INFO* [FelixStartLevel] org.apache.sling.settings.impl.SlingSettingsServiceImpl Read Sling ID 75aefd32-fa62-4ec9-ab51-c2253e7f2aed from file C:\Work\Adobe AEM\AEM\crx-quickstart\launchpad\felix\bundle17\data\sling.id.file
25.07.2019 11:44:11.281 *INFO* [FelixStartLevel] org.apache.sling.settings.impl.SlingSettingsServiceImpl Active run modes: [s7connect, crx3, author, samplecontent, crx3tar]
25.07.2019 11:44:11.281 *INFO* [FelixStartLevel] org.apache.sling.settings Service [Apache Sling Settings Service,20, [org.apache.sling.settings.SlingSettingsService]] ServiceEvent REGISTERED
25.07.2019 11:44:11.283 *INFO* [FelixStartLevel] org.apache.sling.settings Service [Apache Sling Sling Properties Configuration Printer,21, [org.apache.sling.settings.impl.SlingPropertiesPrinter]] ServiceEvent REGISTERED
25.07.2019 11:44:11.284 *INFO* [FelixStartLevel] org.apache.sling.settings Service [Apache Sling Sling Settings Configuration Printer,22, [org.apache.sling.settings.impl.SlingSettingsPrinter]] ServiceEvent REGISTERED
25.07.2019 11:44:11.287 *INFO* [FelixStartLevel] org.apache.sling.settings Service [org.apache.sling.settings.impl.SlingSettingsServiceImpl,23, [org.osgi.service.cm.ManagedService]] ServiceEvent REGISTERED
25.07.2019 11:44:11.287 *INFO* [FelixStartLevel] org.apache.sling.settings BundleEvent STARTED
25.07.2019 11:44:11.287 *INFO* [FelixStartLevel] slf4j.api BundleEvent STARTING
25.07.2019 11:44:11.287 *INFO* [FelixStartLevel] slf4j.api BundleEvent STARTED
25.07.2019 11:44:11.287 *INFO* [main] org.apache.felix.framework BundleEvent STARTED
25.07.2019 11:44:11.288 *INFO* [FelixDispatchQueue] org.apache.felix.framework Startup finished in 2262ms
25.07.2019 11:44:11.289 *INFO* [FelixDispatchQueue] org.apache.felix.framework Service [Apache Sling Startup Service,24, [org.apache.sling.launchpad.api.StartupService]] ServiceEvent REGISTERED
25.07.2019 11:44:11.292 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTED
Jörg_Hoh
Employee
Jörg_Hoh
Employee
25-07-2019
Which logfile have you posted? Can you check the error.log file for a hopefully more meaningfull error? Can you reach "localhost:4502" with a browser?
hamidk92094312
Employee
hamidk92094312
Employee
25-07-2019
1. Can you post the output of java -version ?
2. Are you running quickstart as root/admin ?
SonDang
Employee
SonDang
Employee
25-07-2019
Look like you are using the JRE instead of the JDK. You might want to check Java version that is installed.
bb2j3z2x
bb2j3z2x
25-07-2019
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
It's using the JDK in
C:\Program Files\Java\jdk1.8.0_221
hamidk92094312
Employee
hamidk92094312
Employee
25-07-2019
Your JDK seems alright.
Can you provide the command/script you used to run the .jar file ?
bb2j3z2x
bb2j3z2x
25-07-2019
I am just double clicking on the jar file (AEM_6.4_Quickstart.jar) in windows 10.
I looked at starting it at the command prompt. And was trying this:
java -XX:MaxPermSize=256m -Xmx1024M -jar AEM_6.4_Quickstart.jar
But nothing was starting outside of the command prompt. Didn't the AEM box from my screenshot nor anything in the browser.
Not sure if I need to rename the jar file before double clicking.
hamidk92094312
Employee
hamidk92094312
Employee
25-07-2019
Can you do the following:
- change the name of the .jar file (assuming its an author environment) > aem64-author-p4564.jar
- run the command > java -jar -Xmx4G aem64-author-p4564.jar
bb2j3z2x
bb2j3z2x
25-07-2019
I get this:
C:\Work\Adobe AEM\AEM>java -jar -Xmx4G aem64-author-p4564.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 3641 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename 'C:/Work/Adobe AEM/AEM/aem64-author-p4564.jar'
Option '-quickstart.server.port' set to '4564' from filename aem64-author-p4564.jar
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to C:\Work\Adobe AEM\AEM\crx-quickstart\logs\stdout.log
Redirecting stderr to C:\Work\Adobe AEM\AEM\crx-quickstart\logs\stderr.log
Press CTRL-C to shutdown the Quickstart server...
But nothing starts outside of the command prompt.
hamidk92094312
Employee
hamidk92094312
Employee
25-07-2019
you should lower the -Xmx
use this command > java -jar -Xmx1024m aem64-author-p4564.jar
Note: if your machine does not have a good hardware spec it may take up to a couple min for the page to come up.