1 Reply Latest reply on Feb 27, 2003 6:47 AM by martyu

    JMX Console not found

    mart

      Dear reader,

      I've installed JBoss-3.0.4 bundled with Tomcat-4.1.12. I found out that port 8082 is not used anymore for the JMX console and that I instead should use: http://localhost:8080/jmx-console/index.jsp instead. However, it is not found (404 error).

      I've logged the launch of JBoss and this is all without errors, according to the log it was deployed fine (see below this post), however it says that a web.xml was missing?

      I've not changed any settings so I am not sure why it can't be found or what is wrong. Anyone any suggestions?

      Regards Martijn

      11:25:10,290 INFO [MainDeployer] Starting deployment of package: file:/C:/Martijn/Server/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/jmx-console.war/
      11:25:10,320 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/jmx-console, warUrl=file:/C:/Martijn/Server/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/jmx-console.war/
      11:25:10,330 INFO [Engine] WebappLoader[/jmx-console]: Deploying class repositories to work directory C:\Documents and Settings\tomcat-4.1.x\work\MainEngine\localhost\jmx-console
      11:25:10,340 INFO [Engine] WebappLoader[/jmx-console]: Deploy class files /WEB-INF/classes to C:\Martijn\Server\jboss-3.0.4_tomcat-4.1.12\server\default\deploy\jmx-console.war\WEB-INF\classes
      11:25:10,340 INFO [Engine] ContextConfig[/jmx-console]: Missing default web.xml, using application web.xml only

        • 1. Re: JMX Console not found
          martyu

          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/