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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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.
>

Reply via email to