This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
i am writing just simple jsp code using expressions and scriptlets. i am beginning with jsp and didn't had this JasperException in servlets. I do think that this problem is related to apache tomcat but don't know to configure it..
i am having all required jar files in Libraries which include all from the tomcat/lib folder and some commons.jar. None of them is having a broken reference.
One basic thing i didn't understand is that what is this org.apache.jasper.JasperException all about and how to rectify the line below
I have only displaytag.tld and web.xml in the WEB-INF. In NetBeans there is separate folder named lib within the project in which all the jar files are kept. Until now when i was coding servlets in NetBeans i used to keep all jar files in the lib folder and everything worked fine. Following are the jar files in lib:
I'm not sure about the Netbean's configuration for server here that how it uses these jar files. But inside your project folder you shouldn't be keeping jar files which are used by the server like catalina.jar, tomcat-coyote.jar etc... Have you checked how these being used by the Netbeans or the Tomcat instance it runs?
My Jsp code is now working and executing. I uninstalled jdk and NetBeans and installed jdk 7 and NetBeans 7. Now its working perfectly.But I still don't understand what was that JasperException all about.
A lot of thanks to all java ranchers for helping through this..
I wish i could've helped you out earlier, but now that the problem is resolved, i would advice you not to get into the details of the problem now.
But if you are still curious, whatever i could figure out from all your given information.. the problem must be compatibility between jdk and netbeans. It is advised that you download and install the jdk+netbeans+apache pack from http://netbeans.org/downloads/ Another reason could be that jdk was already installed on your system and you installed netbeans+jdk pack.