You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Alejandro Valdez <al...@gmail.com> on 2008/02/19 17:32:52 UTC

Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Hello, I'm trying to install Solr in Windows but it's not working.

I followed the instructions at http://wiki.apache.org/solr/SolrTomcat for
configuring Solr in Windows.

If I open the localhost tomcat URL (http://localhost:8080/) it shows
the tomcat page.

If I open the localhost URL for my project
(http://localhost:8080/myproject) it works ok.

But if I open the Solr URL (http://localhost:8080/solr/admin) It fails
with tomcat's 404 error.

The files are correctly deployed in the webapps directory...

The tomcat's log says "Feb 19, 2008 2:24:54 PM
org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive solr.war" but it still don't work :-(


Any clue?




This is the tomcat_start.bat
--------------
set JAVA_HOME=C:\Sun\SDK\jdk
set workers.catalina_home=c:\xampp\tomcat
set workers.java_home=C:\Sun\SDK\jdk
set TOMCAT_HOME=c:\xampp\tomcat
set TOMCAT_BASE=c:\xampp\tomcat
set CLASSPATH=c:\xampp\tomcat;C:\Sun\SDK\jdk\lib\tools.jar
set CATALINA_BASE=c:\xampp\tomcat
set CATALINA_HOME=c:\xampp\tomcat
set JAVA_OPTS=-Dsolr.solr.home=c:\xampp\tomcat\webapps\solr -Duser.language=en
tomcat\bin\catalina.bat start
--------------

This is the output when Tomcat start:
--------------
Feb 19, 2008 2:24:54 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in produ
ction environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;
C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WI
NDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos de programa\python25;C:\Sun\SDK\jdk\j
re\bin;C:\Sun\SDK\bin;C:\Archivos de programa\CollabNet Subversion Server
Feb 19, 2008 2:24:54 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 523 ms
Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive solr.war
Feb 19, 2008 2:24:56 PM com.sun.faces.config.ConfigureListener contextInitialize
d
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for co
ntext '/mailstat'
log4j:WARN No appenders could be found for logger (org.ajax4jsf.application.Debu
gLifecycleFactory).
log4j:WARN Please initialize the log4j system properly.
Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 19, 2008 2:24:58 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 19, 2008 2:24:58 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32  config=null
Feb 19, 2008 2:24:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3558 ms
--------------

This is the content of catalina.log:
--------------
Feb 19, 2008 2:24:54 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos
de programa\python25;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\bin;C:\Archivos
de programa\CollabNet Subversion Server
Feb 19, 2008 2:24:54 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 523 ms
Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive solr.war
Feb 19, 2008 2:24:56 PM com.sun.faces.config.ConfigureListener
contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation
(1.2_04-b07-FCS) for context '/myproject'
Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 19, 2008 2:24:58 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 19, 2008 2:24:58 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32  config=null
Feb 19, 2008 2:24:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3558 ms
--------------

This is the content of localhost.log
--------------
Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Feb 19, 2008 2:24:58 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Feb 19, 2008 2:24:58 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
--------------

RE: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by Paul Treszczotko <pt...@input.com>.
Try -Dsolr.solr.home instead of -Dsolr.home

-----Original Message-----
From: Alejandro Valdez [mailto:alejandro.valdez@gmail.com]
Sent: Wednesday, February 20, 2008 5:33 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Hi, I changed that line to:

set JAVA_OPTS=-Dsolr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en

But It STILL isn't working...I almost give up :-(

When I try to open http://localhost:8080/solr/admin, I get:
---
HTTP Status 404 - /solr/admin
type Status report
message /solr/admin
description The requested resource (/solr/admin) is not available.
Apache Tomcat/6.0.13
---


Someone should fix the page http://wiki.apache.org/solr/SolrTomcat,
there says that should be used -Dsolr.solr.home=... :

"Use the system tray icon to configure Tomcat to start with the
following Java option: -Dsolr.solr.home=c:\web\solr"



Here is the output of Tomcat when started:
-----
Feb 20, 2008 8:27:59 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in produ
ction environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;
C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WI
NDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos de programa\python25;C:\Sun\SDK\jdk\j
re\bin;C:\Sun\SDK\bin;C:\Archivos de programa\CollabNet Subversion Server
Feb 20, 2008 8:27:59 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 20, 2008 8:27:59 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 522 ms
Feb 20, 2008 8:27:59 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 20, 2008 8:27:59 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
Feb 20, 2008 8:27:59 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive solr.war
Feb 20, 2008 8:28:00 PM com.sun.faces.config.ConfigureListener contextInitialize
d
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for co
ntext '/myproject'
log4j:WARN No appenders could be found for logger (org.ajax4jsf.application.Debu
gLifecycleFactory).
log4j:WARN Please initialize the log4j system properly.
Feb 20, 2008 8:28:02 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 20, 2008 8:28:02 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 20, 2008 8:28:02 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Feb 20, 2008 8:28:02 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3557 ms
----



On Wed, Feb 20, 2008 at 12:33 PM, Hausherr, Jens
<je...@logicacmg.com> wrote:
> It should work if you use -Dsolr.home=... instead of -Dsolr.solr.home=...
>
>  Or is this just a copy and paste error?
>
>  Jens
>
>  -----Ursprüngliche Nachricht-----
>  Von: Alejandro Valdez [mailto:alejandro.valdez@gmail.com]
>  Gesendet: Dienstag, 19. Februar 2008 20:37
>  An: solr-user@lucene.apache.org
>  Betreff: Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13
>
>
>
>  I updated the tomcat startup bat to:
>
>  set JAVA_OPTS=-Dsolr.solr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en
>
>  and to:
>
>  set JAVA_OPTS=-Dsolr.solr.home=C:/xampp/tomcat/webapps/solr -Duser.language=en
>
>  I'm still getting the same error:
>
>  ---------------
>  HTTP Status 404 - /solr/admin
>
>  type Status report
>
>  message /solr/admin
>
>  description The requested resource (/solr/admin) is not available.
>  Apache Tomcat/6.0.13
>  ----------------
>
>
>
>  I opened http://localhost:8080/manager/html and I can see a line that says:
>
>  /solr           true    0
>
>  'true' means that the solr application is running...
>
>
>  :-(
>
>
>
>
>
>
>
>
>  On Feb 19, 2008 5:16 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:
>  > In that case, your solr.solr.home should be
>  > "C:/xampp/tomcat/webapps/solr". Remove the conf at the end. I would
>  > suggest keeping the conf in a separate place though.
>  >
>  >
>  > On Feb 19, 2008 10:46 PM, Alejandro Valdez <al...@gmail.com> wrote:
>  > > Hi, I copied the content of the directory examples/solr to
>  > > C:\xampp\tomcat\webapps\solr and updated the tomcat startup bat to:
>  > >
>  > > set JAVA_OPTS=-Dsolr.solr.home=C:\xampp\tomcat\webapps\solr\conf
>  > > -Duser.language=en
>  > >
>  > > I get the same 404 error when open http://127.0.0.1:8080/solr/admin,
>  > > and there is no error message in the tomcat logs.
>  > >
>  > > If I start Solr from the example directory using jetty it's start ok
>  > > and the admin page shows ok.
>  > >
>  > > Any help would be very appreciated.
>  > >
>  > >
>  > >
>  > >
>  > >
>  > > On Feb 19, 2008 2:49 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:
>  > > > The problem is that your SOLR home is incorrect. You're making
>  > > > -Dsolr.solr.home point to the deployed solr webapp inside solr. It
>  > > > should actually point to a directory which contains conf folder
>  > > > containing solrconfig.xml and schema.xml.
>  > > >
>  > > > For an example configuration folder see example/solr supplied with solr builds.
>  > > >
>  > > >
>  > > > On Feb 19, 2008 10:02 PM, Alejandro Valdez <al...@gmail.com> wrote:
>  > > > > Hello, I'm trying to install Solr in Windows but it's not working.
>  > > > >
>  > > > > I followed the instructions at
>  > > > > http://wiki.apache.org/solr/SolrTomcat for configuring Solr in Windows.
>  > > > >
>  > > > > If I open the localhost tomcat URL (http://localhost:8080/) it
>  > > > > shows the tomcat page.
>  > > > >
>  > > > > If I open the localhost URL for my project
>  > > > > (http://localhost:8080/myproject) it works ok.
>  > > > >
>  > > > > But if I open the Solr URL (http://localhost:8080/solr/admin) It
>  > > > > fails with tomcat's 404 error.
>  > > > >
>  > > > > The files are correctly deployed in the webapps directory...
>  > > > >
>  > > > > The tomcat's log says "Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.catalina.startup.HostConfig deployWAR
>  > > > > INFO: Deploying web application archive solr.war" but it still
>  > > > > don't work :-(
>  > > > >
>  > > > >
>  > > > > Any clue?
>  > > > >
>  > > > >
>  > > > >
>  > > > >
>  > > > > This is the tomcat_start.bat
>  > > > > --------------
>  > > > > set JAVA_HOME=C:\Sun\SDK\jdk
>  > > > > set workers.catalina_home=c:\xampp\tomcat
>  > > > > set workers.java_home=C:\Sun\SDK\jdk set
>  > > > > TOMCAT_HOME=c:\xampp\tomcat set TOMCAT_BASE=c:\xampp\tomcat set
>  > > > > CLASSPATH=c:\xampp\tomcat;C:\Sun\SDK\jdk\lib\tools.jar
>  > > > > set CATALINA_BASE=c:\xampp\tomcat set
>  > > > > CATALINA_HOME=c:\xampp\tomcat set
>  > > > > JAVA_OPTS=-Dsolr.solr.home=c:\xampp\tomcat\webapps\solr
>  > > > > -Duser.language=en tomcat\bin\catalina.bat start
>  > > > > --------------
>  > > > >
>  > > > > This is the output when Tomcat start:
>  > > > > --------------
>  > > > > Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.catalina.core.AprLifecycleListener init
>  > > > > INFO: The Apache Tomcat Native library which allows optimal
>  > > > > performance in produ ction environments was not found on the
>  > > > > java.library.path: C:\Sun\SDK\jdk\bin;.;
>  > > > > C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOW
>  > > > > S\system32;C:\WI NDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos de
>  > > > > programa\python25;C:\Sun\SDK\jdk\j
>  > > > > re\bin;C:\Sun\SDK\bin;C:\Archivos de programa\CollabNet
>  > > > > Subversion Server Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.coyote.http11.Http11Protocol init
>  > > > > INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 19, 2008
>  > > > > 2:24:54 PM org.apache.catalina.startup.Catalina load
>  > > > > INFO: Initialization processed in 523 ms Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.catalina.core.StandardService start
>  > > > > INFO: Starting service Catalina
>  > > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine
>  > > > > start
>  > > > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 Feb 19, 2008
>  > > > > 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
>  > > > > INFO: Deploying web application archive solr.war Feb 19, 2008
>  > > > > 2:24:56 PM com.sun.faces.config.ConfigureListener
>  > > > > contextInitialize d
>  > > > > INFO: Initializing Sun's JavaServer Faces implementation
>  > > > > (1.2_04-b07-FCS) for co ntext '/mailstat'
>  > > > > log4j:WARN No appenders could be found for logger
>  > > > > (org.ajax4jsf.application.Debu gLifecycleFactory).
>  > > > > log4j:WARN Please initialize the log4j system properly.
>  > > > > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol
>  > > > > start
>  > > > > INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 19, 2008 2:24:58
>  > > > > PM org.apache.jk.common.ChannelSocket init
>  > > > > INFO: JK: ajp13 listening on /0.0.0.0:8009 Feb 19, 2008 2:24:58
>  > > > > PM org.apache.jk.server.JkMain start
>  > > > > INFO: Jk running ID=0 time=0/32  config=null Feb 19, 2008
>  > > > > 2:24:58 PM org.apache.catalina.startup.Catalina start
>  > > > > INFO: Server startup in 3558 ms
>  > > > > --------------
>  > > > >
>  > > > > This is the content of catalina.log:
>  > > > > --------------
>  > > > > Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.catalina.core.AprLifecycleListener init
>  > > > > INFO: The Apache Tomcat Native library which allows optimal
>  > > > > performance in production environments was not found on the
>  > > > > java.library.path:
>  > > > > C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32
>  > > > > ;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\W
>  > > > > bem;c:\Archivos de
>  > > > > programa\python25;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\bin;C:\Archi
>  > > > > vos de programa\CollabNet Subversion Server Feb 19, 2008 2:24:54
>
>
> > > > > PM org.apache.coyote.http11.Http11Protocol init
>  > > > > INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 19, 2008
>  > > > > 2:24:54 PM org.apache.catalina.startup.Catalina load
>  > > > > INFO: Initialization processed in 523 ms Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.catalina.core.StandardService start
>  > > > > INFO: Starting service Catalina
>  > > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine
>  > > > > start
>  > > > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 Feb 19, 2008
>  > > > > 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
>  > > > > INFO: Deploying web application archive solr.war Feb 19, 2008
>  > > > > 2:24:56 PM com.sun.faces.config.ConfigureListener
>  > > > > contextInitialized
>  > > > > INFO: Initializing Sun's JavaServer Faces implementation
>  > > > > (1.2_04-b07-FCS) for context '/myproject'
>  > > > > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol
>  > > > > start
>  > > > > INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 19, 2008 2:24:58
>  > > > > PM org.apache.jk.common.ChannelSocket init
>  > > > > INFO: JK: ajp13 listening on /0.0.0.0:8009 Feb 19, 2008 2:24:58
>  > > > > PM org.apache.jk.server.JkMain start
>  > > > > INFO: Jk running ID=0 time=0/32  config=null Feb 19, 2008
>  > > > > 2:24:58 PM org.apache.catalina.startup.Catalina start
>  > > > > INFO: Server startup in 3558 ms
>  > > > > --------------
>  > > > >
>  > > > > This is the content of localhost.log
>  > > > > --------------
>  > > > > Feb 19, 2008 2:24:55 PM
>  > > > > org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
>  > > > > [org.apache.webapp.balancer.RuleChain:
>  > > > > [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
>  > > > > News / Redirect URL: http://www.cnn.com],
>  > > > > [org.apache.webapp.balancer.rules.RequestParameterRule: Target
>  > > > > param
>  > > > > name: paramName / Target param value: paramValue / Redirect URL:
>  > > > > http://www.yahoo.com],
>  > > > > [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
>  > > > > http://jakarta.apache.org]]
>  > > > > Feb 19, 2008 2:24:55 PM
>  > > > > org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:55
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: SessionListener: contextInitialized() Feb 19, 2008 2:24:55
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:55
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: SessionListener: contextInitialized() Feb 19, 2008 2:24:55
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:55
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: SessionListener: contextInitialized() Feb 19, 2008 2:24:58
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:58
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: SessionListener: contextInitialized()
>  > > > > --------------
>  > > > >
>  > > >
>  > > >
>  > > >
>  > > > --
>  > > > Regards,
>  > > > Shalin Shekhar Mangar.
>  > > >
>  > >
>  >
>  >
>  >
>  > --
>  > Regards,
>  > Shalin Shekhar Mangar.
>  >
>
>
>  This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>

?????????????????????????????

Paul Treszczotko
Architect, Client Systems
INPUT
11720 Plaza America Drive, Suite 1200 Reston, Virginia 20190
Direct: 703-707-3524; Fax 703-707-6201
This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email and any such files in error and that any use, dissemination, forwarding, printing or copying of this email and/or any such files is strictly prohibited. If you have received this email in error please immediately notify postmaster@input.com and destroy the original message and any such files.

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by David Pratt <fa...@eastlink.ca>.
Hi Alejandro. Your summary is good and it should be of benefit to 
others. Thank you for taking the time to prepare it.

Regards,
David

Alejandro Valdez wrote:
> Hello, yes of course.
> 
> I followed the instructions from
> http://wiki.apache.org/solr/SolrTomcat (see below)
> but instead of copy the example configuration files into the directory
> c:\web\solr\ as
> is explained in that page, I did it into c:\tomcat\webapps\solr and
> started Tomcat with:
> -Dsolr.solr.home=c:\tomcat\webapps\solr
> 
> But it didn't work.
> 
> ****
> Apparently the directory used in solr.solr.home variable MUST NOT
> point inside the Tomcat's webapps directory, or it will be ignored.
> ***
> 
> The enviroment I used was:
> Windows XP Professional
> XAMPP 1.6.4
> Tomcat 6.0.13
> Sun JDK 5
> 
> 
> Updated content of http://wiki.apache.org/solr/SolrTomcat:
> 
> Tomcat on Windows
> Single Solr app
> 
> 1) Download and install [WWW] Tomcat for Windows using the MSI
> installer. Install it with the tcnative.dll file. Say you installed it
> in c:\tomcat\
> 2) Check if Tomcat is installed correctly by going to [WWW]
> http://localhost:8080/
> 3) Change the c:\tomcat\conf\server.xml file to add the URIEncoding
> Connector element as shown above.
> 4) Download and unzip the Solr distribution zip file into (say) c:\temp\solrZip\
> 5) Make a directory called solr where you intend the application
> server to function, say c:\web\solr\ (Important: It must be outside
> the Tomcat's webapps directory)
> 6) Copy the contents of the example\solr directory
> c:\temp\solrZip\example\solr\ to c:\web\solr\
> 7) Stop the Tomcat service
> 8) Copy the *solr*.war file from c:\temp\solrZip\dist\ to the Tomcat
> webapps directory c:\tomcat\webapps\
> 9) Rename the *solr*.war file solr.war
> 10)Use the system tray icon to configure Tomcat to start with the
> following Java option: -Dsolr.solr.home=c:\web\solr
> 11)Start the Tomcat service
> 12)Go to the solr admin page to verify that the installation is
> working. It will be at [WWW] http://localhost:8080/solr/admin
> 
> 
> On Thu, Feb 21, 2008 at 4:38 PM, David Pratt <fa...@eastlink.ca> wrote:
>> Hi Alejandro. Since this was a bit of trouble for you could you post the
>>  steps you used to get it to work (and/or any deviation from the wiki) to
>>  summarize this thread. It has been some days that I have seen the thread
>>  on the list and it would leave something useful other than I got it
>>  running for other folks with a similar issue in future. Many thanks.
>>
>>  Regards
>>  David
>>
>>
>>
>>  Alejandro Valdez wrote:
>>  > Thanks a lot, it's running right now.
>>  >
>>  > It seems that solr.solr.home should not point into the webapps
>>  > directory, maybe this tip should be included in the installation
>>  > guide...
>>  >
>>  > Thanks again.
>>  >
>>  >
>>  > On Wed, Feb 20, 2008 at 10:50 PM, Yonik Seeley <yo...@apache.org> wrote:
>>  >> On Wed, Feb 20, 2008 at 5:32 PM, Alejandro Valdez
>>  >>
>>  >> <al...@gmail.com> wrote:
>>  >>
>>  >>> Hi, I changed that line to:
>>  >>  >
>>  >>  >  set JAVA_OPTS=-Dsolr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en
>>  >>  >
>>  >>  >  But It STILL isn't working...I almost give up :-(
>>  >>  >
>>  >>  >  When I try to open http://localhost:8080/solr/admin, I get:
>>  >>  >
>>  >>  > ---
>>  >>  >  HTTP Status 404 - /solr/admin
>>  >>  >  type Status report
>>  >>  >  message /solr/admin
>>  >>  >  description The requested resource (/solr/admin) is not available.
>>  >>  >  Apache Tomcat/6.0.13
>>  >>  >  ---
>>  >>  >
>>  >>  >
>>  >>  >  Someone should fix the page http://wiki.apache.org/solr/SolrTomcat,
>>  >>  >  there says that should be used -Dsolr.solr.home=... :
>>  >>
>>  >>  solr.solr.home is the correct variable.
>>  >>  Try putting the solr home (the contents of solr/example) outside the
>>  >>  webapps directory.  Only solr.war should go inside webapps.
>>  >>
>>  >>  You could also try the "simple example install" from here:
>>  >>
>>  >>
>>  >> http://wiki.apache.org/solr/SolrTomcat
>>  >>
>>  >>  -Yonik
>>  >>
>>  >
>>
> 

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by danchoithuthiet <ch...@gmail.com>.
Hi  Alejandro, 
I followed your instructions step by step, but it still isn't working

HTTP Status 404 - /solr/admin 
type Status report 
message /solr/admin 
description The requested resource (/solr/admin) is not available. 

I used
Apache Tomcat/6.0.35
Xampp 1.7.7
Sun JDK 7 

--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-in-Windows-XP-JDK-5-Tomcat-6-0-13-tp484010p3831908.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by Alejandro Valdez <al...@gmail.com>.
Hi, I guess you should change the Tomcat's configuration files, I'm new
to Tomcat so I haven't any clue about that :-(

Maybe you can find the answer at:
http://tomcat.apache.org/tomcat-6.0-doc/index.html

Please, let me know if you find out how to do that.

Regards,
Alejandro




On 2/28/08, newBea <va...@vizualize.com> wrote:
>
>  Hi  Alejandro,
>
>  I followed the steps given by you on this forum for solr installation. Its
>  working well...
>
>  However do you have any idea about starting solr on prerequisite port. I
>  mean if I want solr to run on port different than 8080 and with the same
>  steps provided by you, what would be the better way? If you have any clues
>  about it please do let me know...
>
>  Thanks in advance...
>
>
>  Alejandro Valdez wrote:
>  >
>  > Hello, yes of course.
>  >
>  > I followed the instructions from
>  > http://wiki.apache.org/solr/SolrTomcat (see below)
>  > but instead of copy the example configuration files into the directory
>  > c:\web\solr\ as
>  > is explained in that page, I did it into c:\tomcat\webapps\solr and
>  > started Tomcat with:
>  > -Dsolr.solr.home=c:\tomcat\webapps\solr
>  >
>  > But it didn't work.
>  >
>  > ****
>  > Apparently the directory used in solr.solr.home variable MUST NOT
>  > point inside the Tomcat's webapps directory, or it will be ignored.
>  > ***
>  >
>  > The enviroment I used was:
>  > Windows XP Professional
>  > XAMPP 1.6.4
>  > Tomcat 6.0.13
>  > Sun JDK 5
>  >
>  >
>  > Updated content of http://wiki.apache.org/solr/SolrTomcat:
>  >
>  > Tomcat on Windows
>  > Single Solr app
>  >
>  > 1) Download and install [WWW] Tomcat for Windows using the MSI
>  > installer. Install it with the tcnative.dll file. Say you installed it
>  > in c:\tomcat\
>  > 2) Check if Tomcat is installed correctly by going to [WWW]
>  > http://localhost:8080/
>  > 3) Change the c:\tomcat\conf\server.xml file to add the URIEncoding
>  > Connector element as shown above.
>  > 4) Download and unzip the Solr distribution zip file into (say)
>  > c:\temp\solrZip\
>  > 5) Make a directory called solr where you intend the application
>  > server to function, say c:\web\solr\ (Important: It must be outside
>  > the Tomcat's webapps directory)
>  > 6) Copy the contents of the example\solr directory
>  > c:\temp\solrZip\example\solr\ to c:\web\solr\
>  > 7) Stop the Tomcat service
>  > 8) Copy the *solr*.war file from c:\temp\solrZip\dist\ to the Tomcat
>  > webapps directory c:\tomcat\webapps\
>  > 9) Rename the *solr*.war file solr.war
>  > 10)Use the system tray icon to configure Tomcat to start with the
>  > following Java option: -Dsolr.solr.home=c:\web\solr
>  > 11)Start the Tomcat service
>  > 12)Go to the solr admin page to verify that the installation is
>  > working. It will be at [WWW] http://localhost:8080/solr/admin
>  >
>  >
>  > On Thu, Feb 21, 2008 at 4:38 PM, David Pratt <fa...@eastlink.ca>
>  > wrote:
>  >> Hi Alejandro. Since this was a bit of trouble for you could you post the
>  >>  steps you used to get it to work (and/or any deviation from the wiki) to
>  >>  summarize this thread. It has been some days that I have seen the thread
>  >>  on the list and it would leave something useful other than I got it
>  >>  running for other folks with a similar issue in future. Many thanks.
>  >>
>  >>  Regards
>  >>  David
>  >>
>  >>
>  >>
>  >>  Alejandro Valdez wrote:
>  >>  > Thanks a lot, it's running right now.
>  >>  >
>  >>  > It seems that solr.solr.home should not point into the webapps
>  >>  > directory, maybe this tip should be included in the installation
>  >>  > guide...
>  >>  >
>  >>  > Thanks again.
>  >>  >
>  >>  >
>  >>  > On Wed, Feb 20, 2008 at 10:50 PM, Yonik Seeley <yo...@apache.org>
>  >> wrote:
>  >>  >> On Wed, Feb 20, 2008 at 5:32 PM, Alejandro Valdez
>  >>  >>
>  >>  >> <al...@gmail.com> wrote:
>  >>  >>
>  >>  >>> Hi, I changed that line to:
>  >>  >>  >
>  >>  >>  >  set JAVA_OPTS=-Dsolr.home=C:\xampp\tomcat\webapps\solr
>  >> -Duser.language=en
>  >>  >>  >
>  >>  >>  >  But It STILL isn't working...I almost give up :-(
>  >>  >>  >
>  >>  >>  >  When I try to open http://localhost:8080/solr/admin, I get:
>  >>  >>  >
>  >>  >>  > ---
>  >>  >>  >  HTTP Status 404 - /solr/admin
>  >>  >>  >  type Status report
>  >>  >>  >  message /solr/admin
>  >>  >>  >  description The requested resource (/solr/admin) is not
>  >> available.
>  >>  >>  >  Apache Tomcat/6.0.13
>  >>  >>  >  ---
>  >>  >>  >
>  >>  >>  >
>  >>  >>  >  Someone should fix the page
>  >> http://wiki.apache.org/solr/SolrTomcat,
>  >>  >>  >  there says that should be used -Dsolr.solr.home=... :
>  >>  >>
>  >>  >>  solr.solr.home is the correct variable.
>  >>  >>  Try putting the solr home (the contents of solr/example) outside the
>  >>  >>  webapps directory.  Only solr.war should go inside webapps.
>  >>  >>
>  >>  >>  You could also try the "simple example install" from here:
>  >>  >>
>  >>  >>
>  >>  >> http://wiki.apache.org/solr/SolrTomcat
>  >>  >>
>  >>  >>  -Yonik
>  >>  >>
>  >>  >
>  >>
>  >
>  >
>
>
> --
>  View this message in context: http://www.nabble.com/Solr-in-Windows-XP-%2B-JDK-5-%2B-Tomcat-6.0.13-tp15570591p15735974.html
>  Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by newBea <va...@vizualize.com>.
Hi  Alejandro,

I followed the steps given by you on this forum for solr installation. Its
working well...

However do you have any idea about starting solr on prerequisite port. I
mean if I want solr to run on port different than 8080 and with the same
steps provided by you, what would be the better way? If you have any clues
about it please do let me know...

Thanks in advance... 

Alejandro Valdez wrote:
> 
> Hello, yes of course.
> 
> I followed the instructions from
> http://wiki.apache.org/solr/SolrTomcat (see below)
> but instead of copy the example configuration files into the directory
> c:\web\solr\ as
> is explained in that page, I did it into c:\tomcat\webapps\solr and
> started Tomcat with:
> -Dsolr.solr.home=c:\tomcat\webapps\solr
> 
> But it didn't work.
> 
> ****
> Apparently the directory used in solr.solr.home variable MUST NOT
> point inside the Tomcat's webapps directory, or it will be ignored.
> ***
> 
> The enviroment I used was:
> Windows XP Professional
> XAMPP 1.6.4
> Tomcat 6.0.13
> Sun JDK 5
> 
> 
> Updated content of http://wiki.apache.org/solr/SolrTomcat:
> 
> Tomcat on Windows
> Single Solr app
> 
> 1) Download and install [WWW] Tomcat for Windows using the MSI
> installer. Install it with the tcnative.dll file. Say you installed it
> in c:\tomcat\
> 2) Check if Tomcat is installed correctly by going to [WWW]
> http://localhost:8080/
> 3) Change the c:\tomcat\conf\server.xml file to add the URIEncoding
> Connector element as shown above.
> 4) Download and unzip the Solr distribution zip file into (say)
> c:\temp\solrZip\
> 5) Make a directory called solr where you intend the application
> server to function, say c:\web\solr\ (Important: It must be outside
> the Tomcat's webapps directory)
> 6) Copy the contents of the example\solr directory
> c:\temp\solrZip\example\solr\ to c:\web\solr\
> 7) Stop the Tomcat service
> 8) Copy the *solr*.war file from c:\temp\solrZip\dist\ to the Tomcat
> webapps directory c:\tomcat\webapps\
> 9) Rename the *solr*.war file solr.war
> 10)Use the system tray icon to configure Tomcat to start with the
> following Java option: -Dsolr.solr.home=c:\web\solr
> 11)Start the Tomcat service
> 12)Go to the solr admin page to verify that the installation is
> working. It will be at [WWW] http://localhost:8080/solr/admin
> 
> 
> On Thu, Feb 21, 2008 at 4:38 PM, David Pratt <fa...@eastlink.ca>
> wrote:
>> Hi Alejandro. Since this was a bit of trouble for you could you post the
>>  steps you used to get it to work (and/or any deviation from the wiki) to
>>  summarize this thread. It has been some days that I have seen the thread
>>  on the list and it would leave something useful other than I got it
>>  running for other folks with a similar issue in future. Many thanks.
>>
>>  Regards
>>  David
>>
>>
>>
>>  Alejandro Valdez wrote:
>>  > Thanks a lot, it's running right now.
>>  >
>>  > It seems that solr.solr.home should not point into the webapps
>>  > directory, maybe this tip should be included in the installation
>>  > guide...
>>  >
>>  > Thanks again.
>>  >
>>  >
>>  > On Wed, Feb 20, 2008 at 10:50 PM, Yonik Seeley <yo...@apache.org>
>> wrote:
>>  >> On Wed, Feb 20, 2008 at 5:32 PM, Alejandro Valdez
>>  >>
>>  >> <al...@gmail.com> wrote:
>>  >>
>>  >>> Hi, I changed that line to:
>>  >>  >
>>  >>  >  set JAVA_OPTS=-Dsolr.home=C:\xampp\tomcat\webapps\solr
>> -Duser.language=en
>>  >>  >
>>  >>  >  But It STILL isn't working...I almost give up :-(
>>  >>  >
>>  >>  >  When I try to open http://localhost:8080/solr/admin, I get:
>>  >>  >
>>  >>  > ---
>>  >>  >  HTTP Status 404 - /solr/admin
>>  >>  >  type Status report
>>  >>  >  message /solr/admin
>>  >>  >  description The requested resource (/solr/admin) is not
>> available.
>>  >>  >  Apache Tomcat/6.0.13
>>  >>  >  ---
>>  >>  >
>>  >>  >
>>  >>  >  Someone should fix the page
>> http://wiki.apache.org/solr/SolrTomcat,
>>  >>  >  there says that should be used -Dsolr.solr.home=... :
>>  >>
>>  >>  solr.solr.home is the correct variable.
>>  >>  Try putting the solr home (the contents of solr/example) outside the
>>  >>  webapps directory.  Only solr.war should go inside webapps.
>>  >>
>>  >>  You could also try the "simple example install" from here:
>>  >>
>>  >>
>>  >> http://wiki.apache.org/solr/SolrTomcat
>>  >>
>>  >>  -Yonik
>>  >>
>>  >
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Solr-in-Windows-XP-%2B-JDK-5-%2B-Tomcat-6.0.13-tp15570591p15735974.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by Alejandro Valdez <al...@gmail.com>.
Hello, yes of course.

I followed the instructions from
http://wiki.apache.org/solr/SolrTomcat (see below)
but instead of copy the example configuration files into the directory
c:\web\solr\ as
is explained in that page, I did it into c:\tomcat\webapps\solr and
started Tomcat with:
-Dsolr.solr.home=c:\tomcat\webapps\solr

But it didn't work.

****
Apparently the directory used in solr.solr.home variable MUST NOT
point inside the Tomcat's webapps directory, or it will be ignored.
***

The enviroment I used was:
Windows XP Professional
XAMPP 1.6.4
Tomcat 6.0.13
Sun JDK 5


Updated content of http://wiki.apache.org/solr/SolrTomcat:

Tomcat on Windows
Single Solr app

1) Download and install [WWW] Tomcat for Windows using the MSI
installer. Install it with the tcnative.dll file. Say you installed it
in c:\tomcat\
2) Check if Tomcat is installed correctly by going to [WWW]
http://localhost:8080/
3) Change the c:\tomcat\conf\server.xml file to add the URIEncoding
Connector element as shown above.
4) Download and unzip the Solr distribution zip file into (say) c:\temp\solrZip\
5) Make a directory called solr where you intend the application
server to function, say c:\web\solr\ (Important: It must be outside
the Tomcat's webapps directory)
6) Copy the contents of the example\solr directory
c:\temp\solrZip\example\solr\ to c:\web\solr\
7) Stop the Tomcat service
8) Copy the *solr*.war file from c:\temp\solrZip\dist\ to the Tomcat
webapps directory c:\tomcat\webapps\
9) Rename the *solr*.war file solr.war
10)Use the system tray icon to configure Tomcat to start with the
following Java option: -Dsolr.solr.home=c:\web\solr
11)Start the Tomcat service
12)Go to the solr admin page to verify that the installation is
working. It will be at [WWW] http://localhost:8080/solr/admin


On Thu, Feb 21, 2008 at 4:38 PM, David Pratt <fa...@eastlink.ca> wrote:
> Hi Alejandro. Since this was a bit of trouble for you could you post the
>  steps you used to get it to work (and/or any deviation from the wiki) to
>  summarize this thread. It has been some days that I have seen the thread
>  on the list and it would leave something useful other than I got it
>  running for other folks with a similar issue in future. Many thanks.
>
>  Regards
>  David
>
>
>
>  Alejandro Valdez wrote:
>  > Thanks a lot, it's running right now.
>  >
>  > It seems that solr.solr.home should not point into the webapps
>  > directory, maybe this tip should be included in the installation
>  > guide...
>  >
>  > Thanks again.
>  >
>  >
>  > On Wed, Feb 20, 2008 at 10:50 PM, Yonik Seeley <yo...@apache.org> wrote:
>  >> On Wed, Feb 20, 2008 at 5:32 PM, Alejandro Valdez
>  >>
>  >> <al...@gmail.com> wrote:
>  >>
>  >>> Hi, I changed that line to:
>  >>  >
>  >>  >  set JAVA_OPTS=-Dsolr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en
>  >>  >
>  >>  >  But It STILL isn't working...I almost give up :-(
>  >>  >
>  >>  >  When I try to open http://localhost:8080/solr/admin, I get:
>  >>  >
>  >>  > ---
>  >>  >  HTTP Status 404 - /solr/admin
>  >>  >  type Status report
>  >>  >  message /solr/admin
>  >>  >  description The requested resource (/solr/admin) is not available.
>  >>  >  Apache Tomcat/6.0.13
>  >>  >  ---
>  >>  >
>  >>  >
>  >>  >  Someone should fix the page http://wiki.apache.org/solr/SolrTomcat,
>  >>  >  there says that should be used -Dsolr.solr.home=... :
>  >>
>  >>  solr.solr.home is the correct variable.
>  >>  Try putting the solr home (the contents of solr/example) outside the
>  >>  webapps directory.  Only solr.war should go inside webapps.
>  >>
>  >>  You could also try the "simple example install" from here:
>  >>
>  >>
>  >> http://wiki.apache.org/solr/SolrTomcat
>  >>
>  >>  -Yonik
>  >>
>  >
>

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by David Pratt <fa...@eastlink.ca>.
Hi Alejandro. Since this was a bit of trouble for you could you post the 
steps you used to get it to work (and/or any deviation from the wiki) to 
summarize this thread. It has been some days that I have seen the thread 
on the list and it would leave something useful other than I got it 
running for other folks with a similar issue in future. Many thanks.

Regards
David

Alejandro Valdez wrote:
> Thanks a lot, it's running right now.
> 
> It seems that solr.solr.home should not point into the webapps
> directory, maybe this tip should be included in the installation
> guide...
> 
> Thanks again.
> 
> 
> On Wed, Feb 20, 2008 at 10:50 PM, Yonik Seeley <yo...@apache.org> wrote:
>> On Wed, Feb 20, 2008 at 5:32 PM, Alejandro Valdez
>>
>> <al...@gmail.com> wrote:
>>
>>> Hi, I changed that line to:
>>  >
>>  >  set JAVA_OPTS=-Dsolr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en
>>  >
>>  >  But It STILL isn't working...I almost give up :-(
>>  >
>>  >  When I try to open http://localhost:8080/solr/admin, I get:
>>  >
>>  > ---
>>  >  HTTP Status 404 - /solr/admin
>>  >  type Status report
>>  >  message /solr/admin
>>  >  description The requested resource (/solr/admin) is not available.
>>  >  Apache Tomcat/6.0.13
>>  >  ---
>>  >
>>  >
>>  >  Someone should fix the page http://wiki.apache.org/solr/SolrTomcat,
>>  >  there says that should be used -Dsolr.solr.home=... :
>>
>>  solr.solr.home is the correct variable.
>>  Try putting the solr home (the contents of solr/example) outside the
>>  webapps directory.  Only solr.war should go inside webapps.
>>
>>  You could also try the "simple example install" from here:
>>
>>
>> http://wiki.apache.org/solr/SolrTomcat
>>
>>  -Yonik
>>
> 

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by Alejandro Valdez <al...@gmail.com>.
Thanks a lot, it's running right now.

It seems that solr.solr.home should not point into the webapps
directory, maybe this tip should be included in the installation
guide...

Thanks again.


On Wed, Feb 20, 2008 at 10:50 PM, Yonik Seeley <yo...@apache.org> wrote:
> On Wed, Feb 20, 2008 at 5:32 PM, Alejandro Valdez
>
> <al...@gmail.com> wrote:
>
> > Hi, I changed that line to:
>  >
>  >  set JAVA_OPTS=-Dsolr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en
>  >
>  >  But It STILL isn't working...I almost give up :-(
>  >
>  >  When I try to open http://localhost:8080/solr/admin, I get:
>  >
>  > ---
>  >  HTTP Status 404 - /solr/admin
>  >  type Status report
>  >  message /solr/admin
>  >  description The requested resource (/solr/admin) is not available.
>  >  Apache Tomcat/6.0.13
>  >  ---
>  >
>  >
>  >  Someone should fix the page http://wiki.apache.org/solr/SolrTomcat,
>  >  there says that should be used -Dsolr.solr.home=... :
>
>  solr.solr.home is the correct variable.
>  Try putting the solr home (the contents of solr/example) outside the
>  webapps directory.  Only solr.war should go inside webapps.
>
>  You could also try the "simple example install" from here:
>
>
> http://wiki.apache.org/solr/SolrTomcat
>
>  -Yonik
>

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by Yonik Seeley <yo...@apache.org>.
On Wed, Feb 20, 2008 at 5:32 PM, Alejandro Valdez
<al...@gmail.com> wrote:
> Hi, I changed that line to:
>
>  set JAVA_OPTS=-Dsolr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en
>
>  But It STILL isn't working...I almost give up :-(
>
>  When I try to open http://localhost:8080/solr/admin, I get:
>
> ---
>  HTTP Status 404 - /solr/admin
>  type Status report
>  message /solr/admin
>  description The requested resource (/solr/admin) is not available.
>  Apache Tomcat/6.0.13
>  ---
>
>
>  Someone should fix the page http://wiki.apache.org/solr/SolrTomcat,
>  there says that should be used -Dsolr.solr.home=... :

solr.solr.home is the correct variable.
Try putting the solr home (the contents of solr/example) outside the
webapps directory.  Only solr.war should go inside webapps.

You could also try the "simple example install" from here:
http://wiki.apache.org/solr/SolrTomcat

-Yonik

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by Alejandro Valdez <al...@gmail.com>.
Hi, I changed that line to:

set JAVA_OPTS=-Dsolr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en

But It STILL isn't working...I almost give up :-(

When I try to open http://localhost:8080/solr/admin, I get:
---
HTTP Status 404 - /solr/admin
type Status report
message /solr/admin
description The requested resource (/solr/admin) is not available.
Apache Tomcat/6.0.13
---


Someone should fix the page http://wiki.apache.org/solr/SolrTomcat,
there says that should be used -Dsolr.solr.home=... :

"Use the system tray icon to configure Tomcat to start with the
following Java option: -Dsolr.solr.home=c:\web\solr"



Here is the output of Tomcat when started:
-----
Feb 20, 2008 8:27:59 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in produ
ction environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;
C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WI
NDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos de programa\python25;C:\Sun\SDK\jdk\j
re\bin;C:\Sun\SDK\bin;C:\Archivos de programa\CollabNet Subversion Server
Feb 20, 2008 8:27:59 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 20, 2008 8:27:59 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 522 ms
Feb 20, 2008 8:27:59 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 20, 2008 8:27:59 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
Feb 20, 2008 8:27:59 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive solr.war
Feb 20, 2008 8:28:00 PM com.sun.faces.config.ConfigureListener contextInitialize
d
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for co
ntext '/myproject'
log4j:WARN No appenders could be found for logger (org.ajax4jsf.application.Debu
gLifecycleFactory).
log4j:WARN Please initialize the log4j system properly.
Feb 20, 2008 8:28:02 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 20, 2008 8:28:02 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 20, 2008 8:28:02 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Feb 20, 2008 8:28:02 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3557 ms
----



