11-08-2016 08:21 AM
I used the archetype for "all-in-one" and I modified the sample test case adding a simple lucene query as shown in the attached java file.
When I execute:
mvn test
the test fails because it seems that Alfresco cannot access Solr (see attached maven.log file).
In this log, I also found a warning:
[INFO] --- alfresco-maven-plugin:2.2.0:refresh (refresh-webscripts-repo-and-share) @ marco-repo-amp ---
[WARNING] Connection failed to localhost:8080, null webapp refresh aborted
Is this the expected behaviour ? What can I do to run a test that accesses solr ?
11-10-2016 03:50 PM
There are 2 alternatives:
I hope this helps.
11-08-2016 08:44 AM
Hi,
I was able to reproduce.
The issue is that SolR is not run during the test phase. That's why you get the "java.net.ConnectException: Connection refused" error.
I don't know if there is a way to get SolR run during the test phase.
Maybe you could create an issue on github GitHub - Alfresco/alfresco-sdk: The Alfresco SDK based on Apache Maven, includes support for rapid a...
Development team of the SDK will answer you.
Marco Altieri a écrit:
In this log, I also found a warning:
[INFO] --- alfresco-maven-plugin:2.2.0:refresh (refresh-webscripts-repo-and-share) @ marco-repo-amp ---
[WARNING] Connection failed to localhost:8080, null webapp refresh aborted
That is linked to the hot reloading feature. That feature is for RAD for more information about RAD see : Rapid Application Development (RAD) | Alfresco Documentation
Yann
11-10-2016 03:50 PM
There are 2 alternatives:
I hope this helps.
11-11-2016 10:36 AM
Thank you Jens.
I did not realise that the issue that you mentioned was closed on a newer version of the SDK.
I guess that with the current SDK 2.2 the workaround is still necessary.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.