4 Replies Latest reply on Oct 24, 2003 9:44 AM by bf

    How do I know if Jboss started or not?

    bf Newbie

      I start my JBoss like this:

      C:\j2eesdk1.4_beta2\jboss-3.2.1_tomcat-4.1.24\bin>run -c default
      ===============================================================================
      .
      JBoss Bootstrap Environment
      .
      JBOSS_HOME: C:\j2eesdk1.4_beta2\jboss-3.2.1_tomcat-4.1.24\bin\\..
      .
      JAVA: C:\j2sdk1.4.1_04\bin\java
      .
      JAVA_OPTS: -Dprogram.name=run.bat
      .
      CLASSPATH: ;C:\j2sdk1.4.1_04\lib\tools.jar;C:\j2eesdk1.4_beta2\jboss-3.2.1_tom
      cat-4.1.24\bin\\run.jar
      .
      ===============================================================================
      .


      Then it just stoped there, no information displays. Did JBoss start properly? Or I missed something?

      Thx!

        • 1. Re: How do I know if Jboss started or not?
          Raja Master

          do u have any j2ee.jar in ur java_home/jre/lib/ext?

          -Raj

          • 2. Re: How do I know if Jboss started or not?
            bf Newbie

            No, I don't.
            So what should I do? Should I copy it manually? I did that and recieved error messages like these:


            ===============================================================================
            .
            JBoss Bootstrap Environment
            .
            JBOSS_HOME: C:\j2eesdk1.4_beta2\jboss-3.2.1_tomcat-4.1.24\bin\\..
            .
            JAVA: C:\j2sdk1.4.1_04\bin\java
            .
            JAVA_OPTS: -Dprogram.name=run.bat
            .
            CLASSPATH: ;C:\j2sdk1.4.1_04\lib\tools.jar;C:\j2eesdk1.4_beta2\jboss-3.2.1_tom
            cat-4.1.24\bin\\run.jar
            .
            ===============================================================================
            .
            java.lang.NoClassDefFoundError: com/sun/jmx/mbeanserver/GetPropertyAction
            at org.jboss.mx.util.ObjectNameFactory.create(ObjectNameFactory.java:34)

            at org.jboss.system.server.ServerImpl.(ServerImpl.java:60)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
            orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
            onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at java.lang.Class.newInstance0(Class.java:306)
            at java.lang.Class.newInstance(Class.java:259)
            at org.jboss.system.server.ServerLoader.createServer(ServerLoader.java:2
            44)
            at org.jboss.system.server.ServerLoader.load(ServerLoader.java:224)
            at org.jboss.Main.boot(Main.java:142)
            at org.jboss.Main$1.run(Main.java:388)
            at java.lang.Thread.run(Thread.java:536)
            Press any key to continue . . .

            • 3. Re: How do I know if Jboss started or not?
              Raja Master

              Nope u shouldnt have j2ee.jar in ur classpath. I was just making sure you dont have it.

              • 4. Re: How do I know if Jboss started or not?
                bf Newbie

                Thank you so much Ray! I solved the problem.

                The reason is that the J2SE I am using is j2sdk1.4.1_04, but J2EE can not use it (it only works with j2sdk1.4.1_02). So it installed j2sdk agian.

                I didn't noticed that and set JAVA_HOME as the path of j2sdk1.4.1_04. And that's the reason JBoss didn't start.