Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save calvincodes/0fc7fc24717846f3c7ab27e210b6ab61 to your computer and use it in GitHub Desktop.
Save calvincodes/0fc7fc24717846f3c7ab27e210b6ab61 to your computer and use it in GitHub Desktop.
➜ war-packaging git:(master) ✗ java -jar ~/Desktop/jetty-home/start.jar
05/28/20 11:26:18 [INFO] Logging initialized @163ms to org.eclipse.jetty.util.log.Slf4jLog
05/28/20 11:26:19 [WARNING] Config error at <Call name="insertHandler"><Arg>
<New id="CustomJettyHandler" class="com.github.calvincodes.CustomHandlerJarPackaged"/>
</Arg></Call>
05/28/20 11:26:19 [WARNING]
java.lang.IllegalStateException: No Method: <Call name="insertHandler"><Arg>
<New id="CustomJettyHandler" class="com.github.calvincodes.CustomHandlerJarPackaged"/>
</Arg></Call> on class org.eclipse.jetty.server.Server
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:971)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:536)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:489)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:401)
at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$1(XmlConfiguration.java:1915)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1878)
Caused by: java.lang.NoSuchMethodException: insertHandler
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:1008)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:963)
... 6 more
Exception in thread "main" java.lang.IllegalStateException: No Method: <Call name="insertHandler"><Arg>
<New id="CustomJettyHandler" class="com.github.calvincodes.CustomHandlerJarPackaged"/>
</Arg></Call> on class org.eclipse.jetty.server.Server
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:971)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:536)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:489)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:401)
at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$1(XmlConfiguration.java:1915)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1878)
Caused by: java.lang.NoSuchMethodException: insertHandler
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:1008)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:963)
... 6 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment