1 2 Previous Next 15 Replies Latest reply on Mar 2, 2011 7:05 AM by Nicklas Karlsson

    Not able to start the server

    Harikrishna S Newbie

      Hi Folks,

       

      I am new to JBoss. I have installed JBoss jboss-eap-4.2.0.GA_CP03 on my windows machine

       

      After that I am trying to start the server with run.bat with no luck

       

      I am not getting any messages in command line like below


      D:\jboss-eap-4.2.0.GA_CP03\jboss-eap-4.2\jboss-as\bin>run.bat

       

      D:\jboss-eap-4.2.0.GA_CP03\jboss-eap-4.2\jboss-as\bin>

       

      Also i am not able to find log folder in any server's folder

       

      Can anyone help me in this?

       

      Regards,

      Hari

        • 1. Not able to start the server
          Nicklas Karlsson Master

          No output at all? Try unsetting JBOSS_HOME, try commenting out any "echo off" in the batch files.

          • 2. Not able to start the server
            Harikrishna S Newbie

            Hi Nicklas,

             

            Thanks for the quick reply

             

            Tried unsetting JBOSS_HOME and commented out the echo off  in run.bat

             

            Still getting the same result, didnt get any output like i mentioned above

             

            Regards,

            Hari

            • 3. Not able to start the server
              Nicklas Karlsson Master

              what does java -v say? do you have a JAVA_HOME or any JAVA* env var set?

              • 4. Not able to start the server
                Harikrishna S Newbie

                this is the result of java -v

                 

                java version "1.5.0_18"

                Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02)

                Java HotSpot(TM) Client VM (build 1.5.0_18-b02, mixed mode, sharing)

                 

                yes i have JAVA_HOME in env var

                • 5. Not able to start the server
                  Nicklas Karlsson Master

                  edit run.bat, stick

                   

                  echo 1

                  ...

                  echo 2

                  ...

                   

                  Every few lines. How far do you get?

                  • 6. Not able to start the server
                    Harikrishna S Newbie

                    Sorry didnt get the point where i need to change

                     

                    after commenting out echo off i am getting the output below

                     

                    D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>run.bat

                     

                    D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>echo off

                     

                    D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>

                    • 7. Not able to start the server
                      Nicklas Karlsson Master

                      comment out the @echo off by adding "rem " before it (or remove the line alltogether)

                      • 8. Not able to start the server
                        Harikrishna S Newbie

                        This time a new output

                         


                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>run.bat

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem @echo off

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem ----------------------------------
                        ---------------------------------------

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem JBoss Bootstrap Script for Win32

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem ----------------------------------
                        ---------------------------------------

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem $Id: run.bat 73584 2008-05-22 12:0
                        9:26Z dimitris@jboss.org $

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set DIRNAME=.\

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if "Windows_NT" == "Windows_NT" set DI
                        RNAME=D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin\

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set PROGNAME=run.bat

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if "Windows_NT" == "Windows_NT" set PR
                        OGNAME=run.bat

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>pushd D:\jboss-4.2.3.GA-jdk6\jboss-4.2
                        .3.GA\bin\..

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA>set JBOSS_HOME=D:\jboss-4.2.3.GA-jdk6\jbos
                        s-4.2.3.GA

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA>popd

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>REM Add bin/native to the PATH if pres
                        ent

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if exist "D:\jboss-4.2.3.GA-jdk6\jboss
                        -4.2.3.GA\bin\native" set PATH=D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin\native;
                        D:\OraHome_1\bin;D:\HarikrishnaS\jdk\jdk1.5.0_18\bin;C:\WINDOWS\system32;C:\WIND
                        OWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\cygnus\cygwin-b20\H-
                        i586-cygwin32\bin;D:\saba_ant\bin;C:\Program Files\Microsoft SQL Server\80\Tools
                        \Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Mic
                        rosoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Bi
                        nn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\P
                        rivateAssemblies\

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if exist "D:\jboss-4.2.3.GA-jdk6\jboss
                        -4.2.3.GA\bin\native" set JAVA_OPTS= -Djava.library.path="D:\OraHome_1\bin;D:\Ha
                        rikrishnaS\jdk\jdk1.5.0_18\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System3
                        2\Wbem;C:\Program Files\Intel\DMIX;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;D:\s
                        aba_ant\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program File
                        s\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\D
                        TS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE
                        \;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\"

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem Find run.jar, or we can't continue


                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set RUNJAR=D:\jboss-4.2.3.GA-jdk6\jbos
                        s-4.2.3.GA\bin\run.jar

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if exist "D:\jboss-4.2.3.GA-jdk6\jboss
                        -4.2.3.GA\bin\run.jar" goto FOUND_RUN_JAR

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if not "D:\HarikrishnaS\jdk\jdk1.5.0_1
                        8\bin;.;" == "" goto ADD_TOOLS

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set JAVA=D:\HarikrishnaS\jdk\jdk1.5.0_
                        18\bin;.;\bin\java

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem A full JDK with toos.jar is not re
                        quired anymore since jboss web packages

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem the eclipse jdt compiler and javas
                        sist has its own internal compiler.

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if not exist "D:\HarikrishnaS\jdk\jdk1
                        .5.0_18\bin;.;\lib\tools.jar" goto SKIP_TOOLS

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem If JBOSS_CLASSPATH or JAVAC_JAR is
                        empty, don't include it, as this will

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem result in including the local dire
                        ctory in the classpath, which makes

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem error tracking harder.

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if not "" == "" set RUNJAR=;D:\jboss-4
                        .2.3.GA-jdk6\jboss-4.2.3.GA\bin\run.jar

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if "" == "" set RUN_CLASSPATH=D:\jboss
                        -4.2.3.GA-jdk6\jboss-4.2.3.GA\bin\run.jar

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>if "D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3
                        .GA\bin\run.jar" == "" set RUN_CLASSPATH=;D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\
                        bin\run.jar

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set JBOSS_CLASSPATH=D:\jboss-4.2.3.GA-
                        jdk6\jboss-4.2.3.GA\bin\run.jar

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem Setup JBoss specific properties

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>set JAVA_OPTS= -Dprogram.name=run.bat


                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>rem Add -server to the JVM options, if
                        supported

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>"D:\HarikrishnaS\jdk\jdk1.5.0_18\bin;.
                        ;\bin\java" -server -version   2>&1  | findstr /I hotspot  1>nul

                        D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>

                        • 9. Not able to start the server
                          Nicklas Karlsson Master

                          I think it fails on the

                           

                          D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>"D:\HarikrishnaS\jdk\jdk1.5.0_18\bin;.

                          ;\bin\java" -server -version   2>&1  | findstr /I hotspot  1>nul

                           

                          when it should be

                           

                          D:\jboss-4.2.3.GA-jdk6\jboss-4.2.3.GA\bin>"D:\HarikrishnaS\jdk\jdk1.5.0_18\bin\java" -server -version   2>&1  | findstr /I hotspot  1>nul

                           

                          what does your JAVA_HOME look like? What does your PATH look like? Ends with \ or some other strange char?

                          • 10. Not able to start the server
                            Harikrishna S Newbie

                            PATH ends with \

                             

                            And JAVA_HOME is D:\HarikrishnaS\jdk\jdk1.5.0_18\bin\java\

                            • 11. Not able to start the server
                              Nicklas Karlsson Master

                              set JAVA_HOME to  D:\HarikrishnaS\jdk\jdk1.5.0_18

                              set PATH=%JAVA_HOME%\bin;%PATH%

                              take away \ from end of path;

                              • 12. Not able to start the server
                                Harikrishna S Newbie

                                Server has started with the following exceptions

                                 

                                Caused by: java.lang.NoClassDefFoundError: javax/annotation/Resource

                                at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:158)

                                at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:73)

                                at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:56)

                                at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)

                                at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1064)

                                at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)

                                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4263)

                                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)

                                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)

                                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                at java.lang.reflect.Method.invoke(Method.java:585)

                                at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

                                ... 169 more

                                 

                                But not able to open the web console

                                • 13. Not able to start the server
                                  Nicklas Karlsson Master

                                  Still something strange with the env (endorsed dirs?). Show the full envdump from "set"

                                  • 14. Not able to start the server
                                    Harikrishna S Newbie

                                    CLASSPATH=D:\HarikrishnaS\jdk\jdk1.5.0_18\lib\tools.jar;D:\HarikrishnaS\jdk\jdk1

                                     

                                    .5.0_18\lib\dt.jar;D:\HarikrishnaS\jdk\jdk1.5.0_18\lib\htmlconverter.jar;D:\HarikrishnaS\jdk\jdk1.5.0_18\lib\jconsole.jar;D:\HarikrishnaS\jdk\jdk1.5.0_18\jre\lib\rt.jar;S:\libraries\saba\lib\SabaAnt.jar;D:\saba_ant\lib\antutility.jar;

                                    CommonProgramFiles=C:\Program Files\Common Files

                                     

                                    Path=D:\HarikrishnaS\jdk\jdk1.5.0_18\bin;D:\OraHome_1\bin;D:\HarikrishnaS\jdk\jdk1.5.0_18\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;D:\saba_ant\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program File

                                    s\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\

                                    1 2 Previous Next