Hi Mike,

one proper way of getting to know how Jetty needs to be configured is to
try this with  a vanilla Jetty Server.
What kind of configuration is needed to get this working on the std.
Jetty. After that you can port those
requirements into the cfg for pax-web/jetty.

Regards, Achim


> I'm currently running Karaf 2.2.0 with Pax-Web 0.8.0, and have been unable to
> get JMX monitoring of Jetty running inside of Karaf.  Below is the contents
> of my ./etc/jetty.xml document.  Could someone let me know what I'm doing
> wrong?
>
> <?xml version="1.0"?>
> &lt;!DOCTYPE Configure PUBLIC &quot;-//Mort Bay Consulting//
> DTD Configure//EN&quot;
> &quot;http://jetty.mortbay.org/configure.dtd&quot;&gt;
>
> <Configure class="org.eclipse.jetty.server.Server">
>
>     
>     
>     
>
>     <Call name="addConnector">
>       <Arg>
>           <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
>             <Set name="host"><Property name="jetty.host" /></Set>
>                       
>             <Set name="port"><Property name="jetty.port"
> default="8080"/></Set>
>             <Set name="maxIdleTime">300000</Set>
>             <Set name="Acceptors">2</Set>
>             <Set name="statsOn">false</Set>
>             <Set name="confidentialPort">8443</Set>
>             <Set name="lowResourcesConnections">20000</Set>
>             <Set name="lowResourcesMaxIdleTime">5000</Set>
>           </New>
>       </Arg>
>     </Call>   
>       
>     
>     
>     
>       <Call id="MBeanServer" class="java.lang.management.ManagementFactory"
> name="getPlatformBeanServer"/>
>       
>       <New id="MBeanContainer" class="org.eclipse.jetty.jmx.MBeanContainer">
>               <Arg>
>                       <Ref id="MBeanServer"/>
>               </Arg>
>       </New>
>       
>       <Get id="Container" name="container">
>               <Call name="addEventListener">
>                       <Ref id="MBeanContainer"/>
>               </Call>
>       </Get>  
> </Configure>
> -----Mike Van (aka karafman)
> Karaf Team (Contributor)--
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Jetty-JMX-in-Karaf-2-2-0-tp2881560p2881560.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to