내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

class not found exception for different framework java classes

Avatar

Level 3

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

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 10

Verify the pom.xml import package.

원본 게시물의 솔루션 보기

5 답변 개

Avatar

Level 3

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

Avatar

정확한 답변 작성자:
Level 10

Verify the pom.xml import package.

Avatar

Level 10

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

Avatar

Level 3

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)

Avatar

Level 10

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