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

  • SEARCH
  • Home
  • 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 8226175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:40:29+00:00 2026-06-07T15:40:29+00:00

I am indexing PDF document using Lucene, I use Eclipse indigo as an IDE

  • 0

I am indexing PDF document using Lucene, I use Eclipse indigo as an IDE and tomcat7 as a servlet container , the problem is when I index the document and want to save the original document for later downloading, but eclipse put the documents in temporary directory in stead of the directory I have chosen.
here is what I am doing.

I have this param in my web.xml

    <context-param>
    <description>Location to store uploaded file also the location of files to be indexed</description>
    <param-name>file-upload</param-name>
    <param-value>
    folder\
 </param-value>
</context-param>

then calling it inside servlet init() methode like this

filePath = getServletContext().getRealPath("") + File.separator + getServletContext().getInitParameter("file-upload");

in short I am trying to store the document in directory called “folder” inside my project which is called “Search”, but eclipse will store it in the temporary place like this:

C:\Users\Solid\Dropbox\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Search\folder\ir_overview.pdf

but the actual path is like this :

C:\Users\Solid\Dropbox\workspace\Search\WebContent\folder

any idea how to solve this??

  • 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-06-07T15:40:31+00:00Added an answer on June 7, 2026 at 3:40 pm

    Eclipse deploys the project to a working directory outside of the Project Workspace.

    Default, Eclipse uses /workspace/.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
    path to deploy web application.

    It has to re-organize the files from the directory structure the Eclipse Workspace expects to the format a Web Application expects.

    Click on > Servers Tab. Right Click on Servlet container (Tomcat 7 in your case) and Open (F3 is shortcut for eclipse).

    You should be able to see Server Path option which contains

    Specify the server path (i.e. catalina.base) and deploy path.

    You can specify the deploy location here.

    Note: Server must be published with no modules present to make changes.

    So, undeploy your web applicaion and change the location.

    EDIT:

    Unrelated to Question : You should create separate directory out side webContent / webapp to store Lucene indexes. This practice would be useful when you deploy application to Tomcat production

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

Sidebar

Related Questions

I want to index PDF (and other rich) documents. I am using the DataImportHandler.
I'm new to Apache Solr, and I want to use it for indexing pdf
I am indexing a pdf file using this php script. The curl give me
I am indexing some URIs in SOLR using the UAX29URLEmailTokenizerFactory tokenizer. The problem is
Following the instructions in this SDN document (PDF) , I added a custom Lucene
I've got a strange problem with indexing PDF files in SQL Server 2005, and
I want to index a large number of pdf documents. I have found a
I want to prevent google from indexing pdf's on my website. I have modified
I am converting a PDF with PDF2SWF and Indexing with XPDF.. with exec.. only
Indexing Service is set up on our file server to index a couple dozen

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.