Setting Threadpool entry for Jetty in Fuse
Issue
- How to add the threadpool entry for Jetty to control max threads?
- Getting below error while trying to start server after configuring Jetty
16:04:57,419 | ERROR | onfig-1-thread-1 | JettyServerImpl | 117 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Exception while starting Jetty
java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoSuchMethodException: class org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper.setThreadPool(class org.eclipse.jetty.util.thread.QueuedThreadPool)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.set(XmlConfiguration.java:582)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:411)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)
... 16 more
Environment
- Red Hat JBoss Fuse 6.3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
