Apache Solr deploy in JBoss a.k.a. Wildfly

There are few steps. Here it is:

1) Add Solr home directory in the web.xml in the solr.war

 <env-entry>
       <env-entry-name>solr/home</env-entry-name>
       <env-entry-value>/home/ranjit/tools/4942-solr-4.8.0/solr</env-entry-value>
       <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>

2) Replace guava-?.0.jar to latest one (guava-17.0.jar as of 6/15/2014) in solr.war

3) Deploy the solr.war in Wildfly

4) go to the Solr page by
http://localhost:8080/solr

Note JBoss is running on 8080 for application and on 9990 for the management console