Bug#933854: solr-jetty: Jetty refuses to start SOLR due to a probably depreceated Call <Call name="addAliasCheck">

beirer debian at lowmem.net
Sun Aug 4 14:01:08 BST 2019


Package: solr-jetty
Version: 3.6.2+dfsg-20
Severity: grave
Justification: renders package unusable

Hi Maintainers,

Jetty refuses to start SOLR due to a (probably) depreceated call in
/etc/solr/solr-jetty.xml:

<Call name="addAliasCheck">
    <Arg>
      <New class="org.eclipse.jetty.server.handler.ContextHandler$ApproveSameSuffixAliases"/>
    </Arg>
  </Call>


Here is the relevant part from journalctl:

Aug 04 14:55:00 srv1 jetty9[3616]: 2019-08-04 14:55:00.970:WARN:oejx.XmlConfiguration:main: Config error at <Call name="addAliasCheck"><Arg>|      <New class="org.eclipse.jetty.server.handler.ContextHandler$Approv
Aug 04 14:55:00 srv1 jetty9[3616]: 2019-08-04 14:55:00.970:WARN:oejd.DeploymentManager:main: Unable to reach node goal: started
Aug 04 14:55:00 srv1 jetty9[3616]: java.lang.ClassNotFoundException: org.eclipse.jetty.server.handler.ContextHandler$ApproveSameSuffixAliases
Aug 04 14:55:00 srv1 jetty9[3616]:         at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
Aug 04 14:55:00 srv1 jetty9[3616]:         at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
Aug 04 14:55:00 srv1 jetty9[3616]:         at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.Loader.loadClass(Loader.java:65)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:834)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1309)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1214)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.access$500(XmlConfiguration.java:326)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1442)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1417)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:780)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:472)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:413)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:311)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.providers.WebAppProvider.createContextHandler(WebAppProvider.java:301)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.App.getContextHandler(App.java:105)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.bindings.StandardDeployer.processBinding(StandardDeployer.java:38)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:192)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:505)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:151)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:453)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:150)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:579)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:240)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.server.Server.start(Server.java:415)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.server.Server.doStart(Server.java:382)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1572)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1512)
Aug 04 14:55:00 srv1 jetty9[3616]:         at java.base/java.security.AccessController.doPrivileged(Native Method)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1511)
Aug 04 14:55:00 srv1 jetty9[3616]:         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Aug 04 14:55:00 srv1 jetty9[3616]:         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Aug 04 14:55:00 srv1 jetty9[3616]:         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Aug 04 14:55:00 srv1 jetty9[3616]:         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.start.Main.invokeMain(Main.java:220)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.start.Main.start(Main.java:490)
Aug 04 14:55:00 srv1 jetty9[3616]:         at org.eclipse.jetty.start.Main.main(Main.java:77)




Commenting out the depreceated call (like in the modified solr-jetty.xml
attached below) seems to fix the problem.


Best regrads,

stephan


-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages solr-jetty depends on:
ii  default-jdk [java5-sdk]     2:1.11-71
ii  jetty9                      9.4.15-1
ii  libjetty9-extra-java        9.4.15-1
ii  openjdk-11-jdk [java5-sdk]  11.0.3+7-5
ii  solr-common                 3.6.2+dfsg-20

solr-jetty recommends no packages.

solr-jetty suggests no packages.

-- Configuration Files:
/etc/solr/solr-jetty.xml changed:
<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<!-- Context configuration file for the Solr web application in Jetty -->
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath">/solr</Set>
  <Set name="war">/usr/share/solr/web</Set>
  <!-- Set the solr.solr.home system property -->
  <Call name="setProperty" class="java.lang.System">
    <Arg type="String">solr.solr.home</Arg>
    <Arg type="String">/usr/share/solr</Arg>
  </Call>
  <!-- Enable symlinks -->
  <!-- Disabled to avoid probelms with starting SOLR 
  <Call name="addAliasCheck">
    <Arg>
      <New class="org.eclipse.jetty.server.handler.ContextHandler$ApproveSameSuffixAliases"/>
    </Arg>
  </Call>
  -->
</Configure>


-- no debconf information



More information about the pkg-java-maintainers mailing list