Closed jonjack closed 8 years ago
Thank you for the reporting this issue. I was able to confirm the issue using the steps below.
Prepare a directory for a clean AEM 6.0 SP2 instance.
$ mkdir ~/opt/aem-6.0-SP2
$ cd ~/opt/aem-6.0-SP2
$ cp ~/dist/cq/aem-6.0/AEM_6.0_Quickstart.jar cq-author-p4502.jar
$ cp ~/dist/cq/aem-6.0/license.properties .
Perform an advanced install so that we can use Java 8.
$ java -jar cq-author-p4502.jar -unpack
$ mkdir crx-quickstart/install
$ cp ~/dist/cq/aem-6.0/AEM\ 6.0\ Service\ Pack\ 2-1.0.zip crx-quickstart/install
$ java -Xmx2048m -XX:MaxPermSize=512M -jar cq-author-p4502.jar
Clone the AEM Solr Search repository.
$ git clone https://github.com/headwirecom/aem-solr-search.git
$ cd aem-solr-search
Deploy AEM Solr Search.
$ mvn clean install -Pauto-deploy-all
$ mvn install -Pauto-deploy-sample
$ mvn install -Pauto-deploy-geo
You are correct, we have not tested AEM Solr Search AEM 6.0 SP2. We have been primarily focused on AEM 6.1 and 5.6.1.
The errors that you are seeing are due to unresolved org.apache.http.*
dependencies. As such, the AEM Solr Search OSGi bundles are staying in an Installed
state.
We'll investigate further.
I believe I have fix for this, please try the following:
$ cd aem-solr-search
$ git fetch
$ git checkout bug/issue-8
Active
.$ mvn clean install -Pauto-deploy-all
$ mvn install -Pauto-deploy-sample
$ mvn install -Pauto-deploy-geo
$ cd ../aemsolrsearch-geometrixx-media-sample
$ ./index-geometrixx-media-articles.sh
Gaston, thanks for looking into this so promptly. I will run your fix this week and feed back.
Hi Gaston,
Apologies I took so long to get back to this. I re-ran everything from scratch and all went well with the exception of requesting http://localhost:4502/content/aemsolrsearch/aem-solr-search.html which threw an error relating to resolution of taglibs.
ERROR DURING INCLUDE OF COMPONENT '/APPS/AEMSOLRSEARCH/COMPONENTS/AJAX-SOLR/BOOTSTRAPSEARCHCONTROLLER'
ERROR MESSAGE:
org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.jsp.jasper.JasperException: The absolute uri: http://aemsolrsearch.headwire.com/taglibs/aemsolrsearch-taglib cannot be resolved in either web.xml or the jar files deployed with this application
Update: Seems a bundle had not started up properly.
I am happy to close this issue however since it seems you have indeed addressed the problem that this issue was originally raised for.
I'm using AEM 6.0.0.SP2 so maybe this is not tested/supported.
Following your setup instructions everything ran fine until I tried the indexing scripts.
AEM6 running with default admin/admin. Jetty running fine via maven as instructed (no port issues). I can browse Solr admin successfully at http://localhost:8888/solr/#/
Requesting the Sample Geomatrix Search Page at
http://localhost:4502/content/aemsolrsearch/aem-solr-search-geo.html
produces: