GithubHelp home page GithubHelp logo

The TagExtraInfo class for "cq:defineObjects" (com.day.cq.wcm.tags.DefineObjectsTEI) could not be instantiated about aem-eclipse-developer-tools HOT 8 CLOSED

adobe avatar adobe commented on June 12, 2024
The TagExtraInfo class for "cq:defineObjects" (com.day.cq.wcm.tags.DefineObjectsTEI) could not be instantiated

from aem-eclipse-developer-tools.

Comments (8)

justinedelson avatar justinedelson commented on June 12, 2024

There's a few different problems which can cause this and it really isn't related to the AEM Eclipse Developer Tools.

  • The original Uber Jar for AEM 6.0 didn't have tld files.
  • The Uber Jar for AEM 6.0 and 6.1 (which do have tlds) have obsfucated class files which can't be instantiated. Since Eclipse's JSP support require instantiating the TagExtraInfo class, this fails.

A solution which works most of the time for me is to include dependency entries for the Sling and CQ taglibs directly and be sure to include them in the pom.xml file before the uber jar.

from aem-eclipse-developer-tools.

 avatar commented on June 12, 2024

Hi justinedelson, didn't quite get what you trying to explain. I did include both Sling and CQ taglibs in my xxx.ui.apps module's dependency, and I still have the same issue. Here's my dependency:

1 jun 2015 12 34 19 am

from aem-eclipse-developer-tools.

justinedelson avatar justinedelson commented on June 12, 2024

Try moving those two dependencies above the AEM API dependency. That works for me, although not 100% of the time for reasons I've yet to figure out.

from aem-eclipse-developer-tools.

 avatar commented on June 12, 2024

Thanks for the prompt response. After applied the sequence you mentioned, I tried clean the project, close and reopen, restart Eclipse...still NO LUCK. I guess I'll just leave it alone for the time being. Thanks for the help anyway.

from aem-eclipse-developer-tools.

cmrockwell avatar cmrockwell commented on June 12, 2024

I have the same problem after upgrading to 6.1 using the obfuscated uber jar and the taglibs shown above. I know this isn't a AEM Eclipse Dev Tools issue per se. We use Sightly, but still would like JSP support in eclipse. It would be really great if this plugin had a solution for JSP's in the IDE, or maybe example of Maven settings required for it.

from aem-eclipse-developer-tools.

jbaix avatar jbaix commented on June 12, 2024

I solved the issue (in AEM61) including the dependency:

<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.scripting.jsp.taglib</artifactId>
<version>2.2.4</version>
<scope>provided</scope>
</dependency>

Thank you Justin!
Regards

from aem-eclipse-developer-tools.

cmrockwell avatar cmrockwell commented on June 12, 2024

Perfect! Updating org.apache.sling.scripting.jsp.taglib version to 2.2.4 worked for me.
Thanks

from aem-eclipse-developer-tools.

rombert avatar rombert commented on June 12, 2024

Thanks all for the comments. I've updated the AEM Developer Tools for Eclipse documentation - https://docs.adobe.com/content/docs/en/dev-tools/aem-eclipse.html#Enabling%20tag%20library%20autocompletion%20in%20JSP%20files .

from aem-eclipse-developer-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.