I had absolutely not luck with the jetty-solr package on Ubuntu 8.04.
I haven't tried Tomcat for solr.
I do have it running on Ubuntu though.  Here's what I did.  Hope this
helps.  Don't do this unless you
understand the steps.  When I say things like 'remove contents' I
don't know what you have in there.
But, if you don't have jetty or solr yet, you'll probably be safe

1)  wget http://www.trieuvan.com/apache/lucene/solr/1.3.0/apache-solr-1.3.0.tgz
2)  wget http://dist.codehaus.org/jetty/jetty-6.1.11/jetty-6.1.11.zip
(possibily something newer will work, but so does this.)
3)  Get Java 1.6
4)  tar -zxvf jetty-6.1.11.zip into /opt
5)  ln -s /opt/jetty-6.1.11 jetty
6)  remove contents of /opt/jetty/context
7)  mkdir /opt/jetty/context/solr
8)  tar -zxvf apache-solr-1.3.0.tgz into /opt/jetty/context/solr
9)  create a file called /opt/jetty/contexts/jetty-solr.xml  with the
following contents

Change the path to jetty home to you're jetty home.  My example here
shows /var/solr/home

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd";>

<!-- =============================================================== -->
<!-- Configure the test-jndi webapp                                  -->
<!-- =============================================================== -->
<Configure class="org.mortbay.jetty.webapp.WebAppContext">

<!-- Ensure Jetty Plus features are enabled for this webapp
          -->
  <Set name="configurationClasses">
    <Array type="java.lang.String">
      <Item>org.mortbay.jetty.webapp.WebInfConfiguration</Item>
      <Item>org.mortbay.jetty.plus.webapp.EnvConfiguration</Item>
      <Item>org.mortbay.jetty.plus.webapp.Configuration</Item>
      <Item>org.mortbay.jetty.webapp.JettyWebXmlConfiguration</Item>
      <Item>org.mortbay.jetty.webapp.TagLibConfiguration</Item>
    </Array>
  </Set>

        <Set name="contextPath">/solr</Set>
        <Set name="war">/opt/jetty/contexts/solr/</Set>
        <Set name="extractWAR">false</Set>
        <Set name="copyWebDir">false</Set>
        <Set name="descriptor">/opt/jetty/contexts/solr/WEB-INF/web.xml</Set>

        <!-- Define some env entries for java:comp/env
          -->
        <New id="solr.home"  class="org.mortbay.jetty.plus.naming.EnvEntry">
                <Arg>solr/home</Arg>
                <Arg type="String">/var/solr/home</Arg>
        </New>


</Configure>



10)  start jetty ,,,,
  a)  java -jar start.jar etc/jetty.xml while developing
  b)  nohup java -jar start.jar etc/jetty.xml > /dev/null 2>&1 &  to
make it quiet and headless.

