-
1. Re: JMX Console not found
martyu Feb 27, 2003 6:47 AM (in response to mart)Mine works fine and I have also changed nothing.
Is is posible something in your installed files is corrupt?
My C:/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/jmx-console.war/WEB-INF directory contains both web.xml and jboss-web.xml and a classes subdirectory.
web.xml ============================
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
The standard web descriptor for the html adaptor
<servlet-name>HtmlAdaptor</servlet-name>
<servlet-class>org.jboss.jmx.adaptor.html.HtmlAdaptorServlet</servlet-class>
<servlet-name>DisplayMBeans</servlet-name>
<jsp-file>/displayMBeans.jsp</jsp-file>
<servlet-name>InspectMBean</servlet-name>
<jsp-file>/inspectMBean.jsp</jsp-file>
<servlet-name>DisplayOpResult</servlet-name>
<jsp-file>/displayOpResult.jsp</jsp-file>
<servlet-mapping>
<servlet-name>HtmlAdaptor</servlet-name>
<url-pattern>/HtmlAdaptor</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DisplayMBeans</servlet-name>
<url-pattern>/DisplayMBeans</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>InspectMBean</servlet-name>
<url-pattern>/InspectMBean</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DisplayOpResult</servlet-name>
<url-pattern>/DisplayOpResult</url-pattern>
</servlet-mapping>
<!-- A security constraint that restricts access to the HTML JMX console
to users with the role JBossAdmin. Edit the roles to what you want and
uncomment the WEB-INF/jboss-web.xml/security-domain element to enable
secured access to the HTML JMX console.
<security-constraint>
<web-resource-collection>
<web-resource-name>HtmlAdaptor</web-resource-name>
An example security config that only allows users with the
role JBossAdmin to access the HTML JMX console web application
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>JBossAdmin</role-name>
</auth-constraint>
</security-constraint>
-->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>JBoss JMX Console</realm-name>
</login-config>
<security-role>
<role-name>JBossAdmin</role-name>
</security-role>
</web-app>
jboss-web.xml ==============================
<jboss-web>
<!-- Uncomment the security-domain to enable security. You will
need to edit the htmladaptor login configuration to setup the
login modules used to authentication users.
<security-domain>java:/jaas/jmx-console</security-domain>
-->
</jboss-web>
==============================
I am on JDK 1.3.1_07 on Win2K and I get the following messages:
06:47:45,474 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
-3.0.4_tomcat-4.1.12/server/default/deploy/jmx-console.war/
06:47:45,754 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/jmx-console, war
Url=file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/jmx-console.war/
06:47:45,764 INFO [Engine] WebappLoader[/jmx-console]: Deploying class reposito
ries to work directory C:\jboss-3.0.4_tomcat-4.1.12\tomcat-4.1.x\work\MainEngine
\localhost\jmx-console
06:47:45,764 INFO [Engine] WebappLoader[/jmx-console]: Deploy class files /WEB-
INF/classes to C:\jboss-3.0.4_tomcat-4.1.12\server\default\deploy\jmx-console.wa
r\WEB-INF\classes
06:47:45,884 INFO [Engine] ContextConfig[/jmx-console]: Added certificates -> r
equest attribute Valve
06:47:45,994 INFO [EmbeddedCatalinaService41] Using Java2 parent classloader de
legation: true
06:47:45,994 INFO [Engine] StandardManager[/jmx-console]: Seeding random number
generator class java.security.SecureRandom
06:47:45,994 INFO [Engine] StandardManager[/jmx-console]: Seeding of random num
ber generator has been completed
06:47:45,994 INFO [Engine] StandardWrapper[/jmx-console:default]: Loading conta
iner servlet default
06:47:45,994 INFO [Engine] StandardWrapper[/jmx-console:invoker]: Loading conta
iner servlet invoker
06:47:46,004 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.0.4_tomcat-
4.1.12/server/default/deploy/jmx-console.war/