aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 6 Server Status - No maxThreads Attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 6 Server Status - No maxThreads Attribute" Watch "Tomcat 6 Server Status - No maxThreads Attribute" New topic
Author

Tomcat 6 Server Status - No maxThreads Attribute

Thomas Reeves
Greenhorn

Joined: Mar 18, 2008
Posts: 2
Greetings, All

I'm running Linux Suse 10.3 and Tomcat 6.0.16 with JVM 1.6.0_04-b12. A red5 flash server has been installed as an embedded WAR file application. Tomcat starts up just fine, and I can access the web Application Manager panel using http://localhost:8080. However, when I select "Server Status" from the panel, I get this:

exception

javax.servlet.ServletException: javax.management.AttributeNotFoundException: No such attribute: maxThreads
org.apache.catalina.manager.StatusManagerServlet.doGet(StatusManagerServlet.java:304)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

javax.management.AttributeNotFoundException: No such attribute: maxThreads
com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:63)
com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:216)
javax.management.StandardMBean.getAttribute(StandardMBean.java:358)
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:666)
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
org.apache.catalina.manager.StatusTransformer.writeConnectorState(StatusTransformer.java:249)
org.apache.catalina.manager.StatusManagerServlet.doGet(StatusManagerServlet.java:289)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

I'm puzzled because my server.xml config file shows all kinds of "maxThreads=" entries. Here are some examples:

<Service name="Catalina">

<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>


<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />

I did a plain-vanilla installation of Tomcat from source and placed the red5 WAR files in the webapps folder. The red5 app is showing on the Tomcat manager panel, and the red5 admin panel opens when selected.

Does anyone have some idea of what's happening here? I'm a technician but not a java developer, so I'm clueless at this point...

Sincerely,
Thomas
Thomas Reeves
Greenhorn

Joined: Mar 18, 2008
Posts: 2
[SOLVED]

Never mind - I undeployed the embedded red5 flash server application and Tomcat came back to life. Oh well, back to the drawing board...

Regards,
Thomas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 6 Server Status - No maxThreads Attribute