AnsweredAssumed Answered

Install Solr ,A docBase and will be ignored

Question asked by crowley on Jun 26, 2015
hello
I am installing solr with this manual http://docs.alfresco.com/4.0/tasks/solr-install-config.html , but I have this error, taking two routes and putting them together. I have this in solr.xml. please help


<?xml version="1.0" encoding="utf-8"?>
<Context docBase="\opt\alfresco2\alfresco-4.1.6\alf_data\solr\apache-solr-1.4.1.war" debug="0" crossContext="true">
<Environment name="solr/home" type="java.lang.String" value="\opt\alfresco2\alfresco-4.1.6\alf_data\solr" override="true"/>
</Context>




Jun 26, 2015 8:24:52 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase /opt/alfresco2/alfresco-4.1.6/tomcat/webapps/\opt\alfresco2\alfresco-4.1.6\alf_data\solr\apache-solr-1.4.1.war inside the host appBase has been specified, and will be ignored
Jun 26, 2015 8:24:52 AM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /opt/alfresco2/alfresco-4.1.6/tomcat/webapps/solr does not exist or is not a readable directory
   at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
   at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4320)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4489)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
   at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
   at org.apache.catalina.core.StandardService.start(StandardService.java:525)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jun 26, 2015 8:24:52 AM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()








Outcomes