I am trying to invoke a simple java method from post.POST.jsp
I am getting below exception while doing it.
org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 32 in the jsp file: /apps/mywebsite/components/customFormAction/post.POST.jsp
The method test() is undefined for the type DatasourceUtil
31: com.day.test.datasource.DatasourceUtil dsUtil = new com.day.test.datasource.DatasourceUtilImpl();
33: //dsUtil.validateLogin(request.getParameter("username"), request.getParameter("password"));
It appears to resolve the class correctly. I could run the code, if I only comment dsUtil.test();. As soon as I uncomment, it gives above error.
In the Utill I have a simple void method which will print a simple text. My package structure is as follows.
any help will be great
1. In the interface  not the implementation have u defined the method test?
2. If it is implemented, Change the bundle version in bnd file and make a new build. Then from felix console verify the latest version reflected in the bundles.
If 2 works & you are going to make lot of frequent changes then give the version as snapshot till it get stable.