Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Exception when trying to create a ref of HSSFWorkbook!!

 
Praveen Ramachandran
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the doPost of my servlet i create a reference of the HSSFWorkbook.When the compiler hits the code it blows up with a servlet exception which is confusing

the code goes like this inside the doPost()
...
...if(fdateFormat.after(tdateFormat))
{
request.setAttribute("dateError","From date should be before To Date.\n\n");
RequestDispatcher rd = request.getRequestDispatcher("/calendar1.jsp");
rd.include(request, response);
}
else
{
hwb1 = new HSSFWorkbook();<-- the exception is thrown........................
rda.dataaccessmethod(fromdate, todate,hwb1);

}

The same did happened to me when i tried calling hibernate from doPost()..

Can any of the experts help me out in this annoying problem?Thanks in advance !!!
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the full stack trace of the exception (it might be in the log files if it isn't shown on the page). All required jar files are in WEB-INF/lib, right?
 
Praveen Ramachandran
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Ulf Dittmer,,

Thanks a ton!! i overlooked the WEB-INF/lib ...infact i was adding the necessary jars through add external jars option.So now after your comment i made sure that the jars were present in WEB-INF/lib...and it worked !!! have a nice day
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic