deploy war in Tomcat

前端 未结 1 1285
眼角桃花
眼角桃花 2021-01-24 22:48

I want to deploy solr.war in Tomcat5.5. I have copied solr.war file in webapps and extract it. while running http://localhost:8080/solr/ i am facing wid following exception. p

相关标签:
1条回答
  • 2021-01-24 23:18

    Create a file solr.xml in cofig/catalina/localhost folder . Add this Context

    <Context docBase="D:\project\Solr_Integration\apache-tomcat-6.0.35\webapps\solr.war" debug="0" crossContext="true" >
        <Environment name="solr/home" type="java.lang.String" value="D:\project\Solr_Integration\solr" override="true" />
    </Context>
    

    copy files manaully form here D:\project\Solr_Integration\apache-solr-4.0.0\example\solr in the following path D:\project\Solr_Integration\solr

    Start the server .

    0 讨论(0)
提交回复
热议问题