I've installed and set up tomcat+solr on my small personal linux machine and home windows too. I could have them working fine. I am very a new comer to Java and just how the file structure works. (i.e. knowing where you can put war files and what WEB-INF is) Significantly improved I'm prepared to install solr and configure it on my small clients hosting that is shared plan, the directions aren't the same as things i did before. I shouldn't mess this up and apparently the webserver reboots daily and that i dont think I'm able to get it done by hand meaning I've one shot only at that every single day.

This is actually the directions for setting up a tomcat servlet on his host company: http://world wide web.apluskb.com/scripts/Where_do_I_put_my_answer1186.html

As you can tell I have to install solr underneath the html/WEB-INF directory, but read what it really states.. its really perplexing:

"All Servlets ought to be submitted within the /html/WEB-INF/classes directory. Any unpacked custom classes and assets ought to be submitted within the /html/WEB-INF/classes directory, while classes and assets packed in Jar files ought to be submitted to /html/WEB-INF/lib."

uhh... so that is it? /classes? or /lib? I dont think they explain that perfectly and I am a little confused with this statement. Also just what will i install? Having a normal solr install, solr is defined elsewhere, the war file is replicated into tomcat and also the relaxation of solr is recommended with a couple type of XML configuration file.

Also, since I am a little a new comer to Java and servlets, can someone explain the tomcat file structure in my experience (in great detail will certainly enable you to get a +1 from me) and where things is going and why?

Thanks ahead of time!

Web application structure is determined by J2EE spec, it isn't limited (or specific) to Tomcat by itself. This is a detailed tutorial covering its layout. Briefly, however, it's the following:

  1. There basics (root, home, anything you want to refer to it as) folder which can serve as cause of web application, anything else goes under it.
  2. All public stuff (html, images, CSS, javascript, JSP, whoever else) goes under that folder (directly or via subfolders).
  3. There's one special folder, also situated directly under root, known as WEB-INF. It consists of non-public stuff, like application descriptor (web.xml), classes (which are into WEB-INF/classes folder), libraries (WEB-INF/lib) and perhaps configuration files.
  4. Application could be used either using broadened structure above or as WAR (web archive) that is essentially accurate documentation that contains everything above beginning at root folder level (although not including root).

The excellence between classes and lib folders is straightforward: all packed libraries (JAR files) will need to go into lib all unpackaged classes (and resource files that should be in classpath) need to go into classes protecting their directory structure (e.g. com.mypackage.Blah class is going into classes/com/mypackage/)

Inside your situation, it appears as if you are only able to have one web application used also it needs to be used to /html folder. If you are implementing a war file, you have to extract it to that particular directory (e.g. from inside that /html folder run jar xvf solr.war or whatever it's known as).

You will get free SOLR hosting within the cloud at http://world wide web.opensolr.com

You can include collections (SOLR cores) with only 1 click and edit your schema file live.

You are able to host as numerous collections as you would like, fully secure. The very best factor is, you may even add your personal server for those who have one and keep it in check safely with the Opensolr.com management UI.

Here are a few screenshots http://opensolr.com/art galleries/solrmanager-screenshots