class not found exception for different framework java classes | Community
Skip to main content
aem_dev1
New Participant
October 16, 2015
Solved

class not found exception for different framework java classes

  • October 16, 2015
  • 5 replies
  • 1899 views

Hi,

I am getting below error when i try to access the custom page created

Caused by: java.lang.ClassNotFoundException: javax.servlet.jsp.PageContext not found by <custom package> [502]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1550)

Same error is repeated for all java classes. I mean i created a component and calling java class from component jsp. I am passing currentNode, pageContext etc... from jsp to java class. There are no issues with compilation. But when i access the page with above component getting no class def found for all classes. 

Caused by: java.lang.ClassNotFoundException: javax.jcr.Node not found by <custom package> [505]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1550)

 

Appreciated for any help

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

Verify the pom.xml import package.

5 replies

aem_dev1
aem_dev1Author
New Participant
October 16, 2015

Forgot to mention in above post, AEM is installed in tomcat

Sham_HC
Sham_HCAccepted solution
New Participant
October 16, 2015

Verify the pom.xml import package.

Lokesh_Shivalingaiah
New Participant
October 16, 2015

Are you getting the this error when you trying to call the class from your bundle or any OOB Bundle class aswell  ?

aem_dev1
aem_dev1Author
New Participant
October 16, 2015

Yes. I am getting it when i use the class in custom bundle. I have user node.getProperty() (in java class) which is failing. Where as when i try the same in jsp (currentNode.getProperty() is working fine)

smacdonald2008
New Participant
October 16, 2015

Please in future - place AEM questions in the main Experience Manager forum - not Marketing Cloud - AEM ppl will see it.