8 Replies Latest reply on Feb 5, 2002 10:40 AM by klaust

    Problem starting Jboss monitor

    swaminathan17

      Hi,

      I have problem starting the Jboss monitor.
      It give NoClassDefFoundError even when j2ee.jar is in the classpath.

      Here's my classpath settings.

      D:\JBoss-2.4.4_Tomcat-4.0.1\jboss\admin>set
      TMP=C:\WINDOWS\TEMP
      TEMP=C:\WINDOWS\TEMP
      PROMPT=$p$g
      winbootdir=C:\WINDOWS
      COMSPEC=C:\WINDOWS\COMMAND.COM
      PATH=D:\ORACLE\ORA81\BIN;C:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN;C:\JDK1.3\BIN;C:\
      WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\RATIONAL\COMMON;;
      windir=C:\WINDOWS
      CMDLINE=java -jar client/monitor.jar
      CLASSPATH=C:\JDK1.3\JRE\LIB\RT.JAR;c:\jdbc2\classes12_01.zip;D:\WEBLOGIC\LIB\WEB
      LOGICAUX.JAR;C:\WEBLOGIC\LICENCE;D:\WEBLOGIC\CLASSES;;;c:\j2sdkee1.3\lib\j2ee.jar

      D:\JBoss-2.4.4_Tomcat-4.0.1\jboss\admin>monitor

      D:\JBoss-2.4.4_Tomcat-4.0.1\jboss\admin>java -jar client/monitor.jar
      Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/MessageList
      ener
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
      1)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
      at org.jboss.admin.monitor.MonitorFrame.setVisible(MonitorFrame.java:195
      )
      at org.jboss.admin.monitor.Main.main(Main.java:31)



      thanks
      Swaminathan

        • 1. Re: Problem starting Jboss monitor
          davehawley

          I've got the same problem.

          java javax.jms.MessageListener does find the class.

          So what magic am I missing?

          • 2. Re: Problem starting Jboss monitor
            rsolod

            Hello.
            As I have discover, the problem was in wrong manifest-file in the "monitor.jar". So, we can read [m]Main-Class: org.jboss.admin.monitor.Main
            Class-Path: . lib/jms.jar lib/jta-spec1_0_1.jar lib/jnp-client.jar lib/jbossmq-client.jar lib/jpl-util-0_6b.jar lib/jboss-util.jar
            but these files are missed in "lib" folder. So, I just re-create this JAR with new "MANIFEST.MF" file.
            Manifest-Version: 1.0
            Main-Class: org.jboss.admin.monitor.Main
            Class-Path: . lib/jaas.jar lib/jboss-j2ee.jar lib/jboss-util.jar lib/jbossmq-client.jar lib/jbosssx-client.jar lib/jnp-client.jar lib/jpl-util-0_6b.jar lib/log4j-re.jar lib/log4j.jar


            All these files are placed in "lib" folder except lib/log4j-re.jar and lib/log4j.jar. You can download they from jakarta-project site or find in JBoss instalation (maybe).

            But a new problem appear - after starting of the monitor I obtain a message (in the status bar) "metrics not bound"

            • 4. Re: Problem starting Jboss monitor
              rsolod

              Sorry for my previous post.

              the goal of it was in :
              <!-- Uncomment to enable JMX monitoring of the bean cache

              -->
              in jboss.jcml
              But it still does not work

              • 5. Re: Problem starting Jboss monitor
                klaust

                ok. i'm also at this point.

                after decompiling some classes i found that you have to create an jms-topic:



                and there are some doubios flags in
                <mbean code="org.jboss.ejb.ContainerFactory...
                ...
                false
                false

                (the docu says that this are experimental flags!)

                but it still does not work

                • 6. Re: Problem starting Jboss monitor

                  > But a new problem appear - after starting of the
                  > monitor I obtain a message (in the status bar)
                  > "metrics not bound". What is it? Who know?


                  It's a JBossMQ topic you need to create (topic/metrics)

                  -- Juha

                  • 7. Re: Problem starting Jboss monitor
                    rsolod

                    OK. started at last.
                    but a new Exception occurred
                    Exception occurred during event dispatching:
                    java.lang.NoClassDefFoundError: org/jboss/admin/dataholder/InvocationEntry
                    at org.jboss.admin.monitor.MonitorFrame$2.run(MonitorFrame.java:278)
                    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
                    at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)

                    So, anybody know where I can take this classes?
                    I don't find any information on the site and on SourceForge about this :(((

                    • 8. Re: Problem starting Jboss monitor
                      klaust


                      i also create topic/metrics. the display shows 'Connecting to name service' and stopps with following error (translated to english):

                      org.jboss.mq.SpyJMSException: Cannot get a client ID: errno: 97, error: The Addressfamily is not supported by the Protocolfamily for fd: 11

                      ???

                      klaus