Check follow:-
1. Go to http://<host>:<port>/system/console/bundles/org.apache.sling.scripting.jsp
* Stop the bundle.
* Start the bundle.
* Go to http://<host>:<port>/system/console/bundles/org.apache.sling.scripting.java
* Stop the bundle.
* Start the bundle.
If it still do not work then:
2. Log in to http://<host>:<port>/crx as admin (where <host> is the host name or IP address of your server (AEM <= 6.0) and <port> is the port number).
Open the CRX Explorer tool
Delete the nodes under /var/classes/ [It will recompile all the classes]
For >=6.1 Go to http://<AEM HOST>:<AEM PORT/system/console/slingjsp - >Click on Recompile all JSPs
See if this works for you...!! Also do check the error.log
Kautuk Sahni