Failed to start ASS Solr.

cancel
Showing results for 
Search instead for 
Did you mean: 
Tran120
Member II

Failed to start ASS Solr.

Hi,

I am trying to start ASS solr for the first time and I had the problem like below link

alfresco-solr-6-6-5-not-start-invalid-version-of-java-11-0-9-1

I already try with JDk 10 / 11.0.1 / 11.0.7 and the result is

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error: Could not find or load main class \
Caused by: java.lang.ClassNotFoundException: \

And when trying to start with JDK 1.8 it's still resulting in an error

Error: Could not find or load main class \

I found that the error happen in bellow line

echo %SOLR_PORT%>"%SOLR_TIP%"\bin\solr-%SOLR_PORT%.port
  "%JAVA%" %SERVEROPT% %SOLR_JAVA_MEM% %START_OPTS% ^
    -Dlog4j.configuration="%LOG4J_CONFIG%" -DSTOP.PORT=!STOP_PORT! -DSTOP.KEY=%STOP_KEY% ^
    -Dsolr.solr.home="%SOLR_HOME%" -Dsolr.install.dir="%SOLR_TIP%" ^
    -Djetty.host=%SOLR_JETTY_HOST% -Djetty.port=%SOLR_PORT% -Djetty.home="%SOLR_SERVER_DIR%" ^
    -Djava.io.tmpdir="%SOLR_SERVER_DIR%\tmp" -jar start.jar "%SOLR_JETTY_CONFIG%"

Which JDK I should use, and what I should do?

 
1 Reply
abhinavmishra14
Advanced

Re: Failed to start ASS Solr.

May i know how you setup ASS ? is it based on distribution package ?

The stable version of ACS 6 community i.e. 6.2.0-ga supports ASS 1.4.0 , I don't see any issues starting it with java8 or Java 11 either. With Java 11 you get a warrning 

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

which is just a warning and won't stop solr from coming up. However using java 11 is recommended as acs would also use java 11. 

Here is download link for ASS 1.4.0

https://download.alfresco.com/cloudfront/release/community/SearchServices/1.4.0/alfresco-search-serv...

Please revisit setup steps. 

You can find steps to setup ASS here: 

https://javaworld-abhinav.blogspot.com/2021/02/setup-acs62-ga-and-ass14-distribution-stepbystep-cent...

https://javaworld-abhinav.blogspot.com/2020/12/setup-acs62-ga-and-ass14-distribution-stepbystep.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)