1 2 3 Previous Next 30 Replies Latest reply on Dec 10, 2007 12:50 AM by jaikiran Go to original post
      • 15. Re: Why I can't start JBOSS 4.2.2GA?
        jaikiran

         

        "jackhexy" wrote:
        If I only executed ""%JAVA%" -version 2>&1 | findstr /I hotspot > nul" that in run.bat ,DOS prompted "system can't find the specified file" as above.
        So,I think that there are problems in this place.
        What about you?


        Thats right. Its evident that the problem happens on this specific line. In the past week, there have been a couple of posts where similar issue was observed which resulted in the run.bat file terminating without any messages. The cause for that behaviour was turned out to be JAVA_HOME value not being properly set. In your case though the JAVA_HOME value and the output of %JAVA% -version look good. So that does not seem to be the issue.

        The second reason why this line might fail is related to 'findstr' not being in the PATH env variable (the link that i posted in my first reply http://wiki.jboss.org/wiki/Wiki.jsp?page=FindstrCommandNotFound ). Are you sure the 'findstr' is be on the PATH. You can find it under windows\system32 folder on your system. If you dont have it in the PATH then you will have to add it as follows(just an example):

        set PATH=%PATH%;C:\windows\system32


        Other than this at this point, i dont see any other reason why this should fail. I havent yet installed JBoss4.2.2 (i have 4.2.1) nor do i have JDK1.6, but i dont see anything that might have changed in 4.2.2 which might be causing this issue.


        • 16. Re: Why I can't start JBOSS 4.2.2GA?
          jackhexy

          In my run.bat,the configuration is #"%JAVA%" -version 2>&1 | findstr /I hotspot > nul#.
          Maybe is #"%JAVA%" -version 2>&1 | findstr /I hotspot > null# ?

          • 17. Re: Why I can't start JBOSS 4.2.2GA?
            jaikiran

             

            "jackhexy" wrote:
            "%JAVA%" -version 2>&1 | findstr /I hotspot > nul.
            What is the meaning?Compare the java version?:-)
            You know?


            All this command is trying to do is, see if the version of Java that you have supports the -server JVM option. This command first prints out the java version and passes it to findstr command which searches for the string "hotspot" in the output. If "hotspot" is found in the java version output, it adds the -server JVM option while starting JBoss.



            • 18. Re: Why I can't start JBOSS 4.2.2GA?
              jackhexy

              When I change nul to null,execute run.bat,
              DOS prompt #Exception in thread "main" java.lang.NoClassDefFoundError: %JAVA_OPTS%#.
              How to configure %JAVA_OPTS%?

              • 19. Re: Why I can't start JBOSS 4.2.2GA?
                jaikiran

                 

                "jackhexy" wrote:
                In my run.bat,the configuration is #"%JAVA%" -version 2>&1 | findstr /I hotspot > nul#.



                Do you actually mean that there is a # on that line? Since your first post, i have been assuming that you just added this # while posting it here.



                • 20. Re: Why I can't start JBOSS 4.2.2GA?
                  jackhexy

                  Sorry,there is no # in the line.I only distinguish the information.

                  • 21. Re: Why I can't start JBOSS 4.2.2GA?
                    jackhexy

                    Only show it on our web page,no # in the run.bat.

                    • 22. Re: Why I can't start JBOSS 4.2.2GA?
                      jaikiran

                       

                      "jackhexy" wrote:
                      When I change nul to null,execute run.bat,
                      DOS prompt #Exception in thread "main" java.lang.NoClassDefFoundError: %JAVA_OPTS%#.
                      How to configure %JAVA_OPTS%?


                      Doing these random changes is not going to lead us to a solution. Undo all the changes that you have done to your run.bat file, use the run.bat file which you downloaded from JBoss then try running it.

                      When you run into that error again follow the instruction that i mentioned earlier (which are as follows) :

                      "jaikiran" wrote:

                      Thats right. Its evident that the problem happens on this specific line. In the past week, there have been a couple of posts where similar issue was observed which resulted in the run.bat file terminating without any messages. The cause for that behaviour was turned out to be JAVA_HOME value not being properly set. In your case though the JAVA_HOME value and the output of %JAVA% -version look good. So that does not seem to be the issue.

                      The second reason why this line might fail is related to 'findstr' not being in the PATH env variable (the link that i posted in my first reply http://wiki.jboss.org/wiki/Wiki.jsp?page=FindstrCommandNotFound ). Are you sure the 'findstr' is be on the PATH. You can find it under windows\system32 folder on your system. If you dont have it in the PATH then you will have to add it as follows(just an example):

                      set PATH=%PATH%;C:\windows\system32




                      Once you have successfully ruled out these 2 probable causes, we will be able to move forward.


                      • 23. Re: Why I can't start JBOSS 4.2.2GA?
                        jackhexy

                        The "c:\winnt\system32" is in my path.
                        Yes,I got Jboss 4.2.2 from Jboss.org.
                        Maybe focus on "%JAVA%" -version 2>&1 | findstr /I hotspot > nul.

                        • 24. Re: Why I can't start JBOSS 4.2.2GA?
                          jackhexy

                          In DOS,findstr /? is ok.:-)

                          • 25. Re: Why I can't start JBOSS 4.2.2GA?
                            jackhexy

                            Ok,It started successfully.
                            I change "nul" to "null" and add JAVA_OPTS in run.bat.
                            Thanks all.

                            • 26. Re: Why I can't start JBOSS 4.2.2GA?
                              jaikiran

                              Now that this thread has gone into 3 pages without making much headway, i decided to download JBoss-4.2.2 and Java6 on my system. After downloading, i just set the JAVA_HOME and executed the run.bat file. Everything went off smoothly. Here's what i get on my system

                              D:\JBoss-4.2.2\jboss-4.2.2.GA\bin>run
                              ===============================================================================
                              
                               JBoss Bootstrap Environment
                              
                               JBOSS_HOME: D:\JBoss-4.2.2\jboss-4.2.2.GA
                              
                               JAVA: c:\jdk1.6.0_03\bin\java
                              
                               JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
                              ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
                              
                               CLASSPATH: c:\jdk1.6.0_03\lib\tools.jar;D:\JBoss-4.2.2\jboss-4.2.2.GA\bin\run.
                              jar
                              
                              ===============================================================================
                              21:11:01,576 INFO [Server] Starting JBoss (MX MicroKernel)...
                              21:11:01,596 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=
                              JBoss_4_2_2_GA date=200710221139)
                              21:11:01,606 INFO [Server] Home Dir: D:\JBoss-4.2.2\jboss-4.2.2.GA
                              21:11:01,606 INFO [Server] Home URL: file:/D:/JBoss-4.2.2/jboss-4.2.2.GA/
                              21:11:01,606 INFO [Server] Patch URL: null
                              21:11:01,606 INFO [Server] Server Name: default
                              21:11:01,606 INFO [Server] Server Home Dir: D:\JBoss-4.2.2\jboss-4.2.2.GA\serve
                              r\default
                              21:11:01,606 INFO [Server] Server Home URL: file:/D:/JBoss-4.2.2/jboss-4.2.2.GA
                              /server/default/
                              21:11:01,606 INFO [Server] Server Log Dir: D:\JBoss-4.2.2\jboss-4.2.2.GA\server
                              \default\log
                              21:11:01,616 INFO [Server] Server Temp Dir: D:\JBoss-4.2.2\jboss-4.2.2.GA\serve
                              r\default\tmp
                              21:11:01,616 INFO [Server] Root Deployment Filename: jboss-service.xml
                              21:11:02,958 INFO [ServerInfo] Java version: 1.6.0_03,Sun Microsystems Inc.
                              21:11:02,968 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0_03-b05
                              ,Sun Microsystems Inc.
                              21:11:02,968 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86
                              21:11:03,870 INFO [Server] Core system initialized
                              


                              And then finally

                              21:11:43,727 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 42s:91ms


                              So at this point i am clueless as to what might be the issue. I would suggest trying it on a different system. See if it works there.

                              • 27. Re: Why I can't start JBOSS 4.2.2GA?
                                jackhexy

                                You are the best!
                                Thank you very much and miss the time spent together.

                                • 28. Re: Why I can't start JBOSS 4.2.2GA?
                                  jackhexy

                                  I am sorry to Jaikiran and thank you.
                                  I caught the crux of the problem for i couldn't start the server.
                                  There is a Equipment named 'nul' in dos ,but it was wrong in my windows system,maybe it was sabotaged.When I deploymented PostgreSQL 8.2,the wrong messages same to them in Jboss4.2
                                  Finially,I judged the crux was at the windows system.I changed one windows system,Jboss and PostgreSQL were ok.
                                  The probleme wasted me a lot of time.So sad.

                                  • 29. Re: Why I can't start JBOSS 4.2.2GA?
                                    jackhexy

                                    That's why i change 'nul' to 'null' i can start the server.Actually,I change 'nul' to another symbol,I can start Jboss.