CQ 5.6.0
Hi Team,
I have installed packages created in CQ 5.6.1 in environment having the version CQ 5.6.0 and when i opened am getting the following error.
Cannot serve request to /apps/cq/core/content/welcome.html in /apps/cq/core/components/welcome/welcome.jsp
Exception:
org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 17 in the generated java file
Only a type can be imported. com.adobe.cq.history.api.HistoryEntry resolves to a package
An error occurred at line: 18 in the generated java file
Only a type can be imported. com.adobe.cq.history.api.HistoryService resolves to a package
An error occurred at line: 19 in the generated java file
Only a type can be imported. com.adobe.cq.history.filter.ResourceTypesFilter resolves to a package
An error occurred at line: 50 in the jsp file: /apps/cq/core/components/welcome/welcome.jsp
HistoryService cannot be resolved to a type
47: name = session.getUserID();
48: }
49:
50: HistoryService history = sling.getService(HistoryService.class);
51:
52: XSSProtectionService xssService = sling.getService(XSSProtectionService.class);
53: if (xssService != null) {
An error occurred at line: 50 in the jsp file: /apps/cq/core/components/welcome/welcome.jsp
HistoryService cannot be resolved to a type
47: name = session.getUserID();
48: }
49:
50: HistoryService history = sling.getService(HistoryService.class);
51:
52: XSSProtectionService xssService = sling.getService(XSSProtectionService.class);
53: if (xssService != null) {
An error occurred at line: 159 in the jsp file: /apps/cq/core/components/welcome/welcome.jsp
HistoryEntry cannot be resolved to a type
156: if (showHistory) {
157: Collection<String> filtered = Arrays.asList(consoleProps.get("historyResourceTypes", new String[0]));
158: Long historyCount = consoleProps.get("historyCount", 10L);
159: Collection<HistoryEntry> historyEntries = history.readEntries(resourceResolver, session.getUserID(), historyCount.intValue(), new ResourceTypesFilter(filtered));
Please Help!!!
Thanks,
Madhu
