Skip navigation

CQ5

pvr_power
Currently Being Moderated

Setting Eclipse Environment: required jar file for <cq:defineTags>

Apr 27, 2012 7:53 AM

Hi,

 

I am setting up Eclipse development environment for CQ 5.4, and am facing an issue with finding the exact jar files that will parse the <cq:defineObjects>  tag. I have the followed the instructions under : http://wem.help.adobe.com/enterprise/en_US/10-0/wem/developing/develop menttools/developing_with_eclipse.html

 

And I have included the  sling.scripting.jsp.taglib-2.0.6.jar  in my classpath. I get the following error : "The TagExtraInfo class for "cq:defineObjects" (com.day.cq.wcm.tags.DefineObjectsTEI) could not be instantiated".

 

Do I need any other jars to included in the classpath?

 

thanks,

pvr

 
Replies
  • Currently Being Moderated
    Apr 27, 2012 8:27 AM   in reply to pvr_power

    I think you need also to include cq-wcm-taglib-5.4.0.jar which can be found at /libs/wcm/taglib/install

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 27, 2012 10:08 AM   in reply to pvr_power

    I have found that these are the maven dependencies I need to make auto-complete and syntax highlighting work in JSPs in 5.4 (version numbers may vary based on what hotfixes you have applied. For 5.5 the version numbers significantly differnt, and you have to add the dependency on com.adobe.granite.xssprotection. 

     

        <dependency>
            <groupId>com.day.commons</groupId>
            <artifactId>day-commons-jstl</artifactId>
            <version>1.1.4</version>
        </dependency>
        <dependency>
            <groupId>com.day.cq</groupId>
            <artifactId>cq-commons</artifactId>
            <version>5.4.6</version>
        </dependency>
        <dependency>
            <groupId>com.day.cq.wcm</groupId>
            <artifactId>cq-wcm-api</artifactId>
            <version>5.4.0</version>
        </dependency>
        <dependency>
            <groupId>com.day.cq.wcm</groupId>
            <artifactId>cq-wcm-commons</artifactId>
            <version>5.4.2</version>
        </dependency>
        <dependency>
            <groupId>com.day.cq.wcm</groupId>
            <artifactId>cq-wcm-taglib</artifactId>
            <version>5.4.0</version>
        </dependency>
        <dependency>
            <groupId>javax.jcr</groupId>
            <artifactId>jcr</artifactId>
            <version>5.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.4</version>
        </dependency>
         <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.api</artifactId>
            <version>2.2.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.scripting.jsp.taglib</artifactId>
            <version>2.1.0</version>       
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.5.3</version>
        </dependency>
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points