On Wed, Feb 20, 2008 at 12:33 PM, Hausherr, Jens
<je...@logicacmg.com> wrote:
> It should work if you use -Dsolr.home=... instead of -Dsolr.solr.home=...
>
>  Or is this just a copy and paste error?
>
>  Jens
>
>  -----Ursprüngliche Nachricht-----
>  Von: Alejandro Valdez [mailto:alejandro.valdez@gmail.com]
>  Gesendet: Dienstag, 19. Februar 2008 20:37
>  An: solr-user@lucene.apache.org
>  Betreff: Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13
>
>
>
>  I updated the tomcat startup bat to:
>
>  set JAVA_OPTS=-Dsolr.solr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en
>
>  and to:
>
>  set JAVA_OPTS=-Dsolr.solr.home=C:/xampp/tomcat/webapps/solr -Duser.language=en
>
>  I'm still getting the same error:
>
>  ---------------
>  HTTP Status 404 - /solr/admin
>
>  type Status report
>
>  message /solr/admin
>
>  description The requested resource (/solr/admin) is not available.
>  Apache Tomcat/6.0.13
>  ----------------
>
>
>
>  I opened http://localhost:8080/manager/html and I can see a line that says:
>
>  /solr           true    0
>
>  'true' means that the solr application is running...
>
>
>  :-(
>
>
>
>
>
>
>
>
>  On Feb 19, 2008 5:16 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:
>  > In that case, your solr.solr.home should be
>  > "C:/xampp/tomcat/webapps/solr". Remove the conf at the end. I would
>  > suggest keeping the conf in a separate place though.
>  >
>  >
>  > On Feb 19, 2008 10:46 PM, Alejandro Valdez <al...@gmail.com> wrote:
>  > > Hi, I copied the content of the directory examples/solr to
>  > > C:\xampp\tomcat\webapps\solr and updated the tomcat startup bat to:
>  > >
>  > > set JAVA_OPTS=-Dsolr.solr.home=C:\xampp\tomcat\webapps\solr\conf
>  > > -Duser.language=en
>  > >
>  > > I get the same 404 error when open http://127.0.0.1:8080/solr/admin,
>  > > and there is no error message in the tomcat logs.
>  > >
>  > > If I start Solr from the example directory using jetty it's start ok
>  > > and the admin page shows ok.
>  > >
>  > > Any help would be very appreciated.
>  > >
>  > >
>  > >
>  > >
>  > >
>  > > On Feb 19, 2008 2:49 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:
>  > > > The problem is that your SOLR home is incorrect. You're making
>  > > > -Dsolr.solr.home point to the deployed solr webapp inside solr. It
>  > > > should actually point to a directory which contains conf folder
>  > > > containing solrconfig.xml and schema.xml.
>  > > >
>  > > > For an example configuration folder see example/solr supplied with solr builds.
>  > > >
>  > > >
>  > > > On Feb 19, 2008 10:02 PM, Alejandro Valdez <al...@gmail.com> wrote:
>  > > > > Hello, I'm trying to install Solr in Windows but it's not working.
>  > > > >
>  > > > > I followed the instructions at
>  > > > > http://wiki.apache.org/solr/SolrTomcat for configuring Solr in Windows.
>  > > > >
>  > > > > If I open the localhost tomcat URL (http://localhost:8080/) it
>  > > > > shows the tomcat page.
>  > > > >
>  > > > > If I open the localhost URL for my project
>  > > > > (http://localhost:8080/myproject) it works ok.
>  > > > >
>  > > > > But if I open the Solr URL (http://localhost:8080/solr/admin) It
>  > > > > fails with tomcat's 404 error.
>  > > > >
>  > > > > The files are correctly deployed in the webapps directory...
>  > > > >
>  > > > > The tomcat's log says "Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.catalina.startup.HostConfig deployWAR
>  > > > > INFO: Deploying web application archive solr.war" but it still
>  > > > > don't work :-(
>  > > > >
>  > > > >
>  > > > > Any clue?
>  > > > >
>  > > > >
>  > > > >
>  > > > >
>  > > > > This is the tomcat_start.bat
>  > > > > --------------
>  > > > > set JAVA_HOME=C:\Sun\SDK\jdk
>  > > > > set workers.catalina_home=c:\xampp\tomcat
>  > > > > set workers.java_home=C:\Sun\SDK\jdk set
>  > > > > TOMCAT_HOME=c:\xampp\tomcat set TOMCAT_BASE=c:\xampp\tomcat set
>  > > > > CLASSPATH=c:\xampp\tomcat;C:\Sun\SDK\jdk\lib\tools.jar
>  > > > > set CATALINA_BASE=c:\xampp\tomcat set
>  > > > > CATALINA_HOME=c:\xampp\tomcat set
>  > > > > JAVA_OPTS=-Dsolr.solr.home=c:\xampp\tomcat\webapps\solr
>  > > > > -Duser.language=en tomcat\bin\catalina.bat start
>  > > > > --------------
>  > > > >
>  > > > > This is the output when Tomcat start:
>  > > > > --------------
>  > > > > Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.catalina.core.AprLifecycleListener init
>  > > > > INFO: The Apache Tomcat Native library which allows optimal
>  > > > > performance in produ ction environments was not found on the
>  > > > > java.library.path: C:\Sun\SDK\jdk\bin;.;
>  > > > > C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOW
>  > > > > S\system32;C:\WI NDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos de
>  > > > > programa\python25;C:\Sun\SDK\jdk\j
>  > > > > re\bin;C:\Sun\SDK\bin;C:\Archivos de programa\CollabNet
>  > > > > Subversion Server Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.coyote.http11.Http11Protocol init
>  > > > > INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 19, 2008
>  > > > > 2:24:54 PM org.apache.catalina.startup.Catalina load
>  > > > > INFO: Initialization processed in 523 ms Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.catalina.core.StandardService start
>  > > > > INFO: Starting service Catalina
>  > > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine
>  > > > > start
>  > > > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 Feb 19, 2008
>  > > > > 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
>  > > > > INFO: Deploying web application archive solr.war Feb 19, 2008
>  > > > > 2:24:56 PM com.sun.faces.config.ConfigureListener
>  > > > > contextInitialize d
>  > > > > INFO: Initializing Sun's JavaServer Faces implementation
>  > > > > (1.2_04-b07-FCS) for co ntext '/mailstat'
>  > > > > log4j:WARN No appenders could be found for logger
>  > > > > (org.ajax4jsf.application.Debu gLifecycleFactory).
>  > > > > log4j:WARN Please initialize the log4j system properly.
>  > > > > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol
>  > > > > start
>  > > > > INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 19, 2008 2:24:58
>  > > > > PM org.apache.jk.common.ChannelSocket init
>  > > > > INFO: JK: ajp13 listening on /0.0.0.0:8009 Feb 19, 2008 2:24:58
>  > > > > PM org.apache.jk.server.JkMain start
>  > > > > INFO: Jk running ID=0 time=0/32  config=null Feb 19, 2008
>  > > > > 2:24:58 PM org.apache.catalina.startup.Catalina start
>  > > > > INFO: Server startup in 3558 ms
>  > > > > --------------
>  > > > >
>  > > > > This is the content of catalina.log:
>  > > > > --------------
>  > > > > Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.catalina.core.AprLifecycleListener init
>  > > > > INFO: The Apache Tomcat Native library which allows optimal
>  > > > > performance in production environments was not found on the
>  > > > > java.library.path:
>  > > > > C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32
>  > > > > ;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\W
>  > > > > bem;c:\Archivos de
>  > > > > programa\python25;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\bin;C:\Archi
>  > > > > vos de programa\CollabNet Subversion Server Feb 19, 2008 2:24:54
>
>
> > > > > PM org.apache.coyote.http11.Http11Protocol init
>  > > > > INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 19, 2008
>  > > > > 2:24:54 PM org.apache.catalina.startup.Catalina load
>  > > > > INFO: Initialization processed in 523 ms Feb 19, 2008 2:24:54 PM
>  > > > > org.apache.catalina.core.StandardService start
>  > > > > INFO: Starting service Catalina
>  > > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine
>  > > > > start
>  > > > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 Feb 19, 2008
>  > > > > 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
>  > > > > INFO: Deploying web application archive solr.war Feb 19, 2008
>  > > > > 2:24:56 PM com.sun.faces.config.ConfigureListener
>  > > > > contextInitialized
>  > > > > INFO: Initializing Sun's JavaServer Faces implementation
>  > > > > (1.2_04-b07-FCS) for context '/myproject'
>  > > > > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol
>  > > > > start
>  > > > > INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 19, 2008 2:24:58
>  > > > > PM org.apache.jk.common.ChannelSocket init
>  > > > > INFO: JK: ajp13 listening on /0.0.0.0:8009 Feb 19, 2008 2:24:58
>  > > > > PM org.apache.jk.server.JkMain start
>  > > > > INFO: Jk running ID=0 time=0/32  config=null Feb 19, 2008
>  > > > > 2:24:58 PM org.apache.catalina.startup.Catalina start
>  > > > > INFO: Server startup in 3558 ms
>  > > > > --------------
>  > > > >
>  > > > > This is the content of localhost.log
>  > > > > --------------
>  > > > > Feb 19, 2008 2:24:55 PM
>  > > > > org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
>  > > > > [org.apache.webapp.balancer.RuleChain:
>  > > > > [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
>  > > > > News / Redirect URL: http://www.cnn.com],
>  > > > > [org.apache.webapp.balancer.rules.RequestParameterRule: Target
>  > > > > param
>  > > > > name: paramName / Target param value: paramValue / Redirect URL:
>  > > > > http://www.yahoo.com],
>  > > > > [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
>  > > > > http://jakarta.apache.org]]
>  > > > > Feb 19, 2008 2:24:55 PM
>  > > > > org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:55
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: SessionListener: contextInitialized() Feb 19, 2008 2:24:55
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:55
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: SessionListener: contextInitialized() Feb 19, 2008 2:24:55
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:55
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: SessionListener: contextInitialized() Feb 19, 2008 2:24:58
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:58
>  > > > > PM org.apache.catalina.core.ApplicationContext log
>  > > > > INFO: SessionListener: contextInitialized()
>  > > > > --------------
>  > > > >
>  > > >
>  > > >
>  > > >
>  > > > --
>  > > > Regards,
>  > > > Shalin Shekhar Mangar.
>  > > >
>  > >
>  >
>  >
>  >
>  > --
>  > Regards,
>  > Shalin Shekhar Mangar.
>  >
>
>
>  This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>

AW: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by "Hausherr, Jens" <je...@logicacmg.com>.
It should work if you use -Dsolr.home=... instead of -Dsolr.solr.home=...

Or is this just a copy and paste error?

Jens 

-----Ursprüngliche Nachricht-----
Von: Alejandro Valdez [mailto:alejandro.valdez@gmail.com] 
Gesendet: Dienstag, 19. Februar 2008 20:37
An: solr-user@lucene.apache.org
Betreff: Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

I updated the tomcat startup bat to:

set JAVA_OPTS=-Dsolr.solr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en

and to:

set JAVA_OPTS=-Dsolr.solr.home=C:/xampp/tomcat/webapps/solr -Duser.language=en

I'm still getting the same error:

---------------
HTTP Status 404 - /solr/admin

type Status report

message /solr/admin

description The requested resource (/solr/admin) is not available.
Apache Tomcat/6.0.13
----------------



I opened http://localhost:8080/manager/html and I can see a line that says:

/solr  	   	true  	0

'true' means that the solr application is running...


:-(








On Feb 19, 2008 5:16 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:
> In that case, your solr.solr.home should be 
> "C:/xampp/tomcat/webapps/solr". Remove the conf at the end. I would 
> suggest keeping the conf in a separate place though.
>
>
> On Feb 19, 2008 10:46 PM, Alejandro Valdez <al...@gmail.com> wrote:
> > Hi, I copied the content of the directory examples/solr to 
> > C:\xampp\tomcat\webapps\solr and updated the tomcat startup bat to:
> >
> > set JAVA_OPTS=-Dsolr.solr.home=C:\xampp\tomcat\webapps\solr\conf
> > -Duser.language=en
> >
> > I get the same 404 error when open http://127.0.0.1:8080/solr/admin, 
> > and there is no error message in the tomcat logs.
> >
> > If I start Solr from the example directory using jetty it's start ok 
> > and the admin page shows ok.
> >
> > Any help would be very appreciated.
> >
> >
> >
> >
> >
> > On Feb 19, 2008 2:49 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:
> > > The problem is that your SOLR home is incorrect. You're making 
> > > -Dsolr.solr.home point to the deployed solr webapp inside solr. It 
> > > should actually point to a directory which contains conf folder 
> > > containing solrconfig.xml and schema.xml.
> > >
> > > For an example configuration folder see example/solr supplied with solr builds.
> > >
> > >
> > > On Feb 19, 2008 10:02 PM, Alejandro Valdez <al...@gmail.com> wrote:
> > > > Hello, I'm trying to install Solr in Windows but it's not working.
> > > >
> > > > I followed the instructions at 
> > > > http://wiki.apache.org/solr/SolrTomcat for configuring Solr in Windows.
> > > >
> > > > If I open the localhost tomcat URL (http://localhost:8080/) it 
> > > > shows the tomcat page.
> > > >
> > > > If I open the localhost URL for my project
> > > > (http://localhost:8080/myproject) it works ok.
> > > >
> > > > But if I open the Solr URL (http://localhost:8080/solr/admin) It 
> > > > fails with tomcat's 404 error.
> > > >
> > > > The files are correctly deployed in the webapps directory...
> > > >
> > > > The tomcat's log says "Feb 19, 2008 2:24:54 PM 
> > > > org.apache.catalina.startup.HostConfig deployWAR
> > > > INFO: Deploying web application archive solr.war" but it still 
> > > > don't work :-(
> > > >
> > > >
> > > > Any clue?
> > > >
> > > >
> > > >
> > > >
> > > > This is the tomcat_start.bat
> > > > --------------
> > > > set JAVA_HOME=C:\Sun\SDK\jdk
> > > > set workers.catalina_home=c:\xampp\tomcat
> > > > set workers.java_home=C:\Sun\SDK\jdk set 
> > > > TOMCAT_HOME=c:\xampp\tomcat set TOMCAT_BASE=c:\xampp\tomcat set 
> > > > CLASSPATH=c:\xampp\tomcat;C:\Sun\SDK\jdk\lib\tools.jar
> > > > set CATALINA_BASE=c:\xampp\tomcat set 
> > > > CATALINA_HOME=c:\xampp\tomcat set 
> > > > JAVA_OPTS=-Dsolr.solr.home=c:\xampp\tomcat\webapps\solr 
> > > > -Duser.language=en tomcat\bin\catalina.bat start
> > > > --------------
> > > >
> > > > This is the output when Tomcat start:
> > > > --------------
> > > > Feb 19, 2008 2:24:54 PM 
> > > > org.apache.catalina.core.AprLifecycleListener init
> > > > INFO: The Apache Tomcat Native library which allows optimal 
> > > > performance in produ ction environments was not found on the 
> > > > java.library.path: C:\Sun\SDK\jdk\bin;.; 
> > > > C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOW
> > > > S\system32;C:\WI NDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos de 
> > > > programa\python25;C:\Sun\SDK\jdk\j
> > > > re\bin;C:\Sun\SDK\bin;C:\Archivos de programa\CollabNet 
> > > > Subversion Server Feb 19, 2008 2:24:54 PM 
> > > > org.apache.coyote.http11.Http11Protocol init
> > > > INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 19, 2008 
> > > > 2:24:54 PM org.apache.catalina.startup.Catalina load
> > > > INFO: Initialization processed in 523 ms Feb 19, 2008 2:24:54 PM 
> > > > org.apache.catalina.core.StandardService start
> > > > INFO: Starting service Catalina
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine 
> > > > start
> > > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 Feb 19, 2008 
> > > > 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
> > > > INFO: Deploying web application archive solr.war Feb 19, 2008 
> > > > 2:24:56 PM com.sun.faces.config.ConfigureListener 
> > > > contextInitialize d
> > > > INFO: Initializing Sun's JavaServer Faces implementation 
> > > > (1.2_04-b07-FCS) for co ntext '/mailstat'
> > > > log4j:WARN No appenders could be found for logger 
> > > > (org.ajax4jsf.application.Debu gLifecycleFactory).
> > > > log4j:WARN Please initialize the log4j system properly.
> > > > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol 
> > > > start
> > > > INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 19, 2008 2:24:58 
> > > > PM org.apache.jk.common.ChannelSocket init
> > > > INFO: JK: ajp13 listening on /0.0.0.0:8009 Feb 19, 2008 2:24:58 
> > > > PM org.apache.jk.server.JkMain start
> > > > INFO: Jk running ID=0 time=0/32  config=null Feb 19, 2008 
> > > > 2:24:58 PM org.apache.catalina.startup.Catalina start
> > > > INFO: Server startup in 3558 ms
> > > > --------------
> > > >
> > > > This is the content of catalina.log:
> > > > --------------
> > > > Feb 19, 2008 2:24:54 PM 
> > > > org.apache.catalina.core.AprLifecycleListener init
> > > > INFO: The Apache Tomcat Native library which allows optimal 
> > > > performance in production environments was not found on the
> > > > java.library.path:
> > > > C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32
> > > > ;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\W
> > > > bem;c:\Archivos de 
> > > > programa\python25;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\bin;C:\Archi
> > > > vos de programa\CollabNet Subversion Server Feb 19, 2008 2:24:54 
> > > > PM org.apache.coyote.http11.Http11Protocol init
> > > > INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 19, 2008 
> > > > 2:24:54 PM org.apache.catalina.startup.Catalina load
> > > > INFO: Initialization processed in 523 ms Feb 19, 2008 2:24:54 PM 
> > > > org.apache.catalina.core.StandardService start
> > > > INFO: Starting service Catalina
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine 
> > > > start
> > > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 Feb 19, 2008 
> > > > 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
> > > > INFO: Deploying web application archive solr.war Feb 19, 2008 
> > > > 2:24:56 PM com.sun.faces.config.ConfigureListener
> > > > contextInitialized
> > > > INFO: Initializing Sun's JavaServer Faces implementation
> > > > (1.2_04-b07-FCS) for context '/myproject'
> > > > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol 
> > > > start
> > > > INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 19, 2008 2:24:58 
> > > > PM org.apache.jk.common.ChannelSocket init
> > > > INFO: JK: ajp13 listening on /0.0.0.0:8009 Feb 19, 2008 2:24:58 
> > > > PM org.apache.jk.server.JkMain start
> > > > INFO: Jk running ID=0 time=0/32  config=null Feb 19, 2008 
> > > > 2:24:58 PM org.apache.catalina.startup.Catalina start
> > > > INFO: Server startup in 3558 ms
> > > > --------------
> > > >
> > > > This is the content of localhost.log
> > > > --------------
> > > > Feb 19, 2008 2:24:55 PM 
> > > > org.apache.catalina.core.ApplicationContext log
> > > > INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> > > > [org.apache.webapp.balancer.RuleChain:
> > > > [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> > > > News / Redirect URL: http://www.cnn.com],
> > > > [org.apache.webapp.balancer.rules.RequestParameterRule: Target 
> > > > param
> > > > name: paramName / Target param value: paramValue / Redirect URL:
> > > > http://www.yahoo.com],
> > > > [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> > > > http://jakarta.apache.org]]
> > > > Feb 19, 2008 2:24:55 PM 
> > > > org.apache.catalina.core.ApplicationContext log
> > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:55 
> > > > PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: SessionListener: contextInitialized() Feb 19, 2008 2:24:55 
> > > > PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:55 
> > > > PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: SessionListener: contextInitialized() Feb 19, 2008 2:24:55 
> > > > PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:55 
> > > > PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: SessionListener: contextInitialized() Feb 19, 2008 2:24:58 
> > > > PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: ContextListener: contextInitialized() Feb 19, 2008 2:24:58 
> > > > PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: SessionListener: contextInitialized()
> > > > --------------
> > > >
> > >
> > >
> > >
> > > --
> > > Regards,
> > > Shalin Shekhar Mangar.
> > >
> >
>
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by Alejandro Valdez <al...@gmail.com>.
I updated the tomcat startup bat to:

set JAVA_OPTS=-Dsolr.solr.home=C:\xampp\tomcat\webapps\solr -Duser.language=en

and to:

set JAVA_OPTS=-Dsolr.solr.home=C:/xampp/tomcat/webapps/solr -Duser.language=en

I'm still getting the same error:

---------------
HTTP Status 404 - /solr/admin

type Status report

message /solr/admin

description The requested resource (/solr/admin) is not available.
Apache Tomcat/6.0.13
----------------



I opened http://localhost:8080/manager/html and I can see a line that says:

/solr  	   	true  	0

'true' means that the solr application is running...


:-(








On Feb 19, 2008 5:16 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:
> In that case, your solr.solr.home should be
> "C:/xampp/tomcat/webapps/solr". Remove the conf at the end. I would
> suggest keeping the conf in a separate place though.
>
>
> On Feb 19, 2008 10:46 PM, Alejandro Valdez <al...@gmail.com> wrote:
> > Hi, I copied the content of the directory examples/solr to
> > C:\xampp\tomcat\webapps\solr
> > and updated the tomcat startup bat to:
> >
> > set JAVA_OPTS=-Dsolr.solr.home=C:\xampp\tomcat\webapps\solr\conf
> > -Duser.language=en
> >
> > I get the same 404 error when open http://127.0.0.1:8080/solr/admin, and
> > there is no error message in the tomcat logs.
> >
> > If I start Solr from the example directory using jetty it's start ok
> > and the admin page shows ok.
> >
> > Any help would be very appreciated.
> >
> >
> >
> >
> >
> > On Feb 19, 2008 2:49 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:
> > > The problem is that your SOLR home is incorrect. You're making
> > > -Dsolr.solr.home point to the deployed solr webapp inside solr. It
> > > should actually point to a directory which contains conf folder
> > > containing solrconfig.xml and schema.xml.
> > >
> > > For an example configuration folder see example/solr supplied with solr builds.
> > >
> > >
> > > On Feb 19, 2008 10:02 PM, Alejandro Valdez <al...@gmail.com> wrote:
> > > > Hello, I'm trying to install Solr in Windows but it's not working.
> > > >
> > > > I followed the instructions at http://wiki.apache.org/solr/SolrTomcat for
> > > > configuring Solr in Windows.
> > > >
> > > > If I open the localhost tomcat URL (http://localhost:8080/) it shows
> > > > the tomcat page.
> > > >
> > > > If I open the localhost URL for my project
> > > > (http://localhost:8080/myproject) it works ok.
> > > >
> > > > But if I open the Solr URL (http://localhost:8080/solr/admin) It fails
> > > > with tomcat's 404 error.
> > > >
> > > > The files are correctly deployed in the webapps directory...
> > > >
> > > > The tomcat's log says "Feb 19, 2008 2:24:54 PM
> > > > org.apache.catalina.startup.HostConfig deployWAR
> > > > INFO: Deploying web application archive solr.war" but it still don't work :-(
> > > >
> > > >
> > > > Any clue?
> > > >
> > > >
> > > >
> > > >
> > > > This is the tomcat_start.bat
> > > > --------------
> > > > set JAVA_HOME=C:\Sun\SDK\jdk
> > > > set workers.catalina_home=c:\xampp\tomcat
> > > > set workers.java_home=C:\Sun\SDK\jdk
> > > > set TOMCAT_HOME=c:\xampp\tomcat
> > > > set TOMCAT_BASE=c:\xampp\tomcat
> > > > set CLASSPATH=c:\xampp\tomcat;C:\Sun\SDK\jdk\lib\tools.jar
> > > > set CATALINA_BASE=c:\xampp\tomcat
> > > > set CATALINA_HOME=c:\xampp\tomcat
> > > > set JAVA_OPTS=-Dsolr.solr.home=c:\xampp\tomcat\webapps\solr -Duser.language=en
> > > > tomcat\bin\catalina.bat start
> > > > --------------
> > > >
> > > > This is the output when Tomcat start:
> > > > --------------
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.AprLifecycleListener init
> > > > INFO: The Apache Tomcat Native library which allows optimal performance in produ
> > > > ction environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;
> > > > C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WI
> > > > NDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos de programa\python25;C:\Sun\SDK\jdk\j
> > > > re\bin;C:\Sun\SDK\bin;C:\Archivos de programa\CollabNet Subversion Server
> > > > Feb 19, 2008 2:24:54 PM org.apache.coyote.http11.Http11Protocol init
> > > > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.Catalina load
> > > > INFO: Initialization processed in 523 ms
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardService start
> > > > INFO: Starting service Catalina
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine start
> > > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
> > > > INFO: Deploying web application archive solr.war
> > > > Feb 19, 2008 2:24:56 PM com.sun.faces.config.ConfigureListener contextInitialize
> > > > d
> > > > INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for co
> > > > ntext '/mailstat'
> > > > log4j:WARN No appenders could be found for logger (org.ajax4jsf.application.Debu
> > > > gLifecycleFactory).
> > > > log4j:WARN Please initialize the log4j system properly.
> > > > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol start
> > > > INFO: Starting Coyote HTTP/1.1 on http-8080
> > > > Feb 19, 2008 2:24:58 PM org.apache.jk.common.ChannelSocket init
> > > > INFO: JK: ajp13 listening on /0.0.0.0:8009
> > > > Feb 19, 2008 2:24:58 PM org.apache.jk.server.JkMain start
> > > > INFO: Jk running ID=0 time=0/32  config=null
> > > > Feb 19, 2008 2:24:58 PM org.apache.catalina.startup.Catalina start
> > > > INFO: Server startup in 3558 ms
> > > > --------------
> > > >
> > > > This is the content of catalina.log:
> > > > --------------
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.AprLifecycleListener init
> > > > INFO: The Apache Tomcat Native library which allows optimal
> > > > performance in production environments was not found on the
> > > > java.library.path:
> > > > C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos
> > > > de programa\python25;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\bin;C:\Archivos
> > > > de programa\CollabNet Subversion Server
> > > > Feb 19, 2008 2:24:54 PM org.apache.coyote.http11.Http11Protocol init
> > > > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.Catalina load
> > > > INFO: Initialization processed in 523 ms
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardService start
> > > > INFO: Starting service Catalina
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine start
> > > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> > > > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
> > > > INFO: Deploying web application archive solr.war
> > > > Feb 19, 2008 2:24:56 PM com.sun.faces.config.ConfigureListener
> > > > contextInitialized
> > > > INFO: Initializing Sun's JavaServer Faces implementation
> > > > (1.2_04-b07-FCS) for context '/myproject'
> > > > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol start
> > > > INFO: Starting Coyote HTTP/1.1 on http-8080
> > > > Feb 19, 2008 2:24:58 PM org.apache.jk.common.ChannelSocket init
> > > > INFO: JK: ajp13 listening on /0.0.0.0:8009
> > > > Feb 19, 2008 2:24:58 PM org.apache.jk.server.JkMain start
> > > > INFO: Jk running ID=0 time=0/32  config=null
> > > > Feb 19, 2008 2:24:58 PM org.apache.catalina.startup.Catalina start
> > > > INFO: Server startup in 3558 ms
> > > > --------------
> > > >
> > > > This is the content of localhost.log
> > > > --------------
> > > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> > > > [org.apache.webapp.balancer.RuleChain:
> > > > [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> > > > News / Redirect URL: http://www.cnn.com],
> > > > [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> > > > name: paramName / Target param value: paramValue / Redirect URL:
> > > > http://www.yahoo.com],
> > > > [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> > > > http://jakarta.apache.org]]
> > > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: ContextListener: contextInitialized()
> > > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: SessionListener: contextInitialized()
> > > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: ContextListener: contextInitialized()
> > > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: SessionListener: contextInitialized()
> > > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: ContextListener: contextInitialized()
> > > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: SessionListener: contextInitialized()
> > > > Feb 19, 2008 2:24:58 PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: ContextListener: contextInitialized()
> > > > Feb 19, 2008 2:24:58 PM org.apache.catalina.core.ApplicationContext log
> > > > INFO: SessionListener: contextInitialized()
> > > > --------------
> > > >
> > >
> > >
> > >
> > > --
> > > Regards,
> > > Shalin Shekhar Mangar.
> > >
> >
>
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
In that case, your solr.solr.home should be
"C:/xampp/tomcat/webapps/solr". Remove the conf at the end. I would
suggest keeping the conf in a separate place though.

On Feb 19, 2008 10:46 PM, Alejandro Valdez <al...@gmail.com> wrote:
> Hi, I copied the content of the directory examples/solr to
> C:\xampp\tomcat\webapps\solr
> and updated the tomcat startup bat to:
>
> set JAVA_OPTS=-Dsolr.solr.home=C:\xampp\tomcat\webapps\solr\conf
> -Duser.language=en
>
> I get the same 404 error when open http://127.0.0.1:8080/solr/admin, and
> there is no error message in the tomcat logs.
>
> If I start Solr from the example directory using jetty it's start ok
> and the admin page shows ok.
>
> Any help would be very appreciated.
>
>
>
>
>
> On Feb 19, 2008 2:49 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:
> > The problem is that your SOLR home is incorrect. You're making
> > -Dsolr.solr.home point to the deployed solr webapp inside solr. It
> > should actually point to a directory which contains conf folder
> > containing solrconfig.xml and schema.xml.
> >
> > For an example configuration folder see example/solr supplied with solr builds.
> >
> >
> > On Feb 19, 2008 10:02 PM, Alejandro Valdez <al...@gmail.com> wrote:
> > > Hello, I'm trying to install Solr in Windows but it's not working.
> > >
> > > I followed the instructions at http://wiki.apache.org/solr/SolrTomcat for
> > > configuring Solr in Windows.
> > >
> > > If I open the localhost tomcat URL (http://localhost:8080/) it shows
> > > the tomcat page.
> > >
> > > If I open the localhost URL for my project
> > > (http://localhost:8080/myproject) it works ok.
> > >
> > > But if I open the Solr URL (http://localhost:8080/solr/admin) It fails
> > > with tomcat's 404 error.
> > >
> > > The files are correctly deployed in the webapps directory...
> > >
> > > The tomcat's log says "Feb 19, 2008 2:24:54 PM
> > > org.apache.catalina.startup.HostConfig deployWAR
> > > INFO: Deploying web application archive solr.war" but it still don't work :-(
> > >
> > >
> > > Any clue?
> > >
> > >
> > >
> > >
> > > This is the tomcat_start.bat
> > > --------------
> > > set JAVA_HOME=C:\Sun\SDK\jdk
> > > set workers.catalina_home=c:\xampp\tomcat
> > > set workers.java_home=C:\Sun\SDK\jdk
> > > set TOMCAT_HOME=c:\xampp\tomcat
> > > set TOMCAT_BASE=c:\xampp\tomcat
> > > set CLASSPATH=c:\xampp\tomcat;C:\Sun\SDK\jdk\lib\tools.jar
> > > set CATALINA_BASE=c:\xampp\tomcat
> > > set CATALINA_HOME=c:\xampp\tomcat
> > > set JAVA_OPTS=-Dsolr.solr.home=c:\xampp\tomcat\webapps\solr -Duser.language=en
> > > tomcat\bin\catalina.bat start
> > > --------------
> > >
> > > This is the output when Tomcat start:
> > > --------------
> > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.AprLifecycleListener init
> > > INFO: The Apache Tomcat Native library which allows optimal performance in produ
> > > ction environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;
> > > C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WI
> > > NDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos de programa\python25;C:\Sun\SDK\jdk\j
> > > re\bin;C:\Sun\SDK\bin;C:\Archivos de programa\CollabNet Subversion Server
> > > Feb 19, 2008 2:24:54 PM org.apache.coyote.http11.Http11Protocol init
> > > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.Catalina load
> > > INFO: Initialization processed in 523 ms
> > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardService start
> > > INFO: Starting service Catalina
> > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine start
> > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> > > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
> > > INFO: Deploying web application archive solr.war
> > > Feb 19, 2008 2:24:56 PM com.sun.faces.config.ConfigureListener contextInitialize
> > > d
> > > INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for co
> > > ntext '/mailstat'
> > > log4j:WARN No appenders could be found for logger (org.ajax4jsf.application.Debu
> > > gLifecycleFactory).
> > > log4j:WARN Please initialize the log4j system properly.
> > > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol start
> > > INFO: Starting Coyote HTTP/1.1 on http-8080
> > > Feb 19, 2008 2:24:58 PM org.apache.jk.common.ChannelSocket init
> > > INFO: JK: ajp13 listening on /0.0.0.0:8009
> > > Feb 19, 2008 2:24:58 PM org.apache.jk.server.JkMain start
> > > INFO: Jk running ID=0 time=0/32  config=null
> > > Feb 19, 2008 2:24:58 PM org.apache.catalina.startup.Catalina start
> > > INFO: Server startup in 3558 ms
> > > --------------
> > >
> > > This is the content of catalina.log:
> > > --------------
> > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.AprLifecycleListener init
> > > INFO: The Apache Tomcat Native library which allows optimal
> > > performance in production environments was not found on the
> > > java.library.path:
> > > C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos
> > > de programa\python25;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\bin;C:\Archivos
> > > de programa\CollabNet Subversion Server
> > > Feb 19, 2008 2:24:54 PM org.apache.coyote.http11.Http11Protocol init
> > > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.Catalina load
> > > INFO: Initialization processed in 523 ms
> > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardService start
> > > INFO: Starting service Catalina
> > > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine start
> > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> > > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
> > > INFO: Deploying web application archive solr.war
> > > Feb 19, 2008 2:24:56 PM com.sun.faces.config.ConfigureListener
> > > contextInitialized
> > > INFO: Initializing Sun's JavaServer Faces implementation
> > > (1.2_04-b07-FCS) for context '/myproject'
> > > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol start
> > > INFO: Starting Coyote HTTP/1.1 on http-8080
> > > Feb 19, 2008 2:24:58 PM org.apache.jk.common.ChannelSocket init
> > > INFO: JK: ajp13 listening on /0.0.0.0:8009
> > > Feb 19, 2008 2:24:58 PM org.apache.jk.server.JkMain start
> > > INFO: Jk running ID=0 time=0/32  config=null
> > > Feb 19, 2008 2:24:58 PM org.apache.catalina.startup.Catalina start
> > > INFO: Server startup in 3558 ms
> > > --------------
> > >
> > > This is the content of localhost.log
> > > --------------
> > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> > > [org.apache.webapp.balancer.RuleChain:
> > > [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> > > News / Redirect URL: http://www.cnn.com],
> > > [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> > > name: paramName / Target param value: paramValue / Redirect URL:
> > > http://www.yahoo.com],
> > > [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> > > http://jakarta.apache.org]]
> > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > INFO: ContextListener: contextInitialized()
> > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > INFO: SessionListener: contextInitialized()
> > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > INFO: ContextListener: contextInitialized()
> > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > INFO: SessionListener: contextInitialized()
> > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > INFO: ContextListener: contextInitialized()
> > > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > > INFO: SessionListener: contextInitialized()
> > > Feb 19, 2008 2:24:58 PM org.apache.catalina.core.ApplicationContext log
> > > INFO: ContextListener: contextInitialized()
> > > Feb 19, 2008 2:24:58 PM org.apache.catalina.core.ApplicationContext log
> > > INFO: SessionListener: contextInitialized()
> > > --------------
> > >
> >
> >
> >
> > --
> > Regards,
> > Shalin Shekhar Mangar.
> >
>



-- 
Regards,
Shalin Shekhar Mangar.

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by Alejandro Valdez <al...@gmail.com>.
Hi, I copied the content of the directory examples/solr to
C:\xampp\tomcat\webapps\solr
and updated the tomcat startup bat to:

set JAVA_OPTS=-Dsolr.solr.home=C:\xampp\tomcat\webapps\solr\conf
-Duser.language=en

I get the same 404 error when open http://127.0.0.1:8080/solr/admin, and
there is no error message in the tomcat logs.

If I start Solr from the example directory using jetty it's start ok
and the admin page shows ok.

Any help would be very appreciated.




On Feb 19, 2008 2:49 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:
> The problem is that your SOLR home is incorrect. You're making
> -Dsolr.solr.home point to the deployed solr webapp inside solr. It
> should actually point to a directory which contains conf folder
> containing solrconfig.xml and schema.xml.
>
> For an example configuration folder see example/solr supplied with solr builds.
>
>
> On Feb 19, 2008 10:02 PM, Alejandro Valdez <al...@gmail.com> wrote:
> > Hello, I'm trying to install Solr in Windows but it's not working.
> >
> > I followed the instructions at http://wiki.apache.org/solr/SolrTomcat for
> > configuring Solr in Windows.
> >
> > If I open the localhost tomcat URL (http://localhost:8080/) it shows
> > the tomcat page.
> >
> > If I open the localhost URL for my project
> > (http://localhost:8080/myproject) it works ok.
> >
> > But if I open the Solr URL (http://localhost:8080/solr/admin) It fails
> > with tomcat's 404 error.
> >
> > The files are correctly deployed in the webapps directory...
> >
> > The tomcat's log says "Feb 19, 2008 2:24:54 PM
> > org.apache.catalina.startup.HostConfig deployWAR
> > INFO: Deploying web application archive solr.war" but it still don't work :-(
> >
> >
> > Any clue?
> >
> >
> >
> >
> > This is the tomcat_start.bat
> > --------------
> > set JAVA_HOME=C:\Sun\SDK\jdk
> > set workers.catalina_home=c:\xampp\tomcat
> > set workers.java_home=C:\Sun\SDK\jdk
> > set TOMCAT_HOME=c:\xampp\tomcat
> > set TOMCAT_BASE=c:\xampp\tomcat
> > set CLASSPATH=c:\xampp\tomcat;C:\Sun\SDK\jdk\lib\tools.jar
> > set CATALINA_BASE=c:\xampp\tomcat
> > set CATALINA_HOME=c:\xampp\tomcat
> > set JAVA_OPTS=-Dsolr.solr.home=c:\xampp\tomcat\webapps\solr -Duser.language=en
> > tomcat\bin\catalina.bat start
> > --------------
> >
> > This is the output when Tomcat start:
> > --------------
> > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.AprLifecycleListener init
> > INFO: The Apache Tomcat Native library which allows optimal performance in produ
> > ction environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;
> > C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WI
> > NDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos de programa\python25;C:\Sun\SDK\jdk\j
> > re\bin;C:\Sun\SDK\bin;C:\Archivos de programa\CollabNet Subversion Server
> > Feb 19, 2008 2:24:54 PM org.apache.coyote.http11.Http11Protocol init
> > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.Catalina load
> > INFO: Initialization processed in 523 ms
> > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardService start
> > INFO: Starting service Catalina
> > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine start
> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
> > INFO: Deploying web application archive solr.war
> > Feb 19, 2008 2:24:56 PM com.sun.faces.config.ConfigureListener contextInitialize
> > d
> > INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for co
> > ntext '/mailstat'
> > log4j:WARN No appenders could be found for logger (org.ajax4jsf.application.Debu
> > gLifecycleFactory).
> > log4j:WARN Please initialize the log4j system properly.
> > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol start
> > INFO: Starting Coyote HTTP/1.1 on http-8080
> > Feb 19, 2008 2:24:58 PM org.apache.jk.common.ChannelSocket init
> > INFO: JK: ajp13 listening on /0.0.0.0:8009
> > Feb 19, 2008 2:24:58 PM org.apache.jk.server.JkMain start
> > INFO: Jk running ID=0 time=0/32  config=null
> > Feb 19, 2008 2:24:58 PM org.apache.catalina.startup.Catalina start
> > INFO: Server startup in 3558 ms
> > --------------
> >
> > This is the content of catalina.log:
> > --------------
> > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.AprLifecycleListener init
> > INFO: The Apache Tomcat Native library which allows optimal
> > performance in production environments was not found on the
> > java.library.path:
> > C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos
> > de programa\python25;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\bin;C:\Archivos
> > de programa\CollabNet Subversion Server
> > Feb 19, 2008 2:24:54 PM org.apache.coyote.http11.Http11Protocol init
> > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.Catalina load
> > INFO: Initialization processed in 523 ms
> > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardService start
> > INFO: Starting service Catalina
> > Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine start
> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> > Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
> > INFO: Deploying web application archive solr.war
> > Feb 19, 2008 2:24:56 PM com.sun.faces.config.ConfigureListener
> > contextInitialized
> > INFO: Initializing Sun's JavaServer Faces implementation
> > (1.2_04-b07-FCS) for context '/myproject'
> > Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol start
> > INFO: Starting Coyote HTTP/1.1 on http-8080
> > Feb 19, 2008 2:24:58 PM org.apache.jk.common.ChannelSocket init
> > INFO: JK: ajp13 listening on /0.0.0.0:8009
> > Feb 19, 2008 2:24:58 PM org.apache.jk.server.JkMain start
> > INFO: Jk running ID=0 time=0/32  config=null
> > Feb 19, 2008 2:24:58 PM org.apache.catalina.startup.Catalina start
> > INFO: Server startup in 3558 ms
> > --------------
> >
> > This is the content of localhost.log
> > --------------
> > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> > [org.apache.webapp.balancer.RuleChain:
> > [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> > News / Redirect URL: http://www.cnn.com],
> > [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> > name: paramName / Target param value: paramValue / Redirect URL:
> > http://www.yahoo.com],
> > [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> > http://jakarta.apache.org]]
> > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > INFO: ContextListener: contextInitialized()
> > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > INFO: SessionListener: contextInitialized()
> > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > INFO: ContextListener: contextInitialized()
> > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > INFO: SessionListener: contextInitialized()
> > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > INFO: ContextListener: contextInitialized()
> > Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> > INFO: SessionListener: contextInitialized()
> > Feb 19, 2008 2:24:58 PM org.apache.catalina.core.ApplicationContext log
> > INFO: ContextListener: contextInitialized()
> > Feb 19, 2008 2:24:58 PM org.apache.catalina.core.ApplicationContext log
> > INFO: SessionListener: contextInitialized()
> > --------------
> >
>
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>

Re: Solr in Windows XP + JDK 5 + Tomcat 6.0.13

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
The problem is that your SOLR home is incorrect. You're making
-Dsolr.solr.home point to the deployed solr webapp inside solr. It
should actually point to a directory which contains conf folder
containing solrconfig.xml and schema.xml.

For an example configuration folder see example/solr supplied with solr builds.

On Feb 19, 2008 10:02 PM, Alejandro Valdez <al...@gmail.com> wrote:
> Hello, I'm trying to install Solr in Windows but it's not working.
>
> I followed the instructions at http://wiki.apache.org/solr/SolrTomcat for
> configuring Solr in Windows.
>
> If I open the localhost tomcat URL (http://localhost:8080/) it shows
> the tomcat page.
>
> If I open the localhost URL for my project
> (http://localhost:8080/myproject) it works ok.
>
> But if I open the Solr URL (http://localhost:8080/solr/admin) It fails
> with tomcat's 404 error.
>
> The files are correctly deployed in the webapps directory...
>
> The tomcat's log says "Feb 19, 2008 2:24:54 PM
> org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive solr.war" but it still don't work :-(
>
>
> Any clue?
>
>
>
>
> This is the tomcat_start.bat
> --------------
> set JAVA_HOME=C:\Sun\SDK\jdk
> set workers.catalina_home=c:\xampp\tomcat
> set workers.java_home=C:\Sun\SDK\jdk
> set TOMCAT_HOME=c:\xampp\tomcat
> set TOMCAT_BASE=c:\xampp\tomcat
> set CLASSPATH=c:\xampp\tomcat;C:\Sun\SDK\jdk\lib\tools.jar
> set CATALINA_BASE=c:\xampp\tomcat
> set CATALINA_HOME=c:\xampp\tomcat
> set JAVA_OPTS=-Dsolr.solr.home=c:\xampp\tomcat\webapps\solr -Duser.language=en
> tomcat\bin\catalina.bat start
> --------------
>
> This is the output when Tomcat start:
> --------------
> Feb 19, 2008 2:24:54 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: The Apache Tomcat Native library which allows optimal performance in produ
> ction environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;
> C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WI
> NDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos de programa\python25;C:\Sun\SDK\jdk\j
> re\bin;C:\Sun\SDK\bin;C:\Archivos de programa\CollabNet Subversion Server
> Feb 19, 2008 2:24:54 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 523 ms
> Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive solr.war
> Feb 19, 2008 2:24:56 PM com.sun.faces.config.ConfigureListener contextInitialize
> d
> INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for co
> ntext '/mailstat'
> log4j:WARN No appenders could be found for logger (org.ajax4jsf.application.Debu
> gLifecycleFactory).
> log4j:WARN Please initialize the log4j system properly.
> Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Feb 19, 2008 2:24:58 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Feb 19, 2008 2:24:58 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/32  config=null
> Feb 19, 2008 2:24:58 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 3558 ms
> --------------
>
> This is the content of catalina.log:
> --------------
> Feb 19, 2008 2:24:54 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: The Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Archivos
> de programa\python25;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\bin;C:\Archivos
> de programa\CollabNet Subversion Server
> Feb 19, 2008 2:24:54 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 523 ms
> Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Feb 19, 2008 2:24:54 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> Feb 19, 2008 2:24:54 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive solr.war
> Feb 19, 2008 2:24:56 PM com.sun.faces.config.ConfigureListener
> contextInitialized
> INFO: Initializing Sun's JavaServer Faces implementation
> (1.2_04-b07-FCS) for context '/myproject'
> Feb 19, 2008 2:24:58 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Feb 19, 2008 2:24:58 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Feb 19, 2008 2:24:58 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/32  config=null
> Feb 19, 2008 2:24:58 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 3558 ms
> --------------
>
> This is the content of localhost.log
> --------------
> Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> [org.apache.webapp.balancer.RuleChain:
> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> News / Redirect URL: http://www.cnn.com],
> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> name: paramName / Target param value: paramValue / Redirect URL:
> http://www.yahoo.com],
> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> http://jakarta.apache.org]]
> Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Feb 19, 2008 2:24:55 PM org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> Feb 19, 2008 2:24:58 PM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Feb 19, 2008 2:24:58 PM org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> --------------
>



-- 
Regards,
Shalin Shekhar Mangar.