Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Unable to start Adobe Granite Maintenance Corecom.adobe.granite.maintenance.core

Avatar

Level 3

Hi All,

When i am trying to open a maintenance page through http://localhost:4502/libs/granite/operations/content/maintenance.html url am getting below error on screen.

From the bundles this package is in installed state  "Adobe Granite Maintenance Corecom.adobe.granite.maintenance.core" even i tried with starting but it's happen due to dependency issues

Kindly someone help me to resolve this issues, actually i need this page to enable/update Online compaction

AEM Version: 6.3.1.2

Bundle error:

24.10.2018 16:28:15.315 *ERROR* [qtp1468725044-1013507] org.apache.felix.http.jetty %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Unable to resolve com.adobe.granite.maintenance.core [162](R 162.3): missing requirement [com.adobe.granite.maintenance.core [162](R 162.3)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.launchpad.api)(version>=1.2.0)(!(version>=2.0.0))) Unresolved requirements: [[com.adobe.granite.maintenance.core [162](R 162.3)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.launchpad.api)(version>=1.2.0)(!(version>=2.0.0)))])

org.osgi.framework.BundleException: Unable to resolve com.adobe.granite.maintenance.core [162](R 162.3): missing requirement [com.adobe.granite.maintenance.core [162](R 162.3)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.launchpad.api)(version>=1.2.0)(!(version>=2.0.0))) Unresolved requirements: [[com.adobe.granite.maintenance.core [162](R 162.3)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.launchpad.api)(version>=1.2.0)(!(version>=2.0.0)))]

        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4112)

        at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)

        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)

        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)

        at org.apache.felix.webconsole.internal.core.BundlesServlet.doPost(BundlesServlet.java:364)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)

        at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.j

Error when i opend: http://localhost:4502/libs/granite/operations/content/maintenance.html

Unable to compile class for JSP: An error occurred at line: 7 in the generated java file Only a type can be imported. com.adobe.granite.maintenance.MaintenanceConstants resolves to a package An error occurred at line: 8 in the generated java file Only a type can be imported. com.adobe.granite.maintenance.MaintenanceTaskInfo resolves to a package An error occurred at line: 9 in the generated java file Only a type can be imported. com.adobe.granite.maintenance.MaintenanceUtil resolves to a package An error occurred at line: 39 in the jsp file: /libs/granite/operations/components/maintenance/windowentry/windowentry.jsp MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE cannot be resolved to a type 36: String contextPath = request.getContextPath(); 37: 38: String name = properties.get("name", String.class); 39: String scheduleInfo = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, MaintenanceConstants.SCHEDULE_DAILY).toLowerCase(); 40: String windowStartTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_START_TIME, String.class); 41: String windowEndTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_END_TIME, String.class); 42: String windowSchedule = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, String.class); An error occurred at line: 39 in the jsp file: /libs/granite/operations/components/maintenance/windowentry/windowentry.jsp MaintenanceConstants.SCHEDULE_DAILY cannot be resolved to a type 36: String contextPath = request.getContextPath(); 37: 38: String name = properties.get("name", String.class); 39: String scheduleInfo = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, MaintenanceConstants.SCHEDULE_DAILY).toLowerCase(); 40: String windowStartTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_START_TIME, String.class); 41: String windowEndTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_END_TIME, String.class); 42: String windowSchedule = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, String.class); An error occurred at line: 40 in the jsp file: /libs/granite/operations/components/maintenance/windowentry/windowentry.jsp MaintenanceConstants.PROPERTY_WINDOW_START_TIME cannot be resolved to a type 37: 38: String name = properties.get("name", String.class); 39: String scheduleInfo = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, MaintenanceConstants.SCHEDULE_DAILY).toLowerCase(); 40: String windowStartTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_START_TIME, String.class); 41: String windowEndTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_END_TIME, String.class); 42: String windowSchedule = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, String.class); 43: Integer[] weekDays = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE_WEEKDAYS, Integer[].class); An error occurred at line: 41 in the jsp file: /libs/granite/operations/components/maintenance/windowentry/windowentry.jsp MaintenanceConstants.PROPERTY_WINDOW_END_TIME cannot be resolved to a type 38: String name = properties.get("name", String.class); 39: String scheduleInfo = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, MaintenanceConstants.SCHEDULE_DAILY).toLowerCase(); 40: String windowStartTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_START_TIME, String.class); 41: String windowEndTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_END_TIME, String.class); 42: String windowSchedule = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, String.class); 43: Integer[] weekDays = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE_WEEKDAYS, Integer[].class); 44: Integer windowFirstLastStartDay = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE_FIRST_LAST_DAY, Integer.class); An error occurred at line: 42 in the jsp file: /libs/granite/operations/components/maintenance/windowentry/windowentry.jsp MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE cannot be resolved to a type 39: String scheduleInfo = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, MaintenanceConstants.SCHEDULE_DAILY).toLowerCase(); 40: String windowStartTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_START_TIME, String.class); 41: String windowEndTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_END_TIME, String.class); 42: String windowSchedule = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, String.class); 43: Integer[] weekDays = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE_WEEKDAYS, Integer[].class); 44: Integer windowFirstLastStartDay =

Cannot serve request to /libs/granite/operations/content/maintenance.html in /libs/granite/operations/components/maintenance/windowentry/windowentry.jsp

Exception:

org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 7 in the generated java file

Only a type can be imported. com.adobe.granite.maintenance.MaintenanceConstants resolves to a package

An error occurred at line: 8 in the generated java file

Only a type can be imported. com.adobe.granite.maintenance.MaintenanceTaskInfo resolves to a package

An error occurred at line: 9 in the generated java file

Only a type can be imported. com.adobe.granite.maintenance.MaintenanceUtil resolves to a package

An error occurred at line: 39 in the jsp file: /libs/granite/operations/components/maintenance/windowentry/windowentry.jsp

MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE cannot be resolved to a type

36:     String contextPath = request.getContextPath();

37:

38:     String name = properties.get("name", String.class);

39:     String scheduleInfo = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, MaintenanceConstants.SCHEDULE_DAILY).toLowerCase();

40:     String windowStartTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_START_TIME, String.class);

41:     String windowEndTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_END_TIME, String.class);

42:     String windowSchedule = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, String.class);

An error occurred at line: 39 in the jsp file: /libs/granite/operations/components/maintenance/windowentry/windowentry.jsp

MaintenanceConstants.SCHEDULE_DAILY cannot be resolved to a type

36:     String contextPath = request.getContextPath();

37:

38:     String name = properties.get("name", String.class);

39:     String scheduleInfo = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, MaintenanceConstants.SCHEDULE_DAILY).toLowerCase();

40:     String windowStartTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_START_TIME, String.class);

41:     String windowEndTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_END_TIME, String.class);

42:     String windowSchedule = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, String.class);

An error occurred at line: 40 in the jsp file: /libs/granite/operations/components/maintenance/windowentry/windowentry.jsp

MaintenanceConstants.PROPERTY_WINDOW_START_TIME cannot be resolved to a type

37:

38:     String name = properties.get("name", String.class);

39:     String scheduleInfo = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, MaintenanceConstants.SCHEDULE_DAILY).toLowerCase();

40:     String windowStartTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_START_TIME, String.class);

41:     String windowEndTime = properties.get(MaintenanceConstants.PROPERTY_WINDOW_END_TIME, String.class);

42:     String windowSchedule = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE, String.class);

43:     Integer[] weekDays = properties.get(MaintenanceConstants.PROPERTY_WINDOW_SCHEDULE_WEEKDAYS, Integer[].class);

Thanks,

Amaranth Polu

1 Accepted Solution

Avatar

Correct answer by
Level 3

I figured it out the fix for this issue on my own

There was some api jar mismatch caused the issues, i have downloaded bundle and installed will resolved the issues

http://mirrors.estointernet.in/apache/sling/org.apache.sling.launchpad.api-1.2.0.jar

Thanks,

Amarnath Polu

View solution in original post

4 Replies

Avatar

Correct answer by
Level 3

I figured it out the fix for this issue on my own

There was some api jar mismatch caused the issues, i have downloaded bundle and installed will resolved the issues

http://mirrors.estointernet.in/apache/sling/org.apache.sling.launchpad.api-1.2.0.jar

Thanks,

Amarnath Polu

Avatar

Level 1

Our fix to this issue, with Adobe's help, was to copy the sling.properties under /crx-quickstart/conf/sling.properties from a working instance with the same version to the instance that is having issues. 

Notably, one difference in the sling.properties file was this line 

org.osgi.framework.system.packages=${osgi-core-packages}, ${osgi-compendium-services}, org.apache.sling.launchpad.api;version\=1.2.0, ${jre-${java.specification.version}} ${org.apache.sling.launcher.system.packages}

 

where it was previously 

org.osgi.framework.system.packages=${osgi-core-packages}, ${osgi-compendium-services}, org.apache.sling.launchpad.api;version\=1.1.0, ${jre-${java.specification.version}} ${org.apache.sling.launcher.system.packages}

Avatar

Administrator
@3SHAREROM, Good to see you (Company) in the AEM community. SMEs like you is always needed here to assist other. Looking forward to more contribution from you (Company).


Kautuk Sahni