solr setup

2006-03-20 Thread Mike Austin
I'm trying to set solr up with CentOS 4.2, Apache 2.0.55, Tomcat 5, and Java
SDK 1.5 for the first time.

I copied the solr.war to the tomcat webapps folder and it created the solr
folders. I then try running the app with
http://localhost:8080/solr/adminand I get an error (I don't have the
error message now, I can get it later
tonight if needed). Is there some other step besides just copying the war
file?

BTW, the tomcat example apps work find.

Thanks,
Mike


Re: solr setup

2006-03-20 Thread Yonik Seeley
On 3/20/06, Mike Austin <[EMAIL PROTECTED]> wrote:
> I'm trying to set solr up with CentOS 4.2, Apache 2.0.55, Tomcat 5, and Java
> SDK 1.5 for the first time.
>
> I copied the solr.war to the tomcat webapps folder and it created the solr
> folders. I then try running the app with
> http://localhost:8080/solr/adminand I get an error (I don't have the
> error message now, I can get it later
> tonight if needed). Is there some other step besides just copying the war
> file?

Hi Mike,
Solr needs to find it's config files.  Check out the "example"
directory of the solr distribution you downloaded.  Solr currenty
checks the ./solrconf/ directory for it's config, but that may soon
change to ./solr/conf due to discussions on solr-dev.

-Yonik


Re: solr setup

2006-03-20 Thread Mike Austin
Thanks Yonik,

I fixed the conf issue.. now I get this. Any ideas?

2006-03-20 20:42:09 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
java.lang.NoClassDefFoundError
at org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:67)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)

On 3/20/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
> On 3/20/06, Mike Austin <[EMAIL PROTECTED]> wrote:
> > I'm trying to set solr up with CentOS 4.2, Apache 2.0.55, Tomcat 5, and
> Java
> > SDK 1.5 for the first time.
> >
> > I copied the solr.war to the tomcat webapps folder and it created the solr
> > folders. I then try running the app with
> > http://localhost:8080/solr/adminand I get an error (I don't have the
> > error message now, I can get it later
> > tonight if needed). Is there some other step besides just copying the war
> > file?
>
> Hi Mike,
> Solr needs to find it's config files.  Check out the "example"
> directory of the solr distribution you downloaded.  Solr currenty
> checks the ./solrconf/ directory for it's config, but that may soon
> change to ./solr/conf due to discussions on solr-dev.
>
> -Yonik
>


Re: solr setup

2006-03-20 Thread Yonik Seeley
I'm not sure what to make of that error... I don't see what class is
trying to be found that results in the "NoClassDefFoundError".

I've personally only tried Solr with Tomcat 5.5, Resin 3, and Jetty 6.
Perhaps you could try upgrading to Tomcat 5.5?

-Yonik

On 3/20/06, Mike Austin <[EMAIL PROTECTED]> wrote:
> Thanks Yonik,
>
> I fixed the conf issue.. now I get this. Any ideas?
>
> 2006-03-20 20:42:09 StandardWrapperValve[jsp]: Servlet.service() for
> servlet jsp threw exception
> java.lang.NoClassDefFoundError
> at org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:67)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> at 
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:595)
>
> On 3/20/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
> > On 3/20/06, Mike Austin <[EMAIL PROTECTED]> wrote:
> > > I'm trying to set solr up with CentOS 4.2, Apache 2.0.55, Tomcat 5, and
> > Java
> > > SDK 1.5 for the first time.
> > >
> > > I copied the solr.war to the tomcat webapps folder and it created the solr
> > > folders. I then try running the app with
> > > http://localhost:8080/solr/adminand I get an error (I don't have the
> > > error message now, I can get it later
> > > tonight if needed). Is there some other step besides just copying the war
> > > file?
> >
> > Hi Mike,
> > Solr needs to find it's config files.  Check out the "example"
> > directory of the solr distribution you downloaded.  Solr currenty
> > checks the ./solrconf/ directory for it's config, but that may soon
> > change to ./solr/conf due to discussions on solr-dev.
> >
> > -Yonik
> >
>


--
-Yonik
http://incubator.apache.org/solr Solr, The Open Source Lucene Search Server


Re: solr setup

2006-03-20 Thread Mike Austin
Actually.. it looks like it is still not finding solrconfig.xml because after I 
restart tomcat I get the config file error. Where should this go again? I know 
you said ./solrconf, but relative to what? 

Also, I still don't know if I deployed the site correctly..the only thing I did 
was copy the solr.war to the tomcat/webapps folder.

Thanks
 


Re: solr setup

2006-03-20 Thread Yonik Seeley
On 3/20/06, Mike Austin <[EMAIL PROTECTED]> wrote:
> Actually.. it looks like it is still not finding solrconfig.xml because after 
> I restart tomcat I get the config file error. Where should this go again? I 
> know you said ./solrconf, but relative to what?

Solr looks in ./solrconf, relative to the current working directory. 
The current working directory is normally where you are when you start
the app-server (so don't cd to bin first).

> Also, I still don't know if I deployed the site correctly..the only thing I 
> did was copy the solr.war to the tomcat/webapps folder.

That should be fine.

-Yonik


Re: solr setup

2006-03-20 Thread Mike Austin
ok.. here is the error:
2006-03-20 22:37:03 StandardContext[/solr]StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
at org.apache.solr.update.SolrIndexConfig.(Unknown Source)
at org.apache.solr.core.SolrCore.(Unknown Source)
at org.apache.solr.servlet.SolrServlet.init(Unknown Source)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.RuntimeException: Can't find resource solrconfig.xml
at org.apache.solr.core.Config.openResource(Unknown Source)
at org.apache.solr.core.SolrConfig.(Unknown Source)
... 31 more

2006-03-20 22:37:03 StandardContext[/solr]Servlet /solr threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet SolrServer
threw exception
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1071)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.ref

Re: solr setup

2006-03-20 Thread Yonik Seeley
> Caused by: java.lang.RuntimeException: Can't find resource solrconfig.xml

Hmmm, we've been moving around the config directory lately...
what version are you working off of.  Check that the example directory
has ./solrconf in it.

Then check that there is a ./solrconf/ from wherever you are starting
the app server.
the layout should look something like this:

tomcat/webapps/solr.war
tomcat/solrconf/solrconfig.xml, schema.xml, etc
tomcat/bin/startup.sh

then start tomcat by executing
./bin/startup.sh
from the tomcat directory

-Yonik


Re: solr setup

2006-03-20 Thread Mike Austin
Ahhh!!  OK.. next time you see me you can back-slap me. I was doing a cd
into bin and starting tomcat. Now it is working. Sorry to waste your time,
it was my mistake all along. I did install tomcat 5.5 but the issue was the
startup.

Thanks,
Mike