I know this doesn't help you get it going on Tomcat.  But, perhaps you
should considering Jetty.  It works under Ubuntu fine.  (Note this is
a developoment setup.  I don't have a production tested setup yet.  I
hope it's not too different, but I thought I shoudl mention that.)

Hope this helps someone

cheers
gene

On Fri, Oct 3, 2008 at 4:48 AM, Tricia Williams
<[EMAIL PROTECTED]> wrote:
> I haven't tried installing the ubuntu package, but the releases from
> apache.org come with an example that contains a directory called "solr"
> which contains a directory called "conf" where schema.xml and solrconfig.xml
> are important.   Is it possible these files do not exist in the path?
>
> Tricia
>
> Jack Bates wrote:
>>
>> No sweat - did you install the Ubuntu solr package or the solr.war from
>> http://lucene.apache.org/solr/?
>>
>> When you say it doesn't work, what exactly do you mean?
>>
>> On Thu, 2008-10-02 at 07:43 -0700, [EMAIL PROTECTED] wrote:
>>
>>>
>>> Hi Jack,
>>> Really I would love if you could help me about it ... and tell me what
>>> you have in your file
>>> ./var/lib/tomcat5.5/webapps
>>> ./usr/share/tomcat5.5/webapps
>>>
>>> It doesn't work I dont know why :(
>>> Thanks a lot
>>> Johanna
>>>
>>> Jack Bates-2 wrote:
>>>
>>>>
>>>> Thanks for your suggestions. I have now tried installing Solr on two
>>>> different machines. On one machine I installed the Ubuntu solr-tomcat5.5
>>>> package, and on the other I simply dropped "solr.war"
>>>> into /var/lib/tomcat5.5/webapps
>>>>
>>>> Both machines are running Tomcat 5.5
>>>>
>>>> I get the same error message on both machines:
>>>>
>>>> SEVERE: Exception starting filter SolrRequestFilter
>>>> java.lang.NoClassDefFoundError: Could not initialize class
>>>> org.apache.solr.core.SolrConfig
>>>>
>>>> The full error message is attached.
>>>>
>>>> I can confirm that the /usr/share/solr/WEB-INF/lib/apache-solr-1.2.0.jar
>>>> jar file contains: org/apache/solr/core/SolrConfig.class
>>>> - however I do not know why Tomcat does not find it.
>>>> Thanks again, Jack
>>>>
>>>>
>>>>>
>>>>> Hardy has solr packages already. You might want to look how they
>>>>> packaged
>>>>> solr if you cannot move to that version.
>>>>> Did you just drop the war file? Or did you use JNDI? You probably need
>>>>> to
>>>>> configure solr/home, and maybe fiddle with
>>>>> securitymanager stuff.
>>>>>
>>>>> Albert
>>>>>
>>>>> On Thu, May 1, 2008 at 6:46 PM, Jack Bates <ms419 <at> freezone.co.uk>
>>>>> wrote:
>>>>>
>>>>>
>>>>>>
>>>>>> I am trying to evaluate Solr for an open source records management
>>>>>> project to which I contribute: http://code.google.com/p/qubit-toolkit/
>>>>>>
>>>>>> I installed the Ubuntu solr-tomcat5.5 package:
>>>>>> http://packages.ubuntu.com/hardy/solr-tomcat5.5
>>>>>>
>>>>>> - and pointed my browser at: http://localhost:8180/solr/admin (The
>>>>>> Ubuntu and Debian Tomcat packages run on port 8180)
>>>>>>
>>>>>> However, in response I get a Tomcat 404: The requested
>>>>>> resource(/solr/admin) is not available.
>>>>>>
>>>>>> This differs from the response I get accessing a random URL:
>>>>>> http://localhost:8180/foo/bar
>>>>>>
>>>>>> - which displays a blank page.
>>>>>>
>>>>>> From this I gather that the solr-tomcat5.5 package installed
>>>>>> *something*, but that it's misconfigured or missing something.
>>>>>> Unfortunately I lack the Java / Tomcat experience to track down this
>>>>>> problem. Can someone recommend where to look, to learn why the Ubuntu
>>>>>> solr-tomcat5.5 package is not working?
>>>>>>
>>>>>> I started an Ubuntu wiki page to eventually describe the process of
>>>>>> installing Solr on Ubuntu: https://wiki.ubuntu.com/Solr
>>>>>>
>>>>>> Thanks, Jack
>>>>>>
>>>>
>>>> Apr 25, 2008 4:46:41 PM org.apache.catalina.core.StandardContext
>>>> filterStart
>>>> SEVERE: Exception starting filter SolrRequestFilter
>>>> java.lang.NoClassDefFoundError: Could not initialize class
>>>> org.apache.solr.core.SolrConfig
>>>>        at
>>>>
>>>> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:74)
>>>>        at
>>>>
>>>> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
>>>>        at
>>>>
>>>> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
>>>>        at
>>>>
>>>> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>>>>        at
>>>>
>>>> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
>>>>        at
>>>>
>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
>>>>        at
>>>>
>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>>>>        at
>>>> org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:744)
>>>>        at
>>>>
>>>> org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:144)
>>>>        at java.security.AccessController.doPrivileged(Native Method)
>>>>        at
>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)
>>>>        at
>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>>>>        at
>>>>
>>>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
>>>>        at
>>>>
>>>> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
>>>>        at
>>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>>>>        at
>>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>>>>        at
>>>>
>>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>>>>        at
>>>>
>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>>>>        at
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>>>>        at
>>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>>>>        at
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>>>        at
>>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>>>        at
>>>> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>>>>        at
>>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>>>>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>        at
>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>        at
>>>>
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>        at java.lang.reflect.Method.invoke(Method.java:616)
>>>>        at
>>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>        at
>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>        at
>>>>
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>        at java.lang.reflect.Method.invoke(Method.java:616)
>>>>        at
>>>>
>>>> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
>>>>
>>>>
>>>>
>>>
>>> Quoted from:
>>> http://www.nabble.com/Re%3A-solr-on-ubuntu-8.04-tp17502975p17502975.html
>>>
>>>
>>>
>
>

Reply via email to