Expand my Community achievements bar.

http://www.adobe.com/consulting/acs-aem-commons/wcmmode cannot be resolved in either web.xml or the jar files deployed with this application

Avatar

Level 1

Hi,

I am getting error (

http://www.adobe.com/consulting/acs-aem-commons/wcmmode cannot be resolved in either web.xml or the jar files deployed with this application

) on page.

I have already installed acs-aem-commons jar file in packmngr.

still m facing this problem.

 

My .jsp file:-

<%--

  pressrleasenotes component.

  pressrleasenotes

--%><%
%><%@include file="/libs/foundation/global.jsp"%><%
%><%@page session="false" %>
<%@page import="org.apache.sling.jcr.api.*,javax.jcr.*,java.util.Iterator,com.practice.slingmodels.PressNews,java.util.*"%>
<%
%>

<cq:include script="/libs/foundation/components/page/head.jsp"/>
<cq:include path="par1" resourceType="/libs/foundation/components/parsys"/>
<h1>press releases</h1>
<%

PressNews pressNews=new PressNews();
List<map<String,String>> map=pressNews.getPressReleaseDetails();

for (Map<String, String> map : pressNews.getPressReleaseDetails();) {
    for (Map.Entry<String, String> entry : map.entrySet()) {
        out.print("<a href='"+<%entry.getKey()"'>" + entry.getValue()+"</a>");

    }
}

    %>

 

 

and global.jsp:-

<%--
  Copyright 1997-2008 Day Management AG
  Barfuesserplatz 6, 4001 Basel, Switzerland
  All Rights Reserved.

  This software is the confidential and proprietary information of
  Day Management AG, ("Confidential Information"). You shall not
  disclose such Confidential Information and shall use it only in
  accordance with the terms of the license agreement you entered into
  with Day.

  ==============================================================================

  Global WCM script.

  This script can be used by any other script in order to get the default
  tag libs, sling objects and CQ objects defined.

  the following page context attributes are initialized via the <cq:defineObjects/>
  tag:

    @param slingRequest SlingHttpServletRequest
    @param slingResponse SlingHttpServletResponse
    @param resource the current resource
    @param currentNode the current node
    @param log default logger
    @param sling sling script helper

    @param componentContext component context of this request
    @param editContext edit context of this request
    @param properties properties of the addressed resource (aka "localstruct")
    @param pageManager page manager
    @param currentPage containing page addressed by the request (aka "actpage")
    @param resourcePage containing page of the addressed resource (aka "myPage")
    @param pageProperties properties of the containing page
    @param component current CQ5 component
    @param designer designer
    @param currentDesign design of the addressed resource  (aka "actdesign")
    @param resourceDesign design of the addressed resource (aka "myDesign")
    @param currentStyle style of the addressed resource (aka "actstyle")

  ==============================================================================

--%><%@page session="false" import="javax.jcr.*,
        org.apache.sling.api.resource.Resource,
        org.apache.sling.api.resource.ValueMap,
        com.day.cq.commons.inherit.InheritanceValueMap,
        com.day.cq.wcm.commons.WCMUtils,
        com.day.cq.wcm.api.Page,
        com.day.cq.wcm.api.NameConstants,
        com.day.cq.wcm.api.PageManager,
        com.day.cq.wcm.api.designer.Designer,
        com.day.cq.wcm.api.designer.Design,
        com.day.cq.wcm.api.designer.Style,
        com.day.cq.wcm.api.components.ComponentContext,
        com.day.cq.wcm.api.components.EditContext"
%><%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling" %><%
%><%@taglib prefix="cq" uri="http://www.day.com/taglibs/cq/1.0" %><%
%><%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%
%><%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%
%><%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><%
%><%@ taglib prefix="wcmmode" uri="http://www.adobe.com/consulting/acs-aem-commons/wcmmode" %><%
%><%@ taglib prefix="xss" uri="http://www.adobe.com/consulting/acs-aem-commons/xss" %><%
%><%@ taglib prefix="widgets" uri="http://www.adobe.com/consulting/acs-aem-commons/widgets" %><%
%>


<cq:defineObjects /><%

    // add more initialization code here

%>

 

screen shot of package manager:-  http://prntscr.com/cnn4iz

1 Reply

Avatar

Administrator

Hi, 

Similar problem was reported in ACS git issue. 

This could be an issue. Please to the the post and post your comment there.

Link:- https://github.com/Adobe-Consulting-Services/acs-aem-tools/issues/11

~kautuk



Kautuk Sahni