Problem in accessing the JavaBean from Internal folder

Asked on September 07, 2014
I have hosted my jsp website using Cpanel . I have uploaded the war file and extract that in public_html folder. The index.jsp uses a JavaBean for dynamic menu perfectly but when another jsp placed in a folder "users" trying to access the same Bean then it is unable to access that and throws an ClassNotFoundException.
What is the problem behind that.

Replied on September 08, 2014
War file must have the structure as below



Please check the structure.
You should also check what is error log.

Replied on September 08, 2014
As you have given that for another JSP inside "users" folder, ClassNotFoundException exception is there. Check if same package is being imported in both JSP.
ClassNotFoundException is thrown only when the JAR containing that class is not available.

Write Answer

©2024 | Privacy Policy | Contact Us