Hello!
I am currently moving from solr version 6.3.0 to solr version 8.11.1. I am
using java 8(jdk1.8.0_272).
When using the following command:

java  -Xms4196m -Xmx7168m -verbose:gc -XX:NewRatio=3 -XX:SurvivorRatio=4
-XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:ConcGCThreads=4
-XX:ParallelGCThreads=4 -XX:+CMSScavengeBeforeRemark
-XX:PretenureSizeThreshold=64m -XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000
-XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled
-XX:-OmitStackTraceInFastThrow -DSTOP.PORT=7983 -DSTOP.KEY=mysecret
-Dsolr.solr.home=C:\ "-Dsolr.install.dir=C:\Program Files\Morphisec
Server\solr-8.11.1\server\.." -Djetty.host=0.0.0.0 -Djetty.port=8983
-Dsolr.jetty.https.port=8983 "-Djetty.home=C:\Program Files\Morphisec
Server\solr-8.11.1\server\solr" -Dsolr.autoSoftCommit.maxTime=1000
"-Dsolr.log.dir=C:\Program Files\Morphisec Server\solr-8.11.1\server\logs"
-Dsolr.autoCommit.maxTime=60000 -Dsolr.ssl.checkPeerName=false
"-Djavax.net.ssl.trustStore=C:\Program Files\Morphisec
Server\solr-8.11.1\server\etc\keystore.solr.jks"
-Djavax.net.ssl.trustStorePassword=DEA7B39145F6478C -DzkClientTimeout=15000
-DzkRun -jar start.jar --module=https -DurlScheme=https

I am receiving the following exception:
ClassNotFoundException:
org.apache.solr.util.configuration.SSLConfigurationsFactory
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at org.eclipse.jetty.util.Loader.loadClass(Loader.java:64)
        at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:927)
        at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:515)
        at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:468)
        at
org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:380)
        at
org.eclipse.jetty.xml.XmlConfiguration.lambda$main$3(XmlConfiguration.java:1893)
        ... 9 more


I found out that the issue was with the jetty-ssl.xml file which was
changed from version 6.3.0.

When replacing the file to the previous version and trying to execute the
command, I am receiving a different error:

Caused by: java.lang.IllegalStateException: No Server ALPNProcessors!
        at
org.eclipse.jetty.alpn.server.ALPNServerConnectionFactory.<init>(ALPNServerConnectionFactory.java:52)
        ... 35 more
        Suppressed: java.lang.UnsupportedClassVersionError:
org/eclipse/jetty/alpn/java/server/JDK9ServerALPNProcessor has been
compiled by a more recent version of the Java Runtime (class file version
53.0), this version of the Java Runtime only recognizes class file versions
up to 52.0

After google search I found that the file that is being used doesn't fit to
java 8, when downloading the jar
"jetty-alpn-openjdk8-server-9.4.44.v20210927.jar" and adding it to
"server/lib", it works.

thank you

-- 
CONFIDENTIALITY NOTICE: The contents of this email message and any 
attachments are intended solely for the addressee(s) and may contain 
confidential and/or privileged information and their further disclosure may 
be contractually or legally restricted. If you are not the intended 
recipient, please do not use or disclose the contents of this email or its 
attachments to anyone and please delete it immediately and notify the 
sender.

Reply via email to