Servlet Exception: java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSF
Hi,
I had added apache libraries (poi-3.7) into Java Build Path.
I can create excel file, write to the file if i run the codes in junit test. - on Window machine
But it got error when it's up to Linux Server. It will hit error:
Root cause of ServletException.
java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
Did anyone has any idea on the cause?
Is Apache POI supported on Linux?
Please help..:^):
Re: Servlet Exception: java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/
That's basically means that Java cannot locate your POI library. Please make sure it is available in the classpath of your application.
Re: Servlet Exception: java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/
You need to make sure you have deployed the poi jar into WEB-INF/lib.
This should be part of your war file (depending on how you are deploying), so something is probably up with how you build it.
Re: Servlet Exception: java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/
Quote:
Originally Posted by
Tolls
You need to make sure you have deployed the poi jar into WEB-INF/lib.
This should be part of your war file (depending on how you are deploying), so something is probably up with how you build it.
Yeah...it solved my problem.. thanks...!