Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 2
apolu
Level 2

Likes

6 likes

Total Posts

22 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
apolu
Level 2

Likes

6 likes

Total Posts

22 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile
apolu
Level 2

23-10-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
apolu
Level 2

Likes

6 likes

Total Posts

22 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
apolu
Level 2

Likes

6 likes

Total Posts

22 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile
apolu
Level 2

04-11-2018

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

Answers (1)

Answers (1)

Avatar

Avatar
Boost 1
Level 1
3SHAREROM
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
3SHAREROM
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
3SHAREROM
Level 1

16-04-2021

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}