Skip to main content
aem_dev1
Level 3
Oct 16, 2015 2:29 AM UTC
Solved

class not found exception for different framework java classes

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.
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:29 AM UTC

Verify the pom.xml import package.

5 replies

smacdonald2008
Level 10
Oct 16, 2015 2:29 AM UTC

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

Translate
aem_dev1
aem_dev1Author
Level 3
Oct 16, 2015 2:29 AM UTC

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)

Translate
Lokesh_Shivalingaiah
Level 10
Oct 16, 2015 2:29 AM UTC

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

Translate
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:29 AM UTC

Verify the pom.xml import package.

Translate
aem_dev1
aem_dev1Author
Level 3
Oct 16, 2015 2:29 AM UTC

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

Translate