Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By wsaryada

Thread: Servlet Exception: java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSF

  1. #1
    wonde is offline Member
    Join Date
    Jun 2012
    Posts
    2
    Rep Power
    0

    Angry 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..

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    758
    Rep Power
    8

    Default 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.
    Tolls likes this.

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,751
    Rep Power
    19

    Default 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.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  4. #4
    wonde is offline Member
    Join Date
    Jun 2012
    Posts
    2
    Rep Power
    0

    Smile Re: Servlet Exception: java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/

    Quote Originally Posted by Tolls View Post
    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...!

Similar Threads

  1. Replies: 4
    Last Post: 12-07-2010, 10:34 PM
  2. HSSF: Html to Text conversion
    By xtech in forum Advanced Java
    Replies: 1
    Last Post: 04-17-2008, 08:45 AM
  3. APACHE HSSF on Netbeans
    By dgajudo in forum NetBeans
    Replies: 2
    Last Post: 12-10-2007, 04:04 AM
  4. Autofilter and POI-HSSF
    By nefarius in forum JDBC
    Replies: 0
    Last Post: 09-23-2007, 03:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •