7 Replies Latest reply on Feb 18, 2002 4:58 AM by adrian.brock

    Fail in starting JBoss-2.4.4_Tomcat-4.0.1

    fhlee7

      I am installing JBoss-2.4.4_Tomcat-4.0.1 in Windows ME. I have installed and set the ANT. I have set the JBOSS_DIST to the directory of the JBoss.
      However, when I run the run.bat, 2 syntax errors occurs at the lines
      set JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
      set JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl


      When I try to run "java -jar run.jar", the following error appears:

      ....
      [INFO,Info] System: Windows Me 4.90,x86
      [INFO,Shutdown] Shutdown hook added
      java.lang.NoClassDefFoundError: org/xml/sax/SAXException
      at java.lang.Class.getConstructors0(Native Method)
      .....

      Do I miss some steps in starting the JBoss?
      Thanks!

        • 1. Re: Fail in starting JBoss-2.4.4_Tomcat-4.0.1

          The batch file doesn't work with Windows 9X or ME :-(
          It is designed for cmd.exe not command.com

          Move the two -D statements to the java command at the
          bottom.

          You want to use run_with_catalina.bat if you are
          using embedded tomcat.

          Regards,
          Adrian

          • 2. Re: Fail in starting JBoss-2.4.4_Tomcat-4.0.1
            fhlee7

            thx! warjort!
            sorry that my English is not very good! I do not understand the sentence 'Move the two -D statements to the java command at the bottom.'
            Where should I move the statements to?
            Thanks!

            • 3. Re: Fail in starting JBoss-2.4.4_Tomcat-4.0.1

              Try this.

              remove
              set JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
              set JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl

              change the java line to something like
              [pre]
              java "-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl" "-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl" "%JBOSS_CLASSPATH%" org.jboss.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
              [/pre]

              WARNING: I haven't tried this.

              Regards,
              Adrian

              • 4. Re: Fail in starting JBoss-2.4.4_Tomcat-4.0.1
                fhlee7

                Thanks for your help!
                I have several questions again:
                1) for the java command, when should I run this? is it when I run the bean?
                2) i am not familiar with the dos prompt (coz i use Linux before). when i try to type the java command which you suggested, i can't type it all, because it is too long. how can I solve this problem?
                Thanks!

                • 5. Re: Fail in starting JBoss-2.4.4_Tomcat-4.0.1

                  1) Use run_with_catalina.bat to start the server.
                  2) Change the java command in run.bat

                  Have you seen the manual?
                  http://www.jboss.org/doco.jsp

                  If you like linux why not try cygwin?
                  This is un*x tools for windows.
                  http://sources.redhat.com/cygwin/

                  Regard,
                  Adrian

                  • 6. Re: Fail in starting JBoss-2.4.4_Tomcat-4.0.1
                    fhlee7

                    Thanks! Adrian.
                    I have read the manual page, however, it seems that the free documentation is for older version of JBoss.

                    Moreover, I have tried your method before, it's ok now.
                    However, when I run run_with_catalina.bat, the following error occurs:

                    Out of environment space
                    Out of environment space
                    Out of environment space
                    JBOSS_CLASSPATH=c:\java\jboss\jboss
                    Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/Main

                    I have changed the memory of the initialization to a very small value, however, it still said that "Out of environment space". Morever, do I need to set some classpaths for the JBoss? Thanks!

                    Regards,
                    Stephen

                    • 7. Re: Fail in starting JBoss-2.4.4_Tomcat-4.0.1

                      If you right click on the window title you can
                      change the size of the environment space.

                      Make sure it is set for everytime.
                      You will probably have to restart the command line
                      window?

                      Regards,
                      Adrian