[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] Upgrading from 8.1.8 to 9.1.0
|
I just downloaded 9.1.0.RC0, and did a straight replace of the JARs I use in my
existing system. When I tried to start it up I got this error when I try to set
up the SSL connector in my etc/jetty.xml:
2013-10-07 16:47:47.129:WARN:oejx.XmlConfiguration:main: Config error at <Call
name="addConnector"><Arg>| <New
class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector"><Set
name="Port">8443</Set><Set name="MaxIdleTime">30000</Set><Set
name="Acceptors">2</Set><Set name="AcceptQueueSize">100</Set><Set
name="Keystore"><Property name="jetty.home" default="."/>/keystore</Set><Set
name="Password">checkpoint</Set><Set name="KeyPassword">checkpoint</Set></New>|
</Arg></Call> java.lang.ClassNotFoundException:
org.eclipse.jetty.server.ssl.SslSelectChannelConnector in
file:/C:/Users/JE/Documents/Projects/Checkpoint/bin/etc/jetty.xml
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:295)
at org.eclipse.jetty.start.Main.start(Main.java:704)
at org.eclipse.jetty.start.Main.main(Main.java:101)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jetty.server.ssl.SslSelectChannelConnector
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.jetty.util.Loader.loadClass(Loader.java:86)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:354)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:262)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1238)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1174)
... 7 more
The relevant part of jetty.xml is this:
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
<Set name="Port">8443</Set>
<Set name="MaxIdleTime">30000</Set>
<Set name="Acceptors">2</Set>
<Set name="AcceptQueueSize">100</Set>
<Set name="Keystore"><Property name="jetty.home" default="."
/>/keystore</Set>
<Set name="Password">###</Set>
<Set name="KeyPassword">###</Set>
</New>
</Arg>
</Call>
Obviously many things have changed since 8.1.8. It seems that each major release
involves me in a complete rewrite of all my configuration files. I've had to
completely replace jetty-jmx.xml with the version from the distro, and also
comment out this line in jetty.xml:
<Set name="GracefulShutdown">1000</Set>
which I can presumably live without (?), but the SSL configuration is a real
show stopper. I've looked at the docs, but I'm still baffled. Can anyone please
tell me what spell I should incant to placate 9.1.0 instead of the above?
TIA,
--
John English