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 305929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:25:10+00:00 2026-05-12T07:25:10+00:00

I have installed and configured tomcat+solr on my personal linux machine and windows as

  • 0

I have installed and configured tomcat+solr on my personal linux machine and windows as well. I was able to get them working fine. I’m very new to Java and how the file structure works. (i.e. knowing where to put war files and what WEB-INF is) So now that I am ready to install solr and configure it on my clients shared hosting plan, the directions are different from what I did before. I dont want to mess this up and apparently the webserver reboots daily and I dont think I can do it manually which means I have one shot at this every day.

Here is the directions for installing a tomcat servlet on his hosting provider:
http://www.apluskb.com/scripts/Where_do_I_put_my_answer1186.html

As you can see I need to install solr under the html/WEB-INF directory, but read what it says.. its very confusing:

“All Servlets should be uploaded in the /html/WEB-INF/classes directory. Any unpacked custom classes and resources should be uploaded in the /html/WEB-INF/classes directory, while classes and resources packed in Jar files should be uploaded to /html/WEB-INF/lib.”

uhh… so which is it? /classes? or /lib? I dont think they explain that very well and I’m a little confused by this statement. Also what exactly do I install? With a normal solr install, solr is put somewhere else, the war file is copied into tomcat and the rest of solr is referenced using some kind of XML configuration file.

Also, since I’m a little new to Java and servlets, can someone explain the tomcat file structure to me (in great detail will definitely get you a +1 from me) and where things should go and why?

Thanks in advance!

  • 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-12T07:25:10+00:00Added an answer on May 12, 2026 at 7:25 am

    Web application structure is defined by J2EE spec, it’s not limited (or specific) to Tomcat per se. Here is a detailed tutorial covering its layout. Briefly, however, it’s as follows:

    1. There a base (root, home, whatever you want to call it) folder which serves as root of web application, everything else goes under it.
    2. All public stuff (html, images, CSS, javascript, JSP, what have you) goes under that folder (directly or via subfolders).
    3. There’s one special folder, also located directly under root, called WEB-INF. It contains non-public stuff, like application descriptor (web.xml), classes (which go into WEB-INF/classes folder), libraries (WEB-INF/lib) and possibly configuration files.
    4. Application can be deployed either using expanded structure above or as WAR (web archive) which is basically an archive containing everything above starting at root folder level (but not including root).

    The distinction between classes and lib folders is simple: all packaged libraries (JAR files) need to go into lib; all unpackaged classes (and resource files that need to be in classpath) have to go into classes preserving their directory structure (e.g. com.mypackage.Blah class should go into classes/com/mypackage/)

    In your case, it looks like you can only have one web application deployed and it has to be deployed to /html folder. If you’re deploying a war file, you need to extract it to that directory (e.g. from within that /html folder run jar xvf solr.war or whatever it’s called).

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

Sidebar

Related Questions

I have installed apache-tomcat-6.0.35-windows-x86 in my system. How can I configure it and set
I have installed gitorious ruby application, configured apache passenger and vhost. Everything works fine
I have installed/configured Elmah on my personal SharePoint dev environment and everything works great
I have installed mono platform on my Linux server and I was able to
i have just started learning solr. i have installed apache tomcat server and solr
I have followed this guide to install Solr in TomCat running on Windows Server
I am using Linux Mint 12, Kernel 3. I have installed and configured Open
I have installed and configured LAMP to run on my Ubuntu 11.10. Now I
IIS is already installed on my server. I have configured WAMP to listen port
I have installed PHP and its not working in the Apache Webserver. Steps followed

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.