Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 464335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:15:53+00:00 2026-05-12T23:15:53+00:00

I’m using a servlet to upload .xls (Excel Spreadsheets) files to the server. I’m

  • 0

I’m using a servlet to upload .xls (Excel Spreadsheets) files to the server. I’m using the Apache FileUpload API for the upload portion of the business logic, to ensure weather this part is working, I have successfully attempted uploading a .txt file to the Servlet after which — the Apache FileUpload API, from the servlet side gives me an InputStream from which I print out all the contents of the .txt on to the console.

The part which isn’t working is, when, I attempt to use that InputStream and forward it to a method in which, I scan the user uploaded .xls file and print it on the console. The Exception being thrown is:

java.lang.ClassNotFoundException: org.apache.poi.ss.usermodel.WorkbookFactory

This happens despite me having added both, poi-3.5-FINAL-20090928.jar and poi-ooxml-3.5-FINAL-20090928.jar to the Java Project Build Path. It should be mentioned that the latter file contains the WorkbookFactory class.

Yet, when I tried scanning a .xls file which was locally present on the hard drive, from which I derived the InputStream and forward that to print all the cells of the .xls, it prints out the cells on each row and columns flawlessly on the console. Any solutions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:15:54+00:00Added an answer on May 12, 2026 at 11:15 pm

    You’re using Apache Commons FileUpload which thus implies that you’re using a webapplication. Did you place the libraries in the webapp’s /WEB-INF/lib folder as you usually should do for any 3rd party libraries? You don’t need to do anything with Java Project Build Path. Eclipse will automagically take any libraries in /WEB-INF/lib in the buildpath and the webapplication, once deployed, will by default take those libraries in the classpath.

    If that doesn’t help, then ensure that you don’t have somewhere else an older version of POI in the classpath which may coillide in the classloading. This includes aside from the webapp’s /WEB-INF/lib under each the appserver’s /lib (and maybe others, depending on make/version/configuration, consult the docs for details) and the JRE’s /lib. If there are older POI versions in there, you need to remove them first. Actually, those folders should not contain any 3rd party webapp-specific libraries, it would only clutter the classpath.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
In order to apply a triggered animation to all ToolTip s in my app,
I want use html5's new tag to play a wav file (currently only supported
I want to count how many characters a certain string has in PHP, but
